@oddmaki-protocol/sdk 0.1.3 → 0.2.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 +179 -40
- package/dist/index.d.ts +179 -40
- package/dist/index.js +224 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +224 -42
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -8618,10 +8618,53 @@ declare class TradeModule extends BaseModule {
|
|
|
8618
8618
|
qty: bigint;
|
|
8619
8619
|
expiry: bigint;
|
|
8620
8620
|
}): Promise<never>;
|
|
8621
|
+
/**
|
|
8622
|
+
* Execute a market sell order (FOK or FAK)
|
|
8623
|
+
*
|
|
8624
|
+
* @param params.marketId - The market to sell on
|
|
8625
|
+
* @param params.outcomeId - Which outcome to sell (0=YES, 1=NO)
|
|
8626
|
+
* @param params.tokenAmount - Amount of outcome tokens to sell
|
|
8627
|
+
* @param params.minPriceTick - Minimum price tick willing to accept (slippage protection)
|
|
8628
|
+
* @param params.orderType - 0=FOK (Fill-Or-Kill), 1=FAK (Fill-And-Kill)
|
|
8629
|
+
*/
|
|
8630
|
+
placeMarketSell(params: {
|
|
8631
|
+
marketId: bigint;
|
|
8632
|
+
outcomeId: bigint;
|
|
8633
|
+
tokenAmount: bigint;
|
|
8634
|
+
minPriceTick: bigint;
|
|
8635
|
+
orderType: number;
|
|
8636
|
+
}): Promise<`0x${string}`>;
|
|
8637
|
+
/**
|
|
8638
|
+
* Execute a market sell order with simple string inputs (recommended for frontends)
|
|
8639
|
+
* @param params.amount - Token amount as decimal string (e.g., "100.5")
|
|
8640
|
+
* @param params.minPrice - Minimum price as decimal string (e.g., "0.70")
|
|
8641
|
+
* @param params.orderType - 'FOK' or 'FAK' (default: 'FAK')
|
|
8642
|
+
*/
|
|
8643
|
+
placeMarketSellSimple(params: {
|
|
8644
|
+
marketId: bigint;
|
|
8645
|
+
outcomeId: bigint;
|
|
8646
|
+
amount: string;
|
|
8647
|
+
minPrice: string;
|
|
8648
|
+
orderType?: 'FOK' | 'FAK';
|
|
8649
|
+
}): Promise<`0x${string}`>;
|
|
8650
|
+
/**
|
|
8651
|
+
* Preview a market sell order (simulate transaction)
|
|
8652
|
+
*/
|
|
8653
|
+
previewMarketSell(params: {
|
|
8654
|
+
marketId: bigint;
|
|
8655
|
+
outcomeId: bigint;
|
|
8656
|
+
tokenAmount: bigint;
|
|
8657
|
+
minPriceTick: bigint;
|
|
8658
|
+
orderType: number;
|
|
8659
|
+
}): Promise<never>;
|
|
8621
8660
|
/**
|
|
8622
8661
|
* Watch for MarketOrderExecuted events
|
|
8623
8662
|
*/
|
|
8624
8663
|
watchMarketOrder(marketId: bigint, onLogs: (logs: any[]) => void): viem.WatchContractEventReturnType;
|
|
8664
|
+
/**
|
|
8665
|
+
* Watch for MarketSellExecuted events
|
|
8666
|
+
*/
|
|
8667
|
+
watchMarketSell(marketId: bigint, onLogs: (logs: any[]) => void): viem.WatchContractEventReturnType;
|
|
8625
8668
|
/**
|
|
8626
8669
|
* Check whether any orders are matchable in the given market.
|
|
8627
8670
|
* Returns a preview of which fill paths have crossing conditions,
|
|
@@ -15918,6 +15961,30 @@ var WhitelistAccessControl = [
|
|
|
15918
15961
|
];
|
|
15919
15962
|
|
|
15920
15963
|
var ConditionalTokens = [
|
|
15964
|
+
{
|
|
15965
|
+
type: "function",
|
|
15966
|
+
name: "balanceOf",
|
|
15967
|
+
inputs: [
|
|
15968
|
+
{
|
|
15969
|
+
name: "account",
|
|
15970
|
+
type: "address",
|
|
15971
|
+
internalType: "address"
|
|
15972
|
+
},
|
|
15973
|
+
{
|
|
15974
|
+
name: "id",
|
|
15975
|
+
type: "uint256",
|
|
15976
|
+
internalType: "uint256"
|
|
15977
|
+
}
|
|
15978
|
+
],
|
|
15979
|
+
outputs: [
|
|
15980
|
+
{
|
|
15981
|
+
name: "",
|
|
15982
|
+
type: "uint256",
|
|
15983
|
+
internalType: "uint256"
|
|
15984
|
+
}
|
|
15985
|
+
],
|
|
15986
|
+
stateMutability: "view"
|
|
15987
|
+
},
|
|
15921
15988
|
{
|
|
15922
15989
|
type: "function",
|
|
15923
15990
|
name: "getCollectionId",
|
|
@@ -15940,7 +16007,7 @@ var ConditionalTokens = [
|
|
|
15940
16007
|
],
|
|
15941
16008
|
outputs: [
|
|
15942
16009
|
{
|
|
15943
|
-
name: "",
|
|
16010
|
+
name: "collectionId",
|
|
15944
16011
|
type: "bytes32",
|
|
15945
16012
|
internalType: "bytes32"
|
|
15946
16013
|
}
|
|
@@ -15969,7 +16036,7 @@ var ConditionalTokens = [
|
|
|
15969
16036
|
],
|
|
15970
16037
|
outputs: [
|
|
15971
16038
|
{
|
|
15972
|
-
name: "",
|
|
16039
|
+
name: "conditionId",
|
|
15973
16040
|
type: "bytes32",
|
|
15974
16041
|
internalType: "bytes32"
|
|
15975
16042
|
}
|
|
@@ -15988,13 +16055,37 @@ var ConditionalTokens = [
|
|
|
15988
16055
|
],
|
|
15989
16056
|
outputs: [
|
|
15990
16057
|
{
|
|
15991
|
-
name: "",
|
|
16058
|
+
name: "outcomeSlotCount",
|
|
15992
16059
|
type: "uint256",
|
|
15993
16060
|
internalType: "uint256"
|
|
15994
16061
|
}
|
|
15995
16062
|
],
|
|
15996
16063
|
stateMutability: "view"
|
|
15997
16064
|
},
|
|
16065
|
+
{
|
|
16066
|
+
type: "function",
|
|
16067
|
+
name: "getPositionId",
|
|
16068
|
+
inputs: [
|
|
16069
|
+
{
|
|
16070
|
+
name: "collateralToken",
|
|
16071
|
+
type: "address",
|
|
16072
|
+
internalType: "contract IERC20"
|
|
16073
|
+
},
|
|
16074
|
+
{
|
|
16075
|
+
name: "collectionId",
|
|
16076
|
+
type: "bytes32",
|
|
16077
|
+
internalType: "bytes32"
|
|
16078
|
+
}
|
|
16079
|
+
],
|
|
16080
|
+
outputs: [
|
|
16081
|
+
{
|
|
16082
|
+
name: "positionId",
|
|
16083
|
+
type: "uint256",
|
|
16084
|
+
internalType: "uint256"
|
|
16085
|
+
}
|
|
16086
|
+
],
|
|
16087
|
+
stateMutability: "pure"
|
|
16088
|
+
},
|
|
15998
16089
|
{
|
|
15999
16090
|
type: "function",
|
|
16000
16091
|
name: "mergePositions",
|
|
@@ -16029,6 +16120,49 @@ var ConditionalTokens = [
|
|
|
16029
16120
|
],
|
|
16030
16121
|
stateMutability: "nonpayable"
|
|
16031
16122
|
},
|
|
16123
|
+
{
|
|
16124
|
+
type: "function",
|
|
16125
|
+
name: "payoutDenominator",
|
|
16126
|
+
inputs: [
|
|
16127
|
+
{
|
|
16128
|
+
name: "conditionId",
|
|
16129
|
+
type: "bytes32",
|
|
16130
|
+
internalType: "bytes32"
|
|
16131
|
+
}
|
|
16132
|
+
],
|
|
16133
|
+
outputs: [
|
|
16134
|
+
{
|
|
16135
|
+
name: "",
|
|
16136
|
+
type: "uint256",
|
|
16137
|
+
internalType: "uint256"
|
|
16138
|
+
}
|
|
16139
|
+
],
|
|
16140
|
+
stateMutability: "view"
|
|
16141
|
+
},
|
|
16142
|
+
{
|
|
16143
|
+
type: "function",
|
|
16144
|
+
name: "payoutNumerators",
|
|
16145
|
+
inputs: [
|
|
16146
|
+
{
|
|
16147
|
+
name: "conditionId",
|
|
16148
|
+
type: "bytes32",
|
|
16149
|
+
internalType: "bytes32"
|
|
16150
|
+
},
|
|
16151
|
+
{
|
|
16152
|
+
name: "index",
|
|
16153
|
+
type: "uint256",
|
|
16154
|
+
internalType: "uint256"
|
|
16155
|
+
}
|
|
16156
|
+
],
|
|
16157
|
+
outputs: [
|
|
16158
|
+
{
|
|
16159
|
+
name: "",
|
|
16160
|
+
type: "uint256",
|
|
16161
|
+
internalType: "uint256"
|
|
16162
|
+
}
|
|
16163
|
+
],
|
|
16164
|
+
stateMutability: "view"
|
|
16165
|
+
},
|
|
16032
16166
|
{
|
|
16033
16167
|
type: "function",
|
|
16034
16168
|
name: "prepareCondition",
|
|
@@ -16053,6 +16187,35 @@ var ConditionalTokens = [
|
|
|
16053
16187
|
],
|
|
16054
16188
|
stateMutability: "nonpayable"
|
|
16055
16189
|
},
|
|
16190
|
+
{
|
|
16191
|
+
type: "function",
|
|
16192
|
+
name: "redeemPositions",
|
|
16193
|
+
inputs: [
|
|
16194
|
+
{
|
|
16195
|
+
name: "collateralToken",
|
|
16196
|
+
type: "address",
|
|
16197
|
+
internalType: "contract IERC20"
|
|
16198
|
+
},
|
|
16199
|
+
{
|
|
16200
|
+
name: "parentCollectionId",
|
|
16201
|
+
type: "bytes32",
|
|
16202
|
+
internalType: "bytes32"
|
|
16203
|
+
},
|
|
16204
|
+
{
|
|
16205
|
+
name: "conditionId",
|
|
16206
|
+
type: "bytes32",
|
|
16207
|
+
internalType: "bytes32"
|
|
16208
|
+
},
|
|
16209
|
+
{
|
|
16210
|
+
name: "indexSets",
|
|
16211
|
+
type: "uint256[]",
|
|
16212
|
+
internalType: "uint256[]"
|
|
16213
|
+
}
|
|
16214
|
+
],
|
|
16215
|
+
outputs: [
|
|
16216
|
+
],
|
|
16217
|
+
stateMutability: "nonpayable"
|
|
16218
|
+
},
|
|
16056
16219
|
{
|
|
16057
16220
|
type: "function",
|
|
16058
16221
|
name: "reportPayouts",
|
|
@@ -16113,14 +16276,19 @@ var ERC20 = [
|
|
|
16113
16276
|
type: "constructor",
|
|
16114
16277
|
inputs: [
|
|
16115
16278
|
{
|
|
16116
|
-
name: "
|
|
16279
|
+
name: "_name",
|
|
16117
16280
|
type: "string",
|
|
16118
16281
|
internalType: "string"
|
|
16119
16282
|
},
|
|
16120
16283
|
{
|
|
16121
|
-
name: "
|
|
16284
|
+
name: "_symbol",
|
|
16122
16285
|
type: "string",
|
|
16123
16286
|
internalType: "string"
|
|
16287
|
+
},
|
|
16288
|
+
{
|
|
16289
|
+
name: "_decimals",
|
|
16290
|
+
type: "uint8",
|
|
16291
|
+
internalType: "uint8"
|
|
16124
16292
|
}
|
|
16125
16293
|
],
|
|
16126
16294
|
stateMutability: "nonpayable"
|
|
@@ -16130,12 +16298,12 @@ var ERC20 = [
|
|
|
16130
16298
|
name: "allowance",
|
|
16131
16299
|
inputs: [
|
|
16132
16300
|
{
|
|
16133
|
-
name: "
|
|
16301
|
+
name: "",
|
|
16134
16302
|
type: "address",
|
|
16135
16303
|
internalType: "address"
|
|
16136
16304
|
},
|
|
16137
16305
|
{
|
|
16138
|
-
name: "
|
|
16306
|
+
name: "",
|
|
16139
16307
|
type: "address",
|
|
16140
16308
|
internalType: "address"
|
|
16141
16309
|
}
|
|
@@ -16178,7 +16346,7 @@ var ERC20 = [
|
|
|
16178
16346
|
name: "balanceOf",
|
|
16179
16347
|
inputs: [
|
|
16180
16348
|
{
|
|
16181
|
-
name: "
|
|
16349
|
+
name: "",
|
|
16182
16350
|
type: "address",
|
|
16183
16351
|
internalType: "address"
|
|
16184
16352
|
}
|
|
@@ -16208,49 +16376,20 @@ var ERC20 = [
|
|
|
16208
16376
|
},
|
|
16209
16377
|
{
|
|
16210
16378
|
type: "function",
|
|
16211
|
-
name: "
|
|
16379
|
+
name: "mint",
|
|
16212
16380
|
inputs: [
|
|
16213
16381
|
{
|
|
16214
|
-
name: "
|
|
16215
|
-
type: "address",
|
|
16216
|
-
internalType: "address"
|
|
16217
|
-
},
|
|
16218
|
-
{
|
|
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",
|
|
16382
|
+
name: "to",
|
|
16239
16383
|
type: "address",
|
|
16240
16384
|
internalType: "address"
|
|
16241
16385
|
},
|
|
16242
16386
|
{
|
|
16243
|
-
name: "
|
|
16387
|
+
name: "amount",
|
|
16244
16388
|
type: "uint256",
|
|
16245
16389
|
internalType: "uint256"
|
|
16246
16390
|
}
|
|
16247
16391
|
],
|
|
16248
16392
|
outputs: [
|
|
16249
|
-
{
|
|
16250
|
-
name: "",
|
|
16251
|
-
type: "bool",
|
|
16252
|
-
internalType: "bool"
|
|
16253
|
-
}
|
|
16254
16393
|
],
|
|
16255
16394
|
stateMutability: "nonpayable"
|
|
16256
16395
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -8618,10 +8618,53 @@ declare class TradeModule extends BaseModule {
|
|
|
8618
8618
|
qty: bigint;
|
|
8619
8619
|
expiry: bigint;
|
|
8620
8620
|
}): Promise<never>;
|
|
8621
|
+
/**
|
|
8622
|
+
* Execute a market sell order (FOK or FAK)
|
|
8623
|
+
*
|
|
8624
|
+
* @param params.marketId - The market to sell on
|
|
8625
|
+
* @param params.outcomeId - Which outcome to sell (0=YES, 1=NO)
|
|
8626
|
+
* @param params.tokenAmount - Amount of outcome tokens to sell
|
|
8627
|
+
* @param params.minPriceTick - Minimum price tick willing to accept (slippage protection)
|
|
8628
|
+
* @param params.orderType - 0=FOK (Fill-Or-Kill), 1=FAK (Fill-And-Kill)
|
|
8629
|
+
*/
|
|
8630
|
+
placeMarketSell(params: {
|
|
8631
|
+
marketId: bigint;
|
|
8632
|
+
outcomeId: bigint;
|
|
8633
|
+
tokenAmount: bigint;
|
|
8634
|
+
minPriceTick: bigint;
|
|
8635
|
+
orderType: number;
|
|
8636
|
+
}): Promise<`0x${string}`>;
|
|
8637
|
+
/**
|
|
8638
|
+
* Execute a market sell order with simple string inputs (recommended for frontends)
|
|
8639
|
+
* @param params.amount - Token amount as decimal string (e.g., "100.5")
|
|
8640
|
+
* @param params.minPrice - Minimum price as decimal string (e.g., "0.70")
|
|
8641
|
+
* @param params.orderType - 'FOK' or 'FAK' (default: 'FAK')
|
|
8642
|
+
*/
|
|
8643
|
+
placeMarketSellSimple(params: {
|
|
8644
|
+
marketId: bigint;
|
|
8645
|
+
outcomeId: bigint;
|
|
8646
|
+
amount: string;
|
|
8647
|
+
minPrice: string;
|
|
8648
|
+
orderType?: 'FOK' | 'FAK';
|
|
8649
|
+
}): Promise<`0x${string}`>;
|
|
8650
|
+
/**
|
|
8651
|
+
* Preview a market sell order (simulate transaction)
|
|
8652
|
+
*/
|
|
8653
|
+
previewMarketSell(params: {
|
|
8654
|
+
marketId: bigint;
|
|
8655
|
+
outcomeId: bigint;
|
|
8656
|
+
tokenAmount: bigint;
|
|
8657
|
+
minPriceTick: bigint;
|
|
8658
|
+
orderType: number;
|
|
8659
|
+
}): Promise<never>;
|
|
8621
8660
|
/**
|
|
8622
8661
|
* Watch for MarketOrderExecuted events
|
|
8623
8662
|
*/
|
|
8624
8663
|
watchMarketOrder(marketId: bigint, onLogs: (logs: any[]) => void): viem.WatchContractEventReturnType;
|
|
8664
|
+
/**
|
|
8665
|
+
* Watch for MarketSellExecuted events
|
|
8666
|
+
*/
|
|
8667
|
+
watchMarketSell(marketId: bigint, onLogs: (logs: any[]) => void): viem.WatchContractEventReturnType;
|
|
8625
8668
|
/**
|
|
8626
8669
|
* Check whether any orders are matchable in the given market.
|
|
8627
8670
|
* Returns a preview of which fill paths have crossing conditions,
|
|
@@ -15918,6 +15961,30 @@ var WhitelistAccessControl = [
|
|
|
15918
15961
|
];
|
|
15919
15962
|
|
|
15920
15963
|
var ConditionalTokens = [
|
|
15964
|
+
{
|
|
15965
|
+
type: "function",
|
|
15966
|
+
name: "balanceOf",
|
|
15967
|
+
inputs: [
|
|
15968
|
+
{
|
|
15969
|
+
name: "account",
|
|
15970
|
+
type: "address",
|
|
15971
|
+
internalType: "address"
|
|
15972
|
+
},
|
|
15973
|
+
{
|
|
15974
|
+
name: "id",
|
|
15975
|
+
type: "uint256",
|
|
15976
|
+
internalType: "uint256"
|
|
15977
|
+
}
|
|
15978
|
+
],
|
|
15979
|
+
outputs: [
|
|
15980
|
+
{
|
|
15981
|
+
name: "",
|
|
15982
|
+
type: "uint256",
|
|
15983
|
+
internalType: "uint256"
|
|
15984
|
+
}
|
|
15985
|
+
],
|
|
15986
|
+
stateMutability: "view"
|
|
15987
|
+
},
|
|
15921
15988
|
{
|
|
15922
15989
|
type: "function",
|
|
15923
15990
|
name: "getCollectionId",
|
|
@@ -15940,7 +16007,7 @@ var ConditionalTokens = [
|
|
|
15940
16007
|
],
|
|
15941
16008
|
outputs: [
|
|
15942
16009
|
{
|
|
15943
|
-
name: "",
|
|
16010
|
+
name: "collectionId",
|
|
15944
16011
|
type: "bytes32",
|
|
15945
16012
|
internalType: "bytes32"
|
|
15946
16013
|
}
|
|
@@ -15969,7 +16036,7 @@ var ConditionalTokens = [
|
|
|
15969
16036
|
],
|
|
15970
16037
|
outputs: [
|
|
15971
16038
|
{
|
|
15972
|
-
name: "",
|
|
16039
|
+
name: "conditionId",
|
|
15973
16040
|
type: "bytes32",
|
|
15974
16041
|
internalType: "bytes32"
|
|
15975
16042
|
}
|
|
@@ -15988,13 +16055,37 @@ var ConditionalTokens = [
|
|
|
15988
16055
|
],
|
|
15989
16056
|
outputs: [
|
|
15990
16057
|
{
|
|
15991
|
-
name: "",
|
|
16058
|
+
name: "outcomeSlotCount",
|
|
15992
16059
|
type: "uint256",
|
|
15993
16060
|
internalType: "uint256"
|
|
15994
16061
|
}
|
|
15995
16062
|
],
|
|
15996
16063
|
stateMutability: "view"
|
|
15997
16064
|
},
|
|
16065
|
+
{
|
|
16066
|
+
type: "function",
|
|
16067
|
+
name: "getPositionId",
|
|
16068
|
+
inputs: [
|
|
16069
|
+
{
|
|
16070
|
+
name: "collateralToken",
|
|
16071
|
+
type: "address",
|
|
16072
|
+
internalType: "contract IERC20"
|
|
16073
|
+
},
|
|
16074
|
+
{
|
|
16075
|
+
name: "collectionId",
|
|
16076
|
+
type: "bytes32",
|
|
16077
|
+
internalType: "bytes32"
|
|
16078
|
+
}
|
|
16079
|
+
],
|
|
16080
|
+
outputs: [
|
|
16081
|
+
{
|
|
16082
|
+
name: "positionId",
|
|
16083
|
+
type: "uint256",
|
|
16084
|
+
internalType: "uint256"
|
|
16085
|
+
}
|
|
16086
|
+
],
|
|
16087
|
+
stateMutability: "pure"
|
|
16088
|
+
},
|
|
15998
16089
|
{
|
|
15999
16090
|
type: "function",
|
|
16000
16091
|
name: "mergePositions",
|
|
@@ -16029,6 +16120,49 @@ var ConditionalTokens = [
|
|
|
16029
16120
|
],
|
|
16030
16121
|
stateMutability: "nonpayable"
|
|
16031
16122
|
},
|
|
16123
|
+
{
|
|
16124
|
+
type: "function",
|
|
16125
|
+
name: "payoutDenominator",
|
|
16126
|
+
inputs: [
|
|
16127
|
+
{
|
|
16128
|
+
name: "conditionId",
|
|
16129
|
+
type: "bytes32",
|
|
16130
|
+
internalType: "bytes32"
|
|
16131
|
+
}
|
|
16132
|
+
],
|
|
16133
|
+
outputs: [
|
|
16134
|
+
{
|
|
16135
|
+
name: "",
|
|
16136
|
+
type: "uint256",
|
|
16137
|
+
internalType: "uint256"
|
|
16138
|
+
}
|
|
16139
|
+
],
|
|
16140
|
+
stateMutability: "view"
|
|
16141
|
+
},
|
|
16142
|
+
{
|
|
16143
|
+
type: "function",
|
|
16144
|
+
name: "payoutNumerators",
|
|
16145
|
+
inputs: [
|
|
16146
|
+
{
|
|
16147
|
+
name: "conditionId",
|
|
16148
|
+
type: "bytes32",
|
|
16149
|
+
internalType: "bytes32"
|
|
16150
|
+
},
|
|
16151
|
+
{
|
|
16152
|
+
name: "index",
|
|
16153
|
+
type: "uint256",
|
|
16154
|
+
internalType: "uint256"
|
|
16155
|
+
}
|
|
16156
|
+
],
|
|
16157
|
+
outputs: [
|
|
16158
|
+
{
|
|
16159
|
+
name: "",
|
|
16160
|
+
type: "uint256",
|
|
16161
|
+
internalType: "uint256"
|
|
16162
|
+
}
|
|
16163
|
+
],
|
|
16164
|
+
stateMutability: "view"
|
|
16165
|
+
},
|
|
16032
16166
|
{
|
|
16033
16167
|
type: "function",
|
|
16034
16168
|
name: "prepareCondition",
|
|
@@ -16053,6 +16187,35 @@ var ConditionalTokens = [
|
|
|
16053
16187
|
],
|
|
16054
16188
|
stateMutability: "nonpayable"
|
|
16055
16189
|
},
|
|
16190
|
+
{
|
|
16191
|
+
type: "function",
|
|
16192
|
+
name: "redeemPositions",
|
|
16193
|
+
inputs: [
|
|
16194
|
+
{
|
|
16195
|
+
name: "collateralToken",
|
|
16196
|
+
type: "address",
|
|
16197
|
+
internalType: "contract IERC20"
|
|
16198
|
+
},
|
|
16199
|
+
{
|
|
16200
|
+
name: "parentCollectionId",
|
|
16201
|
+
type: "bytes32",
|
|
16202
|
+
internalType: "bytes32"
|
|
16203
|
+
},
|
|
16204
|
+
{
|
|
16205
|
+
name: "conditionId",
|
|
16206
|
+
type: "bytes32",
|
|
16207
|
+
internalType: "bytes32"
|
|
16208
|
+
},
|
|
16209
|
+
{
|
|
16210
|
+
name: "indexSets",
|
|
16211
|
+
type: "uint256[]",
|
|
16212
|
+
internalType: "uint256[]"
|
|
16213
|
+
}
|
|
16214
|
+
],
|
|
16215
|
+
outputs: [
|
|
16216
|
+
],
|
|
16217
|
+
stateMutability: "nonpayable"
|
|
16218
|
+
},
|
|
16056
16219
|
{
|
|
16057
16220
|
type: "function",
|
|
16058
16221
|
name: "reportPayouts",
|
|
@@ -16113,14 +16276,19 @@ var ERC20 = [
|
|
|
16113
16276
|
type: "constructor",
|
|
16114
16277
|
inputs: [
|
|
16115
16278
|
{
|
|
16116
|
-
name: "
|
|
16279
|
+
name: "_name",
|
|
16117
16280
|
type: "string",
|
|
16118
16281
|
internalType: "string"
|
|
16119
16282
|
},
|
|
16120
16283
|
{
|
|
16121
|
-
name: "
|
|
16284
|
+
name: "_symbol",
|
|
16122
16285
|
type: "string",
|
|
16123
16286
|
internalType: "string"
|
|
16287
|
+
},
|
|
16288
|
+
{
|
|
16289
|
+
name: "_decimals",
|
|
16290
|
+
type: "uint8",
|
|
16291
|
+
internalType: "uint8"
|
|
16124
16292
|
}
|
|
16125
16293
|
],
|
|
16126
16294
|
stateMutability: "nonpayable"
|
|
@@ -16130,12 +16298,12 @@ var ERC20 = [
|
|
|
16130
16298
|
name: "allowance",
|
|
16131
16299
|
inputs: [
|
|
16132
16300
|
{
|
|
16133
|
-
name: "
|
|
16301
|
+
name: "",
|
|
16134
16302
|
type: "address",
|
|
16135
16303
|
internalType: "address"
|
|
16136
16304
|
},
|
|
16137
16305
|
{
|
|
16138
|
-
name: "
|
|
16306
|
+
name: "",
|
|
16139
16307
|
type: "address",
|
|
16140
16308
|
internalType: "address"
|
|
16141
16309
|
}
|
|
@@ -16178,7 +16346,7 @@ var ERC20 = [
|
|
|
16178
16346
|
name: "balanceOf",
|
|
16179
16347
|
inputs: [
|
|
16180
16348
|
{
|
|
16181
|
-
name: "
|
|
16349
|
+
name: "",
|
|
16182
16350
|
type: "address",
|
|
16183
16351
|
internalType: "address"
|
|
16184
16352
|
}
|
|
@@ -16208,49 +16376,20 @@ var ERC20 = [
|
|
|
16208
16376
|
},
|
|
16209
16377
|
{
|
|
16210
16378
|
type: "function",
|
|
16211
|
-
name: "
|
|
16379
|
+
name: "mint",
|
|
16212
16380
|
inputs: [
|
|
16213
16381
|
{
|
|
16214
|
-
name: "
|
|
16215
|
-
type: "address",
|
|
16216
|
-
internalType: "address"
|
|
16217
|
-
},
|
|
16218
|
-
{
|
|
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",
|
|
16382
|
+
name: "to",
|
|
16239
16383
|
type: "address",
|
|
16240
16384
|
internalType: "address"
|
|
16241
16385
|
},
|
|
16242
16386
|
{
|
|
16243
|
-
name: "
|
|
16387
|
+
name: "amount",
|
|
16244
16388
|
type: "uint256",
|
|
16245
16389
|
internalType: "uint256"
|
|
16246
16390
|
}
|
|
16247
16391
|
],
|
|
16248
16392
|
outputs: [
|
|
16249
|
-
{
|
|
16250
|
-
name: "",
|
|
16251
|
-
type: "bool",
|
|
16252
|
-
internalType: "bool"
|
|
16253
|
-
}
|
|
16254
16393
|
],
|
|
16255
16394
|
stateMutability: "nonpayable"
|
|
16256
16395
|
},
|