@colin999n9/gworld-agent 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +127 -0
  2. package/dist/cli.d.ts +12 -0
  3. package/dist/cli.js +256 -0
  4. package/dist/cli.js.map +1 -0
  5. package/dist/client-installer.d.ts +20 -0
  6. package/dist/client-installer.js +48 -0
  7. package/dist/client-installer.js.map +1 -0
  8. package/dist/config.d.ts +37 -0
  9. package/dist/config.js +184 -0
  10. package/dist/config.js.map +1 -0
  11. package/dist/data/indexer-client.d.ts +34 -0
  12. package/dist/data/indexer-client.js +172 -0
  13. package/dist/data/indexer-client.js.map +1 -0
  14. package/dist/data/rpc-reader.d.ts +69 -0
  15. package/dist/data/rpc-reader.js +163 -0
  16. package/dist/data/rpc-reader.js.map +1 -0
  17. package/dist/domain.d.ts +204 -0
  18. package/dist/domain.js +2 -0
  19. package/dist/domain.js.map +1 -0
  20. package/dist/errors.d.ts +10 -0
  21. package/dist/errors.js +16 -0
  22. package/dist/errors.js.map +1 -0
  23. package/dist/factory.d.ts +4 -0
  24. package/dist/factory.js +25 -0
  25. package/dist/factory.js.map +1 -0
  26. package/dist/fs.d.ts +3 -0
  27. package/dist/fs.js +35 -0
  28. package/dist/fs.js.map +1 -0
  29. package/dist/generated/abis.d.ts +7446 -0
  30. package/dist/generated/abis.js +4861 -0
  31. package/dist/generated/abis.js.map +1 -0
  32. package/dist/generated/deployments.d.ts +145 -0
  33. package/dist/generated/deployments.js +150 -0
  34. package/dist/generated/deployments.js.map +1 -0
  35. package/dist/generated/protocol.d.ts +165 -0
  36. package/dist/generated/protocol.js +132 -0
  37. package/dist/generated/protocol.js.map +1 -0
  38. package/dist/geometry.d.ts +24 -0
  39. package/dist/geometry.js +31 -0
  40. package/dist/geometry.js.map +1 -0
  41. package/dist/json.d.ts +3 -0
  42. package/dist/json.js +14 -0
  43. package/dist/json.js.map +1 -0
  44. package/dist/mcp/server.d.ts +4 -0
  45. package/dist/mcp/server.js +134 -0
  46. package/dist/mcp/server.js.map +1 -0
  47. package/dist/mcp/stdio.d.ts +2 -0
  48. package/dist/mcp/stdio.js +23 -0
  49. package/dist/mcp/stdio.js.map +1 -0
  50. package/dist/runner/audit-store.d.ts +27 -0
  51. package/dist/runner/audit-store.js +61 -0
  52. package/dist/runner/audit-store.js.map +1 -0
  53. package/dist/runner/file-state.d.ts +7 -0
  54. package/dist/runner/file-state.js +23 -0
  55. package/dist/runner/file-state.js.map +1 -0
  56. package/dist/runner/legal-actions.d.ts +22 -0
  57. package/dist/runner/legal-actions.js +171 -0
  58. package/dist/runner/legal-actions.js.map +1 -0
  59. package/dist/runner/observation.d.ts +12 -0
  60. package/dist/runner/observation.js +47 -0
  61. package/dist/runner/observation.js.map +1 -0
  62. package/dist/runner/policy.d.ts +10 -0
  63. package/dist/runner/policy.js +68 -0
  64. package/dist/runner/policy.js.map +1 -0
  65. package/dist/runner/runtime.d.ts +73 -0
  66. package/dist/runner/runtime.js +236 -0
  67. package/dist/runner/runtime.js.map +1 -0
  68. package/dist/runner/strategy.d.ts +2 -0
  69. package/dist/runner/strategy.js +19 -0
  70. package/dist/runner/strategy.js.map +1 -0
  71. package/dist/runner/transaction-executor.d.ts +58 -0
  72. package/dist/runner/transaction-executor.js +114 -0
  73. package/dist/runner/transaction-executor.js.map +1 -0
  74. package/dist/runner/writer-lock.d.ts +14 -0
  75. package/dist/runner/writer-lock.js +81 -0
  76. package/dist/runner/writer-lock.js.map +1 -0
  77. package/dist/wallet/keystore.d.ts +18 -0
  78. package/dist/wallet/keystore.js +111 -0
  79. package/dist/wallet/keystore.js.map +1 -0
  80. package/dist/wallet/password-store.d.ts +27 -0
  81. package/dist/wallet/password-store.js +118 -0
  82. package/dist/wallet/password-store.js.map +1 -0
  83. package/package.json +41 -0
  84. package/skill/gworld/SKILL.md +58 -0
  85. package/skill/gworld/references/rules.md +33 -0
  86. package/skill/gworld/references/troubleshooting.md +22 -0
@@ -0,0 +1,4861 @@
1
+ // This file is generated by scripts/generate-web-contracts.mjs. Do not edit.
2
+ export const routerAbi = [
3
+ {
4
+ "type": "constructor",
5
+ "inputs": [],
6
+ "stateMutability": "nonpayable"
7
+ },
8
+ {
9
+ "type": "function",
10
+ "name": "AGENT_REGISTRY",
11
+ "inputs": [],
12
+ "outputs": [
13
+ {
14
+ "name": "",
15
+ "type": "bytes32",
16
+ "internalType": "bytes32"
17
+ }
18
+ ],
19
+ "stateMutability": "view"
20
+ },
21
+ {
22
+ "type": "function",
23
+ "name": "AP_LEDGER",
24
+ "inputs": [],
25
+ "outputs": [
26
+ {
27
+ "name": "",
28
+ "type": "bytes32",
29
+ "internalType": "bytes32"
30
+ }
31
+ ],
32
+ "stateMutability": "view"
33
+ },
34
+ {
35
+ "type": "function",
36
+ "name": "GAME_HUB",
37
+ "inputs": [],
38
+ "outputs": [
39
+ {
40
+ "name": "",
41
+ "type": "bytes32",
42
+ "internalType": "bytes32"
43
+ }
44
+ ],
45
+ "stateMutability": "view"
46
+ },
47
+ {
48
+ "type": "function",
49
+ "name": "MARKET_ESCROW",
50
+ "inputs": [],
51
+ "outputs": [
52
+ {
53
+ "name": "",
54
+ "type": "bytes32",
55
+ "internalType": "bytes32"
56
+ }
57
+ ],
58
+ "stateMutability": "view"
59
+ },
60
+ {
61
+ "type": "function",
62
+ "name": "PREDICTION_MARKET",
63
+ "inputs": [],
64
+ "outputs": [
65
+ {
66
+ "name": "",
67
+ "type": "bytes32",
68
+ "internalType": "bytes32"
69
+ }
70
+ ],
71
+ "stateMutability": "view"
72
+ },
73
+ {
74
+ "type": "function",
75
+ "name": "PRIZE_ESCROW",
76
+ "inputs": [],
77
+ "outputs": [
78
+ {
79
+ "name": "",
80
+ "type": "bytes32",
81
+ "internalType": "bytes32"
82
+ }
83
+ ],
84
+ "stateMutability": "view"
85
+ },
86
+ {
87
+ "type": "function",
88
+ "name": "RNG_PROVIDER",
89
+ "inputs": [],
90
+ "outputs": [
91
+ {
92
+ "name": "",
93
+ "type": "bytes32",
94
+ "internalType": "bytes32"
95
+ }
96
+ ],
97
+ "stateMutability": "view"
98
+ },
99
+ {
100
+ "type": "function",
101
+ "name": "SANDBOX_GAME",
102
+ "inputs": [],
103
+ "outputs": [
104
+ {
105
+ "name": "",
106
+ "type": "bytes32",
107
+ "internalType": "bytes32"
108
+ }
109
+ ],
110
+ "stateMutability": "view"
111
+ },
112
+ {
113
+ "type": "function",
114
+ "name": "SOCIAL_GAME",
115
+ "inputs": [],
116
+ "outputs": [
117
+ {
118
+ "name": "",
119
+ "type": "bytes32",
120
+ "internalType": "bytes32"
121
+ }
122
+ ],
123
+ "stateMutability": "view"
124
+ },
125
+ {
126
+ "type": "function",
127
+ "name": "UPGRADE_INTERFACE_VERSION",
128
+ "inputs": [],
129
+ "outputs": [
130
+ {
131
+ "name": "",
132
+ "type": "string",
133
+ "internalType": "string"
134
+ }
135
+ ],
136
+ "stateMutability": "view"
137
+ },
138
+ {
139
+ "type": "function",
140
+ "name": "WORLD_CORE",
141
+ "inputs": [],
142
+ "outputs": [
143
+ {
144
+ "name": "",
145
+ "type": "bytes32",
146
+ "internalType": "bytes32"
147
+ }
148
+ ],
149
+ "stateMutability": "view"
150
+ },
151
+ {
152
+ "type": "function",
153
+ "name": "agentRegistry",
154
+ "inputs": [],
155
+ "outputs": [
156
+ {
157
+ "name": "",
158
+ "type": "address",
159
+ "internalType": "address"
160
+ }
161
+ ],
162
+ "stateMutability": "view"
163
+ },
164
+ {
165
+ "type": "function",
166
+ "name": "apLedger",
167
+ "inputs": [],
168
+ "outputs": [
169
+ {
170
+ "name": "",
171
+ "type": "address",
172
+ "internalType": "address"
173
+ }
174
+ ],
175
+ "stateMutability": "view"
176
+ },
177
+ {
178
+ "type": "function",
179
+ "name": "gameHub",
180
+ "inputs": [],
181
+ "outputs": [
182
+ {
183
+ "name": "",
184
+ "type": "address",
185
+ "internalType": "address"
186
+ }
187
+ ],
188
+ "stateMutability": "view"
189
+ },
190
+ {
191
+ "type": "function",
192
+ "name": "getAddress",
193
+ "inputs": [
194
+ {
195
+ "name": "key",
196
+ "type": "bytes32",
197
+ "internalType": "bytes32"
198
+ }
199
+ ],
200
+ "outputs": [
201
+ {
202
+ "name": "",
203
+ "type": "address",
204
+ "internalType": "address"
205
+ }
206
+ ],
207
+ "stateMutability": "view"
208
+ },
209
+ {
210
+ "type": "function",
211
+ "name": "initialize",
212
+ "inputs": [
213
+ {
214
+ "name": "owner_",
215
+ "type": "address",
216
+ "internalType": "address"
217
+ }
218
+ ],
219
+ "outputs": [],
220
+ "stateMutability": "nonpayable"
221
+ },
222
+ {
223
+ "type": "function",
224
+ "name": "isAuthorized",
225
+ "inputs": [
226
+ {
227
+ "name": "role",
228
+ "type": "bytes32",
229
+ "internalType": "bytes32"
230
+ },
231
+ {
232
+ "name": "caller",
233
+ "type": "address",
234
+ "internalType": "address"
235
+ }
236
+ ],
237
+ "outputs": [
238
+ {
239
+ "name": "",
240
+ "type": "bool",
241
+ "internalType": "bool"
242
+ }
243
+ ],
244
+ "stateMutability": "view"
245
+ },
246
+ {
247
+ "type": "function",
248
+ "name": "marketEscrow",
249
+ "inputs": [],
250
+ "outputs": [
251
+ {
252
+ "name": "",
253
+ "type": "address",
254
+ "internalType": "address"
255
+ }
256
+ ],
257
+ "stateMutability": "view"
258
+ },
259
+ {
260
+ "type": "function",
261
+ "name": "owner",
262
+ "inputs": [],
263
+ "outputs": [
264
+ {
265
+ "name": "",
266
+ "type": "address",
267
+ "internalType": "address"
268
+ }
269
+ ],
270
+ "stateMutability": "view"
271
+ },
272
+ {
273
+ "type": "function",
274
+ "name": "predictionMarket",
275
+ "inputs": [],
276
+ "outputs": [
277
+ {
278
+ "name": "",
279
+ "type": "address",
280
+ "internalType": "address"
281
+ }
282
+ ],
283
+ "stateMutability": "view"
284
+ },
285
+ {
286
+ "type": "function",
287
+ "name": "prizeEscrow",
288
+ "inputs": [],
289
+ "outputs": [
290
+ {
291
+ "name": "",
292
+ "type": "address",
293
+ "internalType": "address"
294
+ }
295
+ ],
296
+ "stateMutability": "view"
297
+ },
298
+ {
299
+ "type": "function",
300
+ "name": "proxiableUUID",
301
+ "inputs": [],
302
+ "outputs": [
303
+ {
304
+ "name": "",
305
+ "type": "bytes32",
306
+ "internalType": "bytes32"
307
+ }
308
+ ],
309
+ "stateMutability": "view"
310
+ },
311
+ {
312
+ "type": "function",
313
+ "name": "rngProvider",
314
+ "inputs": [],
315
+ "outputs": [
316
+ {
317
+ "name": "",
318
+ "type": "address",
319
+ "internalType": "address"
320
+ }
321
+ ],
322
+ "stateMutability": "view"
323
+ },
324
+ {
325
+ "type": "function",
326
+ "name": "sandboxGame",
327
+ "inputs": [],
328
+ "outputs": [
329
+ {
330
+ "name": "",
331
+ "type": "address",
332
+ "internalType": "address"
333
+ }
334
+ ],
335
+ "stateMutability": "view"
336
+ },
337
+ {
338
+ "type": "function",
339
+ "name": "setAddress",
340
+ "inputs": [
341
+ {
342
+ "name": "key",
343
+ "type": "bytes32",
344
+ "internalType": "bytes32"
345
+ },
346
+ {
347
+ "name": "impl",
348
+ "type": "address",
349
+ "internalType": "address"
350
+ }
351
+ ],
352
+ "outputs": [],
353
+ "stateMutability": "nonpayable"
354
+ },
355
+ {
356
+ "type": "function",
357
+ "name": "setAuthorization",
358
+ "inputs": [
359
+ {
360
+ "name": "role",
361
+ "type": "bytes32",
362
+ "internalType": "bytes32"
363
+ },
364
+ {
365
+ "name": "account",
366
+ "type": "address",
367
+ "internalType": "address"
368
+ },
369
+ {
370
+ "name": "authorized",
371
+ "type": "bool",
372
+ "internalType": "bool"
373
+ }
374
+ ],
375
+ "outputs": [],
376
+ "stateMutability": "nonpayable"
377
+ },
378
+ {
379
+ "type": "function",
380
+ "name": "socialGame",
381
+ "inputs": [],
382
+ "outputs": [
383
+ {
384
+ "name": "",
385
+ "type": "address",
386
+ "internalType": "address"
387
+ }
388
+ ],
389
+ "stateMutability": "view"
390
+ },
391
+ {
392
+ "type": "function",
393
+ "name": "transferOwnership",
394
+ "inputs": [
395
+ {
396
+ "name": "newOwner",
397
+ "type": "address",
398
+ "internalType": "address"
399
+ }
400
+ ],
401
+ "outputs": [],
402
+ "stateMutability": "nonpayable"
403
+ },
404
+ {
405
+ "type": "function",
406
+ "name": "upgradeToAndCall",
407
+ "inputs": [
408
+ {
409
+ "name": "newImplementation",
410
+ "type": "address",
411
+ "internalType": "address"
412
+ },
413
+ {
414
+ "name": "data",
415
+ "type": "bytes",
416
+ "internalType": "bytes"
417
+ }
418
+ ],
419
+ "outputs": [],
420
+ "stateMutability": "payable"
421
+ },
422
+ {
423
+ "type": "function",
424
+ "name": "worldCore",
425
+ "inputs": [],
426
+ "outputs": [
427
+ {
428
+ "name": "",
429
+ "type": "address",
430
+ "internalType": "address"
431
+ }
432
+ ],
433
+ "stateMutability": "view"
434
+ },
435
+ {
436
+ "type": "event",
437
+ "name": "AddressSet",
438
+ "inputs": [
439
+ {
440
+ "name": "key",
441
+ "type": "bytes32",
442
+ "indexed": true,
443
+ "internalType": "bytes32"
444
+ },
445
+ {
446
+ "name": "impl",
447
+ "type": "address",
448
+ "indexed": true,
449
+ "internalType": "address"
450
+ }
451
+ ],
452
+ "anonymous": false
453
+ },
454
+ {
455
+ "type": "event",
456
+ "name": "AuthorizationSet",
457
+ "inputs": [
458
+ {
459
+ "name": "role",
460
+ "type": "bytes32",
461
+ "indexed": true,
462
+ "internalType": "bytes32"
463
+ },
464
+ {
465
+ "name": "account",
466
+ "type": "address",
467
+ "indexed": true,
468
+ "internalType": "address"
469
+ },
470
+ {
471
+ "name": "authorized",
472
+ "type": "bool",
473
+ "indexed": false,
474
+ "internalType": "bool"
475
+ }
476
+ ],
477
+ "anonymous": false
478
+ },
479
+ {
480
+ "type": "event",
481
+ "name": "Initialized",
482
+ "inputs": [
483
+ {
484
+ "name": "version",
485
+ "type": "uint64",
486
+ "indexed": false,
487
+ "internalType": "uint64"
488
+ }
489
+ ],
490
+ "anonymous": false
491
+ },
492
+ {
493
+ "type": "event",
494
+ "name": "OwnershipTransferred",
495
+ "inputs": [
496
+ {
497
+ "name": "previousOwner",
498
+ "type": "address",
499
+ "indexed": true,
500
+ "internalType": "address"
501
+ },
502
+ {
503
+ "name": "newOwner",
504
+ "type": "address",
505
+ "indexed": true,
506
+ "internalType": "address"
507
+ }
508
+ ],
509
+ "anonymous": false
510
+ },
511
+ {
512
+ "type": "event",
513
+ "name": "Upgraded",
514
+ "inputs": [
515
+ {
516
+ "name": "implementation",
517
+ "type": "address",
518
+ "indexed": true,
519
+ "internalType": "address"
520
+ }
521
+ ],
522
+ "anonymous": false
523
+ },
524
+ {
525
+ "type": "error",
526
+ "name": "AddressEmptyCode",
527
+ "inputs": [
528
+ {
529
+ "name": "target",
530
+ "type": "address",
531
+ "internalType": "address"
532
+ }
533
+ ]
534
+ },
535
+ {
536
+ "type": "error",
537
+ "name": "ERC1967InvalidImplementation",
538
+ "inputs": [
539
+ {
540
+ "name": "implementation",
541
+ "type": "address",
542
+ "internalType": "address"
543
+ }
544
+ ]
545
+ },
546
+ {
547
+ "type": "error",
548
+ "name": "ERC1967NonPayable",
549
+ "inputs": []
550
+ },
551
+ {
552
+ "type": "error",
553
+ "name": "FailedCall",
554
+ "inputs": []
555
+ },
556
+ {
557
+ "type": "error",
558
+ "name": "InvalidInitialization",
559
+ "inputs": []
560
+ },
561
+ {
562
+ "type": "error",
563
+ "name": "NotAuthorized",
564
+ "inputs": [
565
+ {
566
+ "name": "caller",
567
+ "type": "address",
568
+ "internalType": "address"
569
+ }
570
+ ]
571
+ },
572
+ {
573
+ "type": "error",
574
+ "name": "NotInitializing",
575
+ "inputs": []
576
+ },
577
+ {
578
+ "type": "error",
579
+ "name": "UUPSUnauthorizedCallContext",
580
+ "inputs": []
581
+ },
582
+ {
583
+ "type": "error",
584
+ "name": "UUPSUnsupportedProxiableUUID",
585
+ "inputs": [
586
+ {
587
+ "name": "slot",
588
+ "type": "bytes32",
589
+ "internalType": "bytes32"
590
+ }
591
+ ]
592
+ },
593
+ {
594
+ "type": "error",
595
+ "name": "ZeroAddress",
596
+ "inputs": []
597
+ }
598
+ ];
599
+ export const rngAbi = [
600
+ {
601
+ "type": "constructor",
602
+ "inputs": [],
603
+ "stateMutability": "nonpayable"
604
+ },
605
+ {
606
+ "type": "function",
607
+ "name": "BLOCKHASH_WINDOW",
608
+ "inputs": [],
609
+ "outputs": [
610
+ {
611
+ "name": "",
612
+ "type": "uint256",
613
+ "internalType": "uint256"
614
+ }
615
+ ],
616
+ "stateMutability": "view"
617
+ },
618
+ {
619
+ "type": "function",
620
+ "name": "ROUTER",
621
+ "inputs": [],
622
+ "outputs": [
623
+ {
624
+ "name": "",
625
+ "type": "address",
626
+ "internalType": "contract IGWorldRouter"
627
+ }
628
+ ],
629
+ "stateMutability": "view"
630
+ },
631
+ {
632
+ "type": "function",
633
+ "name": "TARGET_BLOCK_OFFSET",
634
+ "inputs": [],
635
+ "outputs": [
636
+ {
637
+ "name": "",
638
+ "type": "uint256",
639
+ "internalType": "uint256"
640
+ }
641
+ ],
642
+ "stateMutability": "view"
643
+ },
644
+ {
645
+ "type": "function",
646
+ "name": "UPGRADE_INTERFACE_VERSION",
647
+ "inputs": [],
648
+ "outputs": [
649
+ {
650
+ "name": "",
651
+ "type": "string",
652
+ "internalType": "string"
653
+ }
654
+ ],
655
+ "stateMutability": "view"
656
+ },
657
+ {
658
+ "type": "function",
659
+ "name": "commit",
660
+ "inputs": [
661
+ {
662
+ "name": "tag",
663
+ "type": "uint256",
664
+ "internalType": "uint256"
665
+ }
666
+ ],
667
+ "outputs": [
668
+ {
669
+ "name": "targetBlock",
670
+ "type": "uint256",
671
+ "internalType": "uint256"
672
+ }
673
+ ],
674
+ "stateMutability": "nonpayable"
675
+ },
676
+ {
677
+ "type": "function",
678
+ "name": "initialize",
679
+ "inputs": [
680
+ {
681
+ "name": "router_",
682
+ "type": "address",
683
+ "internalType": "address"
684
+ }
685
+ ],
686
+ "outputs": [],
687
+ "stateMutability": "nonpayable"
688
+ },
689
+ {
690
+ "type": "function",
691
+ "name": "proxiableUUID",
692
+ "inputs": [],
693
+ "outputs": [
694
+ {
695
+ "name": "",
696
+ "type": "bytes32",
697
+ "internalType": "bytes32"
698
+ }
699
+ ],
700
+ "stateMutability": "view"
701
+ },
702
+ {
703
+ "type": "function",
704
+ "name": "reveal",
705
+ "inputs": [
706
+ {
707
+ "name": "tag",
708
+ "type": "uint256",
709
+ "internalType": "uint256"
710
+ }
711
+ ],
712
+ "outputs": [
713
+ {
714
+ "name": "seed",
715
+ "type": "uint256",
716
+ "internalType": "uint256"
717
+ }
718
+ ],
719
+ "stateMutability": "view"
720
+ },
721
+ {
722
+ "type": "function",
723
+ "name": "targetBlockOf",
724
+ "inputs": [
725
+ {
726
+ "name": "consumer",
727
+ "type": "address",
728
+ "internalType": "address"
729
+ },
730
+ {
731
+ "name": "tag",
732
+ "type": "uint256",
733
+ "internalType": "uint256"
734
+ }
735
+ ],
736
+ "outputs": [
737
+ {
738
+ "name": "targetBlock",
739
+ "type": "uint256",
740
+ "internalType": "uint256"
741
+ }
742
+ ],
743
+ "stateMutability": "view"
744
+ },
745
+ {
746
+ "type": "function",
747
+ "name": "upgradeToAndCall",
748
+ "inputs": [
749
+ {
750
+ "name": "newImplementation",
751
+ "type": "address",
752
+ "internalType": "address"
753
+ },
754
+ {
755
+ "name": "data",
756
+ "type": "bytes",
757
+ "internalType": "bytes"
758
+ }
759
+ ],
760
+ "outputs": [],
761
+ "stateMutability": "payable"
762
+ },
763
+ {
764
+ "type": "event",
765
+ "name": "Initialized",
766
+ "inputs": [
767
+ {
768
+ "name": "version",
769
+ "type": "uint64",
770
+ "indexed": false,
771
+ "internalType": "uint64"
772
+ }
773
+ ],
774
+ "anonymous": false
775
+ },
776
+ {
777
+ "type": "event",
778
+ "name": "RandomnessCommitted",
779
+ "inputs": [
780
+ {
781
+ "name": "consumer",
782
+ "type": "address",
783
+ "indexed": true,
784
+ "internalType": "address"
785
+ },
786
+ {
787
+ "name": "tag",
788
+ "type": "uint256",
789
+ "indexed": true,
790
+ "internalType": "uint256"
791
+ },
792
+ {
793
+ "name": "targetBlock",
794
+ "type": "uint256",
795
+ "indexed": false,
796
+ "internalType": "uint256"
797
+ }
798
+ ],
799
+ "anonymous": false
800
+ },
801
+ {
802
+ "type": "event",
803
+ "name": "Upgraded",
804
+ "inputs": [
805
+ {
806
+ "name": "implementation",
807
+ "type": "address",
808
+ "indexed": true,
809
+ "internalType": "address"
810
+ }
811
+ ],
812
+ "anonymous": false
813
+ },
814
+ {
815
+ "type": "error",
816
+ "name": "AddressEmptyCode",
817
+ "inputs": [
818
+ {
819
+ "name": "target",
820
+ "type": "address",
821
+ "internalType": "address"
822
+ }
823
+ ]
824
+ },
825
+ {
826
+ "type": "error",
827
+ "name": "CommitmentExpired",
828
+ "inputs": [
829
+ {
830
+ "name": "currentBlock",
831
+ "type": "uint256",
832
+ "internalType": "uint256"
833
+ },
834
+ {
835
+ "name": "targetBlock",
836
+ "type": "uint256",
837
+ "internalType": "uint256"
838
+ }
839
+ ]
840
+ },
841
+ {
842
+ "type": "error",
843
+ "name": "CommitmentNotFound",
844
+ "inputs": [
845
+ {
846
+ "name": "consumer",
847
+ "type": "address",
848
+ "internalType": "address"
849
+ },
850
+ {
851
+ "name": "tag",
852
+ "type": "uint256",
853
+ "internalType": "uint256"
854
+ }
855
+ ]
856
+ },
857
+ {
858
+ "type": "error",
859
+ "name": "CommitmentPending",
860
+ "inputs": [
861
+ {
862
+ "name": "consumer",
863
+ "type": "address",
864
+ "internalType": "address"
865
+ },
866
+ {
867
+ "name": "tag",
868
+ "type": "uint256",
869
+ "internalType": "uint256"
870
+ },
871
+ {
872
+ "name": "targetBlock",
873
+ "type": "uint256",
874
+ "internalType": "uint256"
875
+ }
876
+ ]
877
+ },
878
+ {
879
+ "type": "error",
880
+ "name": "ERC1967InvalidImplementation",
881
+ "inputs": [
882
+ {
883
+ "name": "implementation",
884
+ "type": "address",
885
+ "internalType": "address"
886
+ }
887
+ ]
888
+ },
889
+ {
890
+ "type": "error",
891
+ "name": "ERC1967NonPayable",
892
+ "inputs": []
893
+ },
894
+ {
895
+ "type": "error",
896
+ "name": "FailedCall",
897
+ "inputs": []
898
+ },
899
+ {
900
+ "type": "error",
901
+ "name": "InvalidInitialization",
902
+ "inputs": []
903
+ },
904
+ {
905
+ "type": "error",
906
+ "name": "NotAuthorized",
907
+ "inputs": [
908
+ {
909
+ "name": "caller",
910
+ "type": "address",
911
+ "internalType": "address"
912
+ }
913
+ ]
914
+ },
915
+ {
916
+ "type": "error",
917
+ "name": "NotInitializing",
918
+ "inputs": []
919
+ },
920
+ {
921
+ "type": "error",
922
+ "name": "RevealTooEarly",
923
+ "inputs": [
924
+ {
925
+ "name": "currentBlock",
926
+ "type": "uint256",
927
+ "internalType": "uint256"
928
+ },
929
+ {
930
+ "name": "targetBlock",
931
+ "type": "uint256",
932
+ "internalType": "uint256"
933
+ }
934
+ ]
935
+ },
936
+ {
937
+ "type": "error",
938
+ "name": "UUPSUnauthorizedCallContext",
939
+ "inputs": []
940
+ },
941
+ {
942
+ "type": "error",
943
+ "name": "UUPSUnsupportedProxiableUUID",
944
+ "inputs": [
945
+ {
946
+ "name": "slot",
947
+ "type": "bytes32",
948
+ "internalType": "bytes32"
949
+ }
950
+ ]
951
+ },
952
+ {
953
+ "type": "error",
954
+ "name": "ZeroAddress",
955
+ "inputs": []
956
+ }
957
+ ];
958
+ export const registryAbi = [
959
+ {
960
+ "type": "constructor",
961
+ "inputs": [],
962
+ "stateMutability": "nonpayable"
963
+ },
964
+ {
965
+ "type": "function",
966
+ "name": "ROUTER",
967
+ "inputs": [],
968
+ "outputs": [
969
+ {
970
+ "name": "",
971
+ "type": "address",
972
+ "internalType": "contract IGWorldRouter"
973
+ }
974
+ ],
975
+ "stateMutability": "view"
976
+ },
977
+ {
978
+ "type": "function",
979
+ "name": "UPGRADE_INTERFACE_VERSION",
980
+ "inputs": [],
981
+ "outputs": [
982
+ {
983
+ "name": "",
984
+ "type": "string",
985
+ "internalType": "string"
986
+ }
987
+ ],
988
+ "stateMutability": "view"
989
+ },
990
+ {
991
+ "type": "function",
992
+ "name": "activateAgent",
993
+ "inputs": [
994
+ {
995
+ "name": "agentId",
996
+ "type": "uint256",
997
+ "internalType": "uint256"
998
+ },
999
+ {
1000
+ "name": "spawnPosition",
1001
+ "type": "tuple",
1002
+ "internalType": "struct Coord",
1003
+ "components": [
1004
+ {
1005
+ "name": "q",
1006
+ "type": "int32",
1007
+ "internalType": "int32"
1008
+ },
1009
+ {
1010
+ "name": "r",
1011
+ "type": "int32",
1012
+ "internalType": "int32"
1013
+ }
1014
+ ]
1015
+ }
1016
+ ],
1017
+ "outputs": [],
1018
+ "stateMutability": "nonpayable"
1019
+ },
1020
+ {
1021
+ "type": "function",
1022
+ "name": "createAgent",
1023
+ "inputs": [],
1024
+ "outputs": [
1025
+ {
1026
+ "name": "agentId",
1027
+ "type": "uint256",
1028
+ "internalType": "uint256"
1029
+ }
1030
+ ],
1031
+ "stateMutability": "nonpayable"
1032
+ },
1033
+ {
1034
+ "type": "function",
1035
+ "name": "initialize",
1036
+ "inputs": [
1037
+ {
1038
+ "name": "router_",
1039
+ "type": "address",
1040
+ "internalType": "address"
1041
+ }
1042
+ ],
1043
+ "outputs": [],
1044
+ "stateMutability": "nonpayable"
1045
+ },
1046
+ {
1047
+ "type": "function",
1048
+ "name": "isActive",
1049
+ "inputs": [
1050
+ {
1051
+ "name": "agentId",
1052
+ "type": "uint256",
1053
+ "internalType": "uint256"
1054
+ }
1055
+ ],
1056
+ "outputs": [
1057
+ {
1058
+ "name": "",
1059
+ "type": "bool",
1060
+ "internalType": "bool"
1061
+ }
1062
+ ],
1063
+ "stateMutability": "view"
1064
+ },
1065
+ {
1066
+ "type": "function",
1067
+ "name": "lastAgentId",
1068
+ "inputs": [],
1069
+ "outputs": [
1070
+ {
1071
+ "name": "",
1072
+ "type": "uint256",
1073
+ "internalType": "uint256"
1074
+ }
1075
+ ],
1076
+ "stateMutability": "view"
1077
+ },
1078
+ {
1079
+ "type": "function",
1080
+ "name": "ownerOf",
1081
+ "inputs": [
1082
+ {
1083
+ "name": "agentId",
1084
+ "type": "uint256",
1085
+ "internalType": "uint256"
1086
+ }
1087
+ ],
1088
+ "outputs": [
1089
+ {
1090
+ "name": "",
1091
+ "type": "address",
1092
+ "internalType": "address"
1093
+ }
1094
+ ],
1095
+ "stateMutability": "view"
1096
+ },
1097
+ {
1098
+ "type": "function",
1099
+ "name": "pendingAgent",
1100
+ "inputs": [
1101
+ {
1102
+ "name": "agentId",
1103
+ "type": "uint256",
1104
+ "internalType": "uint256"
1105
+ }
1106
+ ],
1107
+ "outputs": [
1108
+ {
1109
+ "name": "rng",
1110
+ "type": "address",
1111
+ "internalType": "address"
1112
+ },
1113
+ {
1114
+ "name": "targetBlock",
1115
+ "type": "uint256",
1116
+ "internalType": "uint256"
1117
+ }
1118
+ ],
1119
+ "stateMutability": "view"
1120
+ },
1121
+ {
1122
+ "type": "function",
1123
+ "name": "positionOf",
1124
+ "inputs": [
1125
+ {
1126
+ "name": "agentId",
1127
+ "type": "uint256",
1128
+ "internalType": "uint256"
1129
+ }
1130
+ ],
1131
+ "outputs": [
1132
+ {
1133
+ "name": "",
1134
+ "type": "tuple",
1135
+ "internalType": "struct Coord",
1136
+ "components": [
1137
+ {
1138
+ "name": "q",
1139
+ "type": "int32",
1140
+ "internalType": "int32"
1141
+ },
1142
+ {
1143
+ "name": "r",
1144
+ "type": "int32",
1145
+ "internalType": "int32"
1146
+ }
1147
+ ]
1148
+ }
1149
+ ],
1150
+ "stateMutability": "view"
1151
+ },
1152
+ {
1153
+ "type": "function",
1154
+ "name": "proxiableUUID",
1155
+ "inputs": [],
1156
+ "outputs": [
1157
+ {
1158
+ "name": "",
1159
+ "type": "bytes32",
1160
+ "internalType": "bytes32"
1161
+ }
1162
+ ],
1163
+ "stateMutability": "view"
1164
+ },
1165
+ {
1166
+ "type": "function",
1167
+ "name": "refreshSpawnRandomness",
1168
+ "inputs": [
1169
+ {
1170
+ "name": "agentId",
1171
+ "type": "uint256",
1172
+ "internalType": "uint256"
1173
+ }
1174
+ ],
1175
+ "outputs": [
1176
+ {
1177
+ "name": "targetBlock",
1178
+ "type": "uint256",
1179
+ "internalType": "uint256"
1180
+ }
1181
+ ],
1182
+ "stateMutability": "nonpayable"
1183
+ },
1184
+ {
1185
+ "type": "function",
1186
+ "name": "spawnSeed",
1187
+ "inputs": [
1188
+ {
1189
+ "name": "agentId",
1190
+ "type": "uint256",
1191
+ "internalType": "uint256"
1192
+ }
1193
+ ],
1194
+ "outputs": [
1195
+ {
1196
+ "name": "seed",
1197
+ "type": "uint256",
1198
+ "internalType": "uint256"
1199
+ }
1200
+ ],
1201
+ "stateMutability": "view"
1202
+ },
1203
+ {
1204
+ "type": "function",
1205
+ "name": "updatePosition",
1206
+ "inputs": [
1207
+ {
1208
+ "name": "agentId",
1209
+ "type": "uint256",
1210
+ "internalType": "uint256"
1211
+ },
1212
+ {
1213
+ "name": "newPosition",
1214
+ "type": "tuple",
1215
+ "internalType": "struct Coord",
1216
+ "components": [
1217
+ {
1218
+ "name": "q",
1219
+ "type": "int32",
1220
+ "internalType": "int32"
1221
+ },
1222
+ {
1223
+ "name": "r",
1224
+ "type": "int32",
1225
+ "internalType": "int32"
1226
+ }
1227
+ ]
1228
+ }
1229
+ ],
1230
+ "outputs": [],
1231
+ "stateMutability": "nonpayable"
1232
+ },
1233
+ {
1234
+ "type": "function",
1235
+ "name": "upgradeToAndCall",
1236
+ "inputs": [
1237
+ {
1238
+ "name": "newImplementation",
1239
+ "type": "address",
1240
+ "internalType": "address"
1241
+ },
1242
+ {
1243
+ "name": "data",
1244
+ "type": "bytes",
1245
+ "internalType": "bytes"
1246
+ }
1247
+ ],
1248
+ "outputs": [],
1249
+ "stateMutability": "payable"
1250
+ },
1251
+ {
1252
+ "type": "event",
1253
+ "name": "AgentActivated",
1254
+ "inputs": [
1255
+ {
1256
+ "name": "agentId",
1257
+ "type": "uint256",
1258
+ "indexed": true,
1259
+ "internalType": "uint256"
1260
+ },
1261
+ {
1262
+ "name": "q",
1263
+ "type": "int32",
1264
+ "indexed": false,
1265
+ "internalType": "int32"
1266
+ },
1267
+ {
1268
+ "name": "r",
1269
+ "type": "int32",
1270
+ "indexed": false,
1271
+ "internalType": "int32"
1272
+ }
1273
+ ],
1274
+ "anonymous": false
1275
+ },
1276
+ {
1277
+ "type": "event",
1278
+ "name": "AgentCreated",
1279
+ "inputs": [
1280
+ {
1281
+ "name": "owner",
1282
+ "type": "address",
1283
+ "indexed": true,
1284
+ "internalType": "address"
1285
+ },
1286
+ {
1287
+ "name": "agentId",
1288
+ "type": "uint256",
1289
+ "indexed": true,
1290
+ "internalType": "uint256"
1291
+ },
1292
+ {
1293
+ "name": "rng",
1294
+ "type": "address",
1295
+ "indexed": true,
1296
+ "internalType": "address"
1297
+ },
1298
+ {
1299
+ "name": "targetBlock",
1300
+ "type": "uint256",
1301
+ "indexed": false,
1302
+ "internalType": "uint256"
1303
+ }
1304
+ ],
1305
+ "anonymous": false
1306
+ },
1307
+ {
1308
+ "type": "event",
1309
+ "name": "Initialized",
1310
+ "inputs": [
1311
+ {
1312
+ "name": "version",
1313
+ "type": "uint64",
1314
+ "indexed": false,
1315
+ "internalType": "uint64"
1316
+ }
1317
+ ],
1318
+ "anonymous": false
1319
+ },
1320
+ {
1321
+ "type": "event",
1322
+ "name": "PositionUpdated",
1323
+ "inputs": [
1324
+ {
1325
+ "name": "agentId",
1326
+ "type": "uint256",
1327
+ "indexed": true,
1328
+ "internalType": "uint256"
1329
+ },
1330
+ {
1331
+ "name": "oldQ",
1332
+ "type": "int32",
1333
+ "indexed": false,
1334
+ "internalType": "int32"
1335
+ },
1336
+ {
1337
+ "name": "oldR",
1338
+ "type": "int32",
1339
+ "indexed": false,
1340
+ "internalType": "int32"
1341
+ },
1342
+ {
1343
+ "name": "newQ",
1344
+ "type": "int32",
1345
+ "indexed": false,
1346
+ "internalType": "int32"
1347
+ },
1348
+ {
1349
+ "name": "newR",
1350
+ "type": "int32",
1351
+ "indexed": false,
1352
+ "internalType": "int32"
1353
+ }
1354
+ ],
1355
+ "anonymous": false
1356
+ },
1357
+ {
1358
+ "type": "event",
1359
+ "name": "SpawnRandomnessRefreshed",
1360
+ "inputs": [
1361
+ {
1362
+ "name": "agentId",
1363
+ "type": "uint256",
1364
+ "indexed": true,
1365
+ "internalType": "uint256"
1366
+ },
1367
+ {
1368
+ "name": "rng",
1369
+ "type": "address",
1370
+ "indexed": true,
1371
+ "internalType": "address"
1372
+ },
1373
+ {
1374
+ "name": "previousTargetBlock",
1375
+ "type": "uint256",
1376
+ "indexed": false,
1377
+ "internalType": "uint256"
1378
+ },
1379
+ {
1380
+ "name": "targetBlock",
1381
+ "type": "uint256",
1382
+ "indexed": false,
1383
+ "internalType": "uint256"
1384
+ }
1385
+ ],
1386
+ "anonymous": false
1387
+ },
1388
+ {
1389
+ "type": "event",
1390
+ "name": "Upgraded",
1391
+ "inputs": [
1392
+ {
1393
+ "name": "implementation",
1394
+ "type": "address",
1395
+ "indexed": true,
1396
+ "internalType": "address"
1397
+ }
1398
+ ],
1399
+ "anonymous": false
1400
+ },
1401
+ {
1402
+ "type": "error",
1403
+ "name": "AddressEmptyCode",
1404
+ "inputs": [
1405
+ {
1406
+ "name": "target",
1407
+ "type": "address",
1408
+ "internalType": "address"
1409
+ }
1410
+ ]
1411
+ },
1412
+ {
1413
+ "type": "error",
1414
+ "name": "AgentAlreadyActive",
1415
+ "inputs": [
1416
+ {
1417
+ "name": "agentId",
1418
+ "type": "uint256",
1419
+ "internalType": "uint256"
1420
+ }
1421
+ ]
1422
+ },
1423
+ {
1424
+ "type": "error",
1425
+ "name": "AgentNotActive",
1426
+ "inputs": [
1427
+ {
1428
+ "name": "agentId",
1429
+ "type": "uint256",
1430
+ "internalType": "uint256"
1431
+ }
1432
+ ]
1433
+ },
1434
+ {
1435
+ "type": "error",
1436
+ "name": "AgentNotFound",
1437
+ "inputs": [
1438
+ {
1439
+ "name": "agentId",
1440
+ "type": "uint256",
1441
+ "internalType": "uint256"
1442
+ }
1443
+ ]
1444
+ },
1445
+ {
1446
+ "type": "error",
1447
+ "name": "ERC1967InvalidImplementation",
1448
+ "inputs": [
1449
+ {
1450
+ "name": "implementation",
1451
+ "type": "address",
1452
+ "internalType": "address"
1453
+ }
1454
+ ]
1455
+ },
1456
+ {
1457
+ "type": "error",
1458
+ "name": "ERC1967NonPayable",
1459
+ "inputs": []
1460
+ },
1461
+ {
1462
+ "type": "error",
1463
+ "name": "FailedCall",
1464
+ "inputs": []
1465
+ },
1466
+ {
1467
+ "type": "error",
1468
+ "name": "InvalidInitialization",
1469
+ "inputs": []
1470
+ },
1471
+ {
1472
+ "type": "error",
1473
+ "name": "InvalidPosition",
1474
+ "inputs": [
1475
+ {
1476
+ "name": "q",
1477
+ "type": "int32",
1478
+ "internalType": "int32"
1479
+ },
1480
+ {
1481
+ "name": "r",
1482
+ "type": "int32",
1483
+ "internalType": "int32"
1484
+ }
1485
+ ]
1486
+ },
1487
+ {
1488
+ "type": "error",
1489
+ "name": "NotAuthorized",
1490
+ "inputs": [
1491
+ {
1492
+ "name": "caller",
1493
+ "type": "address",
1494
+ "internalType": "address"
1495
+ }
1496
+ ]
1497
+ },
1498
+ {
1499
+ "type": "error",
1500
+ "name": "NotInitializing",
1501
+ "inputs": []
1502
+ },
1503
+ {
1504
+ "type": "error",
1505
+ "name": "SpawnRandomnessNotExpired",
1506
+ "inputs": [
1507
+ {
1508
+ "name": "agentId",
1509
+ "type": "uint256",
1510
+ "internalType": "uint256"
1511
+ },
1512
+ {
1513
+ "name": "targetBlock",
1514
+ "type": "uint256",
1515
+ "internalType": "uint256"
1516
+ },
1517
+ {
1518
+ "name": "expiresAfter",
1519
+ "type": "uint256",
1520
+ "internalType": "uint256"
1521
+ }
1522
+ ]
1523
+ },
1524
+ {
1525
+ "type": "error",
1526
+ "name": "UUPSUnauthorizedCallContext",
1527
+ "inputs": []
1528
+ },
1529
+ {
1530
+ "type": "error",
1531
+ "name": "UUPSUnsupportedProxiableUUID",
1532
+ "inputs": [
1533
+ {
1534
+ "name": "slot",
1535
+ "type": "bytes32",
1536
+ "internalType": "bytes32"
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ "type": "error",
1542
+ "name": "ZeroAddress",
1543
+ "inputs": []
1544
+ }
1545
+ ];
1546
+ export const ledgerAbi = [
1547
+ {
1548
+ "type": "constructor",
1549
+ "inputs": [],
1550
+ "stateMutability": "nonpayable"
1551
+ },
1552
+ {
1553
+ "type": "function",
1554
+ "name": "ROUTER",
1555
+ "inputs": [],
1556
+ "outputs": [
1557
+ {
1558
+ "name": "",
1559
+ "type": "address",
1560
+ "internalType": "contract IGWorldRouter"
1561
+ }
1562
+ ],
1563
+ "stateMutability": "view"
1564
+ },
1565
+ {
1566
+ "type": "function",
1567
+ "name": "UPGRADE_INTERFACE_VERSION",
1568
+ "inputs": [],
1569
+ "outputs": [
1570
+ {
1571
+ "name": "",
1572
+ "type": "string",
1573
+ "internalType": "string"
1574
+ }
1575
+ ],
1576
+ "stateMutability": "view"
1577
+ },
1578
+ {
1579
+ "type": "function",
1580
+ "name": "balanceOf",
1581
+ "inputs": [
1582
+ {
1583
+ "name": "agentId",
1584
+ "type": "uint256",
1585
+ "internalType": "uint256"
1586
+ }
1587
+ ],
1588
+ "outputs": [
1589
+ {
1590
+ "name": "cap",
1591
+ "type": "uint256",
1592
+ "internalType": "uint256"
1593
+ }
1594
+ ],
1595
+ "stateMutability": "view"
1596
+ },
1597
+ {
1598
+ "type": "function",
1599
+ "name": "burnForGame",
1600
+ "inputs": [
1601
+ {
1602
+ "name": "agentId",
1603
+ "type": "uint256",
1604
+ "internalType": "uint256"
1605
+ },
1606
+ {
1607
+ "name": "amountCap",
1608
+ "type": "uint256",
1609
+ "internalType": "uint256"
1610
+ }
1611
+ ],
1612
+ "outputs": [],
1613
+ "stateMutability": "nonpayable"
1614
+ },
1615
+ {
1616
+ "type": "function",
1617
+ "name": "checkin",
1618
+ "inputs": [
1619
+ {
1620
+ "name": "agentId",
1621
+ "type": "uint256",
1622
+ "internalType": "uint256"
1623
+ }
1624
+ ],
1625
+ "outputs": [],
1626
+ "stateMutability": "nonpayable"
1627
+ },
1628
+ {
1629
+ "type": "function",
1630
+ "name": "creditFromMarket",
1631
+ "inputs": [
1632
+ {
1633
+ "name": "agentId",
1634
+ "type": "uint256",
1635
+ "internalType": "uint256"
1636
+ },
1637
+ {
1638
+ "name": "amountCap",
1639
+ "type": "uint256",
1640
+ "internalType": "uint256"
1641
+ }
1642
+ ],
1643
+ "outputs": [],
1644
+ "stateMutability": "nonpayable"
1645
+ },
1646
+ {
1647
+ "type": "function",
1648
+ "name": "currentRound",
1649
+ "inputs": [],
1650
+ "outputs": [
1651
+ {
1652
+ "name": "round",
1653
+ "type": "uint256",
1654
+ "internalType": "uint256"
1655
+ }
1656
+ ],
1657
+ "stateMutability": "view"
1658
+ },
1659
+ {
1660
+ "type": "function",
1661
+ "name": "initialize",
1662
+ "inputs": [
1663
+ {
1664
+ "name": "router_",
1665
+ "type": "address",
1666
+ "internalType": "address"
1667
+ }
1668
+ ],
1669
+ "outputs": [],
1670
+ "stateMutability": "nonpayable"
1671
+ },
1672
+ {
1673
+ "type": "function",
1674
+ "name": "lastCheckinAt",
1675
+ "inputs": [
1676
+ {
1677
+ "name": "agentId",
1678
+ "type": "uint256",
1679
+ "internalType": "uint256"
1680
+ }
1681
+ ],
1682
+ "outputs": [
1683
+ {
1684
+ "name": "timestamp",
1685
+ "type": "uint256",
1686
+ "internalType": "uint256"
1687
+ }
1688
+ ],
1689
+ "stateMutability": "view"
1690
+ },
1691
+ {
1692
+ "type": "function",
1693
+ "name": "proxiableUUID",
1694
+ "inputs": [],
1695
+ "outputs": [
1696
+ {
1697
+ "name": "",
1698
+ "type": "bytes32",
1699
+ "internalType": "bytes32"
1700
+ }
1701
+ ],
1702
+ "stateMutability": "view"
1703
+ },
1704
+ {
1705
+ "type": "function",
1706
+ "name": "spendForAction",
1707
+ "inputs": [
1708
+ {
1709
+ "name": "agentId",
1710
+ "type": "uint256",
1711
+ "internalType": "uint256"
1712
+ },
1713
+ {
1714
+ "name": "amountCap",
1715
+ "type": "uint256",
1716
+ "internalType": "uint256"
1717
+ }
1718
+ ],
1719
+ "outputs": [],
1720
+ "stateMutability": "nonpayable"
1721
+ },
1722
+ {
1723
+ "type": "function",
1724
+ "name": "spentThisRound",
1725
+ "inputs": [
1726
+ {
1727
+ "name": "agentId",
1728
+ "type": "uint256",
1729
+ "internalType": "uint256"
1730
+ }
1731
+ ],
1732
+ "outputs": [
1733
+ {
1734
+ "name": "cap",
1735
+ "type": "uint256",
1736
+ "internalType": "uint256"
1737
+ }
1738
+ ],
1739
+ "stateMutability": "view"
1740
+ },
1741
+ {
1742
+ "type": "function",
1743
+ "name": "totalBurnedCap",
1744
+ "inputs": [],
1745
+ "outputs": [
1746
+ {
1747
+ "name": "",
1748
+ "type": "uint256",
1749
+ "internalType": "uint256"
1750
+ }
1751
+ ],
1752
+ "stateMutability": "view"
1753
+ },
1754
+ {
1755
+ "type": "function",
1756
+ "name": "totalMintedCap",
1757
+ "inputs": [],
1758
+ "outputs": [
1759
+ {
1760
+ "name": "",
1761
+ "type": "uint256",
1762
+ "internalType": "uint256"
1763
+ }
1764
+ ],
1765
+ "stateMutability": "view"
1766
+ },
1767
+ {
1768
+ "type": "function",
1769
+ "name": "totalSupplyCap",
1770
+ "inputs": [],
1771
+ "outputs": [
1772
+ {
1773
+ "name": "",
1774
+ "type": "uint256",
1775
+ "internalType": "uint256"
1776
+ }
1777
+ ],
1778
+ "stateMutability": "view"
1779
+ },
1780
+ {
1781
+ "type": "function",
1782
+ "name": "transferToll",
1783
+ "inputs": [
1784
+ {
1785
+ "name": "fromAgent",
1786
+ "type": "uint256",
1787
+ "internalType": "uint256"
1788
+ },
1789
+ {
1790
+ "name": "toAgent",
1791
+ "type": "uint256",
1792
+ "internalType": "uint256"
1793
+ },
1794
+ {
1795
+ "name": "amountCap",
1796
+ "type": "uint256",
1797
+ "internalType": "uint256"
1798
+ }
1799
+ ],
1800
+ "outputs": [],
1801
+ "stateMutability": "nonpayable"
1802
+ },
1803
+ {
1804
+ "type": "function",
1805
+ "name": "upgradeToAndCall",
1806
+ "inputs": [
1807
+ {
1808
+ "name": "newImplementation",
1809
+ "type": "address",
1810
+ "internalType": "address"
1811
+ },
1812
+ {
1813
+ "name": "data",
1814
+ "type": "bytes",
1815
+ "internalType": "bytes"
1816
+ }
1817
+ ],
1818
+ "outputs": [],
1819
+ "stateMutability": "payable"
1820
+ },
1821
+ {
1822
+ "type": "event",
1823
+ "name": "ActionSpent",
1824
+ "inputs": [
1825
+ {
1826
+ "name": "agentId",
1827
+ "type": "uint256",
1828
+ "indexed": true,
1829
+ "internalType": "uint256"
1830
+ },
1831
+ {
1832
+ "name": "amountCap",
1833
+ "type": "uint256",
1834
+ "indexed": false,
1835
+ "internalType": "uint256"
1836
+ },
1837
+ {
1838
+ "name": "round",
1839
+ "type": "uint256",
1840
+ "indexed": true,
1841
+ "internalType": "uint256"
1842
+ }
1843
+ ],
1844
+ "anonymous": false
1845
+ },
1846
+ {
1847
+ "type": "event",
1848
+ "name": "CheckedIn",
1849
+ "inputs": [
1850
+ {
1851
+ "name": "agentId",
1852
+ "type": "uint256",
1853
+ "indexed": true,
1854
+ "internalType": "uint256"
1855
+ },
1856
+ {
1857
+ "name": "owner",
1858
+ "type": "address",
1859
+ "indexed": true,
1860
+ "internalType": "address"
1861
+ },
1862
+ {
1863
+ "name": "amountCap",
1864
+ "type": "uint256",
1865
+ "indexed": false,
1866
+ "internalType": "uint256"
1867
+ }
1868
+ ],
1869
+ "anonymous": false
1870
+ },
1871
+ {
1872
+ "type": "event",
1873
+ "name": "GameBurned",
1874
+ "inputs": [
1875
+ {
1876
+ "name": "agentId",
1877
+ "type": "uint256",
1878
+ "indexed": true,
1879
+ "internalType": "uint256"
1880
+ },
1881
+ {
1882
+ "name": "amountCap",
1883
+ "type": "uint256",
1884
+ "indexed": false,
1885
+ "internalType": "uint256"
1886
+ }
1887
+ ],
1888
+ "anonymous": false
1889
+ },
1890
+ {
1891
+ "type": "event",
1892
+ "name": "Initialized",
1893
+ "inputs": [
1894
+ {
1895
+ "name": "version",
1896
+ "type": "uint64",
1897
+ "indexed": false,
1898
+ "internalType": "uint64"
1899
+ }
1900
+ ],
1901
+ "anonymous": false
1902
+ },
1903
+ {
1904
+ "type": "event",
1905
+ "name": "MarketCredited",
1906
+ "inputs": [
1907
+ {
1908
+ "name": "agentId",
1909
+ "type": "uint256",
1910
+ "indexed": true,
1911
+ "internalType": "uint256"
1912
+ },
1913
+ {
1914
+ "name": "amountCap",
1915
+ "type": "uint256",
1916
+ "indexed": false,
1917
+ "internalType": "uint256"
1918
+ }
1919
+ ],
1920
+ "anonymous": false
1921
+ },
1922
+ {
1923
+ "type": "event",
1924
+ "name": "TollTransferred",
1925
+ "inputs": [
1926
+ {
1927
+ "name": "fromAgent",
1928
+ "type": "uint256",
1929
+ "indexed": true,
1930
+ "internalType": "uint256"
1931
+ },
1932
+ {
1933
+ "name": "toAgent",
1934
+ "type": "uint256",
1935
+ "indexed": true,
1936
+ "internalType": "uint256"
1937
+ },
1938
+ {
1939
+ "name": "amountCap",
1940
+ "type": "uint256",
1941
+ "indexed": false,
1942
+ "internalType": "uint256"
1943
+ },
1944
+ {
1945
+ "name": "round",
1946
+ "type": "uint256",
1947
+ "indexed": false,
1948
+ "internalType": "uint256"
1949
+ }
1950
+ ],
1951
+ "anonymous": false
1952
+ },
1953
+ {
1954
+ "type": "event",
1955
+ "name": "Upgraded",
1956
+ "inputs": [
1957
+ {
1958
+ "name": "implementation",
1959
+ "type": "address",
1960
+ "indexed": true,
1961
+ "internalType": "address"
1962
+ }
1963
+ ],
1964
+ "anonymous": false
1965
+ },
1966
+ {
1967
+ "type": "error",
1968
+ "name": "AddressEmptyCode",
1969
+ "inputs": [
1970
+ {
1971
+ "name": "target",
1972
+ "type": "address",
1973
+ "internalType": "address"
1974
+ }
1975
+ ]
1976
+ },
1977
+ {
1978
+ "type": "error",
1979
+ "name": "CheckinBalanceTooHigh",
1980
+ "inputs": [
1981
+ {
1982
+ "name": "balanceCap",
1983
+ "type": "uint256",
1984
+ "internalType": "uint256"
1985
+ },
1986
+ {
1987
+ "name": "thresholdCap",
1988
+ "type": "uint256",
1989
+ "internalType": "uint256"
1990
+ }
1991
+ ]
1992
+ },
1993
+ {
1994
+ "type": "error",
1995
+ "name": "CheckinOnCooldown",
1996
+ "inputs": [
1997
+ {
1998
+ "name": "nowTs",
1999
+ "type": "uint256",
2000
+ "internalType": "uint256"
2001
+ },
2002
+ {
2003
+ "name": "readyTs",
2004
+ "type": "uint256",
2005
+ "internalType": "uint256"
2006
+ }
2007
+ ]
2008
+ },
2009
+ {
2010
+ "type": "error",
2011
+ "name": "ERC1967InvalidImplementation",
2012
+ "inputs": [
2013
+ {
2014
+ "name": "implementation",
2015
+ "type": "address",
2016
+ "internalType": "address"
2017
+ }
2018
+ ]
2019
+ },
2020
+ {
2021
+ "type": "error",
2022
+ "name": "ERC1967NonPayable",
2023
+ "inputs": []
2024
+ },
2025
+ {
2026
+ "type": "error",
2027
+ "name": "FailedCall",
2028
+ "inputs": []
2029
+ },
2030
+ {
2031
+ "type": "error",
2032
+ "name": "InsufficientAP",
2033
+ "inputs": [
2034
+ {
2035
+ "name": "needCap",
2036
+ "type": "uint256",
2037
+ "internalType": "uint256"
2038
+ },
2039
+ {
2040
+ "name": "haveCap",
2041
+ "type": "uint256",
2042
+ "internalType": "uint256"
2043
+ }
2044
+ ]
2045
+ },
2046
+ {
2047
+ "type": "error",
2048
+ "name": "InvalidInitialization",
2049
+ "inputs": []
2050
+ },
2051
+ {
2052
+ "type": "error",
2053
+ "name": "NotAuthorized",
2054
+ "inputs": [
2055
+ {
2056
+ "name": "caller",
2057
+ "type": "address",
2058
+ "internalType": "address"
2059
+ }
2060
+ ]
2061
+ },
2062
+ {
2063
+ "type": "error",
2064
+ "name": "NotInitializing",
2065
+ "inputs": []
2066
+ },
2067
+ {
2068
+ "type": "error",
2069
+ "name": "RoundSpendCapExceeded",
2070
+ "inputs": [
2071
+ {
2072
+ "name": "spentCap",
2073
+ "type": "uint256",
2074
+ "internalType": "uint256"
2075
+ },
2076
+ {
2077
+ "name": "capCap",
2078
+ "type": "uint256",
2079
+ "internalType": "uint256"
2080
+ }
2081
+ ]
2082
+ },
2083
+ {
2084
+ "type": "error",
2085
+ "name": "SelfToll",
2086
+ "inputs": [
2087
+ {
2088
+ "name": "agentId",
2089
+ "type": "uint256",
2090
+ "internalType": "uint256"
2091
+ }
2092
+ ]
2093
+ },
2094
+ {
2095
+ "type": "error",
2096
+ "name": "UUPSUnauthorizedCallContext",
2097
+ "inputs": []
2098
+ },
2099
+ {
2100
+ "type": "error",
2101
+ "name": "UUPSUnsupportedProxiableUUID",
2102
+ "inputs": [
2103
+ {
2104
+ "name": "slot",
2105
+ "type": "bytes32",
2106
+ "internalType": "bytes32"
2107
+ }
2108
+ ]
2109
+ },
2110
+ {
2111
+ "type": "error",
2112
+ "name": "ZeroAddress",
2113
+ "inputs": []
2114
+ }
2115
+ ];
2116
+ export const escrowAbi = [
2117
+ {
2118
+ "type": "constructor",
2119
+ "inputs": [],
2120
+ "stateMutability": "nonpayable"
2121
+ },
2122
+ {
2123
+ "type": "function",
2124
+ "name": "G_TOKEN",
2125
+ "inputs": [],
2126
+ "outputs": [
2127
+ {
2128
+ "name": "",
2129
+ "type": "address",
2130
+ "internalType": "address"
2131
+ }
2132
+ ],
2133
+ "stateMutability": "view"
2134
+ },
2135
+ {
2136
+ "type": "function",
2137
+ "name": "ROUTER",
2138
+ "inputs": [],
2139
+ "outputs": [
2140
+ {
2141
+ "name": "",
2142
+ "type": "address",
2143
+ "internalType": "contract IGWorldRouter"
2144
+ }
2145
+ ],
2146
+ "stateMutability": "view"
2147
+ },
2148
+ {
2149
+ "type": "function",
2150
+ "name": "UPGRADE_INTERFACE_VERSION",
2151
+ "inputs": [],
2152
+ "outputs": [
2153
+ {
2154
+ "name": "",
2155
+ "type": "string",
2156
+ "internalType": "string"
2157
+ }
2158
+ ],
2159
+ "stateMutability": "view"
2160
+ },
2161
+ {
2162
+ "type": "function",
2163
+ "name": "initialize",
2164
+ "inputs": [
2165
+ {
2166
+ "name": "router_",
2167
+ "type": "address",
2168
+ "internalType": "address"
2169
+ },
2170
+ {
2171
+ "name": "gToken_",
2172
+ "type": "address",
2173
+ "internalType": "address"
2174
+ }
2175
+ ],
2176
+ "outputs": [],
2177
+ "stateMutability": "nonpayable"
2178
+ },
2179
+ {
2180
+ "type": "function",
2181
+ "name": "payout",
2182
+ "inputs": [
2183
+ {
2184
+ "name": "poolId",
2185
+ "type": "uint256",
2186
+ "internalType": "uint256"
2187
+ },
2188
+ {
2189
+ "name": "to",
2190
+ "type": "address",
2191
+ "internalType": "address"
2192
+ },
2193
+ {
2194
+ "name": "amountG",
2195
+ "type": "uint256",
2196
+ "internalType": "uint256"
2197
+ }
2198
+ ],
2199
+ "outputs": [],
2200
+ "stateMutability": "nonpayable"
2201
+ },
2202
+ {
2203
+ "type": "function",
2204
+ "name": "poolOf",
2205
+ "inputs": [
2206
+ {
2207
+ "name": "operator",
2208
+ "type": "address",
2209
+ "internalType": "address"
2210
+ },
2211
+ {
2212
+ "name": "poolId",
2213
+ "type": "uint256",
2214
+ "internalType": "uint256"
2215
+ }
2216
+ ],
2217
+ "outputs": [
2218
+ {
2219
+ "name": "totalG",
2220
+ "type": "uint256",
2221
+ "internalType": "uint256"
2222
+ }
2223
+ ],
2224
+ "stateMutability": "view"
2225
+ },
2226
+ {
2227
+ "type": "function",
2228
+ "name": "proxiableUUID",
2229
+ "inputs": [],
2230
+ "outputs": [
2231
+ {
2232
+ "name": "",
2233
+ "type": "bytes32",
2234
+ "internalType": "bytes32"
2235
+ }
2236
+ ],
2237
+ "stateMutability": "view"
2238
+ },
2239
+ {
2240
+ "type": "function",
2241
+ "name": "pull",
2242
+ "inputs": [
2243
+ {
2244
+ "name": "poolId",
2245
+ "type": "uint256",
2246
+ "internalType": "uint256"
2247
+ },
2248
+ {
2249
+ "name": "from",
2250
+ "type": "address",
2251
+ "internalType": "address"
2252
+ },
2253
+ {
2254
+ "name": "amountG",
2255
+ "type": "uint256",
2256
+ "internalType": "uint256"
2257
+ }
2258
+ ],
2259
+ "outputs": [],
2260
+ "stateMutability": "payable"
2261
+ },
2262
+ {
2263
+ "type": "function",
2264
+ "name": "upgradeToAndCall",
2265
+ "inputs": [
2266
+ {
2267
+ "name": "newImplementation",
2268
+ "type": "address",
2269
+ "internalType": "address"
2270
+ },
2271
+ {
2272
+ "name": "data",
2273
+ "type": "bytes",
2274
+ "internalType": "bytes"
2275
+ }
2276
+ ],
2277
+ "outputs": [],
2278
+ "stateMutability": "payable"
2279
+ },
2280
+ {
2281
+ "type": "event",
2282
+ "name": "Initialized",
2283
+ "inputs": [
2284
+ {
2285
+ "name": "version",
2286
+ "type": "uint64",
2287
+ "indexed": false,
2288
+ "internalType": "uint64"
2289
+ }
2290
+ ],
2291
+ "anonymous": false
2292
+ },
2293
+ {
2294
+ "type": "event",
2295
+ "name": "PaidOut",
2296
+ "inputs": [
2297
+ {
2298
+ "name": "operator",
2299
+ "type": "address",
2300
+ "indexed": true,
2301
+ "internalType": "address"
2302
+ },
2303
+ {
2304
+ "name": "poolId",
2305
+ "type": "uint256",
2306
+ "indexed": true,
2307
+ "internalType": "uint256"
2308
+ },
2309
+ {
2310
+ "name": "to",
2311
+ "type": "address",
2312
+ "indexed": true,
2313
+ "internalType": "address"
2314
+ },
2315
+ {
2316
+ "name": "amountG",
2317
+ "type": "uint256",
2318
+ "indexed": false,
2319
+ "internalType": "uint256"
2320
+ }
2321
+ ],
2322
+ "anonymous": false
2323
+ },
2324
+ {
2325
+ "type": "event",
2326
+ "name": "Pulled",
2327
+ "inputs": [
2328
+ {
2329
+ "name": "operator",
2330
+ "type": "address",
2331
+ "indexed": true,
2332
+ "internalType": "address"
2333
+ },
2334
+ {
2335
+ "name": "poolId",
2336
+ "type": "uint256",
2337
+ "indexed": true,
2338
+ "internalType": "uint256"
2339
+ },
2340
+ {
2341
+ "name": "from",
2342
+ "type": "address",
2343
+ "indexed": true,
2344
+ "internalType": "address"
2345
+ },
2346
+ {
2347
+ "name": "amountG",
2348
+ "type": "uint256",
2349
+ "indexed": false,
2350
+ "internalType": "uint256"
2351
+ }
2352
+ ],
2353
+ "anonymous": false
2354
+ },
2355
+ {
2356
+ "type": "event",
2357
+ "name": "Upgraded",
2358
+ "inputs": [
2359
+ {
2360
+ "name": "implementation",
2361
+ "type": "address",
2362
+ "indexed": true,
2363
+ "internalType": "address"
2364
+ }
2365
+ ],
2366
+ "anonymous": false
2367
+ },
2368
+ {
2369
+ "type": "error",
2370
+ "name": "AddressEmptyCode",
2371
+ "inputs": [
2372
+ {
2373
+ "name": "target",
2374
+ "type": "address",
2375
+ "internalType": "address"
2376
+ }
2377
+ ]
2378
+ },
2379
+ {
2380
+ "type": "error",
2381
+ "name": "ERC1967InvalidImplementation",
2382
+ "inputs": [
2383
+ {
2384
+ "name": "implementation",
2385
+ "type": "address",
2386
+ "internalType": "address"
2387
+ }
2388
+ ]
2389
+ },
2390
+ {
2391
+ "type": "error",
2392
+ "name": "ERC1967NonPayable",
2393
+ "inputs": []
2394
+ },
2395
+ {
2396
+ "type": "error",
2397
+ "name": "FailedCall",
2398
+ "inputs": []
2399
+ },
2400
+ {
2401
+ "type": "error",
2402
+ "name": "InsufficientPoolBalance",
2403
+ "inputs": [
2404
+ {
2405
+ "name": "operator",
2406
+ "type": "address",
2407
+ "internalType": "address"
2408
+ },
2409
+ {
2410
+ "name": "poolId",
2411
+ "type": "uint256",
2412
+ "internalType": "uint256"
2413
+ },
2414
+ {
2415
+ "name": "requested",
2416
+ "type": "uint256",
2417
+ "internalType": "uint256"
2418
+ },
2419
+ {
2420
+ "name": "available",
2421
+ "type": "uint256",
2422
+ "internalType": "uint256"
2423
+ }
2424
+ ]
2425
+ },
2426
+ {
2427
+ "type": "error",
2428
+ "name": "InvalidInitialization",
2429
+ "inputs": []
2430
+ },
2431
+ {
2432
+ "type": "error",
2433
+ "name": "InvalidNativeValue",
2434
+ "inputs": [
2435
+ {
2436
+ "name": "expected",
2437
+ "type": "uint256",
2438
+ "internalType": "uint256"
2439
+ },
2440
+ {
2441
+ "name": "actual",
2442
+ "type": "uint256",
2443
+ "internalType": "uint256"
2444
+ }
2445
+ ]
2446
+ },
2447
+ {
2448
+ "type": "error",
2449
+ "name": "NativeTransferFailed",
2450
+ "inputs": [
2451
+ {
2452
+ "name": "to",
2453
+ "type": "address",
2454
+ "internalType": "address"
2455
+ },
2456
+ {
2457
+ "name": "amount",
2458
+ "type": "uint256",
2459
+ "internalType": "uint256"
2460
+ }
2461
+ ]
2462
+ },
2463
+ {
2464
+ "type": "error",
2465
+ "name": "NotAuthorized",
2466
+ "inputs": [
2467
+ {
2468
+ "name": "caller",
2469
+ "type": "address",
2470
+ "internalType": "address"
2471
+ }
2472
+ ]
2473
+ },
2474
+ {
2475
+ "type": "error",
2476
+ "name": "NotInitializing",
2477
+ "inputs": []
2478
+ },
2479
+ {
2480
+ "type": "error",
2481
+ "name": "ReentrantCall",
2482
+ "inputs": []
2483
+ },
2484
+ {
2485
+ "type": "error",
2486
+ "name": "TokenAmountMismatch",
2487
+ "inputs": [
2488
+ {
2489
+ "name": "expected",
2490
+ "type": "uint256",
2491
+ "internalType": "uint256"
2492
+ },
2493
+ {
2494
+ "name": "actual",
2495
+ "type": "uint256",
2496
+ "internalType": "uint256"
2497
+ }
2498
+ ]
2499
+ },
2500
+ {
2501
+ "type": "error",
2502
+ "name": "TokenTransferFailed",
2503
+ "inputs": []
2504
+ },
2505
+ {
2506
+ "type": "error",
2507
+ "name": "UUPSUnauthorizedCallContext",
2508
+ "inputs": []
2509
+ },
2510
+ {
2511
+ "type": "error",
2512
+ "name": "UUPSUnsupportedProxiableUUID",
2513
+ "inputs": [
2514
+ {
2515
+ "name": "slot",
2516
+ "type": "bytes32",
2517
+ "internalType": "bytes32"
2518
+ }
2519
+ ]
2520
+ },
2521
+ {
2522
+ "type": "error",
2523
+ "name": "ZeroAddress",
2524
+ "inputs": []
2525
+ },
2526
+ {
2527
+ "type": "error",
2528
+ "name": "ZeroAmount",
2529
+ "inputs": []
2530
+ }
2531
+ ];
2532
+ export const worldAbi = [
2533
+ {
2534
+ "type": "constructor",
2535
+ "inputs": [],
2536
+ "stateMutability": "nonpayable"
2537
+ },
2538
+ {
2539
+ "type": "function",
2540
+ "name": "ROUTER",
2541
+ "inputs": [],
2542
+ "outputs": [
2543
+ {
2544
+ "name": "",
2545
+ "type": "address",
2546
+ "internalType": "contract IGWorldRouter"
2547
+ }
2548
+ ],
2549
+ "stateMutability": "view"
2550
+ },
2551
+ {
2552
+ "type": "function",
2553
+ "name": "UPGRADE_INTERFACE_VERSION",
2554
+ "inputs": [],
2555
+ "outputs": [
2556
+ {
2557
+ "name": "",
2558
+ "type": "string",
2559
+ "internalType": "string"
2560
+ }
2561
+ ],
2562
+ "stateMutability": "view"
2563
+ },
2564
+ {
2565
+ "type": "function",
2566
+ "name": "actionNonce",
2567
+ "inputs": [
2568
+ {
2569
+ "name": "agentId",
2570
+ "type": "uint256",
2571
+ "internalType": "uint256"
2572
+ }
2573
+ ],
2574
+ "outputs": [
2575
+ {
2576
+ "name": "nonce",
2577
+ "type": "uint256",
2578
+ "internalType": "uint256"
2579
+ }
2580
+ ],
2581
+ "stateMutability": "view"
2582
+ },
2583
+ {
2584
+ "type": "function",
2585
+ "name": "attack",
2586
+ "inputs": [
2587
+ {
2588
+ "name": "agentId",
2589
+ "type": "uint256",
2590
+ "internalType": "uint256"
2591
+ },
2592
+ {
2593
+ "name": "tileKey",
2594
+ "type": "uint64",
2595
+ "internalType": "uint64"
2596
+ },
2597
+ {
2598
+ "name": "apCap",
2599
+ "type": "uint256",
2600
+ "internalType": "uint256"
2601
+ }
2602
+ ],
2603
+ "outputs": [],
2604
+ "stateMutability": "nonpayable"
2605
+ },
2606
+ {
2607
+ "type": "function",
2608
+ "name": "checkpoint",
2609
+ "inputs": [
2610
+ {
2611
+ "name": "tileKey",
2612
+ "type": "uint64",
2613
+ "internalType": "uint64"
2614
+ },
2615
+ {
2616
+ "name": "round",
2617
+ "type": "uint256",
2618
+ "internalType": "uint256"
2619
+ }
2620
+ ],
2621
+ "outputs": [
2622
+ {
2623
+ "name": "owner",
2624
+ "type": "uint256",
2625
+ "internalType": "uint256"
2626
+ }
2627
+ ],
2628
+ "stateMutability": "view"
2629
+ },
2630
+ {
2631
+ "type": "function",
2632
+ "name": "claim",
2633
+ "inputs": [
2634
+ {
2635
+ "name": "agentId",
2636
+ "type": "uint256",
2637
+ "internalType": "uint256"
2638
+ },
2639
+ {
2640
+ "name": "tileKey",
2641
+ "type": "uint64",
2642
+ "internalType": "uint64"
2643
+ }
2644
+ ],
2645
+ "outputs": [],
2646
+ "stateMutability": "nonpayable"
2647
+ },
2648
+ {
2649
+ "type": "function",
2650
+ "name": "continueFragmentResolution",
2651
+ "inputs": [
2652
+ {
2653
+ "name": "agentId",
2654
+ "type": "uint256",
2655
+ "internalType": "uint256"
2656
+ },
2657
+ {
2658
+ "name": "maxSteps",
2659
+ "type": "uint256",
2660
+ "internalType": "uint256"
2661
+ }
2662
+ ],
2663
+ "outputs": [],
2664
+ "stateMutability": "nonpayable"
2665
+ },
2666
+ {
2667
+ "type": "function",
2668
+ "name": "currentRound",
2669
+ "inputs": [],
2670
+ "outputs": [
2671
+ {
2672
+ "name": "round",
2673
+ "type": "uint256",
2674
+ "internalType": "uint256"
2675
+ }
2676
+ ],
2677
+ "stateMutability": "view"
2678
+ },
2679
+ {
2680
+ "type": "function",
2681
+ "name": "expansionCount",
2682
+ "inputs": [],
2683
+ "outputs": [
2684
+ {
2685
+ "name": "",
2686
+ "type": "uint256",
2687
+ "internalType": "uint256"
2688
+ }
2689
+ ],
2690
+ "stateMutability": "view"
2691
+ },
2692
+ {
2693
+ "type": "function",
2694
+ "name": "fragmentResolutionOf",
2695
+ "inputs": [
2696
+ {
2697
+ "name": "agentId",
2698
+ "type": "uint256",
2699
+ "internalType": "uint256"
2700
+ }
2701
+ ],
2702
+ "outputs": [
2703
+ {
2704
+ "name": "jobId",
2705
+ "type": "uint256",
2706
+ "internalType": "uint256"
2707
+ },
2708
+ {
2709
+ "name": "phase",
2710
+ "type": "uint8",
2711
+ "internalType": "enum IWorldCore.FragmentPhase"
2712
+ },
2713
+ {
2714
+ "name": "cursor",
2715
+ "type": "uint256",
2716
+ "internalType": "uint256"
2717
+ },
2718
+ {
2719
+ "name": "sourceRound",
2720
+ "type": "uint256",
2721
+ "internalType": "uint256"
2722
+ },
2723
+ {
2724
+ "name": "sourceTileCount",
2725
+ "type": "uint256",
2726
+ "internalType": "uint256"
2727
+ },
2728
+ {
2729
+ "name": "classifiedDrops",
2730
+ "type": "uint256",
2731
+ "internalType": "uint256"
2732
+ }
2733
+ ],
2734
+ "stateMutability": "view"
2735
+ },
2736
+ {
2737
+ "type": "function",
2738
+ "name": "initialize",
2739
+ "inputs": [
2740
+ {
2741
+ "name": "router_",
2742
+ "type": "address",
2743
+ "internalType": "address"
2744
+ }
2745
+ ],
2746
+ "outputs": [],
2747
+ "stateMutability": "nonpayable"
2748
+ },
2749
+ {
2750
+ "type": "function",
2751
+ "name": "move",
2752
+ "inputs": [
2753
+ {
2754
+ "name": "agentId",
2755
+ "type": "uint256",
2756
+ "internalType": "uint256"
2757
+ },
2758
+ {
2759
+ "name": "expectedFrom",
2760
+ "type": "tuple",
2761
+ "internalType": "struct Coord",
2762
+ "components": [
2763
+ {
2764
+ "name": "q",
2765
+ "type": "int32",
2766
+ "internalType": "int32"
2767
+ },
2768
+ {
2769
+ "name": "r",
2770
+ "type": "int32",
2771
+ "internalType": "int32"
2772
+ }
2773
+ ]
2774
+ },
2775
+ {
2776
+ "name": "path",
2777
+ "type": "uint64[]",
2778
+ "internalType": "uint64[]"
2779
+ },
2780
+ {
2781
+ "name": "expectedNonce",
2782
+ "type": "uint256",
2783
+ "internalType": "uint256"
2784
+ }
2785
+ ],
2786
+ "outputs": [],
2787
+ "stateMutability": "nonpayable"
2788
+ },
2789
+ {
2790
+ "type": "function",
2791
+ "name": "ownedTileAt",
2792
+ "inputs": [
2793
+ {
2794
+ "name": "index",
2795
+ "type": "uint256",
2796
+ "internalType": "uint256"
2797
+ }
2798
+ ],
2799
+ "outputs": [
2800
+ {
2801
+ "name": "tileKey",
2802
+ "type": "uint64",
2803
+ "internalType": "uint64"
2804
+ }
2805
+ ],
2806
+ "stateMutability": "view"
2807
+ },
2808
+ {
2809
+ "type": "function",
2810
+ "name": "ownedTileAtVersion",
2811
+ "inputs": [
2812
+ {
2813
+ "name": "index",
2814
+ "type": "uint256",
2815
+ "internalType": "uint256"
2816
+ },
2817
+ {
2818
+ "name": "version",
2819
+ "type": "uint256",
2820
+ "internalType": "uint256"
2821
+ }
2822
+ ],
2823
+ "outputs": [
2824
+ {
2825
+ "name": "tileKey",
2826
+ "type": "uint64",
2827
+ "internalType": "uint64"
2828
+ }
2829
+ ],
2830
+ "stateMutability": "view"
2831
+ },
2832
+ {
2833
+ "type": "function",
2834
+ "name": "ownedTileCount",
2835
+ "inputs": [],
2836
+ "outputs": [
2837
+ {
2838
+ "name": "count",
2839
+ "type": "uint256",
2840
+ "internalType": "uint256"
2841
+ }
2842
+ ],
2843
+ "stateMutability": "view"
2844
+ },
2845
+ {
2846
+ "type": "function",
2847
+ "name": "ownedTileSnapshot",
2848
+ "inputs": [],
2849
+ "outputs": [
2850
+ {
2851
+ "name": "version",
2852
+ "type": "uint256",
2853
+ "internalType": "uint256"
2854
+ },
2855
+ {
2856
+ "name": "count",
2857
+ "type": "uint256",
2858
+ "internalType": "uint256"
2859
+ }
2860
+ ],
2861
+ "stateMutability": "view"
2862
+ },
2863
+ {
2864
+ "type": "function",
2865
+ "name": "ownerAtVersion",
2866
+ "inputs": [
2867
+ {
2868
+ "name": "tileKey",
2869
+ "type": "uint64",
2870
+ "internalType": "uint64"
2871
+ },
2872
+ {
2873
+ "name": "version",
2874
+ "type": "uint256",
2875
+ "internalType": "uint256"
2876
+ }
2877
+ ],
2878
+ "outputs": [
2879
+ {
2880
+ "name": "owner",
2881
+ "type": "uint256",
2882
+ "internalType": "uint256"
2883
+ }
2884
+ ],
2885
+ "stateMutability": "view"
2886
+ },
2887
+ {
2888
+ "type": "function",
2889
+ "name": "proxiableUUID",
2890
+ "inputs": [],
2891
+ "outputs": [
2892
+ {
2893
+ "name": "",
2894
+ "type": "bytes32",
2895
+ "internalType": "bytes32"
2896
+ }
2897
+ ],
2898
+ "stateMutability": "view"
2899
+ },
2900
+ {
2901
+ "type": "function",
2902
+ "name": "reinforce",
2903
+ "inputs": [
2904
+ {
2905
+ "name": "agentId",
2906
+ "type": "uint256",
2907
+ "internalType": "uint256"
2908
+ },
2909
+ {
2910
+ "name": "tileKey",
2911
+ "type": "uint64",
2912
+ "internalType": "uint64"
2913
+ },
2914
+ {
2915
+ "name": "apCap",
2916
+ "type": "uint256",
2917
+ "internalType": "uint256"
2918
+ }
2919
+ ],
2920
+ "outputs": [],
2921
+ "stateMutability": "nonpayable"
2922
+ },
2923
+ {
2924
+ "type": "function",
2925
+ "name": "spawnAgent",
2926
+ "inputs": [
2927
+ {
2928
+ "name": "agentId",
2929
+ "type": "uint256",
2930
+ "internalType": "uint256"
2931
+ }
2932
+ ],
2933
+ "outputs": [
2934
+ {
2935
+ "name": "spawn",
2936
+ "type": "tuple",
2937
+ "internalType": "struct Coord",
2938
+ "components": [
2939
+ {
2940
+ "name": "q",
2941
+ "type": "int32",
2942
+ "internalType": "int32"
2943
+ },
2944
+ {
2945
+ "name": "r",
2946
+ "type": "int32",
2947
+ "internalType": "int32"
2948
+ }
2949
+ ]
2950
+ }
2951
+ ],
2952
+ "stateMutability": "nonpayable"
2953
+ },
2954
+ {
2955
+ "type": "function",
2956
+ "name": "spawnRadius",
2957
+ "inputs": [],
2958
+ "outputs": [
2959
+ {
2960
+ "name": "",
2961
+ "type": "uint256",
2962
+ "internalType": "uint256"
2963
+ }
2964
+ ],
2965
+ "stateMutability": "view"
2966
+ },
2967
+ {
2968
+ "type": "function",
2969
+ "name": "tileOf",
2970
+ "inputs": [
2971
+ {
2972
+ "name": "tileKey",
2973
+ "type": "uint64",
2974
+ "internalType": "uint64"
2975
+ }
2976
+ ],
2977
+ "outputs": [
2978
+ {
2979
+ "name": "",
2980
+ "type": "tuple",
2981
+ "internalType": "struct Tile",
2982
+ "components": [
2983
+ {
2984
+ "name": "owner",
2985
+ "type": "uint256",
2986
+ "internalType": "uint256"
2987
+ },
2988
+ {
2989
+ "name": "defense",
2990
+ "type": "uint16",
2991
+ "internalType": "uint16"
2992
+ },
2993
+ {
2994
+ "name": "lastReinforceRound",
2995
+ "type": "uint32",
2996
+ "internalType": "uint32"
2997
+ },
2998
+ {
2999
+ "name": "activated",
3000
+ "type": "bool",
3001
+ "internalType": "bool"
3002
+ }
3003
+ ]
3004
+ }
3005
+ ],
3006
+ "stateMutability": "view"
3007
+ },
3008
+ {
3009
+ "type": "function",
3010
+ "name": "upgradeToAndCall",
3011
+ "inputs": [
3012
+ {
3013
+ "name": "newImplementation",
3014
+ "type": "address",
3015
+ "internalType": "address"
3016
+ },
3017
+ {
3018
+ "name": "data",
3019
+ "type": "bytes",
3020
+ "internalType": "bytes"
3021
+ }
3022
+ ],
3023
+ "outputs": [],
3024
+ "stateMutability": "payable"
3025
+ },
3026
+ {
3027
+ "type": "event",
3028
+ "name": "AgentSpawned",
3029
+ "inputs": [
3030
+ {
3031
+ "name": "agentId",
3032
+ "type": "uint256",
3033
+ "indexed": true,
3034
+ "internalType": "uint256"
3035
+ },
3036
+ {
3037
+ "name": "owner",
3038
+ "type": "address",
3039
+ "indexed": true,
3040
+ "internalType": "address"
3041
+ },
3042
+ {
3043
+ "name": "tileKey",
3044
+ "type": "uint64",
3045
+ "indexed": true,
3046
+ "internalType": "uint64"
3047
+ },
3048
+ {
3049
+ "name": "q",
3050
+ "type": "int32",
3051
+ "indexed": false,
3052
+ "internalType": "int32"
3053
+ },
3054
+ {
3055
+ "name": "r",
3056
+ "type": "int32",
3057
+ "indexed": false,
3058
+ "internalType": "int32"
3059
+ },
3060
+ {
3061
+ "name": "defense",
3062
+ "type": "uint16",
3063
+ "indexed": false,
3064
+ "internalType": "uint16"
3065
+ }
3066
+ ],
3067
+ "anonymous": false
3068
+ },
3069
+ {
3070
+ "type": "event",
3071
+ "name": "FragmentDropped",
3072
+ "inputs": [
3073
+ {
3074
+ "name": "agentId",
3075
+ "type": "uint256",
3076
+ "indexed": true,
3077
+ "internalType": "uint256"
3078
+ },
3079
+ {
3080
+ "name": "tileKey",
3081
+ "type": "uint64",
3082
+ "indexed": true,
3083
+ "internalType": "uint64"
3084
+ },
3085
+ {
3086
+ "name": "jobId",
3087
+ "type": "uint256",
3088
+ "indexed": true,
3089
+ "internalType": "uint256"
3090
+ }
3091
+ ],
3092
+ "anonymous": false
3093
+ },
3094
+ {
3095
+ "type": "event",
3096
+ "name": "FragmentResolutionCompleted",
3097
+ "inputs": [
3098
+ {
3099
+ "name": "agentId",
3100
+ "type": "uint256",
3101
+ "indexed": true,
3102
+ "internalType": "uint256"
3103
+ },
3104
+ {
3105
+ "name": "jobId",
3106
+ "type": "uint256",
3107
+ "indexed": true,
3108
+ "internalType": "uint256"
3109
+ },
3110
+ {
3111
+ "name": "droppedCount",
3112
+ "type": "uint256",
3113
+ "indexed": false,
3114
+ "internalType": "uint256"
3115
+ }
3116
+ ],
3117
+ "anonymous": false
3118
+ },
3119
+ {
3120
+ "type": "event",
3121
+ "name": "FragmentResolutionDeferred",
3122
+ "inputs": [
3123
+ {
3124
+ "name": "agentId",
3125
+ "type": "uint256",
3126
+ "indexed": true,
3127
+ "internalType": "uint256"
3128
+ },
3129
+ {
3130
+ "name": "jobId",
3131
+ "type": "uint256",
3132
+ "indexed": true,
3133
+ "internalType": "uint256"
3134
+ },
3135
+ {
3136
+ "name": "tileCount",
3137
+ "type": "uint256",
3138
+ "indexed": false,
3139
+ "internalType": "uint256"
3140
+ },
3141
+ {
3142
+ "name": "round",
3143
+ "type": "uint256",
3144
+ "indexed": false,
3145
+ "internalType": "uint256"
3146
+ }
3147
+ ],
3148
+ "anonymous": false
3149
+ },
3150
+ {
3151
+ "type": "event",
3152
+ "name": "FragmentResolutionProgress",
3153
+ "inputs": [
3154
+ {
3155
+ "name": "agentId",
3156
+ "type": "uint256",
3157
+ "indexed": true,
3158
+ "internalType": "uint256"
3159
+ },
3160
+ {
3161
+ "name": "jobId",
3162
+ "type": "uint256",
3163
+ "indexed": true,
3164
+ "internalType": "uint256"
3165
+ },
3166
+ {
3167
+ "name": "phase",
3168
+ "type": "uint8",
3169
+ "indexed": false,
3170
+ "internalType": "enum IWorldCore.FragmentPhase"
3171
+ },
3172
+ {
3173
+ "name": "cursor",
3174
+ "type": "uint256",
3175
+ "indexed": false,
3176
+ "internalType": "uint256"
3177
+ }
3178
+ ],
3179
+ "anonymous": false
3180
+ },
3181
+ {
3182
+ "type": "event",
3183
+ "name": "Initialized",
3184
+ "inputs": [
3185
+ {
3186
+ "name": "version",
3187
+ "type": "uint64",
3188
+ "indexed": false,
3189
+ "internalType": "uint64"
3190
+ }
3191
+ ],
3192
+ "anonymous": false
3193
+ },
3194
+ {
3195
+ "type": "event",
3196
+ "name": "MapExpanded",
3197
+ "inputs": [
3198
+ {
3199
+ "name": "sourceKey",
3200
+ "type": "uint64",
3201
+ "indexed": true,
3202
+ "internalType": "uint64"
3203
+ },
3204
+ {
3205
+ "name": "newborn",
3206
+ "type": "uint256",
3207
+ "indexed": false,
3208
+ "internalType": "uint256"
3209
+ }
3210
+ ],
3211
+ "anonymous": false
3212
+ },
3213
+ {
3214
+ "type": "event",
3215
+ "name": "Moved",
3216
+ "inputs": [
3217
+ {
3218
+ "name": "agentId",
3219
+ "type": "uint256",
3220
+ "indexed": true,
3221
+ "internalType": "uint256"
3222
+ },
3223
+ {
3224
+ "name": "fromTileKey",
3225
+ "type": "uint64",
3226
+ "indexed": true,
3227
+ "internalType": "uint64"
3228
+ },
3229
+ {
3230
+ "name": "toTileKey",
3231
+ "type": "uint64",
3232
+ "indexed": true,
3233
+ "internalType": "uint64"
3234
+ },
3235
+ {
3236
+ "name": "stepCount",
3237
+ "type": "uint256",
3238
+ "indexed": false,
3239
+ "internalType": "uint256"
3240
+ },
3241
+ {
3242
+ "name": "moveCostCap",
3243
+ "type": "uint256",
3244
+ "indexed": false,
3245
+ "internalType": "uint256"
3246
+ },
3247
+ {
3248
+ "name": "tollCap",
3249
+ "type": "uint256",
3250
+ "indexed": false,
3251
+ "internalType": "uint256"
3252
+ },
3253
+ {
3254
+ "name": "consumedNonce",
3255
+ "type": "uint256",
3256
+ "indexed": false,
3257
+ "internalType": "uint256"
3258
+ }
3259
+ ],
3260
+ "anonymous": false
3261
+ },
3262
+ {
3263
+ "type": "event",
3264
+ "name": "TileAttacked",
3265
+ "inputs": [
3266
+ {
3267
+ "name": "attacker",
3268
+ "type": "uint256",
3269
+ "indexed": true,
3270
+ "internalType": "uint256"
3271
+ },
3272
+ {
3273
+ "name": "defender",
3274
+ "type": "uint256",
3275
+ "indexed": true,
3276
+ "internalType": "uint256"
3277
+ },
3278
+ {
3279
+ "name": "tileKey",
3280
+ "type": "uint64",
3281
+ "indexed": true,
3282
+ "internalType": "uint64"
3283
+ },
3284
+ {
3285
+ "name": "defenseBefore",
3286
+ "type": "uint16",
3287
+ "indexed": false,
3288
+ "internalType": "uint16"
3289
+ },
3290
+ {
3291
+ "name": "defenseAfter",
3292
+ "type": "uint16",
3293
+ "indexed": false,
3294
+ "internalType": "uint16"
3295
+ },
3296
+ {
3297
+ "name": "costCap",
3298
+ "type": "uint256",
3299
+ "indexed": false,
3300
+ "internalType": "uint256"
3301
+ }
3302
+ ],
3303
+ "anonymous": false
3304
+ },
3305
+ {
3306
+ "type": "event",
3307
+ "name": "TileCaptured",
3308
+ "inputs": [
3309
+ {
3310
+ "name": "attacker",
3311
+ "type": "uint256",
3312
+ "indexed": true,
3313
+ "internalType": "uint256"
3314
+ },
3315
+ {
3316
+ "name": "previousOwner",
3317
+ "type": "uint256",
3318
+ "indexed": true,
3319
+ "internalType": "uint256"
3320
+ },
3321
+ {
3322
+ "name": "tileKey",
3323
+ "type": "uint64",
3324
+ "indexed": true,
3325
+ "internalType": "uint64"
3326
+ },
3327
+ {
3328
+ "name": "defense",
3329
+ "type": "uint16",
3330
+ "indexed": false,
3331
+ "internalType": "uint16"
3332
+ },
3333
+ {
3334
+ "name": "costCap",
3335
+ "type": "uint256",
3336
+ "indexed": false,
3337
+ "internalType": "uint256"
3338
+ }
3339
+ ],
3340
+ "anonymous": false
3341
+ },
3342
+ {
3343
+ "type": "event",
3344
+ "name": "TileClaimed",
3345
+ "inputs": [
3346
+ {
3347
+ "name": "agentId",
3348
+ "type": "uint256",
3349
+ "indexed": true,
3350
+ "internalType": "uint256"
3351
+ },
3352
+ {
3353
+ "name": "tileKey",
3354
+ "type": "uint64",
3355
+ "indexed": true,
3356
+ "internalType": "uint64"
3357
+ },
3358
+ {
3359
+ "name": "defense",
3360
+ "type": "uint16",
3361
+ "indexed": false,
3362
+ "internalType": "uint16"
3363
+ },
3364
+ {
3365
+ "name": "costCap",
3366
+ "type": "uint256",
3367
+ "indexed": false,
3368
+ "internalType": "uint256"
3369
+ }
3370
+ ],
3371
+ "anonymous": false
3372
+ },
3373
+ {
3374
+ "type": "event",
3375
+ "name": "TileReinforced",
3376
+ "inputs": [
3377
+ {
3378
+ "name": "agentId",
3379
+ "type": "uint256",
3380
+ "indexed": true,
3381
+ "internalType": "uint256"
3382
+ },
3383
+ {
3384
+ "name": "tileKey",
3385
+ "type": "uint64",
3386
+ "indexed": true,
3387
+ "internalType": "uint64"
3388
+ },
3389
+ {
3390
+ "name": "defense",
3391
+ "type": "uint16",
3392
+ "indexed": false,
3393
+ "internalType": "uint16"
3394
+ },
3395
+ {
3396
+ "name": "pointsAdded",
3397
+ "type": "uint16",
3398
+ "indexed": false,
3399
+ "internalType": "uint16"
3400
+ },
3401
+ {
3402
+ "name": "costCap",
3403
+ "type": "uint256",
3404
+ "indexed": false,
3405
+ "internalType": "uint256"
3406
+ }
3407
+ ],
3408
+ "anonymous": false
3409
+ },
3410
+ {
3411
+ "type": "event",
3412
+ "name": "Upgraded",
3413
+ "inputs": [
3414
+ {
3415
+ "name": "implementation",
3416
+ "type": "address",
3417
+ "indexed": true,
3418
+ "internalType": "address"
3419
+ }
3420
+ ],
3421
+ "anonymous": false
3422
+ },
3423
+ {
3424
+ "type": "error",
3425
+ "name": "AddressEmptyCode",
3426
+ "inputs": [
3427
+ {
3428
+ "name": "target",
3429
+ "type": "address",
3430
+ "internalType": "address"
3431
+ }
3432
+ ]
3433
+ },
3434
+ {
3435
+ "type": "error",
3436
+ "name": "AgentNotAdjacentToTarget",
3437
+ "inputs": [
3438
+ {
3439
+ "name": "tileKey",
3440
+ "type": "uint64",
3441
+ "internalType": "uint64"
3442
+ }
3443
+ ]
3444
+ },
3445
+ {
3446
+ "type": "error",
3447
+ "name": "CheckpointOrderInvalid",
3448
+ "inputs": [
3449
+ {
3450
+ "name": "tileKey",
3451
+ "type": "uint64",
3452
+ "internalType": "uint64"
3453
+ },
3454
+ {
3455
+ "name": "previousRound",
3456
+ "type": "uint256",
3457
+ "internalType": "uint256"
3458
+ },
3459
+ {
3460
+ "name": "nextRound",
3461
+ "type": "uint256",
3462
+ "internalType": "uint256"
3463
+ }
3464
+ ]
3465
+ },
3466
+ {
3467
+ "type": "error",
3468
+ "name": "CoordinateOverflow",
3469
+ "inputs": [
3470
+ {
3471
+ "name": "q",
3472
+ "type": "int64",
3473
+ "internalType": "int64"
3474
+ },
3475
+ {
3476
+ "name": "r",
3477
+ "type": "int64",
3478
+ "internalType": "int64"
3479
+ }
3480
+ ]
3481
+ },
3482
+ {
3483
+ "type": "error",
3484
+ "name": "ERC1967InvalidImplementation",
3485
+ "inputs": [
3486
+ {
3487
+ "name": "implementation",
3488
+ "type": "address",
3489
+ "internalType": "address"
3490
+ }
3491
+ ]
3492
+ },
3493
+ {
3494
+ "type": "error",
3495
+ "name": "ERC1967NonPayable",
3496
+ "inputs": []
3497
+ },
3498
+ {
3499
+ "type": "error",
3500
+ "name": "FailedCall",
3501
+ "inputs": []
3502
+ },
3503
+ {
3504
+ "type": "error",
3505
+ "name": "FirstClaimMustBeCentral",
3506
+ "inputs": [
3507
+ {
3508
+ "name": "tileKey",
3509
+ "type": "uint64",
3510
+ "internalType": "uint64"
3511
+ }
3512
+ ]
3513
+ },
3514
+ {
3515
+ "type": "error",
3516
+ "name": "FragmentResolutionLocked",
3517
+ "inputs": [
3518
+ {
3519
+ "name": "agentId",
3520
+ "type": "uint256",
3521
+ "internalType": "uint256"
3522
+ },
3523
+ {
3524
+ "name": "jobId",
3525
+ "type": "uint256",
3526
+ "internalType": "uint256"
3527
+ }
3528
+ ]
3529
+ },
3530
+ {
3531
+ "type": "error",
3532
+ "name": "FragmentTileOwnerMismatch",
3533
+ "inputs": [
3534
+ {
3535
+ "name": "agentId",
3536
+ "type": "uint256",
3537
+ "internalType": "uint256"
3538
+ },
3539
+ {
3540
+ "name": "tileKey",
3541
+ "type": "uint64",
3542
+ "internalType": "uint64"
3543
+ },
3544
+ {
3545
+ "name": "actualOwner",
3546
+ "type": "uint256",
3547
+ "internalType": "uint256"
3548
+ }
3549
+ ]
3550
+ },
3551
+ {
3552
+ "type": "error",
3553
+ "name": "FragmentTopologyChanged",
3554
+ "inputs": [
3555
+ {
3556
+ "name": "agentId",
3557
+ "type": "uint256",
3558
+ "internalType": "uint256"
3559
+ },
3560
+ {
3561
+ "name": "expectedVersion",
3562
+ "type": "uint256",
3563
+ "internalType": "uint256"
3564
+ },
3565
+ {
3566
+ "name": "actualVersion",
3567
+ "type": "uint256",
3568
+ "internalType": "uint256"
3569
+ }
3570
+ ]
3571
+ },
3572
+ {
3573
+ "type": "error",
3574
+ "name": "IncompleteFragmentCheckpoint",
3575
+ "inputs": [
3576
+ {
3577
+ "name": "agentId",
3578
+ "type": "uint256",
3579
+ "internalType": "uint256"
3580
+ },
3581
+ {
3582
+ "name": "jobId",
3583
+ "type": "uint256",
3584
+ "internalType": "uint256"
3585
+ },
3586
+ {
3587
+ "name": "tileKey",
3588
+ "type": "uint64",
3589
+ "internalType": "uint64"
3590
+ },
3591
+ {
3592
+ "name": "round",
3593
+ "type": "uint256",
3594
+ "internalType": "uint256"
3595
+ }
3596
+ ]
3597
+ },
3598
+ {
3599
+ "type": "error",
3600
+ "name": "InvalidFragmentBatchSteps",
3601
+ "inputs": [
3602
+ {
3603
+ "name": "maxSteps",
3604
+ "type": "uint256",
3605
+ "internalType": "uint256"
3606
+ }
3607
+ ]
3608
+ },
3609
+ {
3610
+ "type": "error",
3611
+ "name": "InvalidInitialization",
3612
+ "inputs": []
3613
+ },
3614
+ {
3615
+ "type": "error",
3616
+ "name": "InvalidMovePathLength",
3617
+ "inputs": [
3618
+ {
3619
+ "name": "length",
3620
+ "type": "uint256",
3621
+ "internalType": "uint256"
3622
+ }
3623
+ ]
3624
+ },
3625
+ {
3626
+ "type": "error",
3627
+ "name": "NoActiveFragmentResolution",
3628
+ "inputs": [
3629
+ {
3630
+ "name": "agentId",
3631
+ "type": "uint256",
3632
+ "internalType": "uint256"
3633
+ }
3634
+ ]
3635
+ },
3636
+ {
3637
+ "type": "error",
3638
+ "name": "NoDamage",
3639
+ "inputs": [
3640
+ {
3641
+ "name": "tileKey",
3642
+ "type": "uint64",
3643
+ "internalType": "uint64"
3644
+ }
3645
+ ]
3646
+ },
3647
+ {
3648
+ "type": "error",
3649
+ "name": "NoSpawnRoom",
3650
+ "inputs": []
3651
+ },
3652
+ {
3653
+ "type": "error",
3654
+ "name": "NotAdjacent",
3655
+ "inputs": [
3656
+ {
3657
+ "name": "from",
3658
+ "type": "uint64",
3659
+ "internalType": "uint64"
3660
+ },
3661
+ {
3662
+ "name": "to",
3663
+ "type": "uint64",
3664
+ "internalType": "uint64"
3665
+ }
3666
+ ]
3667
+ },
3668
+ {
3669
+ "type": "error",
3670
+ "name": "NotAdjacentToOwnTerritory",
3671
+ "inputs": [
3672
+ {
3673
+ "name": "tileKey",
3674
+ "type": "uint64",
3675
+ "internalType": "uint64"
3676
+ }
3677
+ ]
3678
+ },
3679
+ {
3680
+ "type": "error",
3681
+ "name": "NotAttackable",
3682
+ "inputs": [
3683
+ {
3684
+ "name": "tileKey",
3685
+ "type": "uint64",
3686
+ "internalType": "uint64"
3687
+ }
3688
+ ]
3689
+ },
3690
+ {
3691
+ "type": "error",
3692
+ "name": "NotAuthorized",
3693
+ "inputs": [
3694
+ {
3695
+ "name": "caller",
3696
+ "type": "address",
3697
+ "internalType": "address"
3698
+ }
3699
+ ]
3700
+ },
3701
+ {
3702
+ "type": "error",
3703
+ "name": "NotInitializing",
3704
+ "inputs": []
3705
+ },
3706
+ {
3707
+ "type": "error",
3708
+ "name": "NotTileOwner",
3709
+ "inputs": [
3710
+ {
3711
+ "name": "tileKey",
3712
+ "type": "uint64",
3713
+ "internalType": "uint64"
3714
+ }
3715
+ ]
3716
+ },
3717
+ {
3718
+ "type": "error",
3719
+ "name": "NothingToReinforce",
3720
+ "inputs": [
3721
+ {
3722
+ "name": "tileKey",
3723
+ "type": "uint64",
3724
+ "internalType": "uint64"
3725
+ }
3726
+ ]
3727
+ },
3728
+ {
3729
+ "type": "error",
3730
+ "name": "StaleActionNonce",
3731
+ "inputs": [
3732
+ {
3733
+ "name": "agentId",
3734
+ "type": "uint256",
3735
+ "internalType": "uint256"
3736
+ },
3737
+ {
3738
+ "name": "expectedNonce",
3739
+ "type": "uint256",
3740
+ "internalType": "uint256"
3741
+ },
3742
+ {
3743
+ "name": "actualNonce",
3744
+ "type": "uint256",
3745
+ "internalType": "uint256"
3746
+ }
3747
+ ]
3748
+ },
3749
+ {
3750
+ "type": "error",
3751
+ "name": "StalePosition",
3752
+ "inputs": [
3753
+ {
3754
+ "name": "expectedTileKey",
3755
+ "type": "uint64",
3756
+ "internalType": "uint64"
3757
+ },
3758
+ {
3759
+ "name": "actualTileKey",
3760
+ "type": "uint64",
3761
+ "internalType": "uint64"
3762
+ }
3763
+ ]
3764
+ },
3765
+ {
3766
+ "type": "error",
3767
+ "name": "TileAlreadyOwned",
3768
+ "inputs": [
3769
+ {
3770
+ "name": "tileKey",
3771
+ "type": "uint64",
3772
+ "internalType": "uint64"
3773
+ }
3774
+ ]
3775
+ },
3776
+ {
3777
+ "type": "error",
3778
+ "name": "TileIndexCorrupted",
3779
+ "inputs": [
3780
+ {
3781
+ "name": "tileKey",
3782
+ "type": "uint64",
3783
+ "internalType": "uint64"
3784
+ }
3785
+ ]
3786
+ },
3787
+ {
3788
+ "type": "error",
3789
+ "name": "TileNotActivated",
3790
+ "inputs": [
3791
+ {
3792
+ "name": "tileKey",
3793
+ "type": "uint64",
3794
+ "internalType": "uint64"
3795
+ }
3796
+ ]
3797
+ },
3798
+ {
3799
+ "type": "error",
3800
+ "name": "UUPSUnauthorizedCallContext",
3801
+ "inputs": []
3802
+ },
3803
+ {
3804
+ "type": "error",
3805
+ "name": "UUPSUnsupportedProxiableUUID",
3806
+ "inputs": [
3807
+ {
3808
+ "name": "slot",
3809
+ "type": "bytes32",
3810
+ "internalType": "bytes32"
3811
+ }
3812
+ ]
3813
+ },
3814
+ {
3815
+ "type": "error",
3816
+ "name": "ZeroAddress",
3817
+ "inputs": []
3818
+ }
3819
+ ];
3820
+ export const marketAbi = [
3821
+ {
3822
+ "type": "constructor",
3823
+ "inputs": [],
3824
+ "stateMutability": "nonpayable"
3825
+ },
3826
+ {
3827
+ "type": "function",
3828
+ "name": "MIN_BET_G",
3829
+ "inputs": [],
3830
+ "outputs": [
3831
+ {
3832
+ "name": "",
3833
+ "type": "uint256",
3834
+ "internalType": "uint256"
3835
+ }
3836
+ ],
3837
+ "stateMutability": "view"
3838
+ },
3839
+ {
3840
+ "type": "function",
3841
+ "name": "ROUTER",
3842
+ "inputs": [],
3843
+ "outputs": [
3844
+ {
3845
+ "name": "",
3846
+ "type": "address",
3847
+ "internalType": "contract IGWorldRouter"
3848
+ }
3849
+ ],
3850
+ "stateMutability": "view"
3851
+ },
3852
+ {
3853
+ "type": "function",
3854
+ "name": "UPGRADE_INTERFACE_VERSION",
3855
+ "inputs": [],
3856
+ "outputs": [
3857
+ {
3858
+ "name": "",
3859
+ "type": "string",
3860
+ "internalType": "string"
3861
+ }
3862
+ ],
3863
+ "stateMutability": "view"
3864
+ },
3865
+ {
3866
+ "type": "function",
3867
+ "name": "bet",
3868
+ "inputs": [
3869
+ {
3870
+ "name": "marketId",
3871
+ "type": "uint256",
3872
+ "internalType": "uint256"
3873
+ },
3874
+ {
3875
+ "name": "agentId",
3876
+ "type": "uint256",
3877
+ "internalType": "uint256"
3878
+ },
3879
+ {
3880
+ "name": "optionIndex",
3881
+ "type": "uint256",
3882
+ "internalType": "uint256"
3883
+ },
3884
+ {
3885
+ "name": "amountG",
3886
+ "type": "uint256",
3887
+ "internalType": "uint256"
3888
+ }
3889
+ ],
3890
+ "outputs": [],
3891
+ "stateMutability": "payable"
3892
+ },
3893
+ {
3894
+ "type": "function",
3895
+ "name": "claim",
3896
+ "inputs": [
3897
+ {
3898
+ "name": "marketId",
3899
+ "type": "uint256",
3900
+ "internalType": "uint256"
3901
+ }
3902
+ ],
3903
+ "outputs": [],
3904
+ "stateMutability": "nonpayable"
3905
+ },
3906
+ {
3907
+ "type": "function",
3908
+ "name": "currentRound",
3909
+ "inputs": [],
3910
+ "outputs": [
3911
+ {
3912
+ "name": "round",
3913
+ "type": "uint256",
3914
+ "internalType": "uint256"
3915
+ }
3916
+ ],
3917
+ "stateMutability": "view"
3918
+ },
3919
+ {
3920
+ "type": "function",
3921
+ "name": "finalizeMarket",
3922
+ "inputs": [
3923
+ {
3924
+ "name": "round",
3925
+ "type": "uint256",
3926
+ "internalType": "uint256"
3927
+ }
3928
+ ],
3929
+ "outputs": [
3930
+ {
3931
+ "name": "marketId",
3932
+ "type": "uint256",
3933
+ "internalType": "uint256"
3934
+ }
3935
+ ],
3936
+ "stateMutability": "nonpayable"
3937
+ },
3938
+ {
3939
+ "type": "function",
3940
+ "name": "initialize",
3941
+ "inputs": [
3942
+ {
3943
+ "name": "router_",
3944
+ "type": "address",
3945
+ "internalType": "address"
3946
+ }
3947
+ ],
3948
+ "outputs": [],
3949
+ "stateMutability": "nonpayable"
3950
+ },
3951
+ {
3952
+ "type": "function",
3953
+ "name": "lastMarketId",
3954
+ "inputs": [],
3955
+ "outputs": [
3956
+ {
3957
+ "name": "",
3958
+ "type": "uint256",
3959
+ "internalType": "uint256"
3960
+ }
3961
+ ],
3962
+ "stateMutability": "view"
3963
+ },
3964
+ {
3965
+ "type": "function",
3966
+ "name": "marketIdForRound",
3967
+ "inputs": [
3968
+ {
3969
+ "name": "round",
3970
+ "type": "uint256",
3971
+ "internalType": "uint256"
3972
+ }
3973
+ ],
3974
+ "outputs": [
3975
+ {
3976
+ "name": "marketId",
3977
+ "type": "uint256",
3978
+ "internalType": "uint256"
3979
+ }
3980
+ ],
3981
+ "stateMutability": "view"
3982
+ },
3983
+ {
3984
+ "type": "function",
3985
+ "name": "marketOf",
3986
+ "inputs": [
3987
+ {
3988
+ "name": "marketId",
3989
+ "type": "uint256",
3990
+ "internalType": "uint256"
3991
+ }
3992
+ ],
3993
+ "outputs": [
3994
+ {
3995
+ "name": "market",
3996
+ "type": "tuple",
3997
+ "internalType": "struct IPredictionMarket.Market",
3998
+ "components": [
3999
+ {
4000
+ "name": "world",
4001
+ "type": "address",
4002
+ "internalType": "address"
4003
+ },
4004
+ {
4005
+ "name": "escrow",
4006
+ "type": "address",
4007
+ "internalType": "address"
4008
+ },
4009
+ {
4010
+ "name": "tileKey",
4011
+ "type": "uint64",
4012
+ "internalType": "uint64"
4013
+ },
4014
+ {
4015
+ "name": "openRound",
4016
+ "type": "uint256",
4017
+ "internalType": "uint256"
4018
+ },
4019
+ {
4020
+ "name": "closeRound",
4021
+ "type": "uint256",
4022
+ "internalType": "uint256"
4023
+ },
4024
+ {
4025
+ "name": "settleRound",
4026
+ "type": "uint256",
4027
+ "internalType": "uint256"
4028
+ },
4029
+ {
4030
+ "name": "winningOption",
4031
+ "type": "uint256",
4032
+ "internalType": "uint256"
4033
+ },
4034
+ {
4035
+ "name": "totalPoolG",
4036
+ "type": "uint256",
4037
+ "internalType": "uint256"
4038
+ },
4039
+ {
4040
+ "name": "winningPoolG",
4041
+ "type": "uint256",
4042
+ "internalType": "uint256"
4043
+ },
4044
+ {
4045
+ "name": "apRewardCap",
4046
+ "type": "uint256",
4047
+ "internalType": "uint256"
4048
+ },
4049
+ {
4050
+ "name": "status",
4051
+ "type": "uint8",
4052
+ "internalType": "enum IPredictionMarket.MarketStatus"
4053
+ },
4054
+ {
4055
+ "name": "refundable",
4056
+ "type": "bool",
4057
+ "internalType": "bool"
4058
+ }
4059
+ ]
4060
+ }
4061
+ ],
4062
+ "stateMutability": "view"
4063
+ },
4064
+ {
4065
+ "type": "function",
4066
+ "name": "optionPoolOf",
4067
+ "inputs": [
4068
+ {
4069
+ "name": "marketId",
4070
+ "type": "uint256",
4071
+ "internalType": "uint256"
4072
+ },
4073
+ {
4074
+ "name": "optionIndex",
4075
+ "type": "uint256",
4076
+ "internalType": "uint256"
4077
+ }
4078
+ ],
4079
+ "outputs": [
4080
+ {
4081
+ "name": "totalG",
4082
+ "type": "uint256",
4083
+ "internalType": "uint256"
4084
+ }
4085
+ ],
4086
+ "stateMutability": "view"
4087
+ },
4088
+ {
4089
+ "type": "function",
4090
+ "name": "optionsOf",
4091
+ "inputs": [
4092
+ {
4093
+ "name": "marketId",
4094
+ "type": "uint256",
4095
+ "internalType": "uint256"
4096
+ }
4097
+ ],
4098
+ "outputs": [
4099
+ {
4100
+ "name": "agentIds",
4101
+ "type": "uint256[]",
4102
+ "internalType": "uint256[]"
4103
+ }
4104
+ ],
4105
+ "stateMutability": "view"
4106
+ },
4107
+ {
4108
+ "type": "function",
4109
+ "name": "positionOf",
4110
+ "inputs": [
4111
+ {
4112
+ "name": "marketId",
4113
+ "type": "uint256",
4114
+ "internalType": "uint256"
4115
+ },
4116
+ {
4117
+ "name": "bettor",
4118
+ "type": "address",
4119
+ "internalType": "address"
4120
+ }
4121
+ ],
4122
+ "outputs": [
4123
+ {
4124
+ "name": "position",
4125
+ "type": "tuple",
4126
+ "internalType": "struct IPredictionMarket.Position",
4127
+ "components": [
4128
+ {
4129
+ "name": "agentId",
4130
+ "type": "uint256",
4131
+ "internalType": "uint256"
4132
+ },
4133
+ {
4134
+ "name": "optionIndex",
4135
+ "type": "uint256",
4136
+ "internalType": "uint256"
4137
+ },
4138
+ {
4139
+ "name": "stakeG",
4140
+ "type": "uint256",
4141
+ "internalType": "uint256"
4142
+ },
4143
+ {
4144
+ "name": "claimed",
4145
+ "type": "bool",
4146
+ "internalType": "bool"
4147
+ }
4148
+ ]
4149
+ }
4150
+ ],
4151
+ "stateMutability": "view"
4152
+ },
4153
+ {
4154
+ "type": "function",
4155
+ "name": "proxiableUUID",
4156
+ "inputs": [],
4157
+ "outputs": [
4158
+ {
4159
+ "name": "",
4160
+ "type": "bytes32",
4161
+ "internalType": "bytes32"
4162
+ }
4163
+ ],
4164
+ "stateMutability": "view"
4165
+ },
4166
+ {
4167
+ "type": "function",
4168
+ "name": "requestMarket",
4169
+ "inputs": [],
4170
+ "outputs": [
4171
+ {
4172
+ "name": "round",
4173
+ "type": "uint256",
4174
+ "internalType": "uint256"
4175
+ },
4176
+ {
4177
+ "name": "targetBlock",
4178
+ "type": "uint256",
4179
+ "internalType": "uint256"
4180
+ }
4181
+ ],
4182
+ "stateMutability": "nonpayable"
4183
+ },
4184
+ {
4185
+ "type": "function",
4186
+ "name": "requestOf",
4187
+ "inputs": [
4188
+ {
4189
+ "name": "round",
4190
+ "type": "uint256",
4191
+ "internalType": "uint256"
4192
+ }
4193
+ ],
4194
+ "outputs": [
4195
+ {
4196
+ "name": "rng",
4197
+ "type": "address",
4198
+ "internalType": "address"
4199
+ },
4200
+ {
4201
+ "name": "targetBlock",
4202
+ "type": "uint256",
4203
+ "internalType": "uint256"
4204
+ }
4205
+ ],
4206
+ "stateMutability": "view"
4207
+ },
4208
+ {
4209
+ "type": "function",
4210
+ "name": "requestSnapshotOf",
4211
+ "inputs": [
4212
+ {
4213
+ "name": "round",
4214
+ "type": "uint256",
4215
+ "internalType": "uint256"
4216
+ }
4217
+ ],
4218
+ "outputs": [
4219
+ {
4220
+ "name": "world",
4221
+ "type": "address",
4222
+ "internalType": "address"
4223
+ },
4224
+ {
4225
+ "name": "escrow",
4226
+ "type": "address",
4227
+ "internalType": "address"
4228
+ },
4229
+ {
4230
+ "name": "ownedVersion",
4231
+ "type": "uint256",
4232
+ "internalType": "uint256"
4233
+ },
4234
+ {
4235
+ "name": "ownedCount",
4236
+ "type": "uint256",
4237
+ "internalType": "uint256"
4238
+ }
4239
+ ],
4240
+ "stateMutability": "view"
4241
+ },
4242
+ {
4243
+ "type": "function",
4244
+ "name": "settle",
4245
+ "inputs": [
4246
+ {
4247
+ "name": "marketId",
4248
+ "type": "uint256",
4249
+ "internalType": "uint256"
4250
+ }
4251
+ ],
4252
+ "outputs": [],
4253
+ "stateMutability": "nonpayable"
4254
+ },
4255
+ {
4256
+ "type": "function",
4257
+ "name": "upgradeToAndCall",
4258
+ "inputs": [
4259
+ {
4260
+ "name": "newImplementation",
4261
+ "type": "address",
4262
+ "internalType": "address"
4263
+ },
4264
+ {
4265
+ "name": "data",
4266
+ "type": "bytes",
4267
+ "internalType": "bytes"
4268
+ }
4269
+ ],
4270
+ "outputs": [],
4271
+ "stateMutability": "payable"
4272
+ },
4273
+ {
4274
+ "type": "event",
4275
+ "name": "BetPlaced",
4276
+ "inputs": [
4277
+ {
4278
+ "name": "marketId",
4279
+ "type": "uint256",
4280
+ "indexed": true,
4281
+ "internalType": "uint256"
4282
+ },
4283
+ {
4284
+ "name": "bettor",
4285
+ "type": "address",
4286
+ "indexed": true,
4287
+ "internalType": "address"
4288
+ },
4289
+ {
4290
+ "name": "agentId",
4291
+ "type": "uint256",
4292
+ "indexed": true,
4293
+ "internalType": "uint256"
4294
+ },
4295
+ {
4296
+ "name": "optionIndex",
4297
+ "type": "uint256",
4298
+ "indexed": false,
4299
+ "internalType": "uint256"
4300
+ },
4301
+ {
4302
+ "name": "amountG",
4303
+ "type": "uint256",
4304
+ "indexed": false,
4305
+ "internalType": "uint256"
4306
+ }
4307
+ ],
4308
+ "anonymous": false
4309
+ },
4310
+ {
4311
+ "type": "event",
4312
+ "name": "Claimed",
4313
+ "inputs": [
4314
+ {
4315
+ "name": "marketId",
4316
+ "type": "uint256",
4317
+ "indexed": true,
4318
+ "internalType": "uint256"
4319
+ },
4320
+ {
4321
+ "name": "bettor",
4322
+ "type": "address",
4323
+ "indexed": true,
4324
+ "internalType": "address"
4325
+ },
4326
+ {
4327
+ "name": "agentId",
4328
+ "type": "uint256",
4329
+ "indexed": true,
4330
+ "internalType": "uint256"
4331
+ },
4332
+ {
4333
+ "name": "payoutG",
4334
+ "type": "uint256",
4335
+ "indexed": false,
4336
+ "internalType": "uint256"
4337
+ },
4338
+ {
4339
+ "name": "apRewardCap",
4340
+ "type": "uint256",
4341
+ "indexed": false,
4342
+ "internalType": "uint256"
4343
+ }
4344
+ ],
4345
+ "anonymous": false
4346
+ },
4347
+ {
4348
+ "type": "event",
4349
+ "name": "Initialized",
4350
+ "inputs": [
4351
+ {
4352
+ "name": "version",
4353
+ "type": "uint64",
4354
+ "indexed": false,
4355
+ "internalType": "uint64"
4356
+ }
4357
+ ],
4358
+ "anonymous": false
4359
+ },
4360
+ {
4361
+ "type": "event",
4362
+ "name": "MarketOpened",
4363
+ "inputs": [
4364
+ {
4365
+ "name": "marketId",
4366
+ "type": "uint256",
4367
+ "indexed": true,
4368
+ "internalType": "uint256"
4369
+ },
4370
+ {
4371
+ "name": "openRound",
4372
+ "type": "uint256",
4373
+ "indexed": true,
4374
+ "internalType": "uint256"
4375
+ },
4376
+ {
4377
+ "name": "tileKey",
4378
+ "type": "uint64",
4379
+ "indexed": true,
4380
+ "internalType": "uint64"
4381
+ },
4382
+ {
4383
+ "name": "closeRound",
4384
+ "type": "uint256",
4385
+ "indexed": false,
4386
+ "internalType": "uint256"
4387
+ },
4388
+ {
4389
+ "name": "settleRound",
4390
+ "type": "uint256",
4391
+ "indexed": false,
4392
+ "internalType": "uint256"
4393
+ }
4394
+ ],
4395
+ "anonymous": false
4396
+ },
4397
+ {
4398
+ "type": "event",
4399
+ "name": "MarketRequested",
4400
+ "inputs": [
4401
+ {
4402
+ "name": "round",
4403
+ "type": "uint256",
4404
+ "indexed": true,
4405
+ "internalType": "uint256"
4406
+ },
4407
+ {
4408
+ "name": "rng",
4409
+ "type": "address",
4410
+ "indexed": true,
4411
+ "internalType": "address"
4412
+ },
4413
+ {
4414
+ "name": "targetBlock",
4415
+ "type": "uint256",
4416
+ "indexed": false,
4417
+ "internalType": "uint256"
4418
+ }
4419
+ ],
4420
+ "anonymous": false
4421
+ },
4422
+ {
4423
+ "type": "event",
4424
+ "name": "MarketSettled",
4425
+ "inputs": [
4426
+ {
4427
+ "name": "marketId",
4428
+ "type": "uint256",
4429
+ "indexed": true,
4430
+ "internalType": "uint256"
4431
+ },
4432
+ {
4433
+ "name": "winningOption",
4434
+ "type": "uint256",
4435
+ "indexed": true,
4436
+ "internalType": "uint256"
4437
+ },
4438
+ {
4439
+ "name": "finalOwner",
4440
+ "type": "uint256",
4441
+ "indexed": false,
4442
+ "internalType": "uint256"
4443
+ },
4444
+ {
4445
+ "name": "refundable",
4446
+ "type": "bool",
4447
+ "indexed": false,
4448
+ "internalType": "bool"
4449
+ },
4450
+ {
4451
+ "name": "apRewardCap",
4452
+ "type": "uint256",
4453
+ "indexed": false,
4454
+ "internalType": "uint256"
4455
+ }
4456
+ ],
4457
+ "anonymous": false
4458
+ },
4459
+ {
4460
+ "type": "event",
4461
+ "name": "Upgraded",
4462
+ "inputs": [
4463
+ {
4464
+ "name": "implementation",
4465
+ "type": "address",
4466
+ "indexed": true,
4467
+ "internalType": "address"
4468
+ }
4469
+ ],
4470
+ "anonymous": false
4471
+ },
4472
+ {
4473
+ "type": "error",
4474
+ "name": "AddressEmptyCode",
4475
+ "inputs": [
4476
+ {
4477
+ "name": "target",
4478
+ "type": "address",
4479
+ "internalType": "address"
4480
+ }
4481
+ ]
4482
+ },
4483
+ {
4484
+ "type": "error",
4485
+ "name": "AgentNotActive",
4486
+ "inputs": [
4487
+ {
4488
+ "name": "agentId",
4489
+ "type": "uint256",
4490
+ "internalType": "uint256"
4491
+ }
4492
+ ]
4493
+ },
4494
+ {
4495
+ "type": "error",
4496
+ "name": "BetBelowMinimum",
4497
+ "inputs": [
4498
+ {
4499
+ "name": "amountG",
4500
+ "type": "uint256",
4501
+ "internalType": "uint256"
4502
+ },
4503
+ {
4504
+ "name": "minimumG",
4505
+ "type": "uint256",
4506
+ "internalType": "uint256"
4507
+ }
4508
+ ]
4509
+ },
4510
+ {
4511
+ "type": "error",
4512
+ "name": "ERC1967InvalidImplementation",
4513
+ "inputs": [
4514
+ {
4515
+ "name": "implementation",
4516
+ "type": "address",
4517
+ "internalType": "address"
4518
+ }
4519
+ ]
4520
+ },
4521
+ {
4522
+ "type": "error",
4523
+ "name": "ERC1967NonPayable",
4524
+ "inputs": []
4525
+ },
4526
+ {
4527
+ "type": "error",
4528
+ "name": "FailedCall",
4529
+ "inputs": []
4530
+ },
4531
+ {
4532
+ "type": "error",
4533
+ "name": "InvalidInitialization",
4534
+ "inputs": []
4535
+ },
4536
+ {
4537
+ "type": "error",
4538
+ "name": "InvalidOption",
4539
+ "inputs": [
4540
+ {
4541
+ "name": "optionIndex",
4542
+ "type": "uint256",
4543
+ "internalType": "uint256"
4544
+ }
4545
+ ]
4546
+ },
4547
+ {
4548
+ "type": "error",
4549
+ "name": "MarketAlreadyOpened",
4550
+ "inputs": [
4551
+ {
4552
+ "name": "round",
4553
+ "type": "uint256",
4554
+ "internalType": "uint256"
4555
+ },
4556
+ {
4557
+ "name": "marketId",
4558
+ "type": "uint256",
4559
+ "internalType": "uint256"
4560
+ }
4561
+ ]
4562
+ },
4563
+ {
4564
+ "type": "error",
4565
+ "name": "MarketAlreadyRequested",
4566
+ "inputs": [
4567
+ {
4568
+ "name": "round",
4569
+ "type": "uint256",
4570
+ "internalType": "uint256"
4571
+ }
4572
+ ]
4573
+ },
4574
+ {
4575
+ "type": "error",
4576
+ "name": "MarketClosed",
4577
+ "inputs": [
4578
+ {
4579
+ "name": "marketId",
4580
+ "type": "uint256",
4581
+ "internalType": "uint256"
4582
+ }
4583
+ ]
4584
+ },
4585
+ {
4586
+ "type": "error",
4587
+ "name": "MarketNotFound",
4588
+ "inputs": [
4589
+ {
4590
+ "name": "marketId",
4591
+ "type": "uint256",
4592
+ "internalType": "uint256"
4593
+ }
4594
+ ]
4595
+ },
4596
+ {
4597
+ "type": "error",
4598
+ "name": "MarketNotSettleable",
4599
+ "inputs": [
4600
+ {
4601
+ "name": "marketId",
4602
+ "type": "uint256",
4603
+ "internalType": "uint256"
4604
+ }
4605
+ ]
4606
+ },
4607
+ {
4608
+ "type": "error",
4609
+ "name": "MarketRequestNotFound",
4610
+ "inputs": [
4611
+ {
4612
+ "name": "round",
4613
+ "type": "uint256",
4614
+ "internalType": "uint256"
4615
+ }
4616
+ ]
4617
+ },
4618
+ {
4619
+ "type": "error",
4620
+ "name": "MarketRequestStale",
4621
+ "inputs": [
4622
+ {
4623
+ "name": "requestedRound",
4624
+ "type": "uint256",
4625
+ "internalType": "uint256"
4626
+ },
4627
+ {
4628
+ "name": "currentRound",
4629
+ "type": "uint256",
4630
+ "internalType": "uint256"
4631
+ }
4632
+ ]
4633
+ },
4634
+ {
4635
+ "type": "error",
4636
+ "name": "MarketRequestTooLate",
4637
+ "inputs": [
4638
+ {
4639
+ "name": "round",
4640
+ "type": "uint256",
4641
+ "internalType": "uint256"
4642
+ },
4643
+ {
4644
+ "name": "targetBlock",
4645
+ "type": "uint256",
4646
+ "internalType": "uint256"
4647
+ }
4648
+ ]
4649
+ },
4650
+ {
4651
+ "type": "error",
4652
+ "name": "MulDivOverflow",
4653
+ "inputs": []
4654
+ },
4655
+ {
4656
+ "type": "error",
4657
+ "name": "NoOwnedTiles",
4658
+ "inputs": []
4659
+ },
4660
+ {
4661
+ "type": "error",
4662
+ "name": "NotAuthorized",
4663
+ "inputs": [
4664
+ {
4665
+ "name": "caller",
4666
+ "type": "address",
4667
+ "internalType": "address"
4668
+ }
4669
+ ]
4670
+ },
4671
+ {
4672
+ "type": "error",
4673
+ "name": "NotInitializing",
4674
+ "inputs": []
4675
+ },
4676
+ {
4677
+ "type": "error",
4678
+ "name": "PositionAlreadyClaimed",
4679
+ "inputs": [
4680
+ {
4681
+ "name": "marketId",
4682
+ "type": "uint256",
4683
+ "internalType": "uint256"
4684
+ },
4685
+ {
4686
+ "name": "bettor",
4687
+ "type": "address",
4688
+ "internalType": "address"
4689
+ }
4690
+ ]
4691
+ },
4692
+ {
4693
+ "type": "error",
4694
+ "name": "PositionDidNotWin",
4695
+ "inputs": [
4696
+ {
4697
+ "name": "marketId",
4698
+ "type": "uint256",
4699
+ "internalType": "uint256"
4700
+ },
4701
+ {
4702
+ "name": "bettor",
4703
+ "type": "address",
4704
+ "internalType": "address"
4705
+ }
4706
+ ]
4707
+ },
4708
+ {
4709
+ "type": "error",
4710
+ "name": "PositionLocked",
4711
+ "inputs": [
4712
+ {
4713
+ "name": "agentId",
4714
+ "type": "uint256",
4715
+ "internalType": "uint256"
4716
+ },
4717
+ {
4718
+ "name": "optionIndex",
4719
+ "type": "uint256",
4720
+ "internalType": "uint256"
4721
+ }
4722
+ ]
4723
+ },
4724
+ {
4725
+ "type": "error",
4726
+ "name": "PositionNotFound",
4727
+ "inputs": [
4728
+ {
4729
+ "name": "marketId",
4730
+ "type": "uint256",
4731
+ "internalType": "uint256"
4732
+ },
4733
+ {
4734
+ "name": "bettor",
4735
+ "type": "address",
4736
+ "internalType": "address"
4737
+ }
4738
+ ]
4739
+ },
4740
+ {
4741
+ "type": "error",
4742
+ "name": "ReentrantCall",
4743
+ "inputs": []
4744
+ },
4745
+ {
4746
+ "type": "error",
4747
+ "name": "TargetTileNotOwned",
4748
+ "inputs": [
4749
+ {
4750
+ "name": "tileKey",
4751
+ "type": "uint64",
4752
+ "internalType": "uint64"
4753
+ }
4754
+ ]
4755
+ },
4756
+ {
4757
+ "type": "error",
4758
+ "name": "UUPSUnauthorizedCallContext",
4759
+ "inputs": []
4760
+ },
4761
+ {
4762
+ "type": "error",
4763
+ "name": "UUPSUnsupportedProxiableUUID",
4764
+ "inputs": [
4765
+ {
4766
+ "name": "slot",
4767
+ "type": "bytes32",
4768
+ "internalType": "bytes32"
4769
+ }
4770
+ ]
4771
+ },
4772
+ {
4773
+ "type": "error",
4774
+ "name": "ZeroAddress",
4775
+ "inputs": []
4776
+ }
4777
+ ];
4778
+ export const erc20Abi = [
4779
+ {
4780
+ "type": "function",
4781
+ "name": "balanceOf",
4782
+ "stateMutability": "view",
4783
+ "inputs": [
4784
+ {
4785
+ "name": "account",
4786
+ "type": "address"
4787
+ }
4788
+ ],
4789
+ "outputs": [
4790
+ {
4791
+ "name": "",
4792
+ "type": "uint256"
4793
+ }
4794
+ ]
4795
+ },
4796
+ {
4797
+ "type": "function",
4798
+ "name": "allowance",
4799
+ "stateMutability": "view",
4800
+ "inputs": [
4801
+ {
4802
+ "name": "owner",
4803
+ "type": "address"
4804
+ },
4805
+ {
4806
+ "name": "spender",
4807
+ "type": "address"
4808
+ }
4809
+ ],
4810
+ "outputs": [
4811
+ {
4812
+ "name": "",
4813
+ "type": "uint256"
4814
+ }
4815
+ ]
4816
+ },
4817
+ {
4818
+ "type": "function",
4819
+ "name": "approve",
4820
+ "stateMutability": "nonpayable",
4821
+ "inputs": [
4822
+ {
4823
+ "name": "spender",
4824
+ "type": "address"
4825
+ },
4826
+ {
4827
+ "name": "amount",
4828
+ "type": "uint256"
4829
+ }
4830
+ ],
4831
+ "outputs": [
4832
+ {
4833
+ "name": "",
4834
+ "type": "bool"
4835
+ }
4836
+ ]
4837
+ },
4838
+ {
4839
+ "type": "function",
4840
+ "name": "decimals",
4841
+ "stateMutability": "view",
4842
+ "inputs": [],
4843
+ "outputs": [
4844
+ {
4845
+ "name": "",
4846
+ "type": "uint8"
4847
+ }
4848
+ ]
4849
+ }
4850
+ ];
4851
+ export const contractAbis = {
4852
+ router: routerAbi,
4853
+ rng: rngAbi,
4854
+ registry: registryAbi,
4855
+ ledger: ledgerAbi,
4856
+ escrow: escrowAbi,
4857
+ world: worldAbi,
4858
+ market: marketAbi,
4859
+ erc20: erc20Abi,
4860
+ };
4861
+ //# sourceMappingURL=abis.js.map