@oddmaki-protocol/sdk 0.1.0 → 0.1.3
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.
- package/README.md +5 -3
- package/dist/index.d.mts +1036 -278
- package/dist/index.d.ts +1036 -278
- package/dist/index.js +1232 -372
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1232 -372
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -10
package/dist/index.d.mts
CHANGED
|
@@ -10104,6 +10104,31 @@ var VenueFacet = [
|
|
|
10104
10104
|
],
|
|
10105
10105
|
stateMutability: "nonpayable"
|
|
10106
10106
|
},
|
|
10107
|
+
{
|
|
10108
|
+
type: "event",
|
|
10109
|
+
name: "VenueAccessControlUpdated",
|
|
10110
|
+
inputs: [
|
|
10111
|
+
{
|
|
10112
|
+
name: "venueId",
|
|
10113
|
+
type: "uint256",
|
|
10114
|
+
indexed: true,
|
|
10115
|
+
internalType: "uint256"
|
|
10116
|
+
},
|
|
10117
|
+
{
|
|
10118
|
+
name: "tradingAccessControl",
|
|
10119
|
+
type: "address",
|
|
10120
|
+
indexed: false,
|
|
10121
|
+
internalType: "address"
|
|
10122
|
+
},
|
|
10123
|
+
{
|
|
10124
|
+
name: "creationAccessControl",
|
|
10125
|
+
type: "address",
|
|
10126
|
+
indexed: false,
|
|
10127
|
+
internalType: "address"
|
|
10128
|
+
}
|
|
10129
|
+
],
|
|
10130
|
+
anonymous: false
|
|
10131
|
+
},
|
|
10107
10132
|
{
|
|
10108
10133
|
type: "event",
|
|
10109
10134
|
name: "VenueCreated",
|
|
@@ -10272,6 +10297,12 @@ var VenueFacet = [
|
|
|
10272
10297
|
inputs: [
|
|
10273
10298
|
]
|
|
10274
10299
|
},
|
|
10300
|
+
{
|
|
10301
|
+
type: "error",
|
|
10302
|
+
name: "InvalidTickSize",
|
|
10303
|
+
inputs: [
|
|
10304
|
+
]
|
|
10305
|
+
},
|
|
10275
10306
|
{
|
|
10276
10307
|
type: "error",
|
|
10277
10308
|
name: "InvalidVenueFee",
|
|
@@ -10290,6 +10321,12 @@ var VenueFacet = [
|
|
|
10290
10321
|
inputs: [
|
|
10291
10322
|
]
|
|
10292
10323
|
},
|
|
10324
|
+
{
|
|
10325
|
+
type: "error",
|
|
10326
|
+
name: "ProtocolPaused",
|
|
10327
|
+
inputs: [
|
|
10328
|
+
]
|
|
10329
|
+
},
|
|
10293
10330
|
{
|
|
10294
10331
|
type: "error",
|
|
10295
10332
|
name: "VenueInactive",
|
|
@@ -10301,6 +10338,12 @@ var VenueFacet = [
|
|
|
10301
10338
|
name: "VenueNotFound",
|
|
10302
10339
|
inputs: [
|
|
10303
10340
|
]
|
|
10341
|
+
},
|
|
10342
|
+
{
|
|
10343
|
+
type: "error",
|
|
10344
|
+
name: "VenueSuspended",
|
|
10345
|
+
inputs: [
|
|
10346
|
+
]
|
|
10304
10347
|
}
|
|
10305
10348
|
];
|
|
10306
10349
|
|
|
@@ -10572,6 +10615,16 @@ var MarketsFacet = [
|
|
|
10572
10615
|
name: "tickSize",
|
|
10573
10616
|
type: "uint256",
|
|
10574
10617
|
internalType: "uint256"
|
|
10618
|
+
},
|
|
10619
|
+
{
|
|
10620
|
+
name: "venueFeeBps",
|
|
10621
|
+
type: "uint256",
|
|
10622
|
+
internalType: "uint256"
|
|
10623
|
+
},
|
|
10624
|
+
{
|
|
10625
|
+
name: "creatorFeeBps",
|
|
10626
|
+
type: "uint256",
|
|
10627
|
+
internalType: "uint256"
|
|
10575
10628
|
}
|
|
10576
10629
|
]
|
|
10577
10630
|
}
|
|
@@ -10776,14 +10829,8 @@ var MarketsFacet = [
|
|
|
10776
10829
|
},
|
|
10777
10830
|
{
|
|
10778
10831
|
type: "event",
|
|
10779
|
-
name: "
|
|
10832
|
+
name: "MarketCreationFeeCollected",
|
|
10780
10833
|
inputs: [
|
|
10781
|
-
{
|
|
10782
|
-
name: "marketId",
|
|
10783
|
-
type: "uint256",
|
|
10784
|
-
indexed: true,
|
|
10785
|
-
internalType: "uint256"
|
|
10786
|
-
},
|
|
10787
10834
|
{
|
|
10788
10835
|
name: "venueId",
|
|
10789
10836
|
type: "uint256",
|
|
@@ -10791,17 +10838,29 @@ var MarketsFacet = [
|
|
|
10791
10838
|
internalType: "uint256"
|
|
10792
10839
|
},
|
|
10793
10840
|
{
|
|
10794
|
-
name: "
|
|
10841
|
+
name: "payer",
|
|
10795
10842
|
type: "address",
|
|
10796
10843
|
indexed: true,
|
|
10797
10844
|
internalType: "address"
|
|
10845
|
+
},
|
|
10846
|
+
{
|
|
10847
|
+
name: "protocolShare",
|
|
10848
|
+
type: "uint256",
|
|
10849
|
+
indexed: false,
|
|
10850
|
+
internalType: "uint256"
|
|
10851
|
+
},
|
|
10852
|
+
{
|
|
10853
|
+
name: "venueShare",
|
|
10854
|
+
type: "uint256",
|
|
10855
|
+
indexed: false,
|
|
10856
|
+
internalType: "uint256"
|
|
10798
10857
|
}
|
|
10799
10858
|
],
|
|
10800
10859
|
anonymous: false
|
|
10801
10860
|
},
|
|
10802
10861
|
{
|
|
10803
10862
|
type: "event",
|
|
10804
|
-
name: "
|
|
10863
|
+
name: "MarketPausedEvent",
|
|
10805
10864
|
inputs: [
|
|
10806
10865
|
{
|
|
10807
10866
|
name: "marketId",
|
|
@@ -10826,31 +10885,25 @@ var MarketsFacet = [
|
|
|
10826
10885
|
},
|
|
10827
10886
|
{
|
|
10828
10887
|
type: "event",
|
|
10829
|
-
name: "
|
|
10888
|
+
name: "MarketUnpausedEvent",
|
|
10830
10889
|
inputs: [
|
|
10831
10890
|
{
|
|
10832
|
-
name: "
|
|
10891
|
+
name: "marketId",
|
|
10833
10892
|
type: "uint256",
|
|
10834
10893
|
indexed: true,
|
|
10835
10894
|
internalType: "uint256"
|
|
10836
10895
|
},
|
|
10837
10896
|
{
|
|
10838
|
-
name: "
|
|
10839
|
-
type: "address",
|
|
10840
|
-
indexed: true,
|
|
10841
|
-
internalType: "address"
|
|
10842
|
-
},
|
|
10843
|
-
{
|
|
10844
|
-
name: "protocolShare",
|
|
10897
|
+
name: "venueId",
|
|
10845
10898
|
type: "uint256",
|
|
10846
|
-
indexed:
|
|
10899
|
+
indexed: true,
|
|
10847
10900
|
internalType: "uint256"
|
|
10848
10901
|
},
|
|
10849
10902
|
{
|
|
10850
|
-
name: "
|
|
10851
|
-
type: "
|
|
10852
|
-
indexed:
|
|
10853
|
-
internalType: "
|
|
10903
|
+
name: "operator",
|
|
10904
|
+
type: "address",
|
|
10905
|
+
indexed: true,
|
|
10906
|
+
internalType: "address"
|
|
10854
10907
|
}
|
|
10855
10908
|
],
|
|
10856
10909
|
anonymous: false
|
|
@@ -10936,6 +10989,12 @@ var MarketsFacet = [
|
|
|
10936
10989
|
],
|
|
10937
10990
|
anonymous: false
|
|
10938
10991
|
},
|
|
10992
|
+
{
|
|
10993
|
+
type: "error",
|
|
10994
|
+
name: "CollateralNotWhitelisted",
|
|
10995
|
+
inputs: [
|
|
10996
|
+
]
|
|
10997
|
+
},
|
|
10939
10998
|
{
|
|
10940
10999
|
type: "error",
|
|
10941
11000
|
name: "CreationAccessDenied",
|
|
@@ -10992,49 +11051,49 @@ var MarketsFacet = [
|
|
|
10992
11051
|
},
|
|
10993
11052
|
{
|
|
10994
11053
|
type: "error",
|
|
10995
|
-
name: "
|
|
11054
|
+
name: "MarketGroupNotFound",
|
|
10996
11055
|
inputs: [
|
|
10997
11056
|
]
|
|
10998
11057
|
},
|
|
10999
11058
|
{
|
|
11000
11059
|
type: "error",
|
|
11001
|
-
name: "
|
|
11060
|
+
name: "MarketNotPlaceholder",
|
|
11002
11061
|
inputs: [
|
|
11003
11062
|
]
|
|
11004
11063
|
},
|
|
11005
11064
|
{
|
|
11006
11065
|
type: "error",
|
|
11007
|
-
name: "
|
|
11066
|
+
name: "NotGroupCreator",
|
|
11008
11067
|
inputs: [
|
|
11009
11068
|
]
|
|
11010
11069
|
},
|
|
11011
11070
|
{
|
|
11012
11071
|
type: "error",
|
|
11013
|
-
name: "
|
|
11072
|
+
name: "OnlyVenueOperator",
|
|
11014
11073
|
inputs: [
|
|
11015
11074
|
]
|
|
11016
11075
|
},
|
|
11017
11076
|
{
|
|
11018
11077
|
type: "error",
|
|
11019
|
-
name: "
|
|
11078
|
+
name: "OracleAlreadyExists",
|
|
11020
11079
|
inputs: [
|
|
11021
11080
|
]
|
|
11022
11081
|
},
|
|
11023
11082
|
{
|
|
11024
11083
|
type: "error",
|
|
11025
|
-
name: "
|
|
11084
|
+
name: "OracleCtfNotSet",
|
|
11026
11085
|
inputs: [
|
|
11027
11086
|
]
|
|
11028
11087
|
},
|
|
11029
11088
|
{
|
|
11030
11089
|
type: "error",
|
|
11031
|
-
name: "
|
|
11090
|
+
name: "OracleNotInitialized",
|
|
11032
11091
|
inputs: [
|
|
11033
11092
|
]
|
|
11034
11093
|
},
|
|
11035
11094
|
{
|
|
11036
11095
|
type: "error",
|
|
11037
|
-
name: "
|
|
11096
|
+
name: "ProtocolPaused",
|
|
11038
11097
|
inputs: [
|
|
11039
11098
|
]
|
|
11040
11099
|
},
|
|
@@ -11079,6 +11138,12 @@ var MarketsFacet = [
|
|
|
11079
11138
|
name: "VenueNotFound",
|
|
11080
11139
|
inputs: [
|
|
11081
11140
|
]
|
|
11141
|
+
},
|
|
11142
|
+
{
|
|
11143
|
+
type: "error",
|
|
11144
|
+
name: "VenueSuspended",
|
|
11145
|
+
inputs: [
|
|
11146
|
+
]
|
|
11082
11147
|
}
|
|
11083
11148
|
];
|
|
11084
11149
|
|
|
@@ -11097,6 +11162,30 @@ var LimitOrdersFacet = [
|
|
|
11097
11162
|
],
|
|
11098
11163
|
stateMutability: "nonpayable"
|
|
11099
11164
|
},
|
|
11165
|
+
{
|
|
11166
|
+
type: "function",
|
|
11167
|
+
name: "cancelOrdersOnResolvedMarket",
|
|
11168
|
+
inputs: [
|
|
11169
|
+
{
|
|
11170
|
+
name: "marketId",
|
|
11171
|
+
type: "uint256",
|
|
11172
|
+
internalType: "uint256"
|
|
11173
|
+
},
|
|
11174
|
+
{
|
|
11175
|
+
name: "orderIds",
|
|
11176
|
+
type: "uint256[]",
|
|
11177
|
+
internalType: "uint256[]"
|
|
11178
|
+
}
|
|
11179
|
+
],
|
|
11180
|
+
outputs: [
|
|
11181
|
+
{
|
|
11182
|
+
name: "cancelledCount",
|
|
11183
|
+
type: "uint256",
|
|
11184
|
+
internalType: "uint256"
|
|
11185
|
+
}
|
|
11186
|
+
],
|
|
11187
|
+
stateMutability: "nonpayable"
|
|
11188
|
+
},
|
|
11100
11189
|
{
|
|
11101
11190
|
type: "function",
|
|
11102
11191
|
name: "expireOrders",
|
|
@@ -11413,6 +11502,12 @@ var LimitOrdersFacet = [
|
|
|
11413
11502
|
inputs: [
|
|
11414
11503
|
]
|
|
11415
11504
|
},
|
|
11505
|
+
{
|
|
11506
|
+
type: "error",
|
|
11507
|
+
name: "BatchTooLarge",
|
|
11508
|
+
inputs: [
|
|
11509
|
+
]
|
|
11510
|
+
},
|
|
11416
11511
|
{
|
|
11417
11512
|
type: "error",
|
|
11418
11513
|
name: "InvalidOutcome",
|
|
@@ -11439,19 +11534,19 @@ var LimitOrdersFacet = [
|
|
|
11439
11534
|
},
|
|
11440
11535
|
{
|
|
11441
11536
|
type: "error",
|
|
11442
|
-
name: "
|
|
11537
|
+
name: "MarketNotResolved",
|
|
11443
11538
|
inputs: [
|
|
11444
11539
|
]
|
|
11445
11540
|
},
|
|
11446
11541
|
{
|
|
11447
11542
|
type: "error",
|
|
11448
|
-
name: "
|
|
11543
|
+
name: "MarketPaused",
|
|
11449
11544
|
inputs: [
|
|
11450
11545
|
]
|
|
11451
11546
|
},
|
|
11452
11547
|
{
|
|
11453
11548
|
type: "error",
|
|
11454
|
-
name: "
|
|
11549
|
+
name: "OrderExpired",
|
|
11455
11550
|
inputs: [
|
|
11456
11551
|
]
|
|
11457
11552
|
},
|
|
@@ -11461,6 +11556,30 @@ var LimitOrdersFacet = [
|
|
|
11461
11556
|
inputs: [
|
|
11462
11557
|
]
|
|
11463
11558
|
},
|
|
11559
|
+
{
|
|
11560
|
+
type: "error",
|
|
11561
|
+
name: "ProtocolPaused",
|
|
11562
|
+
inputs: [
|
|
11563
|
+
]
|
|
11564
|
+
},
|
|
11565
|
+
{
|
|
11566
|
+
type: "error",
|
|
11567
|
+
name: "TradingAccessDenied",
|
|
11568
|
+
inputs: [
|
|
11569
|
+
]
|
|
11570
|
+
},
|
|
11571
|
+
{
|
|
11572
|
+
type: "error",
|
|
11573
|
+
name: "TransferFailed",
|
|
11574
|
+
inputs: [
|
|
11575
|
+
]
|
|
11576
|
+
},
|
|
11577
|
+
{
|
|
11578
|
+
type: "error",
|
|
11579
|
+
name: "TransferFromFailed",
|
|
11580
|
+
inputs: [
|
|
11581
|
+
]
|
|
11582
|
+
},
|
|
11464
11583
|
{
|
|
11465
11584
|
type: "error",
|
|
11466
11585
|
name: "VenueInactive",
|
|
@@ -11472,6 +11591,12 @@ var LimitOrdersFacet = [
|
|
|
11472
11591
|
name: "VenueNotFound",
|
|
11473
11592
|
inputs: [
|
|
11474
11593
|
]
|
|
11594
|
+
},
|
|
11595
|
+
{
|
|
11596
|
+
type: "error",
|
|
11597
|
+
name: "VenueSuspended",
|
|
11598
|
+
inputs: [
|
|
11599
|
+
]
|
|
11475
11600
|
}
|
|
11476
11601
|
];
|
|
11477
11602
|
|
|
@@ -11635,55 +11760,6 @@ var MatchingFacet = [
|
|
|
11635
11760
|
],
|
|
11636
11761
|
anonymous: false
|
|
11637
11762
|
},
|
|
11638
|
-
{
|
|
11639
|
-
type: "event",
|
|
11640
|
-
name: "TradeExecuted",
|
|
11641
|
-
inputs: [
|
|
11642
|
-
{
|
|
11643
|
-
name: "marketId",
|
|
11644
|
-
type: "uint256",
|
|
11645
|
-
indexed: true,
|
|
11646
|
-
internalType: "uint256"
|
|
11647
|
-
},
|
|
11648
|
-
{
|
|
11649
|
-
name: "outcomeId",
|
|
11650
|
-
type: "uint256",
|
|
11651
|
-
indexed: true,
|
|
11652
|
-
internalType: "uint256"
|
|
11653
|
-
},
|
|
11654
|
-
{
|
|
11655
|
-
name: "fillId",
|
|
11656
|
-
type: "uint256",
|
|
11657
|
-
indexed: true,
|
|
11658
|
-
internalType: "uint256"
|
|
11659
|
-
},
|
|
11660
|
-
{
|
|
11661
|
-
name: "priceTick",
|
|
11662
|
-
type: "uint256",
|
|
11663
|
-
indexed: false,
|
|
11664
|
-
internalType: "uint256"
|
|
11665
|
-
},
|
|
11666
|
-
{
|
|
11667
|
-
name: "quantity",
|
|
11668
|
-
type: "uint256",
|
|
11669
|
-
indexed: false,
|
|
11670
|
-
internalType: "uint256"
|
|
11671
|
-
},
|
|
11672
|
-
{
|
|
11673
|
-
name: "cumulativeVolume",
|
|
11674
|
-
type: "uint256",
|
|
11675
|
-
indexed: false,
|
|
11676
|
-
internalType: "uint256"
|
|
11677
|
-
},
|
|
11678
|
-
{
|
|
11679
|
-
name: "timestamp",
|
|
11680
|
-
type: "uint256",
|
|
11681
|
-
indexed: false,
|
|
11682
|
-
internalType: "uint256"
|
|
11683
|
-
}
|
|
11684
|
-
],
|
|
11685
|
-
anonymous: false
|
|
11686
|
-
},
|
|
11687
11763
|
{
|
|
11688
11764
|
type: "event",
|
|
11689
11765
|
name: "OrderDeleted",
|
|
@@ -11767,7 +11843,7 @@ var MatchingFacet = [
|
|
|
11767
11843
|
},
|
|
11768
11844
|
{
|
|
11769
11845
|
type: "event",
|
|
11770
|
-
name: "
|
|
11846
|
+
name: "SurplusRouted",
|
|
11771
11847
|
inputs: [
|
|
11772
11848
|
{
|
|
11773
11849
|
name: "marketId",
|
|
@@ -11776,19 +11852,13 @@ var MatchingFacet = [
|
|
|
11776
11852
|
internalType: "uint256"
|
|
11777
11853
|
},
|
|
11778
11854
|
{
|
|
11779
|
-
name: "
|
|
11855
|
+
name: "fillId",
|
|
11780
11856
|
type: "uint256",
|
|
11781
11857
|
indexed: true,
|
|
11782
11858
|
internalType: "uint256"
|
|
11783
11859
|
},
|
|
11784
11860
|
{
|
|
11785
|
-
name: "
|
|
11786
|
-
type: "uint8",
|
|
11787
|
-
indexed: false,
|
|
11788
|
-
internalType: "enum Side"
|
|
11789
|
-
},
|
|
11790
|
-
{
|
|
11791
|
-
name: "bestTick",
|
|
11861
|
+
name: "amount",
|
|
11792
11862
|
type: "uint256",
|
|
11793
11863
|
indexed: false,
|
|
11794
11864
|
internalType: "uint256"
|
|
@@ -11797,17 +11867,183 @@ var MatchingFacet = [
|
|
|
11797
11867
|
anonymous: false
|
|
11798
11868
|
},
|
|
11799
11869
|
{
|
|
11800
|
-
type: "
|
|
11801
|
-
name: "
|
|
11870
|
+
type: "event",
|
|
11871
|
+
name: "SurplusRouted",
|
|
11802
11872
|
inputs: [
|
|
11803
|
-
|
|
11804
|
-
|
|
11805
|
-
|
|
11873
|
+
{
|
|
11874
|
+
name: "marketId",
|
|
11875
|
+
type: "uint256",
|
|
11876
|
+
indexed: true,
|
|
11877
|
+
internalType: "uint256"
|
|
11878
|
+
},
|
|
11879
|
+
{
|
|
11880
|
+
name: "fillId",
|
|
11881
|
+
type: "uint256",
|
|
11882
|
+
indexed: true,
|
|
11883
|
+
internalType: "uint256"
|
|
11884
|
+
},
|
|
11885
|
+
{
|
|
11886
|
+
name: "amount",
|
|
11887
|
+
type: "uint256",
|
|
11888
|
+
indexed: false,
|
|
11889
|
+
internalType: "uint256"
|
|
11890
|
+
}
|
|
11891
|
+
],
|
|
11892
|
+
anonymous: false
|
|
11893
|
+
},
|
|
11894
|
+
{
|
|
11895
|
+
type: "event",
|
|
11896
|
+
name: "TopOfBookChanged",
|
|
11897
|
+
inputs: [
|
|
11898
|
+
{
|
|
11899
|
+
name: "marketId",
|
|
11900
|
+
type: "uint256",
|
|
11901
|
+
indexed: true,
|
|
11902
|
+
internalType: "uint256"
|
|
11903
|
+
},
|
|
11904
|
+
{
|
|
11905
|
+
name: "outcomeId",
|
|
11906
|
+
type: "uint256",
|
|
11907
|
+
indexed: true,
|
|
11908
|
+
internalType: "uint256"
|
|
11909
|
+
},
|
|
11910
|
+
{
|
|
11911
|
+
name: "side",
|
|
11912
|
+
type: "uint8",
|
|
11913
|
+
indexed: false,
|
|
11914
|
+
internalType: "enum Side"
|
|
11915
|
+
},
|
|
11916
|
+
{
|
|
11917
|
+
name: "bestTick",
|
|
11918
|
+
type: "uint256",
|
|
11919
|
+
indexed: false,
|
|
11920
|
+
internalType: "uint256"
|
|
11921
|
+
}
|
|
11922
|
+
],
|
|
11923
|
+
anonymous: false
|
|
11924
|
+
},
|
|
11925
|
+
{
|
|
11926
|
+
type: "event",
|
|
11927
|
+
name: "TradeExecuted",
|
|
11928
|
+
inputs: [
|
|
11929
|
+
{
|
|
11930
|
+
name: "marketId",
|
|
11931
|
+
type: "uint256",
|
|
11932
|
+
indexed: true,
|
|
11933
|
+
internalType: "uint256"
|
|
11934
|
+
},
|
|
11935
|
+
{
|
|
11936
|
+
name: "outcomeId",
|
|
11937
|
+
type: "uint256",
|
|
11938
|
+
indexed: true,
|
|
11939
|
+
internalType: "uint256"
|
|
11940
|
+
},
|
|
11941
|
+
{
|
|
11942
|
+
name: "fillId",
|
|
11943
|
+
type: "uint256",
|
|
11944
|
+
indexed: true,
|
|
11945
|
+
internalType: "uint256"
|
|
11946
|
+
},
|
|
11947
|
+
{
|
|
11948
|
+
name: "priceTick",
|
|
11949
|
+
type: "uint256",
|
|
11950
|
+
indexed: false,
|
|
11951
|
+
internalType: "uint256"
|
|
11952
|
+
},
|
|
11953
|
+
{
|
|
11954
|
+
name: "quantity",
|
|
11955
|
+
type: "uint256",
|
|
11956
|
+
indexed: false,
|
|
11957
|
+
internalType: "uint256"
|
|
11958
|
+
},
|
|
11959
|
+
{
|
|
11960
|
+
name: "cumulativeVolume",
|
|
11961
|
+
type: "uint256",
|
|
11962
|
+
indexed: false,
|
|
11963
|
+
internalType: "uint256"
|
|
11964
|
+
},
|
|
11965
|
+
{
|
|
11966
|
+
name: "timestamp",
|
|
11967
|
+
type: "uint256",
|
|
11968
|
+
indexed: false,
|
|
11969
|
+
internalType: "uint256"
|
|
11970
|
+
}
|
|
11971
|
+
],
|
|
11972
|
+
anonymous: false
|
|
11973
|
+
},
|
|
11974
|
+
{
|
|
11975
|
+
type: "event",
|
|
11976
|
+
name: "TradeExecuted",
|
|
11977
|
+
inputs: [
|
|
11978
|
+
{
|
|
11979
|
+
name: "marketId",
|
|
11980
|
+
type: "uint256",
|
|
11981
|
+
indexed: true,
|
|
11982
|
+
internalType: "uint256"
|
|
11983
|
+
},
|
|
11984
|
+
{
|
|
11985
|
+
name: "outcomeId",
|
|
11986
|
+
type: "uint256",
|
|
11987
|
+
indexed: true,
|
|
11988
|
+
internalType: "uint256"
|
|
11989
|
+
},
|
|
11990
|
+
{
|
|
11991
|
+
name: "fillId",
|
|
11992
|
+
type: "uint256",
|
|
11993
|
+
indexed: true,
|
|
11994
|
+
internalType: "uint256"
|
|
11995
|
+
},
|
|
11996
|
+
{
|
|
11997
|
+
name: "priceTick",
|
|
11998
|
+
type: "uint256",
|
|
11999
|
+
indexed: false,
|
|
12000
|
+
internalType: "uint256"
|
|
12001
|
+
},
|
|
12002
|
+
{
|
|
12003
|
+
name: "quantity",
|
|
12004
|
+
type: "uint256",
|
|
12005
|
+
indexed: false,
|
|
12006
|
+
internalType: "uint256"
|
|
12007
|
+
},
|
|
12008
|
+
{
|
|
12009
|
+
name: "cumulativeVolume",
|
|
12010
|
+
type: "uint256",
|
|
12011
|
+
indexed: false,
|
|
12012
|
+
internalType: "uint256"
|
|
12013
|
+
},
|
|
12014
|
+
{
|
|
12015
|
+
name: "timestamp",
|
|
12016
|
+
type: "uint256",
|
|
12017
|
+
indexed: false,
|
|
12018
|
+
internalType: "uint256"
|
|
12019
|
+
}
|
|
12020
|
+
],
|
|
12021
|
+
anonymous: false
|
|
12022
|
+
},
|
|
12023
|
+
{
|
|
12024
|
+
type: "error",
|
|
12025
|
+
name: "ApproveFailed",
|
|
12026
|
+
inputs: [
|
|
12027
|
+
]
|
|
12028
|
+
},
|
|
12029
|
+
{
|
|
11806
12030
|
type: "error",
|
|
11807
12031
|
name: "MarketNotActive",
|
|
11808
12032
|
inputs: [
|
|
11809
12033
|
]
|
|
11810
12034
|
},
|
|
12035
|
+
{
|
|
12036
|
+
type: "error",
|
|
12037
|
+
name: "MarketPaused",
|
|
12038
|
+
inputs: [
|
|
12039
|
+
]
|
|
12040
|
+
},
|
|
12041
|
+
{
|
|
12042
|
+
type: "error",
|
|
12043
|
+
name: "ProtocolPaused",
|
|
12044
|
+
inputs: [
|
|
12045
|
+
]
|
|
12046
|
+
},
|
|
11811
12047
|
{
|
|
11812
12048
|
type: "error",
|
|
11813
12049
|
name: "TransferFailed",
|
|
@@ -11825,6 +12061,12 @@ var MatchingFacet = [
|
|
|
11825
12061
|
name: "VenueNotFound",
|
|
11826
12062
|
inputs: [
|
|
11827
12063
|
]
|
|
12064
|
+
},
|
|
12065
|
+
{
|
|
12066
|
+
type: "error",
|
|
12067
|
+
name: "VenueSuspended",
|
|
12068
|
+
inputs: [
|
|
12069
|
+
]
|
|
11828
12070
|
}
|
|
11829
12071
|
];
|
|
11830
12072
|
|
|
@@ -12429,6 +12671,12 @@ var MarketGroupFacet = [
|
|
|
12429
12671
|
],
|
|
12430
12672
|
anonymous: false
|
|
12431
12673
|
},
|
|
12674
|
+
{
|
|
12675
|
+
type: "error",
|
|
12676
|
+
name: "CollateralNotWhitelisted",
|
|
12677
|
+
inputs: [
|
|
12678
|
+
]
|
|
12679
|
+
},
|
|
12432
12680
|
{
|
|
12433
12681
|
type: "error",
|
|
12434
12682
|
name: "CreationAccessDenied",
|
|
@@ -12453,6 +12701,12 @@ var MarketGroupFacet = [
|
|
|
12453
12701
|
inputs: [
|
|
12454
12702
|
]
|
|
12455
12703
|
},
|
|
12704
|
+
{
|
|
12705
|
+
type: "error",
|
|
12706
|
+
name: "InvalidTickSize",
|
|
12707
|
+
inputs: [
|
|
12708
|
+
]
|
|
12709
|
+
},
|
|
12456
12710
|
{
|
|
12457
12711
|
type: "error",
|
|
12458
12712
|
name: "MarketGroupNotFound",
|
|
@@ -12465,6 +12719,12 @@ var MarketGroupFacet = [
|
|
|
12465
12719
|
inputs: [
|
|
12466
12720
|
]
|
|
12467
12721
|
},
|
|
12722
|
+
{
|
|
12723
|
+
type: "error",
|
|
12724
|
+
name: "ProtocolPaused",
|
|
12725
|
+
inputs: [
|
|
12726
|
+
]
|
|
12727
|
+
},
|
|
12468
12728
|
{
|
|
12469
12729
|
type: "error",
|
|
12470
12730
|
name: "TooManyTags",
|
|
@@ -12488,6 +12748,12 @@ var MarketGroupFacet = [
|
|
|
12488
12748
|
name: "VenueNotFound",
|
|
12489
12749
|
inputs: [
|
|
12490
12750
|
]
|
|
12751
|
+
},
|
|
12752
|
+
{
|
|
12753
|
+
type: "error",
|
|
12754
|
+
name: "VenueSuspended",
|
|
12755
|
+
inputs: [
|
|
12756
|
+
]
|
|
12491
12757
|
}
|
|
12492
12758
|
];
|
|
12493
12759
|
|
|
@@ -12553,6 +12819,67 @@ var MarketOrdersFacet = [
|
|
|
12553
12819
|
],
|
|
12554
12820
|
stateMutability: "nonpayable"
|
|
12555
12821
|
},
|
|
12822
|
+
{
|
|
12823
|
+
type: "function",
|
|
12824
|
+
name: "placeMarketSell",
|
|
12825
|
+
inputs: [
|
|
12826
|
+
{
|
|
12827
|
+
name: "marketId",
|
|
12828
|
+
type: "uint256",
|
|
12829
|
+
internalType: "uint256"
|
|
12830
|
+
},
|
|
12831
|
+
{
|
|
12832
|
+
name: "outcomeId",
|
|
12833
|
+
type: "uint256",
|
|
12834
|
+
internalType: "uint256"
|
|
12835
|
+
},
|
|
12836
|
+
{
|
|
12837
|
+
name: "tokenAmount",
|
|
12838
|
+
type: "uint256",
|
|
12839
|
+
internalType: "uint256"
|
|
12840
|
+
},
|
|
12841
|
+
{
|
|
12842
|
+
name: "minPriceTick",
|
|
12843
|
+
type: "uint256",
|
|
12844
|
+
internalType: "uint256"
|
|
12845
|
+
},
|
|
12846
|
+
{
|
|
12847
|
+
name: "orderType",
|
|
12848
|
+
type: "uint8",
|
|
12849
|
+
internalType: "enum MarketOrderType"
|
|
12850
|
+
}
|
|
12851
|
+
],
|
|
12852
|
+
outputs: [
|
|
12853
|
+
{
|
|
12854
|
+
name: "result",
|
|
12855
|
+
type: "tuple",
|
|
12856
|
+
internalType: "struct MarketSellResult",
|
|
12857
|
+
components: [
|
|
12858
|
+
{
|
|
12859
|
+
name: "tokensSold",
|
|
12860
|
+
type: "uint256",
|
|
12861
|
+
internalType: "uint256"
|
|
12862
|
+
},
|
|
12863
|
+
{
|
|
12864
|
+
name: "avgPrice",
|
|
12865
|
+
type: "uint256",
|
|
12866
|
+
internalType: "uint256"
|
|
12867
|
+
},
|
|
12868
|
+
{
|
|
12869
|
+
name: "collateralReceived",
|
|
12870
|
+
type: "uint256",
|
|
12871
|
+
internalType: "uint256"
|
|
12872
|
+
},
|
|
12873
|
+
{
|
|
12874
|
+
name: "unsoldTokens",
|
|
12875
|
+
type: "uint256",
|
|
12876
|
+
internalType: "uint256"
|
|
12877
|
+
}
|
|
12878
|
+
]
|
|
12879
|
+
}
|
|
12880
|
+
],
|
|
12881
|
+
stateMutability: "nonpayable"
|
|
12882
|
+
},
|
|
12556
12883
|
{
|
|
12557
12884
|
type: "event",
|
|
12558
12885
|
name: "FeesDistributed",
|
|
@@ -12653,11 +12980,60 @@ var MarketOrdersFacet = [
|
|
|
12653
12980
|
},
|
|
12654
12981
|
{
|
|
12655
12982
|
type: "event",
|
|
12656
|
-
name: "
|
|
12983
|
+
name: "MarketSellExecuted",
|
|
12657
12984
|
inputs: [
|
|
12658
12985
|
{
|
|
12659
|
-
name: "
|
|
12660
|
-
type: "
|
|
12986
|
+
name: "seller",
|
|
12987
|
+
type: "address",
|
|
12988
|
+
indexed: true,
|
|
12989
|
+
internalType: "address"
|
|
12990
|
+
},
|
|
12991
|
+
{
|
|
12992
|
+
name: "marketId",
|
|
12993
|
+
type: "uint256",
|
|
12994
|
+
indexed: true,
|
|
12995
|
+
internalType: "uint256"
|
|
12996
|
+
},
|
|
12997
|
+
{
|
|
12998
|
+
name: "outcomeId",
|
|
12999
|
+
type: "uint256",
|
|
13000
|
+
indexed: false,
|
|
13001
|
+
internalType: "uint256"
|
|
13002
|
+
},
|
|
13003
|
+
{
|
|
13004
|
+
name: "tokensSold",
|
|
13005
|
+
type: "uint256",
|
|
13006
|
+
indexed: false,
|
|
13007
|
+
internalType: "uint256"
|
|
13008
|
+
},
|
|
13009
|
+
{
|
|
13010
|
+
name: "collateralReceived",
|
|
13011
|
+
type: "uint256",
|
|
13012
|
+
indexed: false,
|
|
13013
|
+
internalType: "uint256"
|
|
13014
|
+
},
|
|
13015
|
+
{
|
|
13016
|
+
name: "avgPrice",
|
|
13017
|
+
type: "uint256",
|
|
13018
|
+
indexed: false,
|
|
13019
|
+
internalType: "uint256"
|
|
13020
|
+
},
|
|
13021
|
+
{
|
|
13022
|
+
name: "unsoldTokens",
|
|
13023
|
+
type: "uint256",
|
|
13024
|
+
indexed: false,
|
|
13025
|
+
internalType: "uint256"
|
|
13026
|
+
}
|
|
13027
|
+
],
|
|
13028
|
+
anonymous: false
|
|
13029
|
+
},
|
|
13030
|
+
{
|
|
13031
|
+
type: "event",
|
|
13032
|
+
name: "OrderDeleted",
|
|
13033
|
+
inputs: [
|
|
13034
|
+
{
|
|
13035
|
+
name: "orderId",
|
|
13036
|
+
type: "uint256",
|
|
12661
13037
|
indexed: true,
|
|
12662
13038
|
internalType: "uint256"
|
|
12663
13039
|
}
|
|
@@ -12732,6 +13108,12 @@ var MarketOrdersFacet = [
|
|
|
12732
13108
|
inputs: [
|
|
12733
13109
|
]
|
|
12734
13110
|
},
|
|
13111
|
+
{
|
|
13112
|
+
type: "error",
|
|
13113
|
+
name: "InvalidMinPrice",
|
|
13114
|
+
inputs: [
|
|
13115
|
+
]
|
|
13116
|
+
},
|
|
12735
13117
|
{
|
|
12736
13118
|
type: "error",
|
|
12737
13119
|
name: "InvalidOutcome",
|
|
@@ -12746,19 +13128,37 @@ var MarketOrdersFacet = [
|
|
|
12746
13128
|
},
|
|
12747
13129
|
{
|
|
12748
13130
|
type: "error",
|
|
12749
|
-
name: "
|
|
13131
|
+
name: "MarketPaused",
|
|
12750
13132
|
inputs: [
|
|
12751
13133
|
]
|
|
12752
13134
|
},
|
|
12753
13135
|
{
|
|
12754
13136
|
type: "error",
|
|
12755
|
-
name: "
|
|
13137
|
+
name: "NoLiquidityAvailable",
|
|
12756
13138
|
inputs: [
|
|
12757
13139
|
]
|
|
12758
13140
|
},
|
|
12759
13141
|
{
|
|
12760
13142
|
type: "error",
|
|
12761
|
-
name: "
|
|
13143
|
+
name: "ProtocolPaused",
|
|
13144
|
+
inputs: [
|
|
13145
|
+
]
|
|
13146
|
+
},
|
|
13147
|
+
{
|
|
13148
|
+
type: "error",
|
|
13149
|
+
name: "TradingAccessDenied",
|
|
13150
|
+
inputs: [
|
|
13151
|
+
]
|
|
13152
|
+
},
|
|
13153
|
+
{
|
|
13154
|
+
type: "error",
|
|
13155
|
+
name: "TransferFailed",
|
|
13156
|
+
inputs: [
|
|
13157
|
+
]
|
|
13158
|
+
},
|
|
13159
|
+
{
|
|
13160
|
+
type: "error",
|
|
13161
|
+
name: "TransferFromFailed",
|
|
12762
13162
|
inputs: [
|
|
12763
13163
|
]
|
|
12764
13164
|
},
|
|
@@ -12773,6 +13173,24 @@ var MarketOrdersFacet = [
|
|
|
12773
13173
|
name: "VenueNotFound",
|
|
12774
13174
|
inputs: [
|
|
12775
13175
|
]
|
|
13176
|
+
},
|
|
13177
|
+
{
|
|
13178
|
+
type: "error",
|
|
13179
|
+
name: "VenueSuspended",
|
|
13180
|
+
inputs: [
|
|
13181
|
+
]
|
|
13182
|
+
},
|
|
13183
|
+
{
|
|
13184
|
+
type: "error",
|
|
13185
|
+
name: "ZeroCollateralAmount",
|
|
13186
|
+
inputs: [
|
|
13187
|
+
]
|
|
13188
|
+
},
|
|
13189
|
+
{
|
|
13190
|
+
type: "error",
|
|
13191
|
+
name: "ZeroTokenAmount",
|
|
13192
|
+
inputs: [
|
|
13193
|
+
]
|
|
12776
13194
|
}
|
|
12777
13195
|
];
|
|
12778
13196
|
|
|
@@ -12990,6 +13408,50 @@ var ResolutionFacet = [
|
|
|
12990
13408
|
],
|
|
12991
13409
|
anonymous: false
|
|
12992
13410
|
},
|
|
13411
|
+
{
|
|
13412
|
+
type: "event",
|
|
13413
|
+
name: "MarketGroupResolved",
|
|
13414
|
+
inputs: [
|
|
13415
|
+
{
|
|
13416
|
+
name: "groupId",
|
|
13417
|
+
type: "uint256",
|
|
13418
|
+
indexed: true,
|
|
13419
|
+
internalType: "uint256"
|
|
13420
|
+
},
|
|
13421
|
+
{
|
|
13422
|
+
name: "winningMarketId",
|
|
13423
|
+
type: "uint256",
|
|
13424
|
+
indexed: true,
|
|
13425
|
+
internalType: "uint256"
|
|
13426
|
+
}
|
|
13427
|
+
],
|
|
13428
|
+
anonymous: false
|
|
13429
|
+
},
|
|
13430
|
+
{
|
|
13431
|
+
type: "event",
|
|
13432
|
+
name: "MarketResolved",
|
|
13433
|
+
inputs: [
|
|
13434
|
+
{
|
|
13435
|
+
name: "marketId",
|
|
13436
|
+
type: "uint256",
|
|
13437
|
+
indexed: true,
|
|
13438
|
+
internalType: "uint256"
|
|
13439
|
+
},
|
|
13440
|
+
{
|
|
13441
|
+
name: "questionId",
|
|
13442
|
+
type: "bytes32",
|
|
13443
|
+
indexed: true,
|
|
13444
|
+
internalType: "bytes32"
|
|
13445
|
+
},
|
|
13446
|
+
{
|
|
13447
|
+
name: "outcome",
|
|
13448
|
+
type: "string",
|
|
13449
|
+
indexed: false,
|
|
13450
|
+
internalType: "string"
|
|
13451
|
+
}
|
|
13452
|
+
],
|
|
13453
|
+
anonymous: false
|
|
13454
|
+
},
|
|
12993
13455
|
{
|
|
12994
13456
|
type: "event",
|
|
12995
13457
|
name: "MarketResolved",
|
|
@@ -13176,6 +13638,69 @@ var VaultFacet = [
|
|
|
13176
13638
|
],
|
|
13177
13639
|
stateMutability: "nonpayable"
|
|
13178
13640
|
},
|
|
13641
|
+
{
|
|
13642
|
+
type: "event",
|
|
13643
|
+
name: "CtfUpdated",
|
|
13644
|
+
inputs: [
|
|
13645
|
+
{
|
|
13646
|
+
name: "ctf",
|
|
13647
|
+
type: "address",
|
|
13648
|
+
indexed: true,
|
|
13649
|
+
internalType: "address"
|
|
13650
|
+
}
|
|
13651
|
+
],
|
|
13652
|
+
anonymous: false
|
|
13653
|
+
},
|
|
13654
|
+
{
|
|
13655
|
+
type: "event",
|
|
13656
|
+
name: "PositionSplit",
|
|
13657
|
+
inputs: [
|
|
13658
|
+
{
|
|
13659
|
+
name: "trader",
|
|
13660
|
+
type: "address",
|
|
13661
|
+
indexed: true,
|
|
13662
|
+
internalType: "address"
|
|
13663
|
+
},
|
|
13664
|
+
{
|
|
13665
|
+
name: "marketId",
|
|
13666
|
+
type: "uint256",
|
|
13667
|
+
indexed: true,
|
|
13668
|
+
internalType: "uint256"
|
|
13669
|
+
},
|
|
13670
|
+
{
|
|
13671
|
+
name: "amount",
|
|
13672
|
+
type: "uint256",
|
|
13673
|
+
indexed: false,
|
|
13674
|
+
internalType: "uint256"
|
|
13675
|
+
}
|
|
13676
|
+
],
|
|
13677
|
+
anonymous: false
|
|
13678
|
+
},
|
|
13679
|
+
{
|
|
13680
|
+
type: "event",
|
|
13681
|
+
name: "PositionsMerged",
|
|
13682
|
+
inputs: [
|
|
13683
|
+
{
|
|
13684
|
+
name: "trader",
|
|
13685
|
+
type: "address",
|
|
13686
|
+
indexed: true,
|
|
13687
|
+
internalType: "address"
|
|
13688
|
+
},
|
|
13689
|
+
{
|
|
13690
|
+
name: "marketId",
|
|
13691
|
+
type: "uint256",
|
|
13692
|
+
indexed: true,
|
|
13693
|
+
internalType: "uint256"
|
|
13694
|
+
},
|
|
13695
|
+
{
|
|
13696
|
+
name: "amount",
|
|
13697
|
+
type: "uint256",
|
|
13698
|
+
indexed: false,
|
|
13699
|
+
internalType: "uint256"
|
|
13700
|
+
}
|
|
13701
|
+
],
|
|
13702
|
+
anonymous: false
|
|
13703
|
+
},
|
|
13179
13704
|
{
|
|
13180
13705
|
type: "error",
|
|
13181
13706
|
name: "ApproveFailed",
|
|
@@ -13194,6 +13719,34 @@ var VaultFacet = [
|
|
|
13194
13719
|
inputs: [
|
|
13195
13720
|
]
|
|
13196
13721
|
},
|
|
13722
|
+
{
|
|
13723
|
+
type: "error",
|
|
13724
|
+
name: "MarketPaused",
|
|
13725
|
+
inputs: [
|
|
13726
|
+
]
|
|
13727
|
+
},
|
|
13728
|
+
{
|
|
13729
|
+
type: "error",
|
|
13730
|
+
name: "NotContractOwner",
|
|
13731
|
+
inputs: [
|
|
13732
|
+
{
|
|
13733
|
+
name: "_user",
|
|
13734
|
+
type: "address",
|
|
13735
|
+
internalType: "address"
|
|
13736
|
+
},
|
|
13737
|
+
{
|
|
13738
|
+
name: "_contractOwner",
|
|
13739
|
+
type: "address",
|
|
13740
|
+
internalType: "address"
|
|
13741
|
+
}
|
|
13742
|
+
]
|
|
13743
|
+
},
|
|
13744
|
+
{
|
|
13745
|
+
type: "error",
|
|
13746
|
+
name: "ProtocolPaused",
|
|
13747
|
+
inputs: [
|
|
13748
|
+
]
|
|
13749
|
+
},
|
|
13197
13750
|
{
|
|
13198
13751
|
type: "error",
|
|
13199
13752
|
name: "TransferFailed",
|
|
@@ -13205,6 +13758,24 @@ var VaultFacet = [
|
|
|
13205
13758
|
name: "TransferFromFailed",
|
|
13206
13759
|
inputs: [
|
|
13207
13760
|
]
|
|
13761
|
+
},
|
|
13762
|
+
{
|
|
13763
|
+
type: "error",
|
|
13764
|
+
name: "VenueInactive",
|
|
13765
|
+
inputs: [
|
|
13766
|
+
]
|
|
13767
|
+
},
|
|
13768
|
+
{
|
|
13769
|
+
type: "error",
|
|
13770
|
+
name: "VenueNotFound",
|
|
13771
|
+
inputs: [
|
|
13772
|
+
]
|
|
13773
|
+
},
|
|
13774
|
+
{
|
|
13775
|
+
type: "error",
|
|
13776
|
+
name: "VenueSuspended",
|
|
13777
|
+
inputs: [
|
|
13778
|
+
]
|
|
13208
13779
|
}
|
|
13209
13780
|
];
|
|
13210
13781
|
|
|
@@ -13281,6 +13852,20 @@ var NegRiskFacet = [
|
|
|
13281
13852
|
];
|
|
13282
13853
|
|
|
13283
13854
|
var ProtocolFacet = [
|
|
13855
|
+
{
|
|
13856
|
+
type: "function",
|
|
13857
|
+
name: "getProtocolPaused",
|
|
13858
|
+
inputs: [
|
|
13859
|
+
],
|
|
13860
|
+
outputs: [
|
|
13861
|
+
{
|
|
13862
|
+
name: "",
|
|
13863
|
+
type: "bool",
|
|
13864
|
+
internalType: "bool"
|
|
13865
|
+
}
|
|
13866
|
+
],
|
|
13867
|
+
stateMutability: "view"
|
|
13868
|
+
},
|
|
13284
13869
|
{
|
|
13285
13870
|
type: "function",
|
|
13286
13871
|
name: "getProtocolTreasury",
|
|
@@ -13323,6 +13908,72 @@ var ProtocolFacet = [
|
|
|
13323
13908
|
],
|
|
13324
13909
|
stateMutability: "view"
|
|
13325
13910
|
},
|
|
13911
|
+
{
|
|
13912
|
+
type: "function",
|
|
13913
|
+
name: "getVenueSuspended",
|
|
13914
|
+
inputs: [
|
|
13915
|
+
{
|
|
13916
|
+
name: "venueId",
|
|
13917
|
+
type: "uint256",
|
|
13918
|
+
internalType: "uint256"
|
|
13919
|
+
}
|
|
13920
|
+
],
|
|
13921
|
+
outputs: [
|
|
13922
|
+
{
|
|
13923
|
+
name: "",
|
|
13924
|
+
type: "bool",
|
|
13925
|
+
internalType: "bool"
|
|
13926
|
+
}
|
|
13927
|
+
],
|
|
13928
|
+
stateMutability: "view"
|
|
13929
|
+
},
|
|
13930
|
+
{
|
|
13931
|
+
type: "function",
|
|
13932
|
+
name: "isCollateralWhitelisted",
|
|
13933
|
+
inputs: [
|
|
13934
|
+
{
|
|
13935
|
+
name: "token",
|
|
13936
|
+
type: "address",
|
|
13937
|
+
internalType: "address"
|
|
13938
|
+
}
|
|
13939
|
+
],
|
|
13940
|
+
outputs: [
|
|
13941
|
+
{
|
|
13942
|
+
name: "",
|
|
13943
|
+
type: "bool",
|
|
13944
|
+
internalType: "bool"
|
|
13945
|
+
}
|
|
13946
|
+
],
|
|
13947
|
+
stateMutability: "view"
|
|
13948
|
+
},
|
|
13949
|
+
{
|
|
13950
|
+
type: "function",
|
|
13951
|
+
name: "pauseProtocol",
|
|
13952
|
+
inputs: [
|
|
13953
|
+
],
|
|
13954
|
+
outputs: [
|
|
13955
|
+
],
|
|
13956
|
+
stateMutability: "nonpayable"
|
|
13957
|
+
},
|
|
13958
|
+
{
|
|
13959
|
+
type: "function",
|
|
13960
|
+
name: "setCollateralWhitelisted",
|
|
13961
|
+
inputs: [
|
|
13962
|
+
{
|
|
13963
|
+
name: "token",
|
|
13964
|
+
type: "address",
|
|
13965
|
+
internalType: "address"
|
|
13966
|
+
},
|
|
13967
|
+
{
|
|
13968
|
+
name: "whitelisted",
|
|
13969
|
+
type: "bool",
|
|
13970
|
+
internalType: "bool"
|
|
13971
|
+
}
|
|
13972
|
+
],
|
|
13973
|
+
outputs: [
|
|
13974
|
+
],
|
|
13975
|
+
stateMutability: "nonpayable"
|
|
13976
|
+
},
|
|
13326
13977
|
{
|
|
13327
13978
|
type: "function",
|
|
13328
13979
|
name: "setProtocolTreasury",
|
|
@@ -13365,6 +14016,67 @@ var ProtocolFacet = [
|
|
|
13365
14016
|
],
|
|
13366
14017
|
stateMutability: "nonpayable"
|
|
13367
14018
|
},
|
|
14019
|
+
{
|
|
14020
|
+
type: "function",
|
|
14021
|
+
name: "suspendVenue",
|
|
14022
|
+
inputs: [
|
|
14023
|
+
{
|
|
14024
|
+
name: "venueId",
|
|
14025
|
+
type: "uint256",
|
|
14026
|
+
internalType: "uint256"
|
|
14027
|
+
}
|
|
14028
|
+
],
|
|
14029
|
+
outputs: [
|
|
14030
|
+
],
|
|
14031
|
+
stateMutability: "nonpayable"
|
|
14032
|
+
},
|
|
14033
|
+
{
|
|
14034
|
+
type: "function",
|
|
14035
|
+
name: "unpauseProtocol",
|
|
14036
|
+
inputs: [
|
|
14037
|
+
],
|
|
14038
|
+
outputs: [
|
|
14039
|
+
],
|
|
14040
|
+
stateMutability: "nonpayable"
|
|
14041
|
+
},
|
|
14042
|
+
{
|
|
14043
|
+
type: "function",
|
|
14044
|
+
name: "unsuspendVenue",
|
|
14045
|
+
inputs: [
|
|
14046
|
+
{
|
|
14047
|
+
name: "venueId",
|
|
14048
|
+
type: "uint256",
|
|
14049
|
+
internalType: "uint256"
|
|
14050
|
+
}
|
|
14051
|
+
],
|
|
14052
|
+
outputs: [
|
|
14053
|
+
],
|
|
14054
|
+
stateMutability: "nonpayable"
|
|
14055
|
+
},
|
|
14056
|
+
{
|
|
14057
|
+
type: "function",
|
|
14058
|
+
name: "withdrawERC20",
|
|
14059
|
+
inputs: [
|
|
14060
|
+
{
|
|
14061
|
+
name: "token",
|
|
14062
|
+
type: "address",
|
|
14063
|
+
internalType: "address"
|
|
14064
|
+
},
|
|
14065
|
+
{
|
|
14066
|
+
name: "recipient",
|
|
14067
|
+
type: "address",
|
|
14068
|
+
internalType: "address"
|
|
14069
|
+
},
|
|
14070
|
+
{
|
|
14071
|
+
name: "amount",
|
|
14072
|
+
type: "uint256",
|
|
14073
|
+
internalType: "uint256"
|
|
14074
|
+
}
|
|
14075
|
+
],
|
|
14076
|
+
outputs: [
|
|
14077
|
+
],
|
|
14078
|
+
stateMutability: "nonpayable"
|
|
14079
|
+
},
|
|
13368
14080
|
{
|
|
13369
14081
|
type: "function",
|
|
13370
14082
|
name: "withdrawETH",
|
|
@@ -13379,6 +14091,50 @@ var ProtocolFacet = [
|
|
|
13379
14091
|
],
|
|
13380
14092
|
stateMutability: "nonpayable"
|
|
13381
14093
|
},
|
|
14094
|
+
{
|
|
14095
|
+
type: "event",
|
|
14096
|
+
name: "CollateralWhitelistUpdated",
|
|
14097
|
+
inputs: [
|
|
14098
|
+
{
|
|
14099
|
+
name: "token",
|
|
14100
|
+
type: "address",
|
|
14101
|
+
indexed: true,
|
|
14102
|
+
internalType: "address"
|
|
14103
|
+
},
|
|
14104
|
+
{
|
|
14105
|
+
name: "whitelisted",
|
|
14106
|
+
type: "bool",
|
|
14107
|
+
indexed: false,
|
|
14108
|
+
internalType: "bool"
|
|
14109
|
+
}
|
|
14110
|
+
],
|
|
14111
|
+
anonymous: false
|
|
14112
|
+
},
|
|
14113
|
+
{
|
|
14114
|
+
type: "event",
|
|
14115
|
+
name: "ERC20Withdrawn",
|
|
14116
|
+
inputs: [
|
|
14117
|
+
{
|
|
14118
|
+
name: "token",
|
|
14119
|
+
type: "address",
|
|
14120
|
+
indexed: true,
|
|
14121
|
+
internalType: "address"
|
|
14122
|
+
},
|
|
14123
|
+
{
|
|
14124
|
+
name: "recipient",
|
|
14125
|
+
type: "address",
|
|
14126
|
+
indexed: true,
|
|
14127
|
+
internalType: "address"
|
|
14128
|
+
},
|
|
14129
|
+
{
|
|
14130
|
+
name: "amount",
|
|
14131
|
+
type: "uint256",
|
|
14132
|
+
indexed: false,
|
|
14133
|
+
internalType: "uint256"
|
|
14134
|
+
}
|
|
14135
|
+
],
|
|
14136
|
+
anonymous: false
|
|
14137
|
+
},
|
|
13382
14138
|
{
|
|
13383
14139
|
type: "event",
|
|
13384
14140
|
name: "EthWithdrawn",
|
|
@@ -13398,6 +14154,19 @@ var ProtocolFacet = [
|
|
|
13398
14154
|
],
|
|
13399
14155
|
anonymous: false
|
|
13400
14156
|
},
|
|
14157
|
+
{
|
|
14158
|
+
type: "event",
|
|
14159
|
+
name: "ProtocolPausedEvent",
|
|
14160
|
+
inputs: [
|
|
14161
|
+
{
|
|
14162
|
+
name: "caller",
|
|
14163
|
+
type: "address",
|
|
14164
|
+
indexed: true,
|
|
14165
|
+
internalType: "address"
|
|
14166
|
+
}
|
|
14167
|
+
],
|
|
14168
|
+
anonymous: false
|
|
14169
|
+
},
|
|
13401
14170
|
{
|
|
13402
14171
|
type: "event",
|
|
13403
14172
|
name: "ProtocolTreasuryUpdated",
|
|
@@ -13411,6 +14180,19 @@ var ProtocolFacet = [
|
|
|
13411
14180
|
],
|
|
13412
14181
|
anonymous: false
|
|
13413
14182
|
},
|
|
14183
|
+
{
|
|
14184
|
+
type: "event",
|
|
14185
|
+
name: "ProtocolUnpausedEvent",
|
|
14186
|
+
inputs: [
|
|
14187
|
+
{
|
|
14188
|
+
name: "caller",
|
|
14189
|
+
type: "address",
|
|
14190
|
+
indexed: true,
|
|
14191
|
+
internalType: "address"
|
|
14192
|
+
}
|
|
14193
|
+
],
|
|
14194
|
+
anonymous: false
|
|
14195
|
+
},
|
|
13414
14196
|
{
|
|
13415
14197
|
type: "event",
|
|
13416
14198
|
name: "UmaIdentifierUpdated",
|
|
@@ -13437,6 +14219,44 @@ var ProtocolFacet = [
|
|
|
13437
14219
|
],
|
|
13438
14220
|
anonymous: false
|
|
13439
14221
|
},
|
|
14222
|
+
{
|
|
14223
|
+
type: "event",
|
|
14224
|
+
name: "VenueSuspendedEvent",
|
|
14225
|
+
inputs: [
|
|
14226
|
+
{
|
|
14227
|
+
name: "venueId",
|
|
14228
|
+
type: "uint256",
|
|
14229
|
+
indexed: true,
|
|
14230
|
+
internalType: "uint256"
|
|
14231
|
+
},
|
|
14232
|
+
{
|
|
14233
|
+
name: "caller",
|
|
14234
|
+
type: "address",
|
|
14235
|
+
indexed: true,
|
|
14236
|
+
internalType: "address"
|
|
14237
|
+
}
|
|
14238
|
+
],
|
|
14239
|
+
anonymous: false
|
|
14240
|
+
},
|
|
14241
|
+
{
|
|
14242
|
+
type: "event",
|
|
14243
|
+
name: "VenueUnsuspendedEvent",
|
|
14244
|
+
inputs: [
|
|
14245
|
+
{
|
|
14246
|
+
name: "venueId",
|
|
14247
|
+
type: "uint256",
|
|
14248
|
+
indexed: true,
|
|
14249
|
+
internalType: "uint256"
|
|
14250
|
+
},
|
|
14251
|
+
{
|
|
14252
|
+
name: "caller",
|
|
14253
|
+
type: "address",
|
|
14254
|
+
indexed: true,
|
|
14255
|
+
internalType: "address"
|
|
14256
|
+
}
|
|
14257
|
+
],
|
|
14258
|
+
anonymous: false
|
|
14259
|
+
},
|
|
13440
14260
|
{
|
|
13441
14261
|
type: "error",
|
|
13442
14262
|
name: "NotContractOwner",
|
|
@@ -13452,6 +14272,18 @@ var ProtocolFacet = [
|
|
|
13452
14272
|
internalType: "address"
|
|
13453
14273
|
}
|
|
13454
14274
|
]
|
|
14275
|
+
},
|
|
14276
|
+
{
|
|
14277
|
+
type: "error",
|
|
14278
|
+
name: "TransferFailed",
|
|
14279
|
+
inputs: [
|
|
14280
|
+
]
|
|
14281
|
+
},
|
|
14282
|
+
{
|
|
14283
|
+
type: "error",
|
|
14284
|
+
name: "VenueNotFound",
|
|
14285
|
+
inputs: [
|
|
14286
|
+
]
|
|
13455
14287
|
}
|
|
13456
14288
|
];
|
|
13457
14289
|
|
|
@@ -13655,6 +14487,36 @@ var AccessControlFacet = [
|
|
|
13655
14487
|
}
|
|
13656
14488
|
],
|
|
13657
14489
|
anonymous: false
|
|
14490
|
+
},
|
|
14491
|
+
{
|
|
14492
|
+
type: "error",
|
|
14493
|
+
name: "OnlyVenueOperator",
|
|
14494
|
+
inputs: [
|
|
14495
|
+
]
|
|
14496
|
+
},
|
|
14497
|
+
{
|
|
14498
|
+
type: "error",
|
|
14499
|
+
name: "ProtocolPaused",
|
|
14500
|
+
inputs: [
|
|
14501
|
+
]
|
|
14502
|
+
},
|
|
14503
|
+
{
|
|
14504
|
+
type: "error",
|
|
14505
|
+
name: "VenueInactive",
|
|
14506
|
+
inputs: [
|
|
14507
|
+
]
|
|
14508
|
+
},
|
|
14509
|
+
{
|
|
14510
|
+
type: "error",
|
|
14511
|
+
name: "VenueNotFound",
|
|
14512
|
+
inputs: [
|
|
14513
|
+
]
|
|
14514
|
+
},
|
|
14515
|
+
{
|
|
14516
|
+
type: "error",
|
|
14517
|
+
name: "VenueSuspended",
|
|
14518
|
+
inputs: [
|
|
14519
|
+
]
|
|
13658
14520
|
}
|
|
13659
14521
|
];
|
|
13660
14522
|
|
|
@@ -13764,10 +14626,10 @@ var TagsFacet = [
|
|
|
13764
14626
|
var MetadataFacet = [
|
|
13765
14627
|
{
|
|
13766
14628
|
type: "function",
|
|
13767
|
-
name: "
|
|
14629
|
+
name: "updateMarketGroupMetadata",
|
|
13768
14630
|
inputs: [
|
|
13769
14631
|
{
|
|
13770
|
-
name: "
|
|
14632
|
+
name: "groupId",
|
|
13771
14633
|
type: "uint256",
|
|
13772
14634
|
internalType: "uint256"
|
|
13773
14635
|
},
|
|
@@ -13783,10 +14645,10 @@ var MetadataFacet = [
|
|
|
13783
14645
|
},
|
|
13784
14646
|
{
|
|
13785
14647
|
type: "function",
|
|
13786
|
-
name: "
|
|
14648
|
+
name: "updateMarketMetadata",
|
|
13787
14649
|
inputs: [
|
|
13788
14650
|
{
|
|
13789
|
-
name: "
|
|
14651
|
+
name: "marketId",
|
|
13790
14652
|
type: "uint256",
|
|
13791
14653
|
internalType: "uint256"
|
|
13792
14654
|
},
|
|
@@ -13802,10 +14664,10 @@ var MetadataFacet = [
|
|
|
13802
14664
|
},
|
|
13803
14665
|
{
|
|
13804
14666
|
type: "event",
|
|
13805
|
-
name: "
|
|
14667
|
+
name: "MarketGroupMetadataUpdated",
|
|
13806
14668
|
inputs: [
|
|
13807
14669
|
{
|
|
13808
|
-
name: "
|
|
14670
|
+
name: "groupId",
|
|
13809
14671
|
type: "uint256",
|
|
13810
14672
|
indexed: true,
|
|
13811
14673
|
internalType: "uint256"
|
|
@@ -13821,10 +14683,10 @@ var MetadataFacet = [
|
|
|
13821
14683
|
},
|
|
13822
14684
|
{
|
|
13823
14685
|
type: "event",
|
|
13824
|
-
name: "
|
|
14686
|
+
name: "MarketMetadataUpdated",
|
|
13825
14687
|
inputs: [
|
|
13826
14688
|
{
|
|
13827
|
-
name: "
|
|
14689
|
+
name: "marketId",
|
|
13828
14690
|
type: "uint256",
|
|
13829
14691
|
indexed: true,
|
|
13830
14692
|
internalType: "uint256"
|
|
@@ -14178,25 +15040,6 @@ var PythResolutionFacet = [
|
|
|
14178
15040
|
],
|
|
14179
15041
|
anonymous: false
|
|
14180
15042
|
},
|
|
14181
|
-
{
|
|
14182
|
-
type: "event",
|
|
14183
|
-
name: "MarketGroupResolved",
|
|
14184
|
-
inputs: [
|
|
14185
|
-
{
|
|
14186
|
-
name: "groupId",
|
|
14187
|
-
type: "uint256",
|
|
14188
|
-
indexed: true,
|
|
14189
|
-
internalType: "uint256"
|
|
14190
|
-
},
|
|
14191
|
-
{
|
|
14192
|
-
name: "winningMarketId",
|
|
14193
|
-
type: "uint256",
|
|
14194
|
-
indexed: true,
|
|
14195
|
-
internalType: "uint256"
|
|
14196
|
-
}
|
|
14197
|
-
],
|
|
14198
|
-
anonymous: false
|
|
14199
|
-
},
|
|
14200
15043
|
{
|
|
14201
15044
|
type: "event",
|
|
14202
15045
|
name: "MarketResolved",
|
|
@@ -14434,18 +15277,6 @@ var PythResolutionFacet = [
|
|
|
14434
15277
|
inputs: [
|
|
14435
15278
|
]
|
|
14436
15279
|
},
|
|
14437
|
-
{
|
|
14438
|
-
type: "error",
|
|
14439
|
-
name: "InvalidTickSize",
|
|
14440
|
-
inputs: [
|
|
14441
|
-
]
|
|
14442
|
-
},
|
|
14443
|
-
{
|
|
14444
|
-
type: "error",
|
|
14445
|
-
name: "InvalidTickSize",
|
|
14446
|
-
inputs: [
|
|
14447
|
-
]
|
|
14448
|
-
},
|
|
14449
15280
|
{
|
|
14450
15281
|
type: "error",
|
|
14451
15282
|
name: "MarketNotActive",
|
|
@@ -14922,6 +15753,17 @@ var BatchOrdersFacet = [
|
|
|
14922
15753
|
];
|
|
14923
15754
|
|
|
14924
15755
|
var WhitelistAccessControl = [
|
|
15756
|
+
{
|
|
15757
|
+
type: "constructor",
|
|
15758
|
+
inputs: [
|
|
15759
|
+
{
|
|
15760
|
+
name: "_owner",
|
|
15761
|
+
type: "address",
|
|
15762
|
+
internalType: "address"
|
|
15763
|
+
}
|
|
15764
|
+
],
|
|
15765
|
+
stateMutability: "nonpayable"
|
|
15766
|
+
},
|
|
14925
15767
|
{
|
|
14926
15768
|
type: "function",
|
|
14927
15769
|
name: "addToWhitelist",
|
|
@@ -15060,6 +15902,18 @@ var WhitelistAccessControl = [
|
|
|
15060
15902
|
}
|
|
15061
15903
|
],
|
|
15062
15904
|
anonymous: false
|
|
15905
|
+
},
|
|
15906
|
+
{
|
|
15907
|
+
type: "error",
|
|
15908
|
+
name: "OnlyOwner",
|
|
15909
|
+
inputs: [
|
|
15910
|
+
]
|
|
15911
|
+
},
|
|
15912
|
+
{
|
|
15913
|
+
type: "error",
|
|
15914
|
+
name: "ZeroAddress",
|
|
15915
|
+
inputs: [
|
|
15916
|
+
]
|
|
15063
15917
|
}
|
|
15064
15918
|
];
|
|
15065
15919
|
|
|
@@ -15086,7 +15940,7 @@ var ConditionalTokens = [
|
|
|
15086
15940
|
],
|
|
15087
15941
|
outputs: [
|
|
15088
15942
|
{
|
|
15089
|
-
name: "
|
|
15943
|
+
name: "",
|
|
15090
15944
|
type: "bytes32",
|
|
15091
15945
|
internalType: "bytes32"
|
|
15092
15946
|
}
|
|
@@ -15115,7 +15969,7 @@ var ConditionalTokens = [
|
|
|
15115
15969
|
],
|
|
15116
15970
|
outputs: [
|
|
15117
15971
|
{
|
|
15118
|
-
name: "
|
|
15972
|
+
name: "",
|
|
15119
15973
|
type: "bytes32",
|
|
15120
15974
|
internalType: "bytes32"
|
|
15121
15975
|
}
|
|
@@ -15134,37 +15988,13 @@ var ConditionalTokens = [
|
|
|
15134
15988
|
],
|
|
15135
15989
|
outputs: [
|
|
15136
15990
|
{
|
|
15137
|
-
name: "
|
|
15991
|
+
name: "",
|
|
15138
15992
|
type: "uint256",
|
|
15139
15993
|
internalType: "uint256"
|
|
15140
15994
|
}
|
|
15141
15995
|
],
|
|
15142
15996
|
stateMutability: "view"
|
|
15143
15997
|
},
|
|
15144
|
-
{
|
|
15145
|
-
type: "function",
|
|
15146
|
-
name: "getPositionId",
|
|
15147
|
-
inputs: [
|
|
15148
|
-
{
|
|
15149
|
-
name: "collateralToken",
|
|
15150
|
-
type: "address",
|
|
15151
|
-
internalType: "contract IERC20"
|
|
15152
|
-
},
|
|
15153
|
-
{
|
|
15154
|
-
name: "collectionId",
|
|
15155
|
-
type: "bytes32",
|
|
15156
|
-
internalType: "bytes32"
|
|
15157
|
-
}
|
|
15158
|
-
],
|
|
15159
|
-
outputs: [
|
|
15160
|
-
{
|
|
15161
|
-
name: "positionId",
|
|
15162
|
-
type: "uint256",
|
|
15163
|
-
internalType: "uint256"
|
|
15164
|
-
}
|
|
15165
|
-
],
|
|
15166
|
-
stateMutability: "pure"
|
|
15167
|
-
},
|
|
15168
15998
|
{
|
|
15169
15999
|
type: "function",
|
|
15170
16000
|
name: "mergePositions",
|
|
@@ -15199,49 +16029,6 @@ var ConditionalTokens = [
|
|
|
15199
16029
|
],
|
|
15200
16030
|
stateMutability: "nonpayable"
|
|
15201
16031
|
},
|
|
15202
|
-
{
|
|
15203
|
-
type: "function",
|
|
15204
|
-
name: "payoutDenominator",
|
|
15205
|
-
inputs: [
|
|
15206
|
-
{
|
|
15207
|
-
name: "conditionId",
|
|
15208
|
-
type: "bytes32",
|
|
15209
|
-
internalType: "bytes32"
|
|
15210
|
-
}
|
|
15211
|
-
],
|
|
15212
|
-
outputs: [
|
|
15213
|
-
{
|
|
15214
|
-
name: "",
|
|
15215
|
-
type: "uint256",
|
|
15216
|
-
internalType: "uint256"
|
|
15217
|
-
}
|
|
15218
|
-
],
|
|
15219
|
-
stateMutability: "view"
|
|
15220
|
-
},
|
|
15221
|
-
{
|
|
15222
|
-
type: "function",
|
|
15223
|
-
name: "payoutNumerators",
|
|
15224
|
-
inputs: [
|
|
15225
|
-
{
|
|
15226
|
-
name: "conditionId",
|
|
15227
|
-
type: "bytes32",
|
|
15228
|
-
internalType: "bytes32"
|
|
15229
|
-
},
|
|
15230
|
-
{
|
|
15231
|
-
name: "index",
|
|
15232
|
-
type: "uint256",
|
|
15233
|
-
internalType: "uint256"
|
|
15234
|
-
}
|
|
15235
|
-
],
|
|
15236
|
-
outputs: [
|
|
15237
|
-
{
|
|
15238
|
-
name: "",
|
|
15239
|
-
type: "uint256",
|
|
15240
|
-
internalType: "uint256"
|
|
15241
|
-
}
|
|
15242
|
-
],
|
|
15243
|
-
stateMutability: "view"
|
|
15244
|
-
},
|
|
15245
16032
|
{
|
|
15246
16033
|
type: "function",
|
|
15247
16034
|
name: "prepareCondition",
|
|
@@ -15266,35 +16053,6 @@ var ConditionalTokens = [
|
|
|
15266
16053
|
],
|
|
15267
16054
|
stateMutability: "nonpayable"
|
|
15268
16055
|
},
|
|
15269
|
-
{
|
|
15270
|
-
type: "function",
|
|
15271
|
-
name: "redeemPositions",
|
|
15272
|
-
inputs: [
|
|
15273
|
-
{
|
|
15274
|
-
name: "collateralToken",
|
|
15275
|
-
type: "address",
|
|
15276
|
-
internalType: "contract IERC20"
|
|
15277
|
-
},
|
|
15278
|
-
{
|
|
15279
|
-
name: "parentCollectionId",
|
|
15280
|
-
type: "bytes32",
|
|
15281
|
-
internalType: "bytes32"
|
|
15282
|
-
},
|
|
15283
|
-
{
|
|
15284
|
-
name: "conditionId",
|
|
15285
|
-
type: "bytes32",
|
|
15286
|
-
internalType: "bytes32"
|
|
15287
|
-
},
|
|
15288
|
-
{
|
|
15289
|
-
name: "indexSets",
|
|
15290
|
-
type: "uint256[]",
|
|
15291
|
-
internalType: "uint256[]"
|
|
15292
|
-
}
|
|
15293
|
-
],
|
|
15294
|
-
outputs: [
|
|
15295
|
-
],
|
|
15296
|
-
stateMutability: "nonpayable"
|
|
15297
|
-
},
|
|
15298
16056
|
{
|
|
15299
16057
|
type: "function",
|
|
15300
16058
|
name: "reportPayouts",
|
|
@@ -15347,30 +16105,6 @@ var ConditionalTokens = [
|
|
|
15347
16105
|
outputs: [
|
|
15348
16106
|
],
|
|
15349
16107
|
stateMutability: "nonpayable"
|
|
15350
|
-
},
|
|
15351
|
-
{
|
|
15352
|
-
type: "function",
|
|
15353
|
-
name: "balanceOf",
|
|
15354
|
-
inputs: [
|
|
15355
|
-
{
|
|
15356
|
-
name: "account",
|
|
15357
|
-
type: "address",
|
|
15358
|
-
internalType: "address"
|
|
15359
|
-
},
|
|
15360
|
-
{
|
|
15361
|
-
name: "id",
|
|
15362
|
-
type: "uint256",
|
|
15363
|
-
internalType: "uint256"
|
|
15364
|
-
}
|
|
15365
|
-
],
|
|
15366
|
-
outputs: [
|
|
15367
|
-
{
|
|
15368
|
-
name: "",
|
|
15369
|
-
type: "uint256",
|
|
15370
|
-
internalType: "uint256"
|
|
15371
|
-
}
|
|
15372
|
-
],
|
|
15373
|
-
stateMutability: "view"
|
|
15374
16108
|
}
|
|
15375
16109
|
];
|
|
15376
16110
|
|
|
@@ -15379,19 +16113,14 @@ var ERC20 = [
|
|
|
15379
16113
|
type: "constructor",
|
|
15380
16114
|
inputs: [
|
|
15381
16115
|
{
|
|
15382
|
-
name: "
|
|
16116
|
+
name: "name_",
|
|
15383
16117
|
type: "string",
|
|
15384
16118
|
internalType: "string"
|
|
15385
16119
|
},
|
|
15386
16120
|
{
|
|
15387
|
-
name: "
|
|
16121
|
+
name: "symbol_",
|
|
15388
16122
|
type: "string",
|
|
15389
16123
|
internalType: "string"
|
|
15390
|
-
},
|
|
15391
|
-
{
|
|
15392
|
-
name: "_decimals",
|
|
15393
|
-
type: "uint8",
|
|
15394
|
-
internalType: "uint8"
|
|
15395
16124
|
}
|
|
15396
16125
|
],
|
|
15397
16126
|
stateMutability: "nonpayable"
|
|
@@ -15401,12 +16130,12 @@ var ERC20 = [
|
|
|
15401
16130
|
name: "allowance",
|
|
15402
16131
|
inputs: [
|
|
15403
16132
|
{
|
|
15404
|
-
name: "",
|
|
16133
|
+
name: "owner",
|
|
15405
16134
|
type: "address",
|
|
15406
16135
|
internalType: "address"
|
|
15407
16136
|
},
|
|
15408
16137
|
{
|
|
15409
|
-
name: "",
|
|
16138
|
+
name: "spender",
|
|
15410
16139
|
type: "address",
|
|
15411
16140
|
internalType: "address"
|
|
15412
16141
|
}
|
|
@@ -15449,7 +16178,7 @@ var ERC20 = [
|
|
|
15449
16178
|
name: "balanceOf",
|
|
15450
16179
|
inputs: [
|
|
15451
16180
|
{
|
|
15452
|
-
name: "",
|
|
16181
|
+
name: "account",
|
|
15453
16182
|
type: "address",
|
|
15454
16183
|
internalType: "address"
|
|
15455
16184
|
}
|
|
@@ -15479,20 +16208,49 @@ var ERC20 = [
|
|
|
15479
16208
|
},
|
|
15480
16209
|
{
|
|
15481
16210
|
type: "function",
|
|
15482
|
-
name: "
|
|
16211
|
+
name: "decreaseAllowance",
|
|
15483
16212
|
inputs: [
|
|
15484
16213
|
{
|
|
15485
|
-
name: "
|
|
16214
|
+
name: "spender",
|
|
15486
16215
|
type: "address",
|
|
15487
16216
|
internalType: "address"
|
|
15488
16217
|
},
|
|
15489
16218
|
{
|
|
15490
|
-
name: "
|
|
16219
|
+
name: "subtractedValue",
|
|
16220
|
+
type: "uint256",
|
|
16221
|
+
internalType: "uint256"
|
|
16222
|
+
}
|
|
16223
|
+
],
|
|
16224
|
+
outputs: [
|
|
16225
|
+
{
|
|
16226
|
+
name: "",
|
|
16227
|
+
type: "bool",
|
|
16228
|
+
internalType: "bool"
|
|
16229
|
+
}
|
|
16230
|
+
],
|
|
16231
|
+
stateMutability: "nonpayable"
|
|
16232
|
+
},
|
|
16233
|
+
{
|
|
16234
|
+
type: "function",
|
|
16235
|
+
name: "increaseAllowance",
|
|
16236
|
+
inputs: [
|
|
16237
|
+
{
|
|
16238
|
+
name: "spender",
|
|
16239
|
+
type: "address",
|
|
16240
|
+
internalType: "address"
|
|
16241
|
+
},
|
|
16242
|
+
{
|
|
16243
|
+
name: "addedValue",
|
|
15491
16244
|
type: "uint256",
|
|
15492
16245
|
internalType: "uint256"
|
|
15493
16246
|
}
|
|
15494
16247
|
],
|
|
15495
16248
|
outputs: [
|
|
16249
|
+
{
|
|
16250
|
+
name: "",
|
|
16251
|
+
type: "bool",
|
|
16252
|
+
internalType: "bool"
|
|
16253
|
+
}
|
|
15496
16254
|
],
|
|
15497
16255
|
stateMutability: "nonpayable"
|
|
15498
16256
|
},
|