@@ -174,6 +174,7 @@ describe("full flow test", () => {
174
174
{ title : "Yes" , description : "User is responsible" , id : "0x01" } ,
175
175
{ title : "No" , description : "User is not responsible" , id : "0x02" } ,
176
176
] ,
177
+ policyURI : "/ipfs/QmUnPyGi31RoF4DRR8vT3u13YsppxtsbBKbdQAbcP8be4M/file.json" ,
177
178
details : {
178
179
ruling : "{{ruling}}" ,
179
180
tied : "{{tied}}" ,
@@ -182,6 +183,9 @@ describe("full flow test", () => {
182
183
toAddress : "{{toAddress}}" ,
183
184
transferValue : "{{transferValue}}" ,
184
185
} ,
186
+ arbitratorChainID : "421613" ,
187
+ arbitratorAddress : "0x0987654321098765432109876543210987654321" ,
188
+ version : "1.0" ,
185
189
} ) ;
186
190
187
191
const initialContext = { alchemyApiKey : "mocked_api_key" } ;
@@ -199,6 +203,7 @@ describe("full flow test", () => {
199
203
{ title : "Yes" , description : "User is responsible" , id : "0x01" } ,
200
204
{ title : "No" , description : "User is not responsible" , id : "0x02" } ,
201
205
] ,
206
+ policyURI : "/ipfs/QmUnPyGi31RoF4DRR8vT3u13YsppxtsbBKbdQAbcP8be4M/file.json" ,
202
207
details : {
203
208
ruling : "1" ,
204
209
tied : "false" ,
@@ -207,6 +212,9 @@ describe("full flow test", () => {
207
212
toAddress : "0x0987654321098765432109876543210987654321" ,
208
213
transferValue : "100" ,
209
214
} ,
215
+ arbitratorChainID : "421613" ,
216
+ arbitratorAddress : "0x0987654321098765432109876543210987654321" ,
217
+ version : "1.0" ,
210
218
} ) ;
211
219
} ) ;
212
220
} ) ;
@@ -345,10 +353,7 @@ describe("populateTemplate", () => {
345
353
reserved : false ,
346
354
} ,
347
355
] ,
348
- policyURI : "https://example.com/policy" ,
349
- frontendUrl : "https://example.com" ,
350
- arbitrableChainID : "100" ,
351
- arbitrableAddress : "0x1234567890123456789012345678901234567890" ,
356
+ policyURI : "/ipfs/QmUnPyGi31RoF4DRR8vT3u13YsppxtsbBKbdQAbcP8be4M/file.json" ,
352
357
arbitratorChainID : "421613" ,
353
358
arbitratorAddress : "0x0987654321098765432109876543210987654321" ,
354
359
category : "General" ,
@@ -376,10 +381,7 @@ describe("populateTemplate", () => {
376
381
reserved : false ,
377
382
} ,
378
383
] ,
379
- policyURI : "https://example.com/policy" ,
380
- frontendUrl : "https://example.com" ,
381
- arbitrableChainID : "100" ,
382
- arbitrableAddress : "0x1234567890123456789012345678901234567890" ,
384
+ policyURI : "/ipfs/QmUnPyGi31RoF4DRR8vT3u13YsppxtsbBKbdQAbcP8be4M/file.json" ,
383
385
arbitratorChainID : "421613" ,
384
386
arbitratorAddress : "0x0987654321098765432109876543210987654321" ,
385
387
category : "General" ,
@@ -394,6 +396,22 @@ describe("populateTemplate", () => {
394
396
title : "Test Title" ,
395
397
description : "Test Description" ,
396
398
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" ,
397
415
} ) ;
398
416
399
417
const data = {
@@ -406,6 +424,22 @@ describe("populateTemplate", () => {
406
424
title : "Test Title" ,
407
425
description : "Test Description" ,
408
426
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" ,
409
443
} ) ;
410
444
} ) ;
411
445
0 commit comments