@myx-trade/sdk 0.1.245-beta.0 → 0.1.245
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 +190 -145
- package/dist/index.d.ts +190 -145
- package/dist/index.js +2039 -4767
- package/dist/index.mjs +2039 -4767
- package/package.json +21 -18
package/dist/index.d.mts
CHANGED
|
@@ -30,8 +30,6 @@ interface ContractAddress {
|
|
|
30
30
|
readonly DATA_PROVIDER: Address$1;
|
|
31
31
|
readonly ORACLE_RESERVE: Address$1;
|
|
32
32
|
readonly FORWARDER: Address$1;
|
|
33
|
-
readonly REIMBURSEMENT: Address$1;
|
|
34
|
-
readonly DISPUTE_COURT: Address$1;
|
|
35
33
|
readonly TRADING_ROUTER: Address$1;
|
|
36
34
|
}
|
|
37
35
|
|
|
@@ -959,13 +957,17 @@ declare namespace index$1 {
|
|
|
959
957
|
export { index$1_claimQuotePoolRebate as claimQuotePoolRebate, index$1_claimQuotePoolRebates as claimQuotePoolRebates, index$1_deposit as deposit, index$1_getLpPrice as getLpPrice, index$1_getRewards as getRewards, index$1_transfer as transfer, index$1_withdraw as withdraw };
|
|
960
958
|
}
|
|
961
959
|
|
|
962
|
-
declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint] & {
|
|
960
|
+
declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
963
961
|
quoteToken: string;
|
|
964
962
|
baseReserveRatio: bigint;
|
|
965
963
|
quoteReserveRatio: bigint;
|
|
966
964
|
oracleFeeUsd: bigint;
|
|
967
965
|
oracleRefundFeeUsd: bigint;
|
|
968
966
|
poolPrimeThreshold: bigint;
|
|
967
|
+
executionFee: bigint;
|
|
968
|
+
maxExecutionFee: bigint;
|
|
969
|
+
forwardFee: bigint;
|
|
970
|
+
maxForwardFee: bigint;
|
|
969
971
|
}) | undefined>;
|
|
970
972
|
|
|
971
973
|
declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<bigint | undefined>;
|
|
@@ -1361,7 +1363,7 @@ declare class Utils {
|
|
|
1361
1363
|
constructor(configManager: ConfigManager, logger: Logger);
|
|
1362
1364
|
getOrderIdFromTransaction(receipt: any): string | null;
|
|
1363
1365
|
private getApproveQuoteAmount;
|
|
1364
|
-
needsApproval(
|
|
1366
|
+
needsApproval(address: string, chainId: number, quoteAddress: string, requiredAmount: string, spenderAddress?: string): Promise<boolean>;
|
|
1365
1367
|
approveAuthorization({ chainId, quoteAddress, amount, spenderAddress, signer, }: {
|
|
1366
1368
|
chainId: number;
|
|
1367
1369
|
quoteAddress: string;
|
|
@@ -1386,7 +1388,7 @@ declare class Utils {
|
|
|
1386
1388
|
message: any;
|
|
1387
1389
|
data?: undefined;
|
|
1388
1390
|
}>;
|
|
1389
|
-
getNetworkFee(
|
|
1391
|
+
getNetworkFee(marketId: string, chainId: number): Promise<any>;
|
|
1390
1392
|
getOraclePrice(poolId: string, chainId: number): Promise<{
|
|
1391
1393
|
poolId: string;
|
|
1392
1394
|
price: string;
|
|
@@ -1394,16 +1396,13 @@ declare class Utils {
|
|
|
1394
1396
|
publishTime: number;
|
|
1395
1397
|
oracleType: OracleType;
|
|
1396
1398
|
vaa: string;
|
|
1397
|
-
}
|
|
1398
|
-
buildUpdatePriceParams(poolId: string, chainId: number): Promise<{
|
|
1399
|
-
poolId: string;
|
|
1400
|
-
referencePrice: bigint;
|
|
1401
|
-
oracleUpdateData: string;
|
|
1402
|
-
publishTime: number;
|
|
1403
|
-
oracleType: OracleType;
|
|
1404
|
-
value: bigint;
|
|
1399
|
+
} | {
|
|
1405
1400
|
price: string;
|
|
1406
|
-
|
|
1401
|
+
vaa: string;
|
|
1402
|
+
publishTime: number;
|
|
1403
|
+
poolId: string;
|
|
1404
|
+
value: number;
|
|
1405
|
+
}>;
|
|
1407
1406
|
transferKlineResolutionToInterval(resolution: KlineResolution): HttpKlineIntervalEnum;
|
|
1408
1407
|
getErrorMessage(error: any, fallbackErrorMessage?: string): Promise<any>;
|
|
1409
1408
|
checkSeamlessGas(userAddress: string, chainId: number): Promise<boolean>;
|
|
@@ -1482,8 +1481,8 @@ declare class Utils {
|
|
|
1482
1481
|
data?: undefined;
|
|
1483
1482
|
}>;
|
|
1484
1483
|
formatErrorMessage(error: any): any;
|
|
1485
|
-
getGasPriceByRatio(): Promise<bigint>;
|
|
1486
|
-
getGasLimitByRatio(gasLimit: bigint): Promise<bigint>;
|
|
1484
|
+
getGasPriceByRatio(chainId: number): Promise<bigint>;
|
|
1485
|
+
getGasLimitByRatio(chainId: number, gasLimit: bigint): Promise<bigint>;
|
|
1487
1486
|
}
|
|
1488
1487
|
|
|
1489
1488
|
declare class Api {
|
|
@@ -1523,6 +1522,11 @@ declare class Api {
|
|
|
1523
1522
|
deadline: number;
|
|
1524
1523
|
nonce: string;
|
|
1525
1524
|
}): Promise<ApiResponse<any>>;
|
|
1525
|
+
getCurrentEpoch({ address, accessToken, broker }: {
|
|
1526
|
+
address: string;
|
|
1527
|
+
accessToken: string;
|
|
1528
|
+
broker: string;
|
|
1529
|
+
}): Promise<ApiResponse<number>>;
|
|
1526
1530
|
}
|
|
1527
1531
|
|
|
1528
1532
|
declare class Markets {
|
|
@@ -1649,6 +1653,7 @@ declare class Account {
|
|
|
1649
1653
|
message: string;
|
|
1650
1654
|
data?: undefined;
|
|
1651
1655
|
}>;
|
|
1656
|
+
getCurrentEpoch(): Promise<void>;
|
|
1652
1657
|
getAccountVipInfo(chainId: number, address: string): Promise<{
|
|
1653
1658
|
code: number;
|
|
1654
1659
|
data: any;
|
|
@@ -1859,7 +1864,7 @@ declare class Order {
|
|
|
1859
1864
|
private account;
|
|
1860
1865
|
private api;
|
|
1861
1866
|
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, seamless: Seamless, account: Account, api: Api);
|
|
1862
|
-
createIncreaseOrder(params: PlaceOrderParams, tradingFee: string): Promise<{
|
|
1867
|
+
createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
|
|
1863
1868
|
code: number;
|
|
1864
1869
|
message: string;
|
|
1865
1870
|
data: ApiResponse<any>;
|
|
@@ -1881,7 +1886,7 @@ declare class Order {
|
|
|
1881
1886
|
message: any;
|
|
1882
1887
|
data?: undefined;
|
|
1883
1888
|
}>;
|
|
1884
|
-
closeAllPositions(chainId: number, params: PlaceOrderParams[]
|
|
1889
|
+
closeAllPositions(chainId: number, params: PlaceOrderParams[]): Promise<{
|
|
1885
1890
|
code: number;
|
|
1886
1891
|
message: string;
|
|
1887
1892
|
data: ApiResponse<any>;
|
|
@@ -1986,7 +1991,7 @@ declare class Order {
|
|
|
1986
1991
|
message: any;
|
|
1987
1992
|
data?: undefined;
|
|
1988
1993
|
}>;
|
|
1989
|
-
updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number, address: string): Promise<{
|
|
1994
|
+
updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number, address: string, marketId: string): Promise<{
|
|
1990
1995
|
code: number;
|
|
1991
1996
|
message: string;
|
|
1992
1997
|
data: ApiResponse<any>;
|
|
@@ -2059,22 +2064,15 @@ interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S exte
|
|
|
2059
2064
|
}
|
|
2060
2065
|
|
|
2061
2066
|
interface BrokerInterface extends Interface {
|
|
2062
|
-
getFunction(nameOrSignature: "FEE_TYPEHASH" | "__ERC2771ContextUpgradeable_init" | "acceptOwnership" | "activeFeeTiers" | "activeSpecialFeeTierList" | "addressManager" | "
|
|
2063
|
-
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "UserFeeDataUpdated"): EventFragment;
|
|
2067
|
+
getFunction(nameOrSignature: "FEE_TYPEHASH" | "UPGRADE_INTERFACE_VERSION" | "__ERC2771ContextUpgradeable_init" | "acceptOwnership" | "activeFeeTiers" | "activeSpecialFeeTierList" | "addressManager" | "batchSetSpecialFeeTiers" | "batchUpdateFeeTiers" | "cancelOrder" | "cancelOrders" | "claimRebate" | "claimRebates" | "currentFeeDataEpoch" | "domainSeparatorV4" | "eip712Domain" | "getAddOnFeeTier" | "getBaseFeeRate" | "getImplementation" | "getSpecialFeeTier" | "getUserFeeDataDigest" | "getUserFeeRate" | "initialize" | "isActive" | "isTrustedForwarder" | "name" | "onBrokerFee" | "owner" | "pendingOwner" | "placeOrderWithPosition" | "placeOrderWithSalt" | "placeOrdersWithPosition" | "placeOrdersWithSalt" | "proxiableUUID" | "renounceOwnership" | "resetAllUserFeeData" | "setSigner" | "setSpecialFeeTier" | "setUserFeeData" | "setUserSpecialFeeTier" | "supportedAssetClasses" | "transferOwnership" | "trustedForwarder" | "updateBaseFeeRates" | "updateBrokerStatus" | "updateFeeTier" | "updateOrder" | "updatePriceAndAdjustCollateral" | "updateUserFeeData" | "upgradeTo" | "upgradeToAndCall" | "userFeeData" | "userNonces" | "userRebates"): FunctionFragment;
|
|
2068
|
+
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "Upgraded" | "UserFeeDataReset" | "UserFeeDataUpdated"): EventFragment;
|
|
2064
2069
|
encodeFunctionData(functionFragment: "FEE_TYPEHASH", values?: undefined): string;
|
|
2070
|
+
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
2065
2071
|
encodeFunctionData(functionFragment: "__ERC2771ContextUpgradeable_init", values: [AddressLike]): string;
|
|
2066
2072
|
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
2067
2073
|
encodeFunctionData(functionFragment: "activeFeeTiers", values: [BigNumberish, BigNumberish]): string;
|
|
2068
2074
|
encodeFunctionData(functionFragment: "activeSpecialFeeTierList", values: [BigNumberish, BigNumberish]): string;
|
|
2069
2075
|
encodeFunctionData(functionFragment: "addressManager", values?: undefined): string;
|
|
2070
|
-
encodeFunctionData(functionFragment: "adjustCollateral", values: [
|
|
2071
|
-
{
|
|
2072
|
-
token: AddressLike;
|
|
2073
|
-
amount: BigNumberish;
|
|
2074
|
-
},
|
|
2075
|
-
BytesLike,
|
|
2076
|
-
BigNumberish
|
|
2077
|
-
]): string;
|
|
2078
2076
|
encodeFunctionData(functionFragment: "batchSetSpecialFeeTiers", values: [
|
|
2079
2077
|
{
|
|
2080
2078
|
assetClass: BigNumberish;
|
|
@@ -2099,10 +2097,24 @@ interface BrokerInterface extends Interface {
|
|
|
2099
2097
|
encodeFunctionData(functionFragment: "cancelOrders", values: [BigNumberish[]]): string;
|
|
2100
2098
|
encodeFunctionData(functionFragment: "claimRebate", values: [AddressLike]): string;
|
|
2101
2099
|
encodeFunctionData(functionFragment: "claimRebates", values: [AddressLike[]]): string;
|
|
2100
|
+
encodeFunctionData(functionFragment: "currentFeeDataEpoch", values?: undefined): string;
|
|
2101
|
+
encodeFunctionData(functionFragment: "domainSeparatorV4", values?: undefined): string;
|
|
2102
2102
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
2103
2103
|
encodeFunctionData(functionFragment: "getAddOnFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2104
2104
|
encodeFunctionData(functionFragment: "getBaseFeeRate", values: [BigNumberish]): string;
|
|
2105
|
+
encodeFunctionData(functionFragment: "getImplementation", values?: undefined): string;
|
|
2105
2106
|
encodeFunctionData(functionFragment: "getSpecialFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2107
|
+
encodeFunctionData(functionFragment: "getUserFeeDataDigest", values: [
|
|
2108
|
+
AddressLike,
|
|
2109
|
+
BigNumberish,
|
|
2110
|
+
BigNumberish,
|
|
2111
|
+
{
|
|
2112
|
+
tier: BigNumberish;
|
|
2113
|
+
referrer: AddressLike;
|
|
2114
|
+
totalReferralRebatePct: BigNumberish;
|
|
2115
|
+
referrerRebatePct: BigNumberish;
|
|
2116
|
+
}
|
|
2117
|
+
]): string;
|
|
2106
2118
|
encodeFunctionData(functionFragment: "getUserFeeRate", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
2107
2119
|
encodeFunctionData(functionFragment: "initialize", values: [
|
|
2108
2120
|
AddressLike,
|
|
@@ -2225,7 +2237,9 @@ interface BrokerInterface extends Interface {
|
|
|
2225
2237
|
slPrice: BigNumberish;
|
|
2226
2238
|
}[]
|
|
2227
2239
|
]): string;
|
|
2240
|
+
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
2228
2241
|
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
2242
|
+
encodeFunctionData(functionFragment: "resetAllUserFeeData", values?: undefined): string;
|
|
2229
2243
|
encodeFunctionData(functionFragment: "setSigner", values: [AddressLike, boolean]): string;
|
|
2230
2244
|
encodeFunctionData(functionFragment: "setSpecialFeeTier", values: [
|
|
2231
2245
|
{
|
|
@@ -2274,15 +2288,6 @@ interface BrokerInterface extends Interface {
|
|
|
2274
2288
|
makerFeeRate: BigNumberish;
|
|
2275
2289
|
}
|
|
2276
2290
|
]): string;
|
|
2277
|
-
encodeFunctionData(functionFragment: "updateFeeTiers", values: [
|
|
2278
|
-
BigNumberish,
|
|
2279
|
-
BigNumberish,
|
|
2280
|
-
BigNumberish[],
|
|
2281
|
-
{
|
|
2282
|
-
takerFeeRate: BigNumberish;
|
|
2283
|
-
makerFeeRate: BigNumberish;
|
|
2284
|
-
}[]
|
|
2285
|
-
]): string;
|
|
2286
2291
|
encodeFunctionData(functionFragment: "updateOrder", values: [
|
|
2287
2292
|
{
|
|
2288
2293
|
token: AddressLike;
|
|
@@ -2315,26 +2320,41 @@ interface BrokerInterface extends Interface {
|
|
|
2315
2320
|
BytesLike,
|
|
2316
2321
|
BigNumberish
|
|
2317
2322
|
]): string;
|
|
2318
|
-
encodeFunctionData(functionFragment: "
|
|
2323
|
+
encodeFunctionData(functionFragment: "updateUserFeeData", values: [
|
|
2324
|
+
AddressLike,
|
|
2325
|
+
{
|
|
2326
|
+
tier: BigNumberish;
|
|
2327
|
+
referrer: AddressLike;
|
|
2328
|
+
totalReferralRebatePct: BigNumberish;
|
|
2329
|
+
referrerRebatePct: BigNumberish;
|
|
2330
|
+
}
|
|
2331
|
+
]): string;
|
|
2332
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [AddressLike, BytesLike]): string;
|
|
2333
|
+
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
2334
|
+
encodeFunctionData(functionFragment: "userFeeData", values: [BigNumberish, AddressLike]): string;
|
|
2319
2335
|
encodeFunctionData(functionFragment: "userNonces", values: [AddressLike]): string;
|
|
2320
2336
|
encodeFunctionData(functionFragment: "userRebates", values: [AddressLike, AddressLike]): string;
|
|
2321
2337
|
decodeFunctionResult(functionFragment: "FEE_TYPEHASH", data: BytesLike): Result;
|
|
2338
|
+
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
|
|
2322
2339
|
decodeFunctionResult(functionFragment: "__ERC2771ContextUpgradeable_init", data: BytesLike): Result;
|
|
2323
2340
|
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
2324
2341
|
decodeFunctionResult(functionFragment: "activeFeeTiers", data: BytesLike): Result;
|
|
2325
2342
|
decodeFunctionResult(functionFragment: "activeSpecialFeeTierList", data: BytesLike): Result;
|
|
2326
2343
|
decodeFunctionResult(functionFragment: "addressManager", data: BytesLike): Result;
|
|
2327
|
-
decodeFunctionResult(functionFragment: "adjustCollateral", data: BytesLike): Result;
|
|
2328
2344
|
decodeFunctionResult(functionFragment: "batchSetSpecialFeeTiers", data: BytesLike): Result;
|
|
2329
2345
|
decodeFunctionResult(functionFragment: "batchUpdateFeeTiers", data: BytesLike): Result;
|
|
2330
2346
|
decodeFunctionResult(functionFragment: "cancelOrder", data: BytesLike): Result;
|
|
2331
2347
|
decodeFunctionResult(functionFragment: "cancelOrders", data: BytesLike): Result;
|
|
2332
2348
|
decodeFunctionResult(functionFragment: "claimRebate", data: BytesLike): Result;
|
|
2333
2349
|
decodeFunctionResult(functionFragment: "claimRebates", data: BytesLike): Result;
|
|
2350
|
+
decodeFunctionResult(functionFragment: "currentFeeDataEpoch", data: BytesLike): Result;
|
|
2351
|
+
decodeFunctionResult(functionFragment: "domainSeparatorV4", data: BytesLike): Result;
|
|
2334
2352
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
2335
2353
|
decodeFunctionResult(functionFragment: "getAddOnFeeTier", data: BytesLike): Result;
|
|
2336
2354
|
decodeFunctionResult(functionFragment: "getBaseFeeRate", data: BytesLike): Result;
|
|
2355
|
+
decodeFunctionResult(functionFragment: "getImplementation", data: BytesLike): Result;
|
|
2337
2356
|
decodeFunctionResult(functionFragment: "getSpecialFeeTier", data: BytesLike): Result;
|
|
2357
|
+
decodeFunctionResult(functionFragment: "getUserFeeDataDigest", data: BytesLike): Result;
|
|
2338
2358
|
decodeFunctionResult(functionFragment: "getUserFeeRate", data: BytesLike): Result;
|
|
2339
2359
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
2340
2360
|
decodeFunctionResult(functionFragment: "isActive", data: BytesLike): Result;
|
|
@@ -2347,7 +2367,9 @@ interface BrokerInterface extends Interface {
|
|
|
2347
2367
|
decodeFunctionResult(functionFragment: "placeOrderWithSalt", data: BytesLike): Result;
|
|
2348
2368
|
decodeFunctionResult(functionFragment: "placeOrdersWithPosition", data: BytesLike): Result;
|
|
2349
2369
|
decodeFunctionResult(functionFragment: "placeOrdersWithSalt", data: BytesLike): Result;
|
|
2370
|
+
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
|
|
2350
2371
|
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
2372
|
+
decodeFunctionResult(functionFragment: "resetAllUserFeeData", data: BytesLike): Result;
|
|
2351
2373
|
decodeFunctionResult(functionFragment: "setSigner", data: BytesLike): Result;
|
|
2352
2374
|
decodeFunctionResult(functionFragment: "setSpecialFeeTier", data: BytesLike): Result;
|
|
2353
2375
|
decodeFunctionResult(functionFragment: "setUserFeeData", data: BytesLike): Result;
|
|
@@ -2358,9 +2380,11 @@ interface BrokerInterface extends Interface {
|
|
|
2358
2380
|
decodeFunctionResult(functionFragment: "updateBaseFeeRates", data: BytesLike): Result;
|
|
2359
2381
|
decodeFunctionResult(functionFragment: "updateBrokerStatus", data: BytesLike): Result;
|
|
2360
2382
|
decodeFunctionResult(functionFragment: "updateFeeTier", data: BytesLike): Result;
|
|
2361
|
-
decodeFunctionResult(functionFragment: "updateFeeTiers", data: BytesLike): Result;
|
|
2362
2383
|
decodeFunctionResult(functionFragment: "updateOrder", data: BytesLike): Result;
|
|
2363
2384
|
decodeFunctionResult(functionFragment: "updatePriceAndAdjustCollateral", data: BytesLike): Result;
|
|
2385
|
+
decodeFunctionResult(functionFragment: "updateUserFeeData", data: BytesLike): Result;
|
|
2386
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
2387
|
+
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
|
|
2364
2388
|
decodeFunctionResult(functionFragment: "userFeeData", data: BytesLike): Result;
|
|
2365
2389
|
decodeFunctionResult(functionFragment: "userNonces", data: BytesLike): Result;
|
|
2366
2390
|
decodeFunctionResult(functionFragment: "userRebates", data: BytesLike): Result;
|
|
@@ -2451,11 +2475,40 @@ declare namespace SignerUpdatedEvent {
|
|
|
2451
2475
|
type Log = TypedEventLog<Event>;
|
|
2452
2476
|
type LogDescription = TypedLogDescription<Event>;
|
|
2453
2477
|
}
|
|
2478
|
+
declare namespace UpgradedEvent {
|
|
2479
|
+
type InputTuple = [implementation: AddressLike];
|
|
2480
|
+
type OutputTuple = [implementation: string];
|
|
2481
|
+
interface OutputObject {
|
|
2482
|
+
implementation: string;
|
|
2483
|
+
}
|
|
2484
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2485
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2486
|
+
type Log = TypedEventLog<Event>;
|
|
2487
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2488
|
+
}
|
|
2489
|
+
declare namespace UserFeeDataResetEvent {
|
|
2490
|
+
type InputTuple = [
|
|
2491
|
+
broker: AddressLike,
|
|
2492
|
+
signer: AddressLike,
|
|
2493
|
+
epoch: BigNumberish
|
|
2494
|
+
];
|
|
2495
|
+
type OutputTuple = [broker: string, signer: string, epoch: bigint];
|
|
2496
|
+
interface OutputObject {
|
|
2497
|
+
broker: string;
|
|
2498
|
+
signer: string;
|
|
2499
|
+
epoch: bigint;
|
|
2500
|
+
}
|
|
2501
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2502
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2503
|
+
type Log = TypedEventLog<Event>;
|
|
2504
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2505
|
+
}
|
|
2454
2506
|
declare namespace UserFeeDataUpdatedEvent {
|
|
2455
2507
|
type InputTuple = [
|
|
2456
2508
|
broker: AddressLike,
|
|
2457
2509
|
signer: AddressLike,
|
|
2458
2510
|
user: AddressLike,
|
|
2511
|
+
epoch: BigNumberish,
|
|
2459
2512
|
tier: BigNumberish,
|
|
2460
2513
|
referrer: AddressLike,
|
|
2461
2514
|
totalReferralRebatePct: BigNumberish,
|
|
@@ -2465,6 +2518,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2465
2518
|
broker: string,
|
|
2466
2519
|
signer: string,
|
|
2467
2520
|
user: string,
|
|
2521
|
+
epoch: bigint,
|
|
2468
2522
|
tier: bigint,
|
|
2469
2523
|
referrer: string,
|
|
2470
2524
|
totalReferralRebatePct: bigint,
|
|
@@ -2474,6 +2528,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2474
2528
|
broker: string;
|
|
2475
2529
|
signer: string;
|
|
2476
2530
|
user: string;
|
|
2531
|
+
epoch: bigint;
|
|
2477
2532
|
tier: bigint;
|
|
2478
2533
|
referrer: string;
|
|
2479
2534
|
totalReferralRebatePct: bigint;
|
|
@@ -2498,6 +2553,7 @@ interface Broker extends BaseContract {
|
|
|
2498
2553
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2499
2554
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2500
2555
|
FEE_TYPEHASH: TypedContractMethod<[], [string], "view">;
|
|
2556
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
2501
2557
|
__ERC2771ContextUpgradeable_init: TypedContractMethod<[
|
|
2502
2558
|
trustedForwarder_: AddressLike
|
|
2503
2559
|
], [
|
|
@@ -2517,16 +2573,6 @@ interface Broker extends BaseContract {
|
|
|
2517
2573
|
bigint[]
|
|
2518
2574
|
], "view">;
|
|
2519
2575
|
addressManager: TypedContractMethod<[], [string], "view">;
|
|
2520
|
-
adjustCollateral: TypedContractMethod<[
|
|
2521
|
-
depositParams: {
|
|
2522
|
-
token: AddressLike;
|
|
2523
|
-
amount: BigNumberish;
|
|
2524
|
-
},
|
|
2525
|
-
positionId: BytesLike,
|
|
2526
|
-
adjustAmount: BigNumberish
|
|
2527
|
-
], [
|
|
2528
|
-
void
|
|
2529
|
-
], "nonpayable">;
|
|
2530
2576
|
batchSetSpecialFeeTiers: TypedContractMethod<[
|
|
2531
2577
|
params: {
|
|
2532
2578
|
assetClass: BigNumberish;
|
|
@@ -2567,6 +2613,8 @@ interface Broker extends BaseContract {
|
|
|
2567
2613
|
], [
|
|
2568
2614
|
void
|
|
2569
2615
|
], "nonpayable">;
|
|
2616
|
+
currentFeeDataEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
2617
|
+
domainSeparatorV4: TypedContractMethod<[], [string], "view">;
|
|
2570
2618
|
eip712Domain: TypedContractMethod<[
|
|
2571
2619
|
], [
|
|
2572
2620
|
[
|
|
@@ -2605,6 +2653,7 @@ interface Broker extends BaseContract {
|
|
|
2605
2653
|
makerFeeRate: bigint;
|
|
2606
2654
|
}
|
|
2607
2655
|
], "view">;
|
|
2656
|
+
getImplementation: TypedContractMethod<[], [string], "view">;
|
|
2608
2657
|
getSpecialFeeTier: TypedContractMethod<[
|
|
2609
2658
|
assetClass: BigNumberish,
|
|
2610
2659
|
riskTier: BigNumberish,
|
|
@@ -2615,6 +2664,19 @@ interface Broker extends BaseContract {
|
|
|
2615
2664
|
takerFeeRate: bigint;
|
|
2616
2665
|
}
|
|
2617
2666
|
], "view">;
|
|
2667
|
+
getUserFeeDataDigest: TypedContractMethod<[
|
|
2668
|
+
user: AddressLike,
|
|
2669
|
+
nonce: BigNumberish,
|
|
2670
|
+
deadline: BigNumberish,
|
|
2671
|
+
feeData: {
|
|
2672
|
+
tier: BigNumberish;
|
|
2673
|
+
referrer: AddressLike;
|
|
2674
|
+
totalReferralRebatePct: BigNumberish;
|
|
2675
|
+
referrerRebatePct: BigNumberish;
|
|
2676
|
+
}
|
|
2677
|
+
], [
|
|
2678
|
+
string
|
|
2679
|
+
], "view">;
|
|
2618
2680
|
getUserFeeRate: TypedContractMethod<[
|
|
2619
2681
|
user: AddressLike,
|
|
2620
2682
|
assetClass: BigNumberish,
|
|
@@ -2782,7 +2844,9 @@ interface Broker extends BaseContract {
|
|
|
2782
2844
|
], [
|
|
2783
2845
|
void
|
|
2784
2846
|
], "payable">;
|
|
2847
|
+
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
2785
2848
|
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
2849
|
+
resetAllUserFeeData: TypedContractMethod<[], [void], "nonpayable">;
|
|
2786
2850
|
setSigner: TypedContractMethod<[
|
|
2787
2851
|
signer: AddressLike,
|
|
2788
2852
|
isSigner: boolean
|
|
@@ -2857,17 +2921,6 @@ interface Broker extends BaseContract {
|
|
|
2857
2921
|
], [
|
|
2858
2922
|
void
|
|
2859
2923
|
], "nonpayable">;
|
|
2860
|
-
updateFeeTiers: TypedContractMethod<[
|
|
2861
|
-
assetClass: BigNumberish,
|
|
2862
|
-
riskTier: BigNumberish,
|
|
2863
|
-
feeTiers: BigNumberish[],
|
|
2864
|
-
feeRates: {
|
|
2865
|
-
takerFeeRate: BigNumberish;
|
|
2866
|
-
makerFeeRate: BigNumberish;
|
|
2867
|
-
}[]
|
|
2868
|
-
], [
|
|
2869
|
-
void
|
|
2870
|
-
], "nonpayable">;
|
|
2871
2924
|
updateOrder: TypedContractMethod<[
|
|
2872
2925
|
depositParams: {
|
|
2873
2926
|
token: AddressLike;
|
|
@@ -2904,7 +2957,31 @@ interface Broker extends BaseContract {
|
|
|
2904
2957
|
], [
|
|
2905
2958
|
void
|
|
2906
2959
|
], "payable">;
|
|
2960
|
+
updateUserFeeData: TypedContractMethod<[
|
|
2961
|
+
user: AddressLike,
|
|
2962
|
+
feeData: {
|
|
2963
|
+
tier: BigNumberish;
|
|
2964
|
+
referrer: AddressLike;
|
|
2965
|
+
totalReferralRebatePct: BigNumberish;
|
|
2966
|
+
referrerRebatePct: BigNumberish;
|
|
2967
|
+
}
|
|
2968
|
+
], [
|
|
2969
|
+
void
|
|
2970
|
+
], "nonpayable">;
|
|
2971
|
+
upgradeTo: TypedContractMethod<[
|
|
2972
|
+
newImplementation: AddressLike,
|
|
2973
|
+
data: BytesLike
|
|
2974
|
+
], [
|
|
2975
|
+
void
|
|
2976
|
+
], "payable">;
|
|
2977
|
+
upgradeToAndCall: TypedContractMethod<[
|
|
2978
|
+
newImplementation: AddressLike,
|
|
2979
|
+
data: BytesLike
|
|
2980
|
+
], [
|
|
2981
|
+
void
|
|
2982
|
+
], "payable">;
|
|
2907
2983
|
userFeeData: TypedContractMethod<[
|
|
2984
|
+
userFeeDataEpoch: BigNumberish,
|
|
2908
2985
|
user: AddressLike
|
|
2909
2986
|
], [
|
|
2910
2987
|
[
|
|
@@ -2928,6 +3005,7 @@ interface Broker extends BaseContract {
|
|
|
2928
3005
|
], "view">;
|
|
2929
3006
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
2930
3007
|
getFunction(nameOrSignature: "FEE_TYPEHASH"): TypedContractMethod<[], [string], "view">;
|
|
3008
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
2931
3009
|
getFunction(nameOrSignature: "__ERC2771ContextUpgradeable_init"): TypedContractMethod<[
|
|
2932
3010
|
trustedForwarder_: AddressLike
|
|
2933
3011
|
], [
|
|
@@ -2947,16 +3025,6 @@ interface Broker extends BaseContract {
|
|
|
2947
3025
|
bigint[]
|
|
2948
3026
|
], "view">;
|
|
2949
3027
|
getFunction(nameOrSignature: "addressManager"): TypedContractMethod<[], [string], "view">;
|
|
2950
|
-
getFunction(nameOrSignature: "adjustCollateral"): TypedContractMethod<[
|
|
2951
|
-
depositParams: {
|
|
2952
|
-
token: AddressLike;
|
|
2953
|
-
amount: BigNumberish;
|
|
2954
|
-
},
|
|
2955
|
-
positionId: BytesLike,
|
|
2956
|
-
adjustAmount: BigNumberish
|
|
2957
|
-
], [
|
|
2958
|
-
void
|
|
2959
|
-
], "nonpayable">;
|
|
2960
3028
|
getFunction(nameOrSignature: "batchSetSpecialFeeTiers"): TypedContractMethod<[
|
|
2961
3029
|
params: {
|
|
2962
3030
|
assetClass: BigNumberish;
|
|
@@ -2985,6 +3053,8 @@ interface Broker extends BaseContract {
|
|
|
2985
3053
|
getFunction(nameOrSignature: "cancelOrders"): TypedContractMethod<[orderIds: BigNumberish[]], [void], "nonpayable">;
|
|
2986
3054
|
getFunction(nameOrSignature: "claimRebate"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
2987
3055
|
getFunction(nameOrSignature: "claimRebates"): TypedContractMethod<[tokens: AddressLike[]], [void], "nonpayable">;
|
|
3056
|
+
getFunction(nameOrSignature: "currentFeeDataEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
3057
|
+
getFunction(nameOrSignature: "domainSeparatorV4"): TypedContractMethod<[], [string], "view">;
|
|
2988
3058
|
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
2989
3059
|
], [
|
|
2990
3060
|
[
|
|
@@ -3023,6 +3093,7 @@ interface Broker extends BaseContract {
|
|
|
3023
3093
|
makerFeeRate: bigint;
|
|
3024
3094
|
}
|
|
3025
3095
|
], "view">;
|
|
3096
|
+
getFunction(nameOrSignature: "getImplementation"): TypedContractMethod<[], [string], "view">;
|
|
3026
3097
|
getFunction(nameOrSignature: "getSpecialFeeTier"): TypedContractMethod<[
|
|
3027
3098
|
assetClass: BigNumberish,
|
|
3028
3099
|
riskTier: BigNumberish,
|
|
@@ -3033,6 +3104,19 @@ interface Broker extends BaseContract {
|
|
|
3033
3104
|
takerFeeRate: bigint;
|
|
3034
3105
|
}
|
|
3035
3106
|
], "view">;
|
|
3107
|
+
getFunction(nameOrSignature: "getUserFeeDataDigest"): TypedContractMethod<[
|
|
3108
|
+
user: AddressLike,
|
|
3109
|
+
nonce: BigNumberish,
|
|
3110
|
+
deadline: BigNumberish,
|
|
3111
|
+
feeData: {
|
|
3112
|
+
tier: BigNumberish;
|
|
3113
|
+
referrer: AddressLike;
|
|
3114
|
+
totalReferralRebatePct: BigNumberish;
|
|
3115
|
+
referrerRebatePct: BigNumberish;
|
|
3116
|
+
}
|
|
3117
|
+
], [
|
|
3118
|
+
string
|
|
3119
|
+
], "view">;
|
|
3036
3120
|
getFunction(nameOrSignature: "getUserFeeRate"): TypedContractMethod<[
|
|
3037
3121
|
user: AddressLike,
|
|
3038
3122
|
assetClass: BigNumberish,
|
|
@@ -3196,7 +3280,9 @@ interface Broker extends BaseContract {
|
|
|
3196
3280
|
], [
|
|
3197
3281
|
void
|
|
3198
3282
|
], "payable">;
|
|
3283
|
+
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
3199
3284
|
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3285
|
+
getFunction(nameOrSignature: "resetAllUserFeeData"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3200
3286
|
getFunction(nameOrSignature: "setSigner"): TypedContractMethod<[
|
|
3201
3287
|
signer: AddressLike,
|
|
3202
3288
|
isSigner: boolean
|
|
@@ -3263,17 +3349,6 @@ interface Broker extends BaseContract {
|
|
|
3263
3349
|
], [
|
|
3264
3350
|
void
|
|
3265
3351
|
], "nonpayable">;
|
|
3266
|
-
getFunction(nameOrSignature: "updateFeeTiers"): TypedContractMethod<[
|
|
3267
|
-
assetClass: BigNumberish,
|
|
3268
|
-
riskTier: BigNumberish,
|
|
3269
|
-
feeTiers: BigNumberish[],
|
|
3270
|
-
feeRates: {
|
|
3271
|
-
takerFeeRate: BigNumberish;
|
|
3272
|
-
makerFeeRate: BigNumberish;
|
|
3273
|
-
}[]
|
|
3274
|
-
], [
|
|
3275
|
-
void
|
|
3276
|
-
], "nonpayable">;
|
|
3277
3352
|
getFunction(nameOrSignature: "updateOrder"): TypedContractMethod<[
|
|
3278
3353
|
depositParams: {
|
|
3279
3354
|
token: AddressLike;
|
|
@@ -3310,7 +3385,31 @@ interface Broker extends BaseContract {
|
|
|
3310
3385
|
], [
|
|
3311
3386
|
void
|
|
3312
3387
|
], "payable">;
|
|
3388
|
+
getFunction(nameOrSignature: "updateUserFeeData"): TypedContractMethod<[
|
|
3389
|
+
user: AddressLike,
|
|
3390
|
+
feeData: {
|
|
3391
|
+
tier: BigNumberish;
|
|
3392
|
+
referrer: AddressLike;
|
|
3393
|
+
totalReferralRebatePct: BigNumberish;
|
|
3394
|
+
referrerRebatePct: BigNumberish;
|
|
3395
|
+
}
|
|
3396
|
+
], [
|
|
3397
|
+
void
|
|
3398
|
+
], "nonpayable">;
|
|
3399
|
+
getFunction(nameOrSignature: "upgradeTo"): TypedContractMethod<[
|
|
3400
|
+
newImplementation: AddressLike,
|
|
3401
|
+
data: BytesLike
|
|
3402
|
+
], [
|
|
3403
|
+
void
|
|
3404
|
+
], "payable">;
|
|
3405
|
+
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
3406
|
+
newImplementation: AddressLike,
|
|
3407
|
+
data: BytesLike
|
|
3408
|
+
], [
|
|
3409
|
+
void
|
|
3410
|
+
], "payable">;
|
|
3313
3411
|
getFunction(nameOrSignature: "userFeeData"): TypedContractMethod<[
|
|
3412
|
+
userFeeDataEpoch: BigNumberish,
|
|
3314
3413
|
user: AddressLike
|
|
3315
3414
|
], [
|
|
3316
3415
|
[
|
|
@@ -3339,6 +3438,8 @@ interface Broker extends BaseContract {
|
|
|
3339
3438
|
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
3340
3439
|
getEvent(key: "RebateClaimed"): TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3341
3440
|
getEvent(key: "SignerUpdated"): TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3441
|
+
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3442
|
+
getEvent(key: "UserFeeDataReset"): TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3342
3443
|
getEvent(key: "UserFeeDataUpdated"): TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3343
3444
|
filters: {
|
|
3344
3445
|
"BrokerStatusUpdated(address,bool)": TypedContractEvent<BrokerStatusUpdatedEvent.InputTuple, BrokerStatusUpdatedEvent.OutputTuple, BrokerStatusUpdatedEvent.OutputObject>;
|
|
@@ -3355,7 +3456,11 @@ interface Broker extends BaseContract {
|
|
|
3355
3456
|
RebateClaimed: TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3356
3457
|
"SignerUpdated(address,bool)": TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3357
3458
|
SignerUpdated: TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3358
|
-
"
|
|
3459
|
+
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3460
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3461
|
+
"UserFeeDataReset(address,address,uint256)": TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3462
|
+
UserFeeDataReset: TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3463
|
+
"UserFeeDataUpdated(address,address,address,uint256,uint8,address,uint32,uint32)": TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3359
3464
|
UserFeeDataUpdated: TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3360
3465
|
};
|
|
3361
3466
|
}
|
|
@@ -3371,65 +3476,6 @@ declare class BaseMyxClient {
|
|
|
3371
3476
|
protected get config(): MyxClientConfig;
|
|
3372
3477
|
}
|
|
3373
3478
|
|
|
3374
|
-
interface AppealVoteParams {
|
|
3375
|
-
caseId: number;
|
|
3376
|
-
validator: Address$2;
|
|
3377
|
-
isFor: boolean;
|
|
3378
|
-
deadline: number;
|
|
3379
|
-
v: number;
|
|
3380
|
-
r: string;
|
|
3381
|
-
s: string;
|
|
3382
|
-
}
|
|
3383
|
-
|
|
3384
|
-
declare class Appeal extends BaseMyxClient {
|
|
3385
|
-
constructor(client: MyxClient);
|
|
3386
|
-
private getDisputeCourtContract;
|
|
3387
|
-
private getReimbursementContract;
|
|
3388
|
-
/**
|
|
3389
|
-
* submit appeal
|
|
3390
|
-
* @param poolId - the pool id
|
|
3391
|
-
* @param poolToken - the pool token
|
|
3392
|
-
* @returns the transaction receipt
|
|
3393
|
-
*/
|
|
3394
|
-
submitAppeal(poolId: string, lpToken: Address$2, lpAmount: string): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3395
|
-
/**
|
|
3396
|
-
* vote for appeal
|
|
3397
|
-
* @param caseId - the case id
|
|
3398
|
-
* @param isFor - true if for the appeal, false if against the appeal
|
|
3399
|
-
* @returns the transaction receipt
|
|
3400
|
-
*/
|
|
3401
|
-
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3402
|
-
/**
|
|
3403
|
-
* claim appeal margin
|
|
3404
|
-
* @param caseId - the case id
|
|
3405
|
-
* @returns the transaction receipt
|
|
3406
|
-
*/
|
|
3407
|
-
claimAppealMargin(caseId: number): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3408
|
-
/**
|
|
3409
|
-
* claim reimbursement
|
|
3410
|
-
* @param caseId - the case id
|
|
3411
|
-
* @param baseAmount - the base amount
|
|
3412
|
-
* @param quoteAmount - the quote amount
|
|
3413
|
-
* @param merkleProof - the merkle proof
|
|
3414
|
-
* @returns the transaction receipt
|
|
3415
|
-
*/
|
|
3416
|
-
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3417
|
-
/**
|
|
3418
|
-
* get dispute configuration
|
|
3419
|
-
*/
|
|
3420
|
-
getDisputeConfiguration(): Promise<[string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
3421
|
-
appealToken: string;
|
|
3422
|
-
disputeBondUsd: bigint;
|
|
3423
|
-
appealBondUsd: bigint;
|
|
3424
|
-
disputeThresholdUsd: bigint;
|
|
3425
|
-
caseDuration: bigint;
|
|
3426
|
-
voteDuration: bigint;
|
|
3427
|
-
resolveDuration: bigint;
|
|
3428
|
-
voteCountRate: bigint;
|
|
3429
|
-
effectiveVoteRate: bigint;
|
|
3430
|
-
}>;
|
|
3431
|
-
}
|
|
3432
|
-
|
|
3433
3479
|
declare class Referrals extends BaseMyxClient {
|
|
3434
3480
|
constructor(client: MyxClient);
|
|
3435
3481
|
claimRebate(tokenAddress: Address$2): Promise<ethers.ContractTransactionReceipt | null>;
|
|
@@ -3440,7 +3486,7 @@ declare class MyxClient {
|
|
|
3440
3486
|
* private properties
|
|
3441
3487
|
*/
|
|
3442
3488
|
private configManager;
|
|
3443
|
-
logger
|
|
3489
|
+
private logger;
|
|
3444
3490
|
/**
|
|
3445
3491
|
* public properties
|
|
3446
3492
|
*/
|
|
@@ -3452,7 +3498,6 @@ declare class MyxClient {
|
|
|
3452
3498
|
account: Account;
|
|
3453
3499
|
seamless: Seamless;
|
|
3454
3500
|
api: Api;
|
|
3455
|
-
appeal: Appeal;
|
|
3456
3501
|
referrals: Referrals;
|
|
3457
3502
|
/**
|
|
3458
3503
|
* 获取配置管理器(用于访问 accessToken 相关方法)
|