@myx-trade/sdk 0.1.252 → 0.1.253
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 +186 -72
- package/dist/index.d.ts +186 -72
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +18 -22
package/dist/index.d.mts
CHANGED
|
@@ -963,13 +963,17 @@ declare namespace index$1 {
|
|
|
963
963
|
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 };
|
|
964
964
|
}
|
|
965
965
|
|
|
966
|
-
declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint] & {
|
|
966
|
+
declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
967
967
|
quoteToken: string;
|
|
968
968
|
baseReserveRatio: bigint;
|
|
969
969
|
quoteReserveRatio: bigint;
|
|
970
970
|
oracleFeeUsd: bigint;
|
|
971
971
|
oracleRefundFeeUsd: bigint;
|
|
972
972
|
poolPrimeThreshold: bigint;
|
|
973
|
+
executionFee: bigint;
|
|
974
|
+
maxExecutionFee: bigint;
|
|
975
|
+
forwardFee: bigint;
|
|
976
|
+
maxForwardFee: bigint;
|
|
973
977
|
}) | undefined>;
|
|
974
978
|
|
|
975
979
|
declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<bigint | undefined>;
|
|
@@ -2348,22 +2352,15 @@ interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S exte
|
|
|
2348
2352
|
}
|
|
2349
2353
|
|
|
2350
2354
|
interface BrokerInterface extends Interface {
|
|
2351
|
-
getFunction(nameOrSignature: "FEE_TYPEHASH" | "__ERC2771ContextUpgradeable_init" | "acceptOwnership" | "activeFeeTiers" | "activeSpecialFeeTierList" | "addressManager" | "
|
|
2352
|
-
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "UserFeeDataUpdated"): EventFragment;
|
|
2355
|
+
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;
|
|
2356
|
+
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "Upgraded" | "UserFeeDataReset" | "UserFeeDataUpdated"): EventFragment;
|
|
2353
2357
|
encodeFunctionData(functionFragment: "FEE_TYPEHASH", values?: undefined): string;
|
|
2358
|
+
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
2354
2359
|
encodeFunctionData(functionFragment: "__ERC2771ContextUpgradeable_init", values: [AddressLike]): string;
|
|
2355
2360
|
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
2356
2361
|
encodeFunctionData(functionFragment: "activeFeeTiers", values: [BigNumberish, BigNumberish]): string;
|
|
2357
2362
|
encodeFunctionData(functionFragment: "activeSpecialFeeTierList", values: [BigNumberish, BigNumberish]): string;
|
|
2358
2363
|
encodeFunctionData(functionFragment: "addressManager", values?: undefined): string;
|
|
2359
|
-
encodeFunctionData(functionFragment: "adjustCollateral", values: [
|
|
2360
|
-
{
|
|
2361
|
-
token: AddressLike;
|
|
2362
|
-
amount: BigNumberish;
|
|
2363
|
-
},
|
|
2364
|
-
BytesLike,
|
|
2365
|
-
BigNumberish
|
|
2366
|
-
]): string;
|
|
2367
2364
|
encodeFunctionData(functionFragment: "batchSetSpecialFeeTiers", values: [
|
|
2368
2365
|
{
|
|
2369
2366
|
assetClass: BigNumberish;
|
|
@@ -2388,10 +2385,24 @@ interface BrokerInterface extends Interface {
|
|
|
2388
2385
|
encodeFunctionData(functionFragment: "cancelOrders", values: [BigNumberish[]]): string;
|
|
2389
2386
|
encodeFunctionData(functionFragment: "claimRebate", values: [AddressLike]): string;
|
|
2390
2387
|
encodeFunctionData(functionFragment: "claimRebates", values: [AddressLike[]]): string;
|
|
2388
|
+
encodeFunctionData(functionFragment: "currentFeeDataEpoch", values?: undefined): string;
|
|
2389
|
+
encodeFunctionData(functionFragment: "domainSeparatorV4", values?: undefined): string;
|
|
2391
2390
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
2392
2391
|
encodeFunctionData(functionFragment: "getAddOnFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2393
2392
|
encodeFunctionData(functionFragment: "getBaseFeeRate", values: [BigNumberish]): string;
|
|
2393
|
+
encodeFunctionData(functionFragment: "getImplementation", values?: undefined): string;
|
|
2394
2394
|
encodeFunctionData(functionFragment: "getSpecialFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2395
|
+
encodeFunctionData(functionFragment: "getUserFeeDataDigest", values: [
|
|
2396
|
+
AddressLike,
|
|
2397
|
+
BigNumberish,
|
|
2398
|
+
BigNumberish,
|
|
2399
|
+
{
|
|
2400
|
+
tier: BigNumberish;
|
|
2401
|
+
referrer: AddressLike;
|
|
2402
|
+
totalReferralRebatePct: BigNumberish;
|
|
2403
|
+
referrerRebatePct: BigNumberish;
|
|
2404
|
+
}
|
|
2405
|
+
]): string;
|
|
2395
2406
|
encodeFunctionData(functionFragment: "getUserFeeRate", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
2396
2407
|
encodeFunctionData(functionFragment: "initialize", values: [
|
|
2397
2408
|
AddressLike,
|
|
@@ -2514,7 +2525,9 @@ interface BrokerInterface extends Interface {
|
|
|
2514
2525
|
slPrice: BigNumberish;
|
|
2515
2526
|
}[]
|
|
2516
2527
|
]): string;
|
|
2528
|
+
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
2517
2529
|
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
2530
|
+
encodeFunctionData(functionFragment: "resetAllUserFeeData", values?: undefined): string;
|
|
2518
2531
|
encodeFunctionData(functionFragment: "setSigner", values: [AddressLike, boolean]): string;
|
|
2519
2532
|
encodeFunctionData(functionFragment: "setSpecialFeeTier", values: [
|
|
2520
2533
|
{
|
|
@@ -2563,15 +2576,6 @@ interface BrokerInterface extends Interface {
|
|
|
2563
2576
|
makerFeeRate: BigNumberish;
|
|
2564
2577
|
}
|
|
2565
2578
|
]): string;
|
|
2566
|
-
encodeFunctionData(functionFragment: "updateFeeTiers", values: [
|
|
2567
|
-
BigNumberish,
|
|
2568
|
-
BigNumberish,
|
|
2569
|
-
BigNumberish[],
|
|
2570
|
-
{
|
|
2571
|
-
takerFeeRate: BigNumberish;
|
|
2572
|
-
makerFeeRate: BigNumberish;
|
|
2573
|
-
}[]
|
|
2574
|
-
]): string;
|
|
2575
2579
|
encodeFunctionData(functionFragment: "updateOrder", values: [
|
|
2576
2580
|
{
|
|
2577
2581
|
token: AddressLike;
|
|
@@ -2604,26 +2608,41 @@ interface BrokerInterface extends Interface {
|
|
|
2604
2608
|
BytesLike,
|
|
2605
2609
|
BigNumberish
|
|
2606
2610
|
]): string;
|
|
2607
|
-
encodeFunctionData(functionFragment: "
|
|
2611
|
+
encodeFunctionData(functionFragment: "updateUserFeeData", values: [
|
|
2612
|
+
AddressLike,
|
|
2613
|
+
{
|
|
2614
|
+
tier: BigNumberish;
|
|
2615
|
+
referrer: AddressLike;
|
|
2616
|
+
totalReferralRebatePct: BigNumberish;
|
|
2617
|
+
referrerRebatePct: BigNumberish;
|
|
2618
|
+
}
|
|
2619
|
+
]): string;
|
|
2620
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [AddressLike, BytesLike]): string;
|
|
2621
|
+
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
2622
|
+
encodeFunctionData(functionFragment: "userFeeData", values: [BigNumberish, AddressLike]): string;
|
|
2608
2623
|
encodeFunctionData(functionFragment: "userNonces", values: [AddressLike]): string;
|
|
2609
2624
|
encodeFunctionData(functionFragment: "userRebates", values: [AddressLike, AddressLike]): string;
|
|
2610
2625
|
decodeFunctionResult(functionFragment: "FEE_TYPEHASH", data: BytesLike): Result;
|
|
2626
|
+
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
|
|
2611
2627
|
decodeFunctionResult(functionFragment: "__ERC2771ContextUpgradeable_init", data: BytesLike): Result;
|
|
2612
2628
|
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
2613
2629
|
decodeFunctionResult(functionFragment: "activeFeeTiers", data: BytesLike): Result;
|
|
2614
2630
|
decodeFunctionResult(functionFragment: "activeSpecialFeeTierList", data: BytesLike): Result;
|
|
2615
2631
|
decodeFunctionResult(functionFragment: "addressManager", data: BytesLike): Result;
|
|
2616
|
-
decodeFunctionResult(functionFragment: "adjustCollateral", data: BytesLike): Result;
|
|
2617
2632
|
decodeFunctionResult(functionFragment: "batchSetSpecialFeeTiers", data: BytesLike): Result;
|
|
2618
2633
|
decodeFunctionResult(functionFragment: "batchUpdateFeeTiers", data: BytesLike): Result;
|
|
2619
2634
|
decodeFunctionResult(functionFragment: "cancelOrder", data: BytesLike): Result;
|
|
2620
2635
|
decodeFunctionResult(functionFragment: "cancelOrders", data: BytesLike): Result;
|
|
2621
2636
|
decodeFunctionResult(functionFragment: "claimRebate", data: BytesLike): Result;
|
|
2622
2637
|
decodeFunctionResult(functionFragment: "claimRebates", data: BytesLike): Result;
|
|
2638
|
+
decodeFunctionResult(functionFragment: "currentFeeDataEpoch", data: BytesLike): Result;
|
|
2639
|
+
decodeFunctionResult(functionFragment: "domainSeparatorV4", data: BytesLike): Result;
|
|
2623
2640
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
2624
2641
|
decodeFunctionResult(functionFragment: "getAddOnFeeTier", data: BytesLike): Result;
|
|
2625
2642
|
decodeFunctionResult(functionFragment: "getBaseFeeRate", data: BytesLike): Result;
|
|
2643
|
+
decodeFunctionResult(functionFragment: "getImplementation", data: BytesLike): Result;
|
|
2626
2644
|
decodeFunctionResult(functionFragment: "getSpecialFeeTier", data: BytesLike): Result;
|
|
2645
|
+
decodeFunctionResult(functionFragment: "getUserFeeDataDigest", data: BytesLike): Result;
|
|
2627
2646
|
decodeFunctionResult(functionFragment: "getUserFeeRate", data: BytesLike): Result;
|
|
2628
2647
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
2629
2648
|
decodeFunctionResult(functionFragment: "isActive", data: BytesLike): Result;
|
|
@@ -2636,7 +2655,9 @@ interface BrokerInterface extends Interface {
|
|
|
2636
2655
|
decodeFunctionResult(functionFragment: "placeOrderWithSalt", data: BytesLike): Result;
|
|
2637
2656
|
decodeFunctionResult(functionFragment: "placeOrdersWithPosition", data: BytesLike): Result;
|
|
2638
2657
|
decodeFunctionResult(functionFragment: "placeOrdersWithSalt", data: BytesLike): Result;
|
|
2658
|
+
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
|
|
2639
2659
|
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
2660
|
+
decodeFunctionResult(functionFragment: "resetAllUserFeeData", data: BytesLike): Result;
|
|
2640
2661
|
decodeFunctionResult(functionFragment: "setSigner", data: BytesLike): Result;
|
|
2641
2662
|
decodeFunctionResult(functionFragment: "setSpecialFeeTier", data: BytesLike): Result;
|
|
2642
2663
|
decodeFunctionResult(functionFragment: "setUserFeeData", data: BytesLike): Result;
|
|
@@ -2647,9 +2668,11 @@ interface BrokerInterface extends Interface {
|
|
|
2647
2668
|
decodeFunctionResult(functionFragment: "updateBaseFeeRates", data: BytesLike): Result;
|
|
2648
2669
|
decodeFunctionResult(functionFragment: "updateBrokerStatus", data: BytesLike): Result;
|
|
2649
2670
|
decodeFunctionResult(functionFragment: "updateFeeTier", data: BytesLike): Result;
|
|
2650
|
-
decodeFunctionResult(functionFragment: "updateFeeTiers", data: BytesLike): Result;
|
|
2651
2671
|
decodeFunctionResult(functionFragment: "updateOrder", data: BytesLike): Result;
|
|
2652
2672
|
decodeFunctionResult(functionFragment: "updatePriceAndAdjustCollateral", data: BytesLike): Result;
|
|
2673
|
+
decodeFunctionResult(functionFragment: "updateUserFeeData", data: BytesLike): Result;
|
|
2674
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
2675
|
+
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
|
|
2653
2676
|
decodeFunctionResult(functionFragment: "userFeeData", data: BytesLike): Result;
|
|
2654
2677
|
decodeFunctionResult(functionFragment: "userNonces", data: BytesLike): Result;
|
|
2655
2678
|
decodeFunctionResult(functionFragment: "userRebates", data: BytesLike): Result;
|
|
@@ -2740,11 +2763,40 @@ declare namespace SignerUpdatedEvent {
|
|
|
2740
2763
|
type Log = TypedEventLog<Event>;
|
|
2741
2764
|
type LogDescription = TypedLogDescription<Event>;
|
|
2742
2765
|
}
|
|
2766
|
+
declare namespace UpgradedEvent {
|
|
2767
|
+
type InputTuple = [implementation: AddressLike];
|
|
2768
|
+
type OutputTuple = [implementation: string];
|
|
2769
|
+
interface OutputObject {
|
|
2770
|
+
implementation: string;
|
|
2771
|
+
}
|
|
2772
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2773
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2774
|
+
type Log = TypedEventLog<Event>;
|
|
2775
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2776
|
+
}
|
|
2777
|
+
declare namespace UserFeeDataResetEvent {
|
|
2778
|
+
type InputTuple = [
|
|
2779
|
+
broker: AddressLike,
|
|
2780
|
+
signer: AddressLike,
|
|
2781
|
+
epoch: BigNumberish
|
|
2782
|
+
];
|
|
2783
|
+
type OutputTuple = [broker: string, signer: string, epoch: bigint];
|
|
2784
|
+
interface OutputObject {
|
|
2785
|
+
broker: string;
|
|
2786
|
+
signer: string;
|
|
2787
|
+
epoch: bigint;
|
|
2788
|
+
}
|
|
2789
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2790
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2791
|
+
type Log = TypedEventLog<Event>;
|
|
2792
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2793
|
+
}
|
|
2743
2794
|
declare namespace UserFeeDataUpdatedEvent {
|
|
2744
2795
|
type InputTuple = [
|
|
2745
2796
|
broker: AddressLike,
|
|
2746
2797
|
signer: AddressLike,
|
|
2747
2798
|
user: AddressLike,
|
|
2799
|
+
epoch: BigNumberish,
|
|
2748
2800
|
tier: BigNumberish,
|
|
2749
2801
|
referrer: AddressLike,
|
|
2750
2802
|
totalReferralRebatePct: BigNumberish,
|
|
@@ -2754,6 +2806,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2754
2806
|
broker: string,
|
|
2755
2807
|
signer: string,
|
|
2756
2808
|
user: string,
|
|
2809
|
+
epoch: bigint,
|
|
2757
2810
|
tier: bigint,
|
|
2758
2811
|
referrer: string,
|
|
2759
2812
|
totalReferralRebatePct: bigint,
|
|
@@ -2763,6 +2816,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2763
2816
|
broker: string;
|
|
2764
2817
|
signer: string;
|
|
2765
2818
|
user: string;
|
|
2819
|
+
epoch: bigint;
|
|
2766
2820
|
tier: bigint;
|
|
2767
2821
|
referrer: string;
|
|
2768
2822
|
totalReferralRebatePct: bigint;
|
|
@@ -2787,6 +2841,7 @@ interface Broker extends BaseContract {
|
|
|
2787
2841
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2788
2842
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2789
2843
|
FEE_TYPEHASH: TypedContractMethod<[], [string], "view">;
|
|
2844
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
2790
2845
|
__ERC2771ContextUpgradeable_init: TypedContractMethod<[
|
|
2791
2846
|
trustedForwarder_: AddressLike
|
|
2792
2847
|
], [
|
|
@@ -2806,16 +2861,6 @@ interface Broker extends BaseContract {
|
|
|
2806
2861
|
bigint[]
|
|
2807
2862
|
], "view">;
|
|
2808
2863
|
addressManager: TypedContractMethod<[], [string], "view">;
|
|
2809
|
-
adjustCollateral: TypedContractMethod<[
|
|
2810
|
-
depositParams: {
|
|
2811
|
-
token: AddressLike;
|
|
2812
|
-
amount: BigNumberish;
|
|
2813
|
-
},
|
|
2814
|
-
positionId: BytesLike,
|
|
2815
|
-
adjustAmount: BigNumberish
|
|
2816
|
-
], [
|
|
2817
|
-
void
|
|
2818
|
-
], "nonpayable">;
|
|
2819
2864
|
batchSetSpecialFeeTiers: TypedContractMethod<[
|
|
2820
2865
|
params: {
|
|
2821
2866
|
assetClass: BigNumberish;
|
|
@@ -2856,6 +2901,8 @@ interface Broker extends BaseContract {
|
|
|
2856
2901
|
], [
|
|
2857
2902
|
void
|
|
2858
2903
|
], "nonpayable">;
|
|
2904
|
+
currentFeeDataEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
2905
|
+
domainSeparatorV4: TypedContractMethod<[], [string], "view">;
|
|
2859
2906
|
eip712Domain: TypedContractMethod<[
|
|
2860
2907
|
], [
|
|
2861
2908
|
[
|
|
@@ -2894,6 +2941,7 @@ interface Broker extends BaseContract {
|
|
|
2894
2941
|
makerFeeRate: bigint;
|
|
2895
2942
|
}
|
|
2896
2943
|
], "view">;
|
|
2944
|
+
getImplementation: TypedContractMethod<[], [string], "view">;
|
|
2897
2945
|
getSpecialFeeTier: TypedContractMethod<[
|
|
2898
2946
|
assetClass: BigNumberish,
|
|
2899
2947
|
riskTier: BigNumberish,
|
|
@@ -2904,6 +2952,19 @@ interface Broker extends BaseContract {
|
|
|
2904
2952
|
takerFeeRate: bigint;
|
|
2905
2953
|
}
|
|
2906
2954
|
], "view">;
|
|
2955
|
+
getUserFeeDataDigest: TypedContractMethod<[
|
|
2956
|
+
user: AddressLike,
|
|
2957
|
+
nonce: BigNumberish,
|
|
2958
|
+
deadline: BigNumberish,
|
|
2959
|
+
feeData: {
|
|
2960
|
+
tier: BigNumberish;
|
|
2961
|
+
referrer: AddressLike;
|
|
2962
|
+
totalReferralRebatePct: BigNumberish;
|
|
2963
|
+
referrerRebatePct: BigNumberish;
|
|
2964
|
+
}
|
|
2965
|
+
], [
|
|
2966
|
+
string
|
|
2967
|
+
], "view">;
|
|
2907
2968
|
getUserFeeRate: TypedContractMethod<[
|
|
2908
2969
|
user: AddressLike,
|
|
2909
2970
|
assetClass: BigNumberish,
|
|
@@ -3071,7 +3132,9 @@ interface Broker extends BaseContract {
|
|
|
3071
3132
|
], [
|
|
3072
3133
|
void
|
|
3073
3134
|
], "payable">;
|
|
3135
|
+
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
3074
3136
|
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
3137
|
+
resetAllUserFeeData: TypedContractMethod<[], [void], "nonpayable">;
|
|
3075
3138
|
setSigner: TypedContractMethod<[
|
|
3076
3139
|
signer: AddressLike,
|
|
3077
3140
|
isSigner: boolean
|
|
@@ -3146,17 +3209,6 @@ interface Broker extends BaseContract {
|
|
|
3146
3209
|
], [
|
|
3147
3210
|
void
|
|
3148
3211
|
], "nonpayable">;
|
|
3149
|
-
updateFeeTiers: TypedContractMethod<[
|
|
3150
|
-
assetClass: BigNumberish,
|
|
3151
|
-
riskTier: BigNumberish,
|
|
3152
|
-
feeTiers: BigNumberish[],
|
|
3153
|
-
feeRates: {
|
|
3154
|
-
takerFeeRate: BigNumberish;
|
|
3155
|
-
makerFeeRate: BigNumberish;
|
|
3156
|
-
}[]
|
|
3157
|
-
], [
|
|
3158
|
-
void
|
|
3159
|
-
], "nonpayable">;
|
|
3160
3212
|
updateOrder: TypedContractMethod<[
|
|
3161
3213
|
depositParams: {
|
|
3162
3214
|
token: AddressLike;
|
|
@@ -3193,7 +3245,31 @@ interface Broker extends BaseContract {
|
|
|
3193
3245
|
], [
|
|
3194
3246
|
void
|
|
3195
3247
|
], "payable">;
|
|
3248
|
+
updateUserFeeData: TypedContractMethod<[
|
|
3249
|
+
user: AddressLike,
|
|
3250
|
+
feeData: {
|
|
3251
|
+
tier: BigNumberish;
|
|
3252
|
+
referrer: AddressLike;
|
|
3253
|
+
totalReferralRebatePct: BigNumberish;
|
|
3254
|
+
referrerRebatePct: BigNumberish;
|
|
3255
|
+
}
|
|
3256
|
+
], [
|
|
3257
|
+
void
|
|
3258
|
+
], "nonpayable">;
|
|
3259
|
+
upgradeTo: TypedContractMethod<[
|
|
3260
|
+
newImplementation: AddressLike,
|
|
3261
|
+
data: BytesLike
|
|
3262
|
+
], [
|
|
3263
|
+
void
|
|
3264
|
+
], "payable">;
|
|
3265
|
+
upgradeToAndCall: TypedContractMethod<[
|
|
3266
|
+
newImplementation: AddressLike,
|
|
3267
|
+
data: BytesLike
|
|
3268
|
+
], [
|
|
3269
|
+
void
|
|
3270
|
+
], "payable">;
|
|
3196
3271
|
userFeeData: TypedContractMethod<[
|
|
3272
|
+
userFeeDataEpoch: BigNumberish,
|
|
3197
3273
|
user: AddressLike
|
|
3198
3274
|
], [
|
|
3199
3275
|
[
|
|
@@ -3217,6 +3293,7 @@ interface Broker extends BaseContract {
|
|
|
3217
3293
|
], "view">;
|
|
3218
3294
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3219
3295
|
getFunction(nameOrSignature: "FEE_TYPEHASH"): TypedContractMethod<[], [string], "view">;
|
|
3296
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
3220
3297
|
getFunction(nameOrSignature: "__ERC2771ContextUpgradeable_init"): TypedContractMethod<[
|
|
3221
3298
|
trustedForwarder_: AddressLike
|
|
3222
3299
|
], [
|
|
@@ -3236,16 +3313,6 @@ interface Broker extends BaseContract {
|
|
|
3236
3313
|
bigint[]
|
|
3237
3314
|
], "view">;
|
|
3238
3315
|
getFunction(nameOrSignature: "addressManager"): TypedContractMethod<[], [string], "view">;
|
|
3239
|
-
getFunction(nameOrSignature: "adjustCollateral"): TypedContractMethod<[
|
|
3240
|
-
depositParams: {
|
|
3241
|
-
token: AddressLike;
|
|
3242
|
-
amount: BigNumberish;
|
|
3243
|
-
},
|
|
3244
|
-
positionId: BytesLike,
|
|
3245
|
-
adjustAmount: BigNumberish
|
|
3246
|
-
], [
|
|
3247
|
-
void
|
|
3248
|
-
], "nonpayable">;
|
|
3249
3316
|
getFunction(nameOrSignature: "batchSetSpecialFeeTiers"): TypedContractMethod<[
|
|
3250
3317
|
params: {
|
|
3251
3318
|
assetClass: BigNumberish;
|
|
@@ -3274,6 +3341,8 @@ interface Broker extends BaseContract {
|
|
|
3274
3341
|
getFunction(nameOrSignature: "cancelOrders"): TypedContractMethod<[orderIds: BigNumberish[]], [void], "nonpayable">;
|
|
3275
3342
|
getFunction(nameOrSignature: "claimRebate"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
3276
3343
|
getFunction(nameOrSignature: "claimRebates"): TypedContractMethod<[tokens: AddressLike[]], [void], "nonpayable">;
|
|
3344
|
+
getFunction(nameOrSignature: "currentFeeDataEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
3345
|
+
getFunction(nameOrSignature: "domainSeparatorV4"): TypedContractMethod<[], [string], "view">;
|
|
3277
3346
|
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
3278
3347
|
], [
|
|
3279
3348
|
[
|
|
@@ -3312,6 +3381,7 @@ interface Broker extends BaseContract {
|
|
|
3312
3381
|
makerFeeRate: bigint;
|
|
3313
3382
|
}
|
|
3314
3383
|
], "view">;
|
|
3384
|
+
getFunction(nameOrSignature: "getImplementation"): TypedContractMethod<[], [string], "view">;
|
|
3315
3385
|
getFunction(nameOrSignature: "getSpecialFeeTier"): TypedContractMethod<[
|
|
3316
3386
|
assetClass: BigNumberish,
|
|
3317
3387
|
riskTier: BigNumberish,
|
|
@@ -3322,6 +3392,19 @@ interface Broker extends BaseContract {
|
|
|
3322
3392
|
takerFeeRate: bigint;
|
|
3323
3393
|
}
|
|
3324
3394
|
], "view">;
|
|
3395
|
+
getFunction(nameOrSignature: "getUserFeeDataDigest"): TypedContractMethod<[
|
|
3396
|
+
user: AddressLike,
|
|
3397
|
+
nonce: BigNumberish,
|
|
3398
|
+
deadline: BigNumberish,
|
|
3399
|
+
feeData: {
|
|
3400
|
+
tier: BigNumberish;
|
|
3401
|
+
referrer: AddressLike;
|
|
3402
|
+
totalReferralRebatePct: BigNumberish;
|
|
3403
|
+
referrerRebatePct: BigNumberish;
|
|
3404
|
+
}
|
|
3405
|
+
], [
|
|
3406
|
+
string
|
|
3407
|
+
], "view">;
|
|
3325
3408
|
getFunction(nameOrSignature: "getUserFeeRate"): TypedContractMethod<[
|
|
3326
3409
|
user: AddressLike,
|
|
3327
3410
|
assetClass: BigNumberish,
|
|
@@ -3485,7 +3568,9 @@ interface Broker extends BaseContract {
|
|
|
3485
3568
|
], [
|
|
3486
3569
|
void
|
|
3487
3570
|
], "payable">;
|
|
3571
|
+
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
3488
3572
|
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3573
|
+
getFunction(nameOrSignature: "resetAllUserFeeData"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3489
3574
|
getFunction(nameOrSignature: "setSigner"): TypedContractMethod<[
|
|
3490
3575
|
signer: AddressLike,
|
|
3491
3576
|
isSigner: boolean
|
|
@@ -3552,17 +3637,6 @@ interface Broker extends BaseContract {
|
|
|
3552
3637
|
], [
|
|
3553
3638
|
void
|
|
3554
3639
|
], "nonpayable">;
|
|
3555
|
-
getFunction(nameOrSignature: "updateFeeTiers"): TypedContractMethod<[
|
|
3556
|
-
assetClass: BigNumberish,
|
|
3557
|
-
riskTier: BigNumberish,
|
|
3558
|
-
feeTiers: BigNumberish[],
|
|
3559
|
-
feeRates: {
|
|
3560
|
-
takerFeeRate: BigNumberish;
|
|
3561
|
-
makerFeeRate: BigNumberish;
|
|
3562
|
-
}[]
|
|
3563
|
-
], [
|
|
3564
|
-
void
|
|
3565
|
-
], "nonpayable">;
|
|
3566
3640
|
getFunction(nameOrSignature: "updateOrder"): TypedContractMethod<[
|
|
3567
3641
|
depositParams: {
|
|
3568
3642
|
token: AddressLike;
|
|
@@ -3599,7 +3673,31 @@ interface Broker extends BaseContract {
|
|
|
3599
3673
|
], [
|
|
3600
3674
|
void
|
|
3601
3675
|
], "payable">;
|
|
3676
|
+
getFunction(nameOrSignature: "updateUserFeeData"): TypedContractMethod<[
|
|
3677
|
+
user: AddressLike,
|
|
3678
|
+
feeData: {
|
|
3679
|
+
tier: BigNumberish;
|
|
3680
|
+
referrer: AddressLike;
|
|
3681
|
+
totalReferralRebatePct: BigNumberish;
|
|
3682
|
+
referrerRebatePct: BigNumberish;
|
|
3683
|
+
}
|
|
3684
|
+
], [
|
|
3685
|
+
void
|
|
3686
|
+
], "nonpayable">;
|
|
3687
|
+
getFunction(nameOrSignature: "upgradeTo"): TypedContractMethod<[
|
|
3688
|
+
newImplementation: AddressLike,
|
|
3689
|
+
data: BytesLike
|
|
3690
|
+
], [
|
|
3691
|
+
void
|
|
3692
|
+
], "payable">;
|
|
3693
|
+
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
3694
|
+
newImplementation: AddressLike,
|
|
3695
|
+
data: BytesLike
|
|
3696
|
+
], [
|
|
3697
|
+
void
|
|
3698
|
+
], "payable">;
|
|
3602
3699
|
getFunction(nameOrSignature: "userFeeData"): TypedContractMethod<[
|
|
3700
|
+
userFeeDataEpoch: BigNumberish,
|
|
3603
3701
|
user: AddressLike
|
|
3604
3702
|
], [
|
|
3605
3703
|
[
|
|
@@ -3628,6 +3726,8 @@ interface Broker extends BaseContract {
|
|
|
3628
3726
|
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
3629
3727
|
getEvent(key: "RebateClaimed"): TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3630
3728
|
getEvent(key: "SignerUpdated"): TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3729
|
+
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3730
|
+
getEvent(key: "UserFeeDataReset"): TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3631
3731
|
getEvent(key: "UserFeeDataUpdated"): TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3632
3732
|
filters: {
|
|
3633
3733
|
"BrokerStatusUpdated(address,bool)": TypedContractEvent<BrokerStatusUpdatedEvent.InputTuple, BrokerStatusUpdatedEvent.OutputTuple, BrokerStatusUpdatedEvent.OutputObject>;
|
|
@@ -3644,7 +3744,11 @@ interface Broker extends BaseContract {
|
|
|
3644
3744
|
RebateClaimed: TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3645
3745
|
"SignerUpdated(address,bool)": TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3646
3746
|
SignerUpdated: TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3647
|
-
"
|
|
3747
|
+
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3748
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3749
|
+
"UserFeeDataReset(address,address,uint256)": TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3750
|
+
UserFeeDataReset: TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3751
|
+
"UserFeeDataUpdated(address,address,address,uint256,uint8,address,uint32,uint32)": TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3648
3752
|
UserFeeDataUpdated: TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3649
3753
|
};
|
|
3650
3754
|
}
|
|
@@ -3681,7 +3785,7 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3681
3785
|
* @returns the transaction receipt
|
|
3682
3786
|
*/
|
|
3683
3787
|
submitAppeal(poolId: string, lpToken: Address$2, lpAmount: string): Promise<{
|
|
3684
|
-
transaction:
|
|
3788
|
+
transaction: ethers.ContractTransactionReceipt;
|
|
3685
3789
|
caseId: bigint;
|
|
3686
3790
|
}>;
|
|
3687
3791
|
/**
|
|
@@ -3690,13 +3794,13 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3690
3794
|
* @param isFor - true if for the appeal, false if against the appeal
|
|
3691
3795
|
* @returns the transaction receipt
|
|
3692
3796
|
*/
|
|
3693
|
-
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<
|
|
3797
|
+
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3694
3798
|
/**
|
|
3695
3799
|
* claim appeal margin
|
|
3696
3800
|
* @param caseId - the case id
|
|
3697
3801
|
* @returns the transaction receipt
|
|
3698
3802
|
*/
|
|
3699
|
-
claimAppealMargin(caseId: number): Promise<
|
|
3803
|
+
claimAppealMargin(caseId: number): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3700
3804
|
/**
|
|
3701
3805
|
* claim reimbursement
|
|
3702
3806
|
* @param caseId - the case id
|
|
@@ -3705,12 +3809,22 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3705
3809
|
* @param merkleProof - the merkle proof
|
|
3706
3810
|
* @returns the transaction receipt
|
|
3707
3811
|
*/
|
|
3708
|
-
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<
|
|
3812
|
+
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3709
3813
|
/**
|
|
3710
3814
|
* get dispute configuration
|
|
3711
3815
|
*/
|
|
3712
|
-
getDisputeConfiguration(): Promise<
|
|
3713
|
-
|
|
3816
|
+
getDisputeConfiguration(): Promise<[string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
3817
|
+
appealToken: string;
|
|
3818
|
+
disputeBondUsd: bigint;
|
|
3819
|
+
appealBondUsd: bigint;
|
|
3820
|
+
disputeThresholdUsd: bigint;
|
|
3821
|
+
caseDuration: bigint;
|
|
3822
|
+
voteDuration: bigint;
|
|
3823
|
+
resolveDuration: bigint;
|
|
3824
|
+
voteCountRate: bigint;
|
|
3825
|
+
effectiveVoteRate: bigint;
|
|
3826
|
+
}>;
|
|
3827
|
+
appealReconsideration(caseId: number, appealToken: Address$2, appealAmount: string): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3714
3828
|
/**
|
|
3715
3829
|
* http api
|
|
3716
3830
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -963,13 +963,17 @@ declare namespace index$1 {
|
|
|
963
963
|
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 };
|
|
964
964
|
}
|
|
965
965
|
|
|
966
|
-
declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint] & {
|
|
966
|
+
declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
967
967
|
quoteToken: string;
|
|
968
968
|
baseReserveRatio: bigint;
|
|
969
969
|
quoteReserveRatio: bigint;
|
|
970
970
|
oracleFeeUsd: bigint;
|
|
971
971
|
oracleRefundFeeUsd: bigint;
|
|
972
972
|
poolPrimeThreshold: bigint;
|
|
973
|
+
executionFee: bigint;
|
|
974
|
+
maxExecutionFee: bigint;
|
|
975
|
+
forwardFee: bigint;
|
|
976
|
+
maxForwardFee: bigint;
|
|
973
977
|
}) | undefined>;
|
|
974
978
|
|
|
975
979
|
declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<bigint | undefined>;
|
|
@@ -2348,22 +2352,15 @@ interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S exte
|
|
|
2348
2352
|
}
|
|
2349
2353
|
|
|
2350
2354
|
interface BrokerInterface extends Interface {
|
|
2351
|
-
getFunction(nameOrSignature: "FEE_TYPEHASH" | "__ERC2771ContextUpgradeable_init" | "acceptOwnership" | "activeFeeTiers" | "activeSpecialFeeTierList" | "addressManager" | "
|
|
2352
|
-
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "UserFeeDataUpdated"): EventFragment;
|
|
2355
|
+
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;
|
|
2356
|
+
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "Upgraded" | "UserFeeDataReset" | "UserFeeDataUpdated"): EventFragment;
|
|
2353
2357
|
encodeFunctionData(functionFragment: "FEE_TYPEHASH", values?: undefined): string;
|
|
2358
|
+
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
2354
2359
|
encodeFunctionData(functionFragment: "__ERC2771ContextUpgradeable_init", values: [AddressLike]): string;
|
|
2355
2360
|
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
2356
2361
|
encodeFunctionData(functionFragment: "activeFeeTiers", values: [BigNumberish, BigNumberish]): string;
|
|
2357
2362
|
encodeFunctionData(functionFragment: "activeSpecialFeeTierList", values: [BigNumberish, BigNumberish]): string;
|
|
2358
2363
|
encodeFunctionData(functionFragment: "addressManager", values?: undefined): string;
|
|
2359
|
-
encodeFunctionData(functionFragment: "adjustCollateral", values: [
|
|
2360
|
-
{
|
|
2361
|
-
token: AddressLike;
|
|
2362
|
-
amount: BigNumberish;
|
|
2363
|
-
},
|
|
2364
|
-
BytesLike,
|
|
2365
|
-
BigNumberish
|
|
2366
|
-
]): string;
|
|
2367
2364
|
encodeFunctionData(functionFragment: "batchSetSpecialFeeTiers", values: [
|
|
2368
2365
|
{
|
|
2369
2366
|
assetClass: BigNumberish;
|
|
@@ -2388,10 +2385,24 @@ interface BrokerInterface extends Interface {
|
|
|
2388
2385
|
encodeFunctionData(functionFragment: "cancelOrders", values: [BigNumberish[]]): string;
|
|
2389
2386
|
encodeFunctionData(functionFragment: "claimRebate", values: [AddressLike]): string;
|
|
2390
2387
|
encodeFunctionData(functionFragment: "claimRebates", values: [AddressLike[]]): string;
|
|
2388
|
+
encodeFunctionData(functionFragment: "currentFeeDataEpoch", values?: undefined): string;
|
|
2389
|
+
encodeFunctionData(functionFragment: "domainSeparatorV4", values?: undefined): string;
|
|
2391
2390
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
2392
2391
|
encodeFunctionData(functionFragment: "getAddOnFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2393
2392
|
encodeFunctionData(functionFragment: "getBaseFeeRate", values: [BigNumberish]): string;
|
|
2393
|
+
encodeFunctionData(functionFragment: "getImplementation", values?: undefined): string;
|
|
2394
2394
|
encodeFunctionData(functionFragment: "getSpecialFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2395
|
+
encodeFunctionData(functionFragment: "getUserFeeDataDigest", values: [
|
|
2396
|
+
AddressLike,
|
|
2397
|
+
BigNumberish,
|
|
2398
|
+
BigNumberish,
|
|
2399
|
+
{
|
|
2400
|
+
tier: BigNumberish;
|
|
2401
|
+
referrer: AddressLike;
|
|
2402
|
+
totalReferralRebatePct: BigNumberish;
|
|
2403
|
+
referrerRebatePct: BigNumberish;
|
|
2404
|
+
}
|
|
2405
|
+
]): string;
|
|
2395
2406
|
encodeFunctionData(functionFragment: "getUserFeeRate", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
2396
2407
|
encodeFunctionData(functionFragment: "initialize", values: [
|
|
2397
2408
|
AddressLike,
|
|
@@ -2514,7 +2525,9 @@ interface BrokerInterface extends Interface {
|
|
|
2514
2525
|
slPrice: BigNumberish;
|
|
2515
2526
|
}[]
|
|
2516
2527
|
]): string;
|
|
2528
|
+
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
2517
2529
|
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
2530
|
+
encodeFunctionData(functionFragment: "resetAllUserFeeData", values?: undefined): string;
|
|
2518
2531
|
encodeFunctionData(functionFragment: "setSigner", values: [AddressLike, boolean]): string;
|
|
2519
2532
|
encodeFunctionData(functionFragment: "setSpecialFeeTier", values: [
|
|
2520
2533
|
{
|
|
@@ -2563,15 +2576,6 @@ interface BrokerInterface extends Interface {
|
|
|
2563
2576
|
makerFeeRate: BigNumberish;
|
|
2564
2577
|
}
|
|
2565
2578
|
]): string;
|
|
2566
|
-
encodeFunctionData(functionFragment: "updateFeeTiers", values: [
|
|
2567
|
-
BigNumberish,
|
|
2568
|
-
BigNumberish,
|
|
2569
|
-
BigNumberish[],
|
|
2570
|
-
{
|
|
2571
|
-
takerFeeRate: BigNumberish;
|
|
2572
|
-
makerFeeRate: BigNumberish;
|
|
2573
|
-
}[]
|
|
2574
|
-
]): string;
|
|
2575
2579
|
encodeFunctionData(functionFragment: "updateOrder", values: [
|
|
2576
2580
|
{
|
|
2577
2581
|
token: AddressLike;
|
|
@@ -2604,26 +2608,41 @@ interface BrokerInterface extends Interface {
|
|
|
2604
2608
|
BytesLike,
|
|
2605
2609
|
BigNumberish
|
|
2606
2610
|
]): string;
|
|
2607
|
-
encodeFunctionData(functionFragment: "
|
|
2611
|
+
encodeFunctionData(functionFragment: "updateUserFeeData", values: [
|
|
2612
|
+
AddressLike,
|
|
2613
|
+
{
|
|
2614
|
+
tier: BigNumberish;
|
|
2615
|
+
referrer: AddressLike;
|
|
2616
|
+
totalReferralRebatePct: BigNumberish;
|
|
2617
|
+
referrerRebatePct: BigNumberish;
|
|
2618
|
+
}
|
|
2619
|
+
]): string;
|
|
2620
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [AddressLike, BytesLike]): string;
|
|
2621
|
+
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
2622
|
+
encodeFunctionData(functionFragment: "userFeeData", values: [BigNumberish, AddressLike]): string;
|
|
2608
2623
|
encodeFunctionData(functionFragment: "userNonces", values: [AddressLike]): string;
|
|
2609
2624
|
encodeFunctionData(functionFragment: "userRebates", values: [AddressLike, AddressLike]): string;
|
|
2610
2625
|
decodeFunctionResult(functionFragment: "FEE_TYPEHASH", data: BytesLike): Result;
|
|
2626
|
+
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
|
|
2611
2627
|
decodeFunctionResult(functionFragment: "__ERC2771ContextUpgradeable_init", data: BytesLike): Result;
|
|
2612
2628
|
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
2613
2629
|
decodeFunctionResult(functionFragment: "activeFeeTiers", data: BytesLike): Result;
|
|
2614
2630
|
decodeFunctionResult(functionFragment: "activeSpecialFeeTierList", data: BytesLike): Result;
|
|
2615
2631
|
decodeFunctionResult(functionFragment: "addressManager", data: BytesLike): Result;
|
|
2616
|
-
decodeFunctionResult(functionFragment: "adjustCollateral", data: BytesLike): Result;
|
|
2617
2632
|
decodeFunctionResult(functionFragment: "batchSetSpecialFeeTiers", data: BytesLike): Result;
|
|
2618
2633
|
decodeFunctionResult(functionFragment: "batchUpdateFeeTiers", data: BytesLike): Result;
|
|
2619
2634
|
decodeFunctionResult(functionFragment: "cancelOrder", data: BytesLike): Result;
|
|
2620
2635
|
decodeFunctionResult(functionFragment: "cancelOrders", data: BytesLike): Result;
|
|
2621
2636
|
decodeFunctionResult(functionFragment: "claimRebate", data: BytesLike): Result;
|
|
2622
2637
|
decodeFunctionResult(functionFragment: "claimRebates", data: BytesLike): Result;
|
|
2638
|
+
decodeFunctionResult(functionFragment: "currentFeeDataEpoch", data: BytesLike): Result;
|
|
2639
|
+
decodeFunctionResult(functionFragment: "domainSeparatorV4", data: BytesLike): Result;
|
|
2623
2640
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
2624
2641
|
decodeFunctionResult(functionFragment: "getAddOnFeeTier", data: BytesLike): Result;
|
|
2625
2642
|
decodeFunctionResult(functionFragment: "getBaseFeeRate", data: BytesLike): Result;
|
|
2643
|
+
decodeFunctionResult(functionFragment: "getImplementation", data: BytesLike): Result;
|
|
2626
2644
|
decodeFunctionResult(functionFragment: "getSpecialFeeTier", data: BytesLike): Result;
|
|
2645
|
+
decodeFunctionResult(functionFragment: "getUserFeeDataDigest", data: BytesLike): Result;
|
|
2627
2646
|
decodeFunctionResult(functionFragment: "getUserFeeRate", data: BytesLike): Result;
|
|
2628
2647
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
2629
2648
|
decodeFunctionResult(functionFragment: "isActive", data: BytesLike): Result;
|
|
@@ -2636,7 +2655,9 @@ interface BrokerInterface extends Interface {
|
|
|
2636
2655
|
decodeFunctionResult(functionFragment: "placeOrderWithSalt", data: BytesLike): Result;
|
|
2637
2656
|
decodeFunctionResult(functionFragment: "placeOrdersWithPosition", data: BytesLike): Result;
|
|
2638
2657
|
decodeFunctionResult(functionFragment: "placeOrdersWithSalt", data: BytesLike): Result;
|
|
2658
|
+
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
|
|
2639
2659
|
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
2660
|
+
decodeFunctionResult(functionFragment: "resetAllUserFeeData", data: BytesLike): Result;
|
|
2640
2661
|
decodeFunctionResult(functionFragment: "setSigner", data: BytesLike): Result;
|
|
2641
2662
|
decodeFunctionResult(functionFragment: "setSpecialFeeTier", data: BytesLike): Result;
|
|
2642
2663
|
decodeFunctionResult(functionFragment: "setUserFeeData", data: BytesLike): Result;
|
|
@@ -2647,9 +2668,11 @@ interface BrokerInterface extends Interface {
|
|
|
2647
2668
|
decodeFunctionResult(functionFragment: "updateBaseFeeRates", data: BytesLike): Result;
|
|
2648
2669
|
decodeFunctionResult(functionFragment: "updateBrokerStatus", data: BytesLike): Result;
|
|
2649
2670
|
decodeFunctionResult(functionFragment: "updateFeeTier", data: BytesLike): Result;
|
|
2650
|
-
decodeFunctionResult(functionFragment: "updateFeeTiers", data: BytesLike): Result;
|
|
2651
2671
|
decodeFunctionResult(functionFragment: "updateOrder", data: BytesLike): Result;
|
|
2652
2672
|
decodeFunctionResult(functionFragment: "updatePriceAndAdjustCollateral", data: BytesLike): Result;
|
|
2673
|
+
decodeFunctionResult(functionFragment: "updateUserFeeData", data: BytesLike): Result;
|
|
2674
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
2675
|
+
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
|
|
2653
2676
|
decodeFunctionResult(functionFragment: "userFeeData", data: BytesLike): Result;
|
|
2654
2677
|
decodeFunctionResult(functionFragment: "userNonces", data: BytesLike): Result;
|
|
2655
2678
|
decodeFunctionResult(functionFragment: "userRebates", data: BytesLike): Result;
|
|
@@ -2740,11 +2763,40 @@ declare namespace SignerUpdatedEvent {
|
|
|
2740
2763
|
type Log = TypedEventLog<Event>;
|
|
2741
2764
|
type LogDescription = TypedLogDescription<Event>;
|
|
2742
2765
|
}
|
|
2766
|
+
declare namespace UpgradedEvent {
|
|
2767
|
+
type InputTuple = [implementation: AddressLike];
|
|
2768
|
+
type OutputTuple = [implementation: string];
|
|
2769
|
+
interface OutputObject {
|
|
2770
|
+
implementation: string;
|
|
2771
|
+
}
|
|
2772
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2773
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2774
|
+
type Log = TypedEventLog<Event>;
|
|
2775
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2776
|
+
}
|
|
2777
|
+
declare namespace UserFeeDataResetEvent {
|
|
2778
|
+
type InputTuple = [
|
|
2779
|
+
broker: AddressLike,
|
|
2780
|
+
signer: AddressLike,
|
|
2781
|
+
epoch: BigNumberish
|
|
2782
|
+
];
|
|
2783
|
+
type OutputTuple = [broker: string, signer: string, epoch: bigint];
|
|
2784
|
+
interface OutputObject {
|
|
2785
|
+
broker: string;
|
|
2786
|
+
signer: string;
|
|
2787
|
+
epoch: bigint;
|
|
2788
|
+
}
|
|
2789
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2790
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2791
|
+
type Log = TypedEventLog<Event>;
|
|
2792
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2793
|
+
}
|
|
2743
2794
|
declare namespace UserFeeDataUpdatedEvent {
|
|
2744
2795
|
type InputTuple = [
|
|
2745
2796
|
broker: AddressLike,
|
|
2746
2797
|
signer: AddressLike,
|
|
2747
2798
|
user: AddressLike,
|
|
2799
|
+
epoch: BigNumberish,
|
|
2748
2800
|
tier: BigNumberish,
|
|
2749
2801
|
referrer: AddressLike,
|
|
2750
2802
|
totalReferralRebatePct: BigNumberish,
|
|
@@ -2754,6 +2806,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2754
2806
|
broker: string,
|
|
2755
2807
|
signer: string,
|
|
2756
2808
|
user: string,
|
|
2809
|
+
epoch: bigint,
|
|
2757
2810
|
tier: bigint,
|
|
2758
2811
|
referrer: string,
|
|
2759
2812
|
totalReferralRebatePct: bigint,
|
|
@@ -2763,6 +2816,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2763
2816
|
broker: string;
|
|
2764
2817
|
signer: string;
|
|
2765
2818
|
user: string;
|
|
2819
|
+
epoch: bigint;
|
|
2766
2820
|
tier: bigint;
|
|
2767
2821
|
referrer: string;
|
|
2768
2822
|
totalReferralRebatePct: bigint;
|
|
@@ -2787,6 +2841,7 @@ interface Broker extends BaseContract {
|
|
|
2787
2841
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2788
2842
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2789
2843
|
FEE_TYPEHASH: TypedContractMethod<[], [string], "view">;
|
|
2844
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
2790
2845
|
__ERC2771ContextUpgradeable_init: TypedContractMethod<[
|
|
2791
2846
|
trustedForwarder_: AddressLike
|
|
2792
2847
|
], [
|
|
@@ -2806,16 +2861,6 @@ interface Broker extends BaseContract {
|
|
|
2806
2861
|
bigint[]
|
|
2807
2862
|
], "view">;
|
|
2808
2863
|
addressManager: TypedContractMethod<[], [string], "view">;
|
|
2809
|
-
adjustCollateral: TypedContractMethod<[
|
|
2810
|
-
depositParams: {
|
|
2811
|
-
token: AddressLike;
|
|
2812
|
-
amount: BigNumberish;
|
|
2813
|
-
},
|
|
2814
|
-
positionId: BytesLike,
|
|
2815
|
-
adjustAmount: BigNumberish
|
|
2816
|
-
], [
|
|
2817
|
-
void
|
|
2818
|
-
], "nonpayable">;
|
|
2819
2864
|
batchSetSpecialFeeTiers: TypedContractMethod<[
|
|
2820
2865
|
params: {
|
|
2821
2866
|
assetClass: BigNumberish;
|
|
@@ -2856,6 +2901,8 @@ interface Broker extends BaseContract {
|
|
|
2856
2901
|
], [
|
|
2857
2902
|
void
|
|
2858
2903
|
], "nonpayable">;
|
|
2904
|
+
currentFeeDataEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
2905
|
+
domainSeparatorV4: TypedContractMethod<[], [string], "view">;
|
|
2859
2906
|
eip712Domain: TypedContractMethod<[
|
|
2860
2907
|
], [
|
|
2861
2908
|
[
|
|
@@ -2894,6 +2941,7 @@ interface Broker extends BaseContract {
|
|
|
2894
2941
|
makerFeeRate: bigint;
|
|
2895
2942
|
}
|
|
2896
2943
|
], "view">;
|
|
2944
|
+
getImplementation: TypedContractMethod<[], [string], "view">;
|
|
2897
2945
|
getSpecialFeeTier: TypedContractMethod<[
|
|
2898
2946
|
assetClass: BigNumberish,
|
|
2899
2947
|
riskTier: BigNumberish,
|
|
@@ -2904,6 +2952,19 @@ interface Broker extends BaseContract {
|
|
|
2904
2952
|
takerFeeRate: bigint;
|
|
2905
2953
|
}
|
|
2906
2954
|
], "view">;
|
|
2955
|
+
getUserFeeDataDigest: TypedContractMethod<[
|
|
2956
|
+
user: AddressLike,
|
|
2957
|
+
nonce: BigNumberish,
|
|
2958
|
+
deadline: BigNumberish,
|
|
2959
|
+
feeData: {
|
|
2960
|
+
tier: BigNumberish;
|
|
2961
|
+
referrer: AddressLike;
|
|
2962
|
+
totalReferralRebatePct: BigNumberish;
|
|
2963
|
+
referrerRebatePct: BigNumberish;
|
|
2964
|
+
}
|
|
2965
|
+
], [
|
|
2966
|
+
string
|
|
2967
|
+
], "view">;
|
|
2907
2968
|
getUserFeeRate: TypedContractMethod<[
|
|
2908
2969
|
user: AddressLike,
|
|
2909
2970
|
assetClass: BigNumberish,
|
|
@@ -3071,7 +3132,9 @@ interface Broker extends BaseContract {
|
|
|
3071
3132
|
], [
|
|
3072
3133
|
void
|
|
3073
3134
|
], "payable">;
|
|
3135
|
+
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
3074
3136
|
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
3137
|
+
resetAllUserFeeData: TypedContractMethod<[], [void], "nonpayable">;
|
|
3075
3138
|
setSigner: TypedContractMethod<[
|
|
3076
3139
|
signer: AddressLike,
|
|
3077
3140
|
isSigner: boolean
|
|
@@ -3146,17 +3209,6 @@ interface Broker extends BaseContract {
|
|
|
3146
3209
|
], [
|
|
3147
3210
|
void
|
|
3148
3211
|
], "nonpayable">;
|
|
3149
|
-
updateFeeTiers: TypedContractMethod<[
|
|
3150
|
-
assetClass: BigNumberish,
|
|
3151
|
-
riskTier: BigNumberish,
|
|
3152
|
-
feeTiers: BigNumberish[],
|
|
3153
|
-
feeRates: {
|
|
3154
|
-
takerFeeRate: BigNumberish;
|
|
3155
|
-
makerFeeRate: BigNumberish;
|
|
3156
|
-
}[]
|
|
3157
|
-
], [
|
|
3158
|
-
void
|
|
3159
|
-
], "nonpayable">;
|
|
3160
3212
|
updateOrder: TypedContractMethod<[
|
|
3161
3213
|
depositParams: {
|
|
3162
3214
|
token: AddressLike;
|
|
@@ -3193,7 +3245,31 @@ interface Broker extends BaseContract {
|
|
|
3193
3245
|
], [
|
|
3194
3246
|
void
|
|
3195
3247
|
], "payable">;
|
|
3248
|
+
updateUserFeeData: TypedContractMethod<[
|
|
3249
|
+
user: AddressLike,
|
|
3250
|
+
feeData: {
|
|
3251
|
+
tier: BigNumberish;
|
|
3252
|
+
referrer: AddressLike;
|
|
3253
|
+
totalReferralRebatePct: BigNumberish;
|
|
3254
|
+
referrerRebatePct: BigNumberish;
|
|
3255
|
+
}
|
|
3256
|
+
], [
|
|
3257
|
+
void
|
|
3258
|
+
], "nonpayable">;
|
|
3259
|
+
upgradeTo: TypedContractMethod<[
|
|
3260
|
+
newImplementation: AddressLike,
|
|
3261
|
+
data: BytesLike
|
|
3262
|
+
], [
|
|
3263
|
+
void
|
|
3264
|
+
], "payable">;
|
|
3265
|
+
upgradeToAndCall: TypedContractMethod<[
|
|
3266
|
+
newImplementation: AddressLike,
|
|
3267
|
+
data: BytesLike
|
|
3268
|
+
], [
|
|
3269
|
+
void
|
|
3270
|
+
], "payable">;
|
|
3196
3271
|
userFeeData: TypedContractMethod<[
|
|
3272
|
+
userFeeDataEpoch: BigNumberish,
|
|
3197
3273
|
user: AddressLike
|
|
3198
3274
|
], [
|
|
3199
3275
|
[
|
|
@@ -3217,6 +3293,7 @@ interface Broker extends BaseContract {
|
|
|
3217
3293
|
], "view">;
|
|
3218
3294
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3219
3295
|
getFunction(nameOrSignature: "FEE_TYPEHASH"): TypedContractMethod<[], [string], "view">;
|
|
3296
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
3220
3297
|
getFunction(nameOrSignature: "__ERC2771ContextUpgradeable_init"): TypedContractMethod<[
|
|
3221
3298
|
trustedForwarder_: AddressLike
|
|
3222
3299
|
], [
|
|
@@ -3236,16 +3313,6 @@ interface Broker extends BaseContract {
|
|
|
3236
3313
|
bigint[]
|
|
3237
3314
|
], "view">;
|
|
3238
3315
|
getFunction(nameOrSignature: "addressManager"): TypedContractMethod<[], [string], "view">;
|
|
3239
|
-
getFunction(nameOrSignature: "adjustCollateral"): TypedContractMethod<[
|
|
3240
|
-
depositParams: {
|
|
3241
|
-
token: AddressLike;
|
|
3242
|
-
amount: BigNumberish;
|
|
3243
|
-
},
|
|
3244
|
-
positionId: BytesLike,
|
|
3245
|
-
adjustAmount: BigNumberish
|
|
3246
|
-
], [
|
|
3247
|
-
void
|
|
3248
|
-
], "nonpayable">;
|
|
3249
3316
|
getFunction(nameOrSignature: "batchSetSpecialFeeTiers"): TypedContractMethod<[
|
|
3250
3317
|
params: {
|
|
3251
3318
|
assetClass: BigNumberish;
|
|
@@ -3274,6 +3341,8 @@ interface Broker extends BaseContract {
|
|
|
3274
3341
|
getFunction(nameOrSignature: "cancelOrders"): TypedContractMethod<[orderIds: BigNumberish[]], [void], "nonpayable">;
|
|
3275
3342
|
getFunction(nameOrSignature: "claimRebate"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
3276
3343
|
getFunction(nameOrSignature: "claimRebates"): TypedContractMethod<[tokens: AddressLike[]], [void], "nonpayable">;
|
|
3344
|
+
getFunction(nameOrSignature: "currentFeeDataEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
3345
|
+
getFunction(nameOrSignature: "domainSeparatorV4"): TypedContractMethod<[], [string], "view">;
|
|
3277
3346
|
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
3278
3347
|
], [
|
|
3279
3348
|
[
|
|
@@ -3312,6 +3381,7 @@ interface Broker extends BaseContract {
|
|
|
3312
3381
|
makerFeeRate: bigint;
|
|
3313
3382
|
}
|
|
3314
3383
|
], "view">;
|
|
3384
|
+
getFunction(nameOrSignature: "getImplementation"): TypedContractMethod<[], [string], "view">;
|
|
3315
3385
|
getFunction(nameOrSignature: "getSpecialFeeTier"): TypedContractMethod<[
|
|
3316
3386
|
assetClass: BigNumberish,
|
|
3317
3387
|
riskTier: BigNumberish,
|
|
@@ -3322,6 +3392,19 @@ interface Broker extends BaseContract {
|
|
|
3322
3392
|
takerFeeRate: bigint;
|
|
3323
3393
|
}
|
|
3324
3394
|
], "view">;
|
|
3395
|
+
getFunction(nameOrSignature: "getUserFeeDataDigest"): TypedContractMethod<[
|
|
3396
|
+
user: AddressLike,
|
|
3397
|
+
nonce: BigNumberish,
|
|
3398
|
+
deadline: BigNumberish,
|
|
3399
|
+
feeData: {
|
|
3400
|
+
tier: BigNumberish;
|
|
3401
|
+
referrer: AddressLike;
|
|
3402
|
+
totalReferralRebatePct: BigNumberish;
|
|
3403
|
+
referrerRebatePct: BigNumberish;
|
|
3404
|
+
}
|
|
3405
|
+
], [
|
|
3406
|
+
string
|
|
3407
|
+
], "view">;
|
|
3325
3408
|
getFunction(nameOrSignature: "getUserFeeRate"): TypedContractMethod<[
|
|
3326
3409
|
user: AddressLike,
|
|
3327
3410
|
assetClass: BigNumberish,
|
|
@@ -3485,7 +3568,9 @@ interface Broker extends BaseContract {
|
|
|
3485
3568
|
], [
|
|
3486
3569
|
void
|
|
3487
3570
|
], "payable">;
|
|
3571
|
+
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
3488
3572
|
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3573
|
+
getFunction(nameOrSignature: "resetAllUserFeeData"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3489
3574
|
getFunction(nameOrSignature: "setSigner"): TypedContractMethod<[
|
|
3490
3575
|
signer: AddressLike,
|
|
3491
3576
|
isSigner: boolean
|
|
@@ -3552,17 +3637,6 @@ interface Broker extends BaseContract {
|
|
|
3552
3637
|
], [
|
|
3553
3638
|
void
|
|
3554
3639
|
], "nonpayable">;
|
|
3555
|
-
getFunction(nameOrSignature: "updateFeeTiers"): TypedContractMethod<[
|
|
3556
|
-
assetClass: BigNumberish,
|
|
3557
|
-
riskTier: BigNumberish,
|
|
3558
|
-
feeTiers: BigNumberish[],
|
|
3559
|
-
feeRates: {
|
|
3560
|
-
takerFeeRate: BigNumberish;
|
|
3561
|
-
makerFeeRate: BigNumberish;
|
|
3562
|
-
}[]
|
|
3563
|
-
], [
|
|
3564
|
-
void
|
|
3565
|
-
], "nonpayable">;
|
|
3566
3640
|
getFunction(nameOrSignature: "updateOrder"): TypedContractMethod<[
|
|
3567
3641
|
depositParams: {
|
|
3568
3642
|
token: AddressLike;
|
|
@@ -3599,7 +3673,31 @@ interface Broker extends BaseContract {
|
|
|
3599
3673
|
], [
|
|
3600
3674
|
void
|
|
3601
3675
|
], "payable">;
|
|
3676
|
+
getFunction(nameOrSignature: "updateUserFeeData"): TypedContractMethod<[
|
|
3677
|
+
user: AddressLike,
|
|
3678
|
+
feeData: {
|
|
3679
|
+
tier: BigNumberish;
|
|
3680
|
+
referrer: AddressLike;
|
|
3681
|
+
totalReferralRebatePct: BigNumberish;
|
|
3682
|
+
referrerRebatePct: BigNumberish;
|
|
3683
|
+
}
|
|
3684
|
+
], [
|
|
3685
|
+
void
|
|
3686
|
+
], "nonpayable">;
|
|
3687
|
+
getFunction(nameOrSignature: "upgradeTo"): TypedContractMethod<[
|
|
3688
|
+
newImplementation: AddressLike,
|
|
3689
|
+
data: BytesLike
|
|
3690
|
+
], [
|
|
3691
|
+
void
|
|
3692
|
+
], "payable">;
|
|
3693
|
+
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
3694
|
+
newImplementation: AddressLike,
|
|
3695
|
+
data: BytesLike
|
|
3696
|
+
], [
|
|
3697
|
+
void
|
|
3698
|
+
], "payable">;
|
|
3602
3699
|
getFunction(nameOrSignature: "userFeeData"): TypedContractMethod<[
|
|
3700
|
+
userFeeDataEpoch: BigNumberish,
|
|
3603
3701
|
user: AddressLike
|
|
3604
3702
|
], [
|
|
3605
3703
|
[
|
|
@@ -3628,6 +3726,8 @@ interface Broker extends BaseContract {
|
|
|
3628
3726
|
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
3629
3727
|
getEvent(key: "RebateClaimed"): TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3630
3728
|
getEvent(key: "SignerUpdated"): TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3729
|
+
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3730
|
+
getEvent(key: "UserFeeDataReset"): TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3631
3731
|
getEvent(key: "UserFeeDataUpdated"): TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3632
3732
|
filters: {
|
|
3633
3733
|
"BrokerStatusUpdated(address,bool)": TypedContractEvent<BrokerStatusUpdatedEvent.InputTuple, BrokerStatusUpdatedEvent.OutputTuple, BrokerStatusUpdatedEvent.OutputObject>;
|
|
@@ -3644,7 +3744,11 @@ interface Broker extends BaseContract {
|
|
|
3644
3744
|
RebateClaimed: TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3645
3745
|
"SignerUpdated(address,bool)": TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3646
3746
|
SignerUpdated: TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3647
|
-
"
|
|
3747
|
+
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3748
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3749
|
+
"UserFeeDataReset(address,address,uint256)": TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3750
|
+
UserFeeDataReset: TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3751
|
+
"UserFeeDataUpdated(address,address,address,uint256,uint8,address,uint32,uint32)": TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3648
3752
|
UserFeeDataUpdated: TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3649
3753
|
};
|
|
3650
3754
|
}
|
|
@@ -3681,7 +3785,7 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3681
3785
|
* @returns the transaction receipt
|
|
3682
3786
|
*/
|
|
3683
3787
|
submitAppeal(poolId: string, lpToken: Address$2, lpAmount: string): Promise<{
|
|
3684
|
-
transaction:
|
|
3788
|
+
transaction: ethers.ContractTransactionReceipt;
|
|
3685
3789
|
caseId: bigint;
|
|
3686
3790
|
}>;
|
|
3687
3791
|
/**
|
|
@@ -3690,13 +3794,13 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3690
3794
|
* @param isFor - true if for the appeal, false if against the appeal
|
|
3691
3795
|
* @returns the transaction receipt
|
|
3692
3796
|
*/
|
|
3693
|
-
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<
|
|
3797
|
+
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3694
3798
|
/**
|
|
3695
3799
|
* claim appeal margin
|
|
3696
3800
|
* @param caseId - the case id
|
|
3697
3801
|
* @returns the transaction receipt
|
|
3698
3802
|
*/
|
|
3699
|
-
claimAppealMargin(caseId: number): Promise<
|
|
3803
|
+
claimAppealMargin(caseId: number): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3700
3804
|
/**
|
|
3701
3805
|
* claim reimbursement
|
|
3702
3806
|
* @param caseId - the case id
|
|
@@ -3705,12 +3809,22 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3705
3809
|
* @param merkleProof - the merkle proof
|
|
3706
3810
|
* @returns the transaction receipt
|
|
3707
3811
|
*/
|
|
3708
|
-
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<
|
|
3812
|
+
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3709
3813
|
/**
|
|
3710
3814
|
* get dispute configuration
|
|
3711
3815
|
*/
|
|
3712
|
-
getDisputeConfiguration(): Promise<
|
|
3713
|
-
|
|
3816
|
+
getDisputeConfiguration(): Promise<[string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
3817
|
+
appealToken: string;
|
|
3818
|
+
disputeBondUsd: bigint;
|
|
3819
|
+
appealBondUsd: bigint;
|
|
3820
|
+
disputeThresholdUsd: bigint;
|
|
3821
|
+
caseDuration: bigint;
|
|
3822
|
+
voteDuration: bigint;
|
|
3823
|
+
resolveDuration: bigint;
|
|
3824
|
+
voteCountRate: bigint;
|
|
3825
|
+
effectiveVoteRate: bigint;
|
|
3826
|
+
}>;
|
|
3827
|
+
appealReconsideration(caseId: number, appealToken: Address$2, appealAmount: string): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3714
3828
|
/**
|
|
3715
3829
|
* http api
|
|
3716
3830
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1867,7 +1867,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1867
1867
|
// package.json
|
|
1868
1868
|
var package_default = {
|
|
1869
1869
|
name: "@myx-trade/sdk",
|
|
1870
|
-
version: "0.1.
|
|
1870
|
+
version: "0.1.253",
|
|
1871
1871
|
private: false,
|
|
1872
1872
|
publishConfig: {
|
|
1873
1873
|
access: "public"
|
|
@@ -1897,7 +1897,7 @@ var package_default = {
|
|
|
1897
1897
|
"version:minor": "node scripts/bump-version.js minor",
|
|
1898
1898
|
"version:major": "node scripts/bump-version.js major",
|
|
1899
1899
|
prepublishOnly: "npm run build",
|
|
1900
|
-
|
|
1900
|
+
prepare: "pnpm gen:abi",
|
|
1901
1901
|
publish: "node scripts/publish.js patch",
|
|
1902
1902
|
"publish:patch": "node scripts/publish.js patch",
|
|
1903
1903
|
"publish:minor": "node scripts/publish.js minor",
|
package/dist/index.mjs
CHANGED
|
@@ -1781,7 +1781,7 @@ var RotationProvider = class extends BaseProvider {
|
|
|
1781
1781
|
// package.json
|
|
1782
1782
|
var package_default = {
|
|
1783
1783
|
name: "@myx-trade/sdk",
|
|
1784
|
-
version: "0.1.
|
|
1784
|
+
version: "0.1.253",
|
|
1785
1785
|
private: false,
|
|
1786
1786
|
publishConfig: {
|
|
1787
1787
|
access: "public"
|
|
@@ -1811,7 +1811,7 @@ var package_default = {
|
|
|
1811
1811
|
"version:minor": "node scripts/bump-version.js minor",
|
|
1812
1812
|
"version:major": "node scripts/bump-version.js major",
|
|
1813
1813
|
prepublishOnly: "npm run build",
|
|
1814
|
-
|
|
1814
|
+
prepare: "pnpm gen:abi",
|
|
1815
1815
|
publish: "node scripts/publish.js patch",
|
|
1816
1816
|
"publish:patch": "node scripts/publish.js patch",
|
|
1817
1817
|
"publish:minor": "node scripts/publish.js minor",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myx-trade/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.253",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -19,25 +19,6 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
24
|
-
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
25
|
-
"clean": "rm -rf dist",
|
|
26
|
-
"prebuild": "npm run clean",
|
|
27
|
-
"gen:abi": "typechain --target ethers-v6 --out-dir ./src/abi/types './src/abi/**/*.json'",
|
|
28
|
-
"version:bump": "node scripts/bump-version.js",
|
|
29
|
-
"version:patch": "node scripts/bump-version.js patch",
|
|
30
|
-
"version:minor": "node scripts/bump-version.js minor",
|
|
31
|
-
"version:major": "node scripts/bump-version.js major",
|
|
32
|
-
"prepublishOnly": "npm run build",
|
|
33
|
-
"postinstall": "pnpm gen:abi",
|
|
34
|
-
"publish": "node scripts/publish.js patch",
|
|
35
|
-
"publish:patch": "node scripts/publish.js patch",
|
|
36
|
-
"publish:minor": "node scripts/publish.js minor",
|
|
37
|
-
"publish:major": "node scripts/publish.js major",
|
|
38
|
-
"publish:no-bump": "npm run build && npm publish --access public",
|
|
39
|
-
"type-check": "echo 'Skipping type-check for @myx-trade/sdk'"
|
|
40
|
-
},
|
|
41
22
|
"keywords": [
|
|
42
23
|
"trading",
|
|
43
24
|
"sdk",
|
|
@@ -46,7 +27,6 @@
|
|
|
46
27
|
],
|
|
47
28
|
"author": "",
|
|
48
29
|
"license": "ISC",
|
|
49
|
-
"packageManager": "pnpm@10.12.4",
|
|
50
30
|
"devDependencies": {
|
|
51
31
|
"@typechain/ethers-v6": "^0.5.1",
|
|
52
32
|
"@types/crypto-js": "^4.2.2",
|
|
@@ -73,5 +53,21 @@
|
|
|
73
53
|
"wretch": "^2.11.0",
|
|
74
54
|
"ws": "^8.18.3",
|
|
75
55
|
"dayjs": "^1.11.13"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
59
|
+
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
60
|
+
"clean": "rm -rf dist",
|
|
61
|
+
"prebuild": "npm run clean",
|
|
62
|
+
"gen:abi": "typechain --target ethers-v6 --out-dir ./src/abi/types './src/abi/**/*.json'",
|
|
63
|
+
"version:bump": "node scripts/bump-version.js",
|
|
64
|
+
"version:patch": "node scripts/bump-version.js patch",
|
|
65
|
+
"version:minor": "node scripts/bump-version.js minor",
|
|
66
|
+
"version:major": "node scripts/bump-version.js major",
|
|
67
|
+
"publish:patch": "node scripts/publish.js patch",
|
|
68
|
+
"publish:minor": "node scripts/publish.js minor",
|
|
69
|
+
"publish:major": "node scripts/publish.js major",
|
|
70
|
+
"publish:no-bump": "npm run build && npm publish --access public",
|
|
71
|
+
"type-check": "echo 'Skipping type-check for @myx-trade/sdk'"
|
|
76
72
|
}
|
|
77
|
-
}
|
|
73
|
+
}
|