@oddmaki-protocol/sdk 0.4.0 → 0.5.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.
- package/dist/index.d.mts +120 -34
- package/dist/index.d.ts +120 -34
- package/dist/index.js +112 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +112 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -10812,6 +10812,16 @@ var MarketsFacet = [
|
|
|
10812
10812
|
name: "protocolFeeBps",
|
|
10813
10813
|
type: "uint256",
|
|
10814
10814
|
internalType: "uint256"
|
|
10815
|
+
},
|
|
10816
|
+
{
|
|
10817
|
+
name: "protocolFeeRecipient",
|
|
10818
|
+
type: "address",
|
|
10819
|
+
internalType: "address"
|
|
10820
|
+
},
|
|
10821
|
+
{
|
|
10822
|
+
name: "venueFeeRecipient",
|
|
10823
|
+
type: "address",
|
|
10824
|
+
internalType: "address"
|
|
10815
10825
|
}
|
|
10816
10826
|
]
|
|
10817
10827
|
}
|
|
@@ -11713,6 +11723,18 @@ var LimitOrdersFacet = [
|
|
|
11713
11723
|
inputs: [
|
|
11714
11724
|
]
|
|
11715
11725
|
},
|
|
11726
|
+
{
|
|
11727
|
+
type: "error",
|
|
11728
|
+
name: "MakerErc165CallFailed",
|
|
11729
|
+
inputs: [
|
|
11730
|
+
]
|
|
11731
|
+
},
|
|
11732
|
+
{
|
|
11733
|
+
type: "error",
|
|
11734
|
+
name: "MakerNotErc1155Receiver",
|
|
11735
|
+
inputs: [
|
|
11736
|
+
]
|
|
11737
|
+
},
|
|
11716
11738
|
{
|
|
11717
11739
|
type: "error",
|
|
11718
11740
|
name: "MarketNotActive",
|
|
@@ -13337,6 +13359,18 @@ var MarketOrdersFacet = [
|
|
|
13337
13359
|
inputs: [
|
|
13338
13360
|
]
|
|
13339
13361
|
},
|
|
13362
|
+
{
|
|
13363
|
+
type: "error",
|
|
13364
|
+
name: "MakerErc165CallFailed",
|
|
13365
|
+
inputs: [
|
|
13366
|
+
]
|
|
13367
|
+
},
|
|
13368
|
+
{
|
|
13369
|
+
type: "error",
|
|
13370
|
+
name: "MakerNotErc1155Receiver",
|
|
13371
|
+
inputs: [
|
|
13372
|
+
]
|
|
13373
|
+
},
|
|
13340
13374
|
{
|
|
13341
13375
|
type: "error",
|
|
13342
13376
|
name: "MarketNotActive",
|
|
@@ -14101,6 +14135,34 @@ var NegRiskFacet = [
|
|
|
14101
14135
|
name: "ApproveFailed",
|
|
14102
14136
|
inputs: [
|
|
14103
14137
|
]
|
|
14138
|
+
},
|
|
14139
|
+
{
|
|
14140
|
+
type: "error",
|
|
14141
|
+
name: "DuplicateConditionId",
|
|
14142
|
+
inputs: [
|
|
14143
|
+
{
|
|
14144
|
+
name: "conditionId",
|
|
14145
|
+
type: "bytes32",
|
|
14146
|
+
internalType: "bytes32"
|
|
14147
|
+
}
|
|
14148
|
+
]
|
|
14149
|
+
},
|
|
14150
|
+
{
|
|
14151
|
+
type: "error",
|
|
14152
|
+
name: "InvalidIndexSet",
|
|
14153
|
+
inputs: [
|
|
14154
|
+
]
|
|
14155
|
+
},
|
|
14156
|
+
{
|
|
14157
|
+
type: "error",
|
|
14158
|
+
name: "UnregisteredConditionId",
|
|
14159
|
+
inputs: [
|
|
14160
|
+
{
|
|
14161
|
+
name: "conditionId",
|
|
14162
|
+
type: "bytes32",
|
|
14163
|
+
internalType: "bytes32"
|
|
14164
|
+
}
|
|
14165
|
+
]
|
|
14104
14166
|
}
|
|
14105
14167
|
];
|
|
14106
14168
|
|
|
@@ -15194,6 +15256,20 @@ var PythResolutionFacet = [
|
|
|
15194
15256
|
],
|
|
15195
15257
|
stateMutability: "payable"
|
|
15196
15258
|
},
|
|
15259
|
+
{
|
|
15260
|
+
type: "function",
|
|
15261
|
+
name: "getOpenMaxStaleness",
|
|
15262
|
+
inputs: [
|
|
15263
|
+
],
|
|
15264
|
+
outputs: [
|
|
15265
|
+
{
|
|
15266
|
+
name: "",
|
|
15267
|
+
type: "uint256",
|
|
15268
|
+
internalType: "uint256"
|
|
15269
|
+
}
|
|
15270
|
+
],
|
|
15271
|
+
stateMutability: "view"
|
|
15272
|
+
},
|
|
15197
15273
|
{
|
|
15198
15274
|
type: "function",
|
|
15199
15275
|
name: "getPythContract",
|
|
@@ -15227,20 +15303,6 @@ var PythResolutionFacet = [
|
|
|
15227
15303
|
],
|
|
15228
15304
|
stateMutability: "payable"
|
|
15229
15305
|
},
|
|
15230
|
-
{
|
|
15231
|
-
type: "function",
|
|
15232
|
-
name: "setPythContract",
|
|
15233
|
-
inputs: [
|
|
15234
|
-
{
|
|
15235
|
-
name: "pythContract",
|
|
15236
|
-
type: "address",
|
|
15237
|
-
internalType: "address"
|
|
15238
|
-
}
|
|
15239
|
-
],
|
|
15240
|
-
outputs: [
|
|
15241
|
-
],
|
|
15242
|
-
stateMutability: "nonpayable"
|
|
15243
|
-
},
|
|
15244
15306
|
{
|
|
15245
15307
|
type: "function",
|
|
15246
15308
|
name: "setOpenMaxStaleness",
|
|
@@ -15257,17 +15319,17 @@ var PythResolutionFacet = [
|
|
|
15257
15319
|
},
|
|
15258
15320
|
{
|
|
15259
15321
|
type: "function",
|
|
15260
|
-
name: "
|
|
15322
|
+
name: "setPythContract",
|
|
15261
15323
|
inputs: [
|
|
15262
|
-
],
|
|
15263
|
-
outputs: [
|
|
15264
15324
|
{
|
|
15265
|
-
name: "",
|
|
15266
|
-
type: "
|
|
15267
|
-
internalType: "
|
|
15325
|
+
name: "pythContract",
|
|
15326
|
+
type: "address",
|
|
15327
|
+
internalType: "address"
|
|
15268
15328
|
}
|
|
15269
15329
|
],
|
|
15270
|
-
|
|
15330
|
+
outputs: [
|
|
15331
|
+
],
|
|
15332
|
+
stateMutability: "nonpayable"
|
|
15271
15333
|
},
|
|
15272
15334
|
{
|
|
15273
15335
|
type: "event",
|
|
@@ -15392,6 +15454,19 @@ var PythResolutionFacet = [
|
|
|
15392
15454
|
],
|
|
15393
15455
|
anonymous: false
|
|
15394
15456
|
},
|
|
15457
|
+
{
|
|
15458
|
+
type: "event",
|
|
15459
|
+
name: "OpenMaxStalenessUpdated",
|
|
15460
|
+
inputs: [
|
|
15461
|
+
{
|
|
15462
|
+
name: "openMaxStaleness",
|
|
15463
|
+
type: "uint256",
|
|
15464
|
+
indexed: false,
|
|
15465
|
+
internalType: "uint256"
|
|
15466
|
+
}
|
|
15467
|
+
],
|
|
15468
|
+
anonymous: false
|
|
15469
|
+
},
|
|
15395
15470
|
{
|
|
15396
15471
|
type: "event",
|
|
15397
15472
|
name: "PriceMarketCreatedPyth",
|
|
@@ -15491,19 +15566,6 @@ var PythResolutionFacet = [
|
|
|
15491
15566
|
],
|
|
15492
15567
|
anonymous: false
|
|
15493
15568
|
},
|
|
15494
|
-
{
|
|
15495
|
-
type: "event",
|
|
15496
|
-
name: "OpenMaxStalenessUpdated",
|
|
15497
|
-
inputs: [
|
|
15498
|
-
{
|
|
15499
|
-
name: "openMaxStaleness",
|
|
15500
|
-
type: "uint256",
|
|
15501
|
-
indexed: false,
|
|
15502
|
-
internalType: "uint256"
|
|
15503
|
-
}
|
|
15504
|
-
],
|
|
15505
|
-
anonymous: false
|
|
15506
|
-
},
|
|
15507
15569
|
{
|
|
15508
15570
|
type: "event",
|
|
15509
15571
|
name: "WrappedCollateralRegistered",
|
|
@@ -15623,6 +15685,12 @@ var PythResolutionFacet = [
|
|
|
15623
15685
|
inputs: [
|
|
15624
15686
|
]
|
|
15625
15687
|
},
|
|
15688
|
+
{
|
|
15689
|
+
type: "error",
|
|
15690
|
+
name: "NoValidPriceUpdate",
|
|
15691
|
+
inputs: [
|
|
15692
|
+
]
|
|
15693
|
+
},
|
|
15626
15694
|
{
|
|
15627
15695
|
type: "error",
|
|
15628
15696
|
name: "NotContractOwner",
|
|
@@ -15681,6 +15749,12 @@ var PythResolutionFacet = [
|
|
|
15681
15749
|
inputs: [
|
|
15682
15750
|
]
|
|
15683
15751
|
},
|
|
15752
|
+
{
|
|
15753
|
+
type: "error",
|
|
15754
|
+
name: "ResolutionWindowTooLarge",
|
|
15755
|
+
inputs: [
|
|
15756
|
+
]
|
|
15757
|
+
},
|
|
15684
15758
|
{
|
|
15685
15759
|
type: "error",
|
|
15686
15760
|
name: "TooManyTags",
|
|
@@ -16024,6 +16098,18 @@ var BatchOrdersFacet = [
|
|
|
16024
16098
|
inputs: [
|
|
16025
16099
|
]
|
|
16026
16100
|
},
|
|
16101
|
+
{
|
|
16102
|
+
type: "error",
|
|
16103
|
+
name: "MakerErc165CallFailed",
|
|
16104
|
+
inputs: [
|
|
16105
|
+
]
|
|
16106
|
+
},
|
|
16107
|
+
{
|
|
16108
|
+
type: "error",
|
|
16109
|
+
name: "MakerNotErc1155Receiver",
|
|
16110
|
+
inputs: [
|
|
16111
|
+
]
|
|
16112
|
+
},
|
|
16027
16113
|
{
|
|
16028
16114
|
type: "error",
|
|
16029
16115
|
name: "MarketNotActive",
|
package/dist/index.d.ts
CHANGED
|
@@ -10812,6 +10812,16 @@ var MarketsFacet = [
|
|
|
10812
10812
|
name: "protocolFeeBps",
|
|
10813
10813
|
type: "uint256",
|
|
10814
10814
|
internalType: "uint256"
|
|
10815
|
+
},
|
|
10816
|
+
{
|
|
10817
|
+
name: "protocolFeeRecipient",
|
|
10818
|
+
type: "address",
|
|
10819
|
+
internalType: "address"
|
|
10820
|
+
},
|
|
10821
|
+
{
|
|
10822
|
+
name: "venueFeeRecipient",
|
|
10823
|
+
type: "address",
|
|
10824
|
+
internalType: "address"
|
|
10815
10825
|
}
|
|
10816
10826
|
]
|
|
10817
10827
|
}
|
|
@@ -11713,6 +11723,18 @@ var LimitOrdersFacet = [
|
|
|
11713
11723
|
inputs: [
|
|
11714
11724
|
]
|
|
11715
11725
|
},
|
|
11726
|
+
{
|
|
11727
|
+
type: "error",
|
|
11728
|
+
name: "MakerErc165CallFailed",
|
|
11729
|
+
inputs: [
|
|
11730
|
+
]
|
|
11731
|
+
},
|
|
11732
|
+
{
|
|
11733
|
+
type: "error",
|
|
11734
|
+
name: "MakerNotErc1155Receiver",
|
|
11735
|
+
inputs: [
|
|
11736
|
+
]
|
|
11737
|
+
},
|
|
11716
11738
|
{
|
|
11717
11739
|
type: "error",
|
|
11718
11740
|
name: "MarketNotActive",
|
|
@@ -13337,6 +13359,18 @@ var MarketOrdersFacet = [
|
|
|
13337
13359
|
inputs: [
|
|
13338
13360
|
]
|
|
13339
13361
|
},
|
|
13362
|
+
{
|
|
13363
|
+
type: "error",
|
|
13364
|
+
name: "MakerErc165CallFailed",
|
|
13365
|
+
inputs: [
|
|
13366
|
+
]
|
|
13367
|
+
},
|
|
13368
|
+
{
|
|
13369
|
+
type: "error",
|
|
13370
|
+
name: "MakerNotErc1155Receiver",
|
|
13371
|
+
inputs: [
|
|
13372
|
+
]
|
|
13373
|
+
},
|
|
13340
13374
|
{
|
|
13341
13375
|
type: "error",
|
|
13342
13376
|
name: "MarketNotActive",
|
|
@@ -14101,6 +14135,34 @@ var NegRiskFacet = [
|
|
|
14101
14135
|
name: "ApproveFailed",
|
|
14102
14136
|
inputs: [
|
|
14103
14137
|
]
|
|
14138
|
+
},
|
|
14139
|
+
{
|
|
14140
|
+
type: "error",
|
|
14141
|
+
name: "DuplicateConditionId",
|
|
14142
|
+
inputs: [
|
|
14143
|
+
{
|
|
14144
|
+
name: "conditionId",
|
|
14145
|
+
type: "bytes32",
|
|
14146
|
+
internalType: "bytes32"
|
|
14147
|
+
}
|
|
14148
|
+
]
|
|
14149
|
+
},
|
|
14150
|
+
{
|
|
14151
|
+
type: "error",
|
|
14152
|
+
name: "InvalidIndexSet",
|
|
14153
|
+
inputs: [
|
|
14154
|
+
]
|
|
14155
|
+
},
|
|
14156
|
+
{
|
|
14157
|
+
type: "error",
|
|
14158
|
+
name: "UnregisteredConditionId",
|
|
14159
|
+
inputs: [
|
|
14160
|
+
{
|
|
14161
|
+
name: "conditionId",
|
|
14162
|
+
type: "bytes32",
|
|
14163
|
+
internalType: "bytes32"
|
|
14164
|
+
}
|
|
14165
|
+
]
|
|
14104
14166
|
}
|
|
14105
14167
|
];
|
|
14106
14168
|
|
|
@@ -15194,6 +15256,20 @@ var PythResolutionFacet = [
|
|
|
15194
15256
|
],
|
|
15195
15257
|
stateMutability: "payable"
|
|
15196
15258
|
},
|
|
15259
|
+
{
|
|
15260
|
+
type: "function",
|
|
15261
|
+
name: "getOpenMaxStaleness",
|
|
15262
|
+
inputs: [
|
|
15263
|
+
],
|
|
15264
|
+
outputs: [
|
|
15265
|
+
{
|
|
15266
|
+
name: "",
|
|
15267
|
+
type: "uint256",
|
|
15268
|
+
internalType: "uint256"
|
|
15269
|
+
}
|
|
15270
|
+
],
|
|
15271
|
+
stateMutability: "view"
|
|
15272
|
+
},
|
|
15197
15273
|
{
|
|
15198
15274
|
type: "function",
|
|
15199
15275
|
name: "getPythContract",
|
|
@@ -15227,20 +15303,6 @@ var PythResolutionFacet = [
|
|
|
15227
15303
|
],
|
|
15228
15304
|
stateMutability: "payable"
|
|
15229
15305
|
},
|
|
15230
|
-
{
|
|
15231
|
-
type: "function",
|
|
15232
|
-
name: "setPythContract",
|
|
15233
|
-
inputs: [
|
|
15234
|
-
{
|
|
15235
|
-
name: "pythContract",
|
|
15236
|
-
type: "address",
|
|
15237
|
-
internalType: "address"
|
|
15238
|
-
}
|
|
15239
|
-
],
|
|
15240
|
-
outputs: [
|
|
15241
|
-
],
|
|
15242
|
-
stateMutability: "nonpayable"
|
|
15243
|
-
},
|
|
15244
15306
|
{
|
|
15245
15307
|
type: "function",
|
|
15246
15308
|
name: "setOpenMaxStaleness",
|
|
@@ -15257,17 +15319,17 @@ var PythResolutionFacet = [
|
|
|
15257
15319
|
},
|
|
15258
15320
|
{
|
|
15259
15321
|
type: "function",
|
|
15260
|
-
name: "
|
|
15322
|
+
name: "setPythContract",
|
|
15261
15323
|
inputs: [
|
|
15262
|
-
],
|
|
15263
|
-
outputs: [
|
|
15264
15324
|
{
|
|
15265
|
-
name: "",
|
|
15266
|
-
type: "
|
|
15267
|
-
internalType: "
|
|
15325
|
+
name: "pythContract",
|
|
15326
|
+
type: "address",
|
|
15327
|
+
internalType: "address"
|
|
15268
15328
|
}
|
|
15269
15329
|
],
|
|
15270
|
-
|
|
15330
|
+
outputs: [
|
|
15331
|
+
],
|
|
15332
|
+
stateMutability: "nonpayable"
|
|
15271
15333
|
},
|
|
15272
15334
|
{
|
|
15273
15335
|
type: "event",
|
|
@@ -15392,6 +15454,19 @@ var PythResolutionFacet = [
|
|
|
15392
15454
|
],
|
|
15393
15455
|
anonymous: false
|
|
15394
15456
|
},
|
|
15457
|
+
{
|
|
15458
|
+
type: "event",
|
|
15459
|
+
name: "OpenMaxStalenessUpdated",
|
|
15460
|
+
inputs: [
|
|
15461
|
+
{
|
|
15462
|
+
name: "openMaxStaleness",
|
|
15463
|
+
type: "uint256",
|
|
15464
|
+
indexed: false,
|
|
15465
|
+
internalType: "uint256"
|
|
15466
|
+
}
|
|
15467
|
+
],
|
|
15468
|
+
anonymous: false
|
|
15469
|
+
},
|
|
15395
15470
|
{
|
|
15396
15471
|
type: "event",
|
|
15397
15472
|
name: "PriceMarketCreatedPyth",
|
|
@@ -15491,19 +15566,6 @@ var PythResolutionFacet = [
|
|
|
15491
15566
|
],
|
|
15492
15567
|
anonymous: false
|
|
15493
15568
|
},
|
|
15494
|
-
{
|
|
15495
|
-
type: "event",
|
|
15496
|
-
name: "OpenMaxStalenessUpdated",
|
|
15497
|
-
inputs: [
|
|
15498
|
-
{
|
|
15499
|
-
name: "openMaxStaleness",
|
|
15500
|
-
type: "uint256",
|
|
15501
|
-
indexed: false,
|
|
15502
|
-
internalType: "uint256"
|
|
15503
|
-
}
|
|
15504
|
-
],
|
|
15505
|
-
anonymous: false
|
|
15506
|
-
},
|
|
15507
15569
|
{
|
|
15508
15570
|
type: "event",
|
|
15509
15571
|
name: "WrappedCollateralRegistered",
|
|
@@ -15623,6 +15685,12 @@ var PythResolutionFacet = [
|
|
|
15623
15685
|
inputs: [
|
|
15624
15686
|
]
|
|
15625
15687
|
},
|
|
15688
|
+
{
|
|
15689
|
+
type: "error",
|
|
15690
|
+
name: "NoValidPriceUpdate",
|
|
15691
|
+
inputs: [
|
|
15692
|
+
]
|
|
15693
|
+
},
|
|
15626
15694
|
{
|
|
15627
15695
|
type: "error",
|
|
15628
15696
|
name: "NotContractOwner",
|
|
@@ -15681,6 +15749,12 @@ var PythResolutionFacet = [
|
|
|
15681
15749
|
inputs: [
|
|
15682
15750
|
]
|
|
15683
15751
|
},
|
|
15752
|
+
{
|
|
15753
|
+
type: "error",
|
|
15754
|
+
name: "ResolutionWindowTooLarge",
|
|
15755
|
+
inputs: [
|
|
15756
|
+
]
|
|
15757
|
+
},
|
|
15684
15758
|
{
|
|
15685
15759
|
type: "error",
|
|
15686
15760
|
name: "TooManyTags",
|
|
@@ -16024,6 +16098,18 @@ var BatchOrdersFacet = [
|
|
|
16024
16098
|
inputs: [
|
|
16025
16099
|
]
|
|
16026
16100
|
},
|
|
16101
|
+
{
|
|
16102
|
+
type: "error",
|
|
16103
|
+
name: "MakerErc165CallFailed",
|
|
16104
|
+
inputs: [
|
|
16105
|
+
]
|
|
16106
|
+
},
|
|
16107
|
+
{
|
|
16108
|
+
type: "error",
|
|
16109
|
+
name: "MakerNotErc1155Receiver",
|
|
16110
|
+
inputs: [
|
|
16111
|
+
]
|
|
16112
|
+
},
|
|
16027
16113
|
{
|
|
16028
16114
|
type: "error",
|
|
16029
16115
|
name: "MarketNotActive",
|
package/dist/index.js
CHANGED
|
@@ -7,9 +7,9 @@ var graphqlRequest = require('graphql-request');
|
|
|
7
7
|
// src/client.ts
|
|
8
8
|
var CONTRACT_ADDRESSES = {
|
|
9
9
|
[chains.baseSepolia.id]: {
|
|
10
|
-
diamond: "
|
|
10
|
+
diamond: "0xd6b87a68de56ddef64b270feb74fd3c684e91b20",
|
|
11
11
|
conditionalTokens: "0x7364747372Ac4a175B5326f5B2C9CB1C271d32e8",
|
|
12
|
-
usdc: "
|
|
12
|
+
usdc: "0x9a537902b0456ce532ee58859a0e9db47c647668",
|
|
13
13
|
subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki/version/latest"
|
|
14
14
|
}
|
|
15
15
|
};
|
|
@@ -919,6 +919,16 @@ var MarketsFacet_default = [
|
|
|
919
919
|
name: "protocolFeeBps",
|
|
920
920
|
type: "uint256",
|
|
921
921
|
internalType: "uint256"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
name: "protocolFeeRecipient",
|
|
925
|
+
type: "address",
|
|
926
|
+
internalType: "address"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
name: "venueFeeRecipient",
|
|
930
|
+
type: "address",
|
|
931
|
+
internalType: "address"
|
|
922
932
|
}
|
|
923
933
|
]
|
|
924
934
|
}
|
|
@@ -1786,6 +1796,16 @@ var LimitOrdersFacet_default = [
|
|
|
1786
1796
|
name: "InvalidTick",
|
|
1787
1797
|
inputs: []
|
|
1788
1798
|
},
|
|
1799
|
+
{
|
|
1800
|
+
type: "error",
|
|
1801
|
+
name: "MakerErc165CallFailed",
|
|
1802
|
+
inputs: []
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
type: "error",
|
|
1806
|
+
name: "MakerNotErc1155Receiver",
|
|
1807
|
+
inputs: []
|
|
1808
|
+
},
|
|
1789
1809
|
{
|
|
1790
1810
|
type: "error",
|
|
1791
1811
|
name: "MarketNotActive",
|
|
@@ -3373,6 +3393,16 @@ var MarketOrdersFacet_default = [
|
|
|
3373
3393
|
name: "InvalidOutcome",
|
|
3374
3394
|
inputs: []
|
|
3375
3395
|
},
|
|
3396
|
+
{
|
|
3397
|
+
type: "error",
|
|
3398
|
+
name: "MakerErc165CallFailed",
|
|
3399
|
+
inputs: []
|
|
3400
|
+
},
|
|
3401
|
+
{
|
|
3402
|
+
type: "error",
|
|
3403
|
+
name: "MakerNotErc1155Receiver",
|
|
3404
|
+
inputs: []
|
|
3405
|
+
},
|
|
3376
3406
|
{
|
|
3377
3407
|
type: "error",
|
|
3378
3408
|
name: "MarketNotActive",
|
|
@@ -4093,6 +4123,33 @@ var NegRiskFacet_default = [
|
|
|
4093
4123
|
type: "error",
|
|
4094
4124
|
name: "ApproveFailed",
|
|
4095
4125
|
inputs: []
|
|
4126
|
+
},
|
|
4127
|
+
{
|
|
4128
|
+
type: "error",
|
|
4129
|
+
name: "DuplicateConditionId",
|
|
4130
|
+
inputs: [
|
|
4131
|
+
{
|
|
4132
|
+
name: "conditionId",
|
|
4133
|
+
type: "bytes32",
|
|
4134
|
+
internalType: "bytes32"
|
|
4135
|
+
}
|
|
4136
|
+
]
|
|
4137
|
+
},
|
|
4138
|
+
{
|
|
4139
|
+
type: "error",
|
|
4140
|
+
name: "InvalidIndexSet",
|
|
4141
|
+
inputs: []
|
|
4142
|
+
},
|
|
4143
|
+
{
|
|
4144
|
+
type: "error",
|
|
4145
|
+
name: "UnregisteredConditionId",
|
|
4146
|
+
inputs: [
|
|
4147
|
+
{
|
|
4148
|
+
name: "conditionId",
|
|
4149
|
+
type: "bytes32",
|
|
4150
|
+
internalType: "bytes32"
|
|
4151
|
+
}
|
|
4152
|
+
]
|
|
4096
4153
|
}
|
|
4097
4154
|
];
|
|
4098
4155
|
|
|
@@ -5153,6 +5210,19 @@ var PythResolutionFacet_default = [
|
|
|
5153
5210
|
],
|
|
5154
5211
|
stateMutability: "payable"
|
|
5155
5212
|
},
|
|
5213
|
+
{
|
|
5214
|
+
type: "function",
|
|
5215
|
+
name: "getOpenMaxStaleness",
|
|
5216
|
+
inputs: [],
|
|
5217
|
+
outputs: [
|
|
5218
|
+
{
|
|
5219
|
+
name: "",
|
|
5220
|
+
type: "uint256",
|
|
5221
|
+
internalType: "uint256"
|
|
5222
|
+
}
|
|
5223
|
+
],
|
|
5224
|
+
stateMutability: "view"
|
|
5225
|
+
},
|
|
5156
5226
|
{
|
|
5157
5227
|
type: "function",
|
|
5158
5228
|
name: "getPythContract",
|
|
@@ -5184,19 +5254,6 @@ var PythResolutionFacet_default = [
|
|
|
5184
5254
|
outputs: [],
|
|
5185
5255
|
stateMutability: "payable"
|
|
5186
5256
|
},
|
|
5187
|
-
{
|
|
5188
|
-
type: "function",
|
|
5189
|
-
name: "setPythContract",
|
|
5190
|
-
inputs: [
|
|
5191
|
-
{
|
|
5192
|
-
name: "pythContract",
|
|
5193
|
-
type: "address",
|
|
5194
|
-
internalType: "address"
|
|
5195
|
-
}
|
|
5196
|
-
],
|
|
5197
|
-
outputs: [],
|
|
5198
|
-
stateMutability: "nonpayable"
|
|
5199
|
-
},
|
|
5200
5257
|
{
|
|
5201
5258
|
type: "function",
|
|
5202
5259
|
name: "setOpenMaxStaleness",
|
|
@@ -5212,16 +5269,16 @@ var PythResolutionFacet_default = [
|
|
|
5212
5269
|
},
|
|
5213
5270
|
{
|
|
5214
5271
|
type: "function",
|
|
5215
|
-
name: "
|
|
5216
|
-
inputs: [
|
|
5217
|
-
outputs: [
|
|
5272
|
+
name: "setPythContract",
|
|
5273
|
+
inputs: [
|
|
5218
5274
|
{
|
|
5219
|
-
name: "",
|
|
5220
|
-
type: "
|
|
5221
|
-
internalType: "
|
|
5275
|
+
name: "pythContract",
|
|
5276
|
+
type: "address",
|
|
5277
|
+
internalType: "address"
|
|
5222
5278
|
}
|
|
5223
5279
|
],
|
|
5224
|
-
|
|
5280
|
+
outputs: [],
|
|
5281
|
+
stateMutability: "nonpayable"
|
|
5225
5282
|
},
|
|
5226
5283
|
{
|
|
5227
5284
|
type: "event",
|
|
@@ -5346,6 +5403,19 @@ var PythResolutionFacet_default = [
|
|
|
5346
5403
|
],
|
|
5347
5404
|
anonymous: false
|
|
5348
5405
|
},
|
|
5406
|
+
{
|
|
5407
|
+
type: "event",
|
|
5408
|
+
name: "OpenMaxStalenessUpdated",
|
|
5409
|
+
inputs: [
|
|
5410
|
+
{
|
|
5411
|
+
name: "openMaxStaleness",
|
|
5412
|
+
type: "uint256",
|
|
5413
|
+
indexed: false,
|
|
5414
|
+
internalType: "uint256"
|
|
5415
|
+
}
|
|
5416
|
+
],
|
|
5417
|
+
anonymous: false
|
|
5418
|
+
},
|
|
5349
5419
|
{
|
|
5350
5420
|
type: "event",
|
|
5351
5421
|
name: "PriceMarketCreatedPyth",
|
|
@@ -5445,19 +5515,6 @@ var PythResolutionFacet_default = [
|
|
|
5445
5515
|
],
|
|
5446
5516
|
anonymous: false
|
|
5447
5517
|
},
|
|
5448
|
-
{
|
|
5449
|
-
type: "event",
|
|
5450
|
-
name: "OpenMaxStalenessUpdated",
|
|
5451
|
-
inputs: [
|
|
5452
|
-
{
|
|
5453
|
-
name: "openMaxStaleness",
|
|
5454
|
-
type: "uint256",
|
|
5455
|
-
indexed: false,
|
|
5456
|
-
internalType: "uint256"
|
|
5457
|
-
}
|
|
5458
|
-
],
|
|
5459
|
-
anonymous: false
|
|
5460
|
-
},
|
|
5461
5518
|
{
|
|
5462
5519
|
type: "event",
|
|
5463
5520
|
name: "WrappedCollateralRegistered",
|
|
@@ -5563,6 +5620,11 @@ var PythResolutionFacet_default = [
|
|
|
5563
5620
|
name: "MarketNotActive",
|
|
5564
5621
|
inputs: []
|
|
5565
5622
|
},
|
|
5623
|
+
{
|
|
5624
|
+
type: "error",
|
|
5625
|
+
name: "NoValidPriceUpdate",
|
|
5626
|
+
inputs: []
|
|
5627
|
+
},
|
|
5566
5628
|
{
|
|
5567
5629
|
type: "error",
|
|
5568
5630
|
name: "NotContractOwner",
|
|
@@ -5614,6 +5676,11 @@ var PythResolutionFacet_default = [
|
|
|
5614
5676
|
name: "RegistryAlreadyExists",
|
|
5615
5677
|
inputs: []
|
|
5616
5678
|
},
|
|
5679
|
+
{
|
|
5680
|
+
type: "error",
|
|
5681
|
+
name: "ResolutionWindowTooLarge",
|
|
5682
|
+
inputs: []
|
|
5683
|
+
},
|
|
5617
5684
|
{
|
|
5618
5685
|
type: "error",
|
|
5619
5686
|
name: "TooManyTags",
|
|
@@ -5945,6 +6012,16 @@ var BatchOrdersFacet_default = [
|
|
|
5945
6012
|
name: "InvalidTick",
|
|
5946
6013
|
inputs: []
|
|
5947
6014
|
},
|
|
6015
|
+
{
|
|
6016
|
+
type: "error",
|
|
6017
|
+
name: "MakerErc165CallFailed",
|
|
6018
|
+
inputs: []
|
|
6019
|
+
},
|
|
6020
|
+
{
|
|
6021
|
+
type: "error",
|
|
6022
|
+
name: "MakerNotErc1155Receiver",
|
|
6023
|
+
inputs: []
|
|
6024
|
+
},
|
|
5948
6025
|
{
|
|
5949
6026
|
type: "error",
|
|
5950
6027
|
name: "MarketNotActive",
|