@@ -174,6 +174,7 @@ describe("full flow test", () => {
174174 { title : "Yes" , description : "User is responsible" , id : "0x01" } ,
175175 { title : "No" , description : "User is not responsible" , id : "0x02" } ,
176176 ] ,
177+ policyURI : "/ipfs/QmUnPyGi31RoF4DRR8vT3u13YsppxtsbBKbdQAbcP8be4M/file.json" ,
177178 details : {
178179 ruling : "{{ruling}}" ,
179180 tied : "{{tied}}" ,
@@ -182,6 +183,9 @@ describe("full flow test", () => {
182183 toAddress : "{{toAddress}}" ,
183184 transferValue : "{{transferValue}}" ,
184185 } ,
186+ arbitratorChainID : "421613" ,
187+ arbitratorAddress : "0x0987654321098765432109876543210987654321" ,
188+ version : "1.0" ,
185189 } ) ;
186190
187191 const initialContext = { alchemyApiKey : "mocked_api_key" } ;
@@ -199,6 +203,7 @@ describe("full flow test", () => {
199203 { title : "Yes" , description : "User is responsible" , id : "0x01" } ,
200204 { title : "No" , description : "User is not responsible" , id : "0x02" } ,
201205 ] ,
206+ policyURI : "/ipfs/QmUnPyGi31RoF4DRR8vT3u13YsppxtsbBKbdQAbcP8be4M/file.json" ,
202207 details : {
203208 ruling : "1" ,
204209 tied : "false" ,
@@ -207,6 +212,9 @@ describe("full flow test", () => {
207212 toAddress : "0x0987654321098765432109876543210987654321" ,
208213 transferValue : "100" ,
209214 } ,
215+ arbitratorChainID : "421613" ,
216+ arbitratorAddress : "0x0987654321098765432109876543210987654321" ,
217+ version : "1.0" ,
210218 } ) ;
211219 } ) ;
212220} ) ;
@@ -345,10 +353,7 @@ describe("populateTemplate", () => {
345353 reserved : false ,
346354 } ,
347355 ] ,
348- policyURI : "https://example.com/policy" ,
349- frontendUrl : "https://example.com" ,
350- arbitrableChainID : "100" ,
351- arbitrableAddress : "0x1234567890123456789012345678901234567890" ,
356+ policyURI : "/ipfs/QmUnPyGi31RoF4DRR8vT3u13YsppxtsbBKbdQAbcP8be4M/file.json" ,
352357 arbitratorChainID : "421613" ,
353358 arbitratorAddress : "0x0987654321098765432109876543210987654321" ,
354359 category : "General" ,
@@ -376,10 +381,7 @@ describe("populateTemplate", () => {
376381 reserved : false ,
377382 } ,
378383 ] ,
379- policyURI : "https://example.com/policy" ,
380- frontendUrl : "https://example.com" ,
381- arbitrableChainID : "100" ,
382- arbitrableAddress : "0x1234567890123456789012345678901234567890" ,
384+ policyURI : "/ipfs/QmUnPyGi31RoF4DRR8vT3u13YsppxtsbBKbdQAbcP8be4M/file.json" ,
383385 arbitratorChainID : "421613" ,
384386 arbitratorAddress : "0x0987654321098765432109876543210987654321" ,
385387 category : "General" ,
@@ -394,6 +396,22 @@ describe("populateTemplate", () => {
394396 title : "Test Title" ,
395397 description : "Test Description" ,
396398 question : "{{missingQuestion}}" ,
399+ type : "single-select" ,
400+ answers : [
401+ {
402+ title : "Yes" ,
403+ description : "Affirmative" ,
404+ id : "0x01" ,
405+ reserved : false ,
406+ } ,
407+ ] ,
408+ policyURI : "/ipfs/QmUnPyGi31RoF4DRR8vT3u13YsppxtsbBKbdQAbcP8be4M/file.json" ,
409+ arbitratorChainID : "421613" ,
410+ arbitratorAddress : "0x0987654321098765432109876543210987654321" ,
411+ category : "General" ,
412+ lang : "en_US" ,
413+ specification : "Spec" ,
414+ version : "1.0" ,
397415 } ) ;
398416
399417 const data = {
@@ -406,6 +424,22 @@ describe("populateTemplate", () => {
406424 title : "Test Title" ,
407425 description : "Test Description" ,
408426 question : "" ,
427+ type : "single-select" ,
428+ answers : [
429+ {
430+ title : "Yes" ,
431+ description : "Affirmative" ,
432+ id : "0x01" ,
433+ reserved : false ,
434+ } ,
435+ ] ,
436+ policyURI : "/ipfs/QmUnPyGi31RoF4DRR8vT3u13YsppxtsbBKbdQAbcP8be4M/file.json" ,
437+ arbitratorChainID : "421613" ,
438+ arbitratorAddress : "0x0987654321098765432109876543210987654321" ,
439+ category : "General" ,
440+ lang : "en_US" ,
441+ specification : "Spec" ,
442+ version : "1.0" ,
409443 } ) ;
410444 } ) ;
411445
0 commit comments