@myx-trade/sdk 0.1.252 → 0.1.254-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +187 -72
- package/dist/index.d.ts +187 -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>;
|
|
@@ -1648,6 +1652,7 @@ interface AppealReconsiderationDetail {
|
|
|
1648
1652
|
appealVotes: AppealVoteItem[];
|
|
1649
1653
|
appealTotalVoteCount: number;
|
|
1650
1654
|
appealVotedCount: number;
|
|
1655
|
+
appealCaseId?: number;
|
|
1651
1656
|
}
|
|
1652
1657
|
interface AppealReimbursementParams {
|
|
1653
1658
|
before?: number;
|
|
@@ -2348,22 +2353,15 @@ interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S exte
|
|
|
2348
2353
|
}
|
|
2349
2354
|
|
|
2350
2355
|
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;
|
|
2356
|
+
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;
|
|
2357
|
+
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "Upgraded" | "UserFeeDataReset" | "UserFeeDataUpdated"): EventFragment;
|
|
2353
2358
|
encodeFunctionData(functionFragment: "FEE_TYPEHASH", values?: undefined): string;
|
|
2359
|
+
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
2354
2360
|
encodeFunctionData(functionFragment: "__ERC2771ContextUpgradeable_init", values: [AddressLike]): string;
|
|
2355
2361
|
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
2356
2362
|
encodeFunctionData(functionFragment: "activeFeeTiers", values: [BigNumberish, BigNumberish]): string;
|
|
2357
2363
|
encodeFunctionData(functionFragment: "activeSpecialFeeTierList", values: [BigNumberish, BigNumberish]): string;
|
|
2358
2364
|
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
2365
|
encodeFunctionData(functionFragment: "batchSetSpecialFeeTiers", values: [
|
|
2368
2366
|
{
|
|
2369
2367
|
assetClass: BigNumberish;
|
|
@@ -2388,10 +2386,24 @@ interface BrokerInterface extends Interface {
|
|
|
2388
2386
|
encodeFunctionData(functionFragment: "cancelOrders", values: [BigNumberish[]]): string;
|
|
2389
2387
|
encodeFunctionData(functionFragment: "claimRebate", values: [AddressLike]): string;
|
|
2390
2388
|
encodeFunctionData(functionFragment: "claimRebates", values: [AddressLike[]]): string;
|
|
2389
|
+
encodeFunctionData(functionFragment: "currentFeeDataEpoch", values?: undefined): string;
|
|
2390
|
+
encodeFunctionData(functionFragment: "domainSeparatorV4", values?: undefined): string;
|
|
2391
2391
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
2392
2392
|
encodeFunctionData(functionFragment: "getAddOnFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2393
2393
|
encodeFunctionData(functionFragment: "getBaseFeeRate", values: [BigNumberish]): string;
|
|
2394
|
+
encodeFunctionData(functionFragment: "getImplementation", values?: undefined): string;
|
|
2394
2395
|
encodeFunctionData(functionFragment: "getSpecialFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2396
|
+
encodeFunctionData(functionFragment: "getUserFeeDataDigest", values: [
|
|
2397
|
+
AddressLike,
|
|
2398
|
+
BigNumberish,
|
|
2399
|
+
BigNumberish,
|
|
2400
|
+
{
|
|
2401
|
+
tier: BigNumberish;
|
|
2402
|
+
referrer: AddressLike;
|
|
2403
|
+
totalReferralRebatePct: BigNumberish;
|
|
2404
|
+
referrerRebatePct: BigNumberish;
|
|
2405
|
+
}
|
|
2406
|
+
]): string;
|
|
2395
2407
|
encodeFunctionData(functionFragment: "getUserFeeRate", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
2396
2408
|
encodeFunctionData(functionFragment: "initialize", values: [
|
|
2397
2409
|
AddressLike,
|
|
@@ -2514,7 +2526,9 @@ interface BrokerInterface extends Interface {
|
|
|
2514
2526
|
slPrice: BigNumberish;
|
|
2515
2527
|
}[]
|
|
2516
2528
|
]): string;
|
|
2529
|
+
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
2517
2530
|
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
2531
|
+
encodeFunctionData(functionFragment: "resetAllUserFeeData", values?: undefined): string;
|
|
2518
2532
|
encodeFunctionData(functionFragment: "setSigner", values: [AddressLike, boolean]): string;
|
|
2519
2533
|
encodeFunctionData(functionFragment: "setSpecialFeeTier", values: [
|
|
2520
2534
|
{
|
|
@@ -2563,15 +2577,6 @@ interface BrokerInterface extends Interface {
|
|
|
2563
2577
|
makerFeeRate: BigNumberish;
|
|
2564
2578
|
}
|
|
2565
2579
|
]): string;
|
|
2566
|
-
encodeFunctionData(functionFragment: "updateFeeTiers", values: [
|
|
2567
|
-
BigNumberish,
|
|
2568
|
-
BigNumberish,
|
|
2569
|
-
BigNumberish[],
|
|
2570
|
-
{
|
|
2571
|
-
takerFeeRate: BigNumberish;
|
|
2572
|
-
makerFeeRate: BigNumberish;
|
|
2573
|
-
}[]
|
|
2574
|
-
]): string;
|
|
2575
2580
|
encodeFunctionData(functionFragment: "updateOrder", values: [
|
|
2576
2581
|
{
|
|
2577
2582
|
token: AddressLike;
|
|
@@ -2604,26 +2609,41 @@ interface BrokerInterface extends Interface {
|
|
|
2604
2609
|
BytesLike,
|
|
2605
2610
|
BigNumberish
|
|
2606
2611
|
]): string;
|
|
2607
|
-
encodeFunctionData(functionFragment: "
|
|
2612
|
+
encodeFunctionData(functionFragment: "updateUserFeeData", values: [
|
|
2613
|
+
AddressLike,
|
|
2614
|
+
{
|
|
2615
|
+
tier: BigNumberish;
|
|
2616
|
+
referrer: AddressLike;
|
|
2617
|
+
totalReferralRebatePct: BigNumberish;
|
|
2618
|
+
referrerRebatePct: BigNumberish;
|
|
2619
|
+
}
|
|
2620
|
+
]): string;
|
|
2621
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [AddressLike, BytesLike]): string;
|
|
2622
|
+
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
2623
|
+
encodeFunctionData(functionFragment: "userFeeData", values: [BigNumberish, AddressLike]): string;
|
|
2608
2624
|
encodeFunctionData(functionFragment: "userNonces", values: [AddressLike]): string;
|
|
2609
2625
|
encodeFunctionData(functionFragment: "userRebates", values: [AddressLike, AddressLike]): string;
|
|
2610
2626
|
decodeFunctionResult(functionFragment: "FEE_TYPEHASH", data: BytesLike): Result;
|
|
2627
|
+
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
|
|
2611
2628
|
decodeFunctionResult(functionFragment: "__ERC2771ContextUpgradeable_init", data: BytesLike): Result;
|
|
2612
2629
|
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
2613
2630
|
decodeFunctionResult(functionFragment: "activeFeeTiers", data: BytesLike): Result;
|
|
2614
2631
|
decodeFunctionResult(functionFragment: "activeSpecialFeeTierList", data: BytesLike): Result;
|
|
2615
2632
|
decodeFunctionResult(functionFragment: "addressManager", data: BytesLike): Result;
|
|
2616
|
-
decodeFunctionResult(functionFragment: "adjustCollateral", data: BytesLike): Result;
|
|
2617
2633
|
decodeFunctionResult(functionFragment: "batchSetSpecialFeeTiers", data: BytesLike): Result;
|
|
2618
2634
|
decodeFunctionResult(functionFragment: "batchUpdateFeeTiers", data: BytesLike): Result;
|
|
2619
2635
|
decodeFunctionResult(functionFragment: "cancelOrder", data: BytesLike): Result;
|
|
2620
2636
|
decodeFunctionResult(functionFragment: "cancelOrders", data: BytesLike): Result;
|
|
2621
2637
|
decodeFunctionResult(functionFragment: "claimRebate", data: BytesLike): Result;
|
|
2622
2638
|
decodeFunctionResult(functionFragment: "claimRebates", data: BytesLike): Result;
|
|
2639
|
+
decodeFunctionResult(functionFragment: "currentFeeDataEpoch", data: BytesLike): Result;
|
|
2640
|
+
decodeFunctionResult(functionFragment: "domainSeparatorV4", data: BytesLike): Result;
|
|
2623
2641
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
2624
2642
|
decodeFunctionResult(functionFragment: "getAddOnFeeTier", data: BytesLike): Result;
|
|
2625
2643
|
decodeFunctionResult(functionFragment: "getBaseFeeRate", data: BytesLike): Result;
|
|
2644
|
+
decodeFunctionResult(functionFragment: "getImplementation", data: BytesLike): Result;
|
|
2626
2645
|
decodeFunctionResult(functionFragment: "getSpecialFeeTier", data: BytesLike): Result;
|
|
2646
|
+
decodeFunctionResult(functionFragment: "getUserFeeDataDigest", data: BytesLike): Result;
|
|
2627
2647
|
decodeFunctionResult(functionFragment: "getUserFeeRate", data: BytesLike): Result;
|
|
2628
2648
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
2629
2649
|
decodeFunctionResult(functionFragment: "isActive", data: BytesLike): Result;
|
|
@@ -2636,7 +2656,9 @@ interface BrokerInterface extends Interface {
|
|
|
2636
2656
|
decodeFunctionResult(functionFragment: "placeOrderWithSalt", data: BytesLike): Result;
|
|
2637
2657
|
decodeFunctionResult(functionFragment: "placeOrdersWithPosition", data: BytesLike): Result;
|
|
2638
2658
|
decodeFunctionResult(functionFragment: "placeOrdersWithSalt", data: BytesLike): Result;
|
|
2659
|
+
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
|
|
2639
2660
|
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
2661
|
+
decodeFunctionResult(functionFragment: "resetAllUserFeeData", data: BytesLike): Result;
|
|
2640
2662
|
decodeFunctionResult(functionFragment: "setSigner", data: BytesLike): Result;
|
|
2641
2663
|
decodeFunctionResult(functionFragment: "setSpecialFeeTier", data: BytesLike): Result;
|
|
2642
2664
|
decodeFunctionResult(functionFragment: "setUserFeeData", data: BytesLike): Result;
|
|
@@ -2647,9 +2669,11 @@ interface BrokerInterface extends Interface {
|
|
|
2647
2669
|
decodeFunctionResult(functionFragment: "updateBaseFeeRates", data: BytesLike): Result;
|
|
2648
2670
|
decodeFunctionResult(functionFragment: "updateBrokerStatus", data: BytesLike): Result;
|
|
2649
2671
|
decodeFunctionResult(functionFragment: "updateFeeTier", data: BytesLike): Result;
|
|
2650
|
-
decodeFunctionResult(functionFragment: "updateFeeTiers", data: BytesLike): Result;
|
|
2651
2672
|
decodeFunctionResult(functionFragment: "updateOrder", data: BytesLike): Result;
|
|
2652
2673
|
decodeFunctionResult(functionFragment: "updatePriceAndAdjustCollateral", data: BytesLike): Result;
|
|
2674
|
+
decodeFunctionResult(functionFragment: "updateUserFeeData", data: BytesLike): Result;
|
|
2675
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
2676
|
+
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
|
|
2653
2677
|
decodeFunctionResult(functionFragment: "userFeeData", data: BytesLike): Result;
|
|
2654
2678
|
decodeFunctionResult(functionFragment: "userNonces", data: BytesLike): Result;
|
|
2655
2679
|
decodeFunctionResult(functionFragment: "userRebates", data: BytesLike): Result;
|
|
@@ -2740,11 +2764,40 @@ declare namespace SignerUpdatedEvent {
|
|
|
2740
2764
|
type Log = TypedEventLog<Event>;
|
|
2741
2765
|
type LogDescription = TypedLogDescription<Event>;
|
|
2742
2766
|
}
|
|
2767
|
+
declare namespace UpgradedEvent {
|
|
2768
|
+
type InputTuple = [implementation: AddressLike];
|
|
2769
|
+
type OutputTuple = [implementation: string];
|
|
2770
|
+
interface OutputObject {
|
|
2771
|
+
implementation: string;
|
|
2772
|
+
}
|
|
2773
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2774
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2775
|
+
type Log = TypedEventLog<Event>;
|
|
2776
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2777
|
+
}
|
|
2778
|
+
declare namespace UserFeeDataResetEvent {
|
|
2779
|
+
type InputTuple = [
|
|
2780
|
+
broker: AddressLike,
|
|
2781
|
+
signer: AddressLike,
|
|
2782
|
+
epoch: BigNumberish
|
|
2783
|
+
];
|
|
2784
|
+
type OutputTuple = [broker: string, signer: string, epoch: bigint];
|
|
2785
|
+
interface OutputObject {
|
|
2786
|
+
broker: string;
|
|
2787
|
+
signer: string;
|
|
2788
|
+
epoch: bigint;
|
|
2789
|
+
}
|
|
2790
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2791
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2792
|
+
type Log = TypedEventLog<Event>;
|
|
2793
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2794
|
+
}
|
|
2743
2795
|
declare namespace UserFeeDataUpdatedEvent {
|
|
2744
2796
|
type InputTuple = [
|
|
2745
2797
|
broker: AddressLike,
|
|
2746
2798
|
signer: AddressLike,
|
|
2747
2799
|
user: AddressLike,
|
|
2800
|
+
epoch: BigNumberish,
|
|
2748
2801
|
tier: BigNumberish,
|
|
2749
2802
|
referrer: AddressLike,
|
|
2750
2803
|
totalReferralRebatePct: BigNumberish,
|
|
@@ -2754,6 +2807,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2754
2807
|
broker: string,
|
|
2755
2808
|
signer: string,
|
|
2756
2809
|
user: string,
|
|
2810
|
+
epoch: bigint,
|
|
2757
2811
|
tier: bigint,
|
|
2758
2812
|
referrer: string,
|
|
2759
2813
|
totalReferralRebatePct: bigint,
|
|
@@ -2763,6 +2817,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2763
2817
|
broker: string;
|
|
2764
2818
|
signer: string;
|
|
2765
2819
|
user: string;
|
|
2820
|
+
epoch: bigint;
|
|
2766
2821
|
tier: bigint;
|
|
2767
2822
|
referrer: string;
|
|
2768
2823
|
totalReferralRebatePct: bigint;
|
|
@@ -2787,6 +2842,7 @@ interface Broker extends BaseContract {
|
|
|
2787
2842
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2788
2843
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2789
2844
|
FEE_TYPEHASH: TypedContractMethod<[], [string], "view">;
|
|
2845
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
2790
2846
|
__ERC2771ContextUpgradeable_init: TypedContractMethod<[
|
|
2791
2847
|
trustedForwarder_: AddressLike
|
|
2792
2848
|
], [
|
|
@@ -2806,16 +2862,6 @@ interface Broker extends BaseContract {
|
|
|
2806
2862
|
bigint[]
|
|
2807
2863
|
], "view">;
|
|
2808
2864
|
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
2865
|
batchSetSpecialFeeTiers: TypedContractMethod<[
|
|
2820
2866
|
params: {
|
|
2821
2867
|
assetClass: BigNumberish;
|
|
@@ -2856,6 +2902,8 @@ interface Broker extends BaseContract {
|
|
|
2856
2902
|
], [
|
|
2857
2903
|
void
|
|
2858
2904
|
], "nonpayable">;
|
|
2905
|
+
currentFeeDataEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
2906
|
+
domainSeparatorV4: TypedContractMethod<[], [string], "view">;
|
|
2859
2907
|
eip712Domain: TypedContractMethod<[
|
|
2860
2908
|
], [
|
|
2861
2909
|
[
|
|
@@ -2894,6 +2942,7 @@ interface Broker extends BaseContract {
|
|
|
2894
2942
|
makerFeeRate: bigint;
|
|
2895
2943
|
}
|
|
2896
2944
|
], "view">;
|
|
2945
|
+
getImplementation: TypedContractMethod<[], [string], "view">;
|
|
2897
2946
|
getSpecialFeeTier: TypedContractMethod<[
|
|
2898
2947
|
assetClass: BigNumberish,
|
|
2899
2948
|
riskTier: BigNumberish,
|
|
@@ -2904,6 +2953,19 @@ interface Broker extends BaseContract {
|
|
|
2904
2953
|
takerFeeRate: bigint;
|
|
2905
2954
|
}
|
|
2906
2955
|
], "view">;
|
|
2956
|
+
getUserFeeDataDigest: TypedContractMethod<[
|
|
2957
|
+
user: AddressLike,
|
|
2958
|
+
nonce: BigNumberish,
|
|
2959
|
+
deadline: BigNumberish,
|
|
2960
|
+
feeData: {
|
|
2961
|
+
tier: BigNumberish;
|
|
2962
|
+
referrer: AddressLike;
|
|
2963
|
+
totalReferralRebatePct: BigNumberish;
|
|
2964
|
+
referrerRebatePct: BigNumberish;
|
|
2965
|
+
}
|
|
2966
|
+
], [
|
|
2967
|
+
string
|
|
2968
|
+
], "view">;
|
|
2907
2969
|
getUserFeeRate: TypedContractMethod<[
|
|
2908
2970
|
user: AddressLike,
|
|
2909
2971
|
assetClass: BigNumberish,
|
|
@@ -3071,7 +3133,9 @@ interface Broker extends BaseContract {
|
|
|
3071
3133
|
], [
|
|
3072
3134
|
void
|
|
3073
3135
|
], "payable">;
|
|
3136
|
+
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
3074
3137
|
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
3138
|
+
resetAllUserFeeData: TypedContractMethod<[], [void], "nonpayable">;
|
|
3075
3139
|
setSigner: TypedContractMethod<[
|
|
3076
3140
|
signer: AddressLike,
|
|
3077
3141
|
isSigner: boolean
|
|
@@ -3146,17 +3210,6 @@ interface Broker extends BaseContract {
|
|
|
3146
3210
|
], [
|
|
3147
3211
|
void
|
|
3148
3212
|
], "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
3213
|
updateOrder: TypedContractMethod<[
|
|
3161
3214
|
depositParams: {
|
|
3162
3215
|
token: AddressLike;
|
|
@@ -3193,7 +3246,31 @@ interface Broker extends BaseContract {
|
|
|
3193
3246
|
], [
|
|
3194
3247
|
void
|
|
3195
3248
|
], "payable">;
|
|
3249
|
+
updateUserFeeData: TypedContractMethod<[
|
|
3250
|
+
user: AddressLike,
|
|
3251
|
+
feeData: {
|
|
3252
|
+
tier: BigNumberish;
|
|
3253
|
+
referrer: AddressLike;
|
|
3254
|
+
totalReferralRebatePct: BigNumberish;
|
|
3255
|
+
referrerRebatePct: BigNumberish;
|
|
3256
|
+
}
|
|
3257
|
+
], [
|
|
3258
|
+
void
|
|
3259
|
+
], "nonpayable">;
|
|
3260
|
+
upgradeTo: TypedContractMethod<[
|
|
3261
|
+
newImplementation: AddressLike,
|
|
3262
|
+
data: BytesLike
|
|
3263
|
+
], [
|
|
3264
|
+
void
|
|
3265
|
+
], "payable">;
|
|
3266
|
+
upgradeToAndCall: TypedContractMethod<[
|
|
3267
|
+
newImplementation: AddressLike,
|
|
3268
|
+
data: BytesLike
|
|
3269
|
+
], [
|
|
3270
|
+
void
|
|
3271
|
+
], "payable">;
|
|
3196
3272
|
userFeeData: TypedContractMethod<[
|
|
3273
|
+
userFeeDataEpoch: BigNumberish,
|
|
3197
3274
|
user: AddressLike
|
|
3198
3275
|
], [
|
|
3199
3276
|
[
|
|
@@ -3217,6 +3294,7 @@ interface Broker extends BaseContract {
|
|
|
3217
3294
|
], "view">;
|
|
3218
3295
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3219
3296
|
getFunction(nameOrSignature: "FEE_TYPEHASH"): TypedContractMethod<[], [string], "view">;
|
|
3297
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
3220
3298
|
getFunction(nameOrSignature: "__ERC2771ContextUpgradeable_init"): TypedContractMethod<[
|
|
3221
3299
|
trustedForwarder_: AddressLike
|
|
3222
3300
|
], [
|
|
@@ -3236,16 +3314,6 @@ interface Broker extends BaseContract {
|
|
|
3236
3314
|
bigint[]
|
|
3237
3315
|
], "view">;
|
|
3238
3316
|
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
3317
|
getFunction(nameOrSignature: "batchSetSpecialFeeTiers"): TypedContractMethod<[
|
|
3250
3318
|
params: {
|
|
3251
3319
|
assetClass: BigNumberish;
|
|
@@ -3274,6 +3342,8 @@ interface Broker extends BaseContract {
|
|
|
3274
3342
|
getFunction(nameOrSignature: "cancelOrders"): TypedContractMethod<[orderIds: BigNumberish[]], [void], "nonpayable">;
|
|
3275
3343
|
getFunction(nameOrSignature: "claimRebate"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
3276
3344
|
getFunction(nameOrSignature: "claimRebates"): TypedContractMethod<[tokens: AddressLike[]], [void], "nonpayable">;
|
|
3345
|
+
getFunction(nameOrSignature: "currentFeeDataEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
3346
|
+
getFunction(nameOrSignature: "domainSeparatorV4"): TypedContractMethod<[], [string], "view">;
|
|
3277
3347
|
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
3278
3348
|
], [
|
|
3279
3349
|
[
|
|
@@ -3312,6 +3382,7 @@ interface Broker extends BaseContract {
|
|
|
3312
3382
|
makerFeeRate: bigint;
|
|
3313
3383
|
}
|
|
3314
3384
|
], "view">;
|
|
3385
|
+
getFunction(nameOrSignature: "getImplementation"): TypedContractMethod<[], [string], "view">;
|
|
3315
3386
|
getFunction(nameOrSignature: "getSpecialFeeTier"): TypedContractMethod<[
|
|
3316
3387
|
assetClass: BigNumberish,
|
|
3317
3388
|
riskTier: BigNumberish,
|
|
@@ -3322,6 +3393,19 @@ interface Broker extends BaseContract {
|
|
|
3322
3393
|
takerFeeRate: bigint;
|
|
3323
3394
|
}
|
|
3324
3395
|
], "view">;
|
|
3396
|
+
getFunction(nameOrSignature: "getUserFeeDataDigest"): TypedContractMethod<[
|
|
3397
|
+
user: AddressLike,
|
|
3398
|
+
nonce: BigNumberish,
|
|
3399
|
+
deadline: BigNumberish,
|
|
3400
|
+
feeData: {
|
|
3401
|
+
tier: BigNumberish;
|
|
3402
|
+
referrer: AddressLike;
|
|
3403
|
+
totalReferralRebatePct: BigNumberish;
|
|
3404
|
+
referrerRebatePct: BigNumberish;
|
|
3405
|
+
}
|
|
3406
|
+
], [
|
|
3407
|
+
string
|
|
3408
|
+
], "view">;
|
|
3325
3409
|
getFunction(nameOrSignature: "getUserFeeRate"): TypedContractMethod<[
|
|
3326
3410
|
user: AddressLike,
|
|
3327
3411
|
assetClass: BigNumberish,
|
|
@@ -3485,7 +3569,9 @@ interface Broker extends BaseContract {
|
|
|
3485
3569
|
], [
|
|
3486
3570
|
void
|
|
3487
3571
|
], "payable">;
|
|
3572
|
+
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
3488
3573
|
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3574
|
+
getFunction(nameOrSignature: "resetAllUserFeeData"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3489
3575
|
getFunction(nameOrSignature: "setSigner"): TypedContractMethod<[
|
|
3490
3576
|
signer: AddressLike,
|
|
3491
3577
|
isSigner: boolean
|
|
@@ -3552,17 +3638,6 @@ interface Broker extends BaseContract {
|
|
|
3552
3638
|
], [
|
|
3553
3639
|
void
|
|
3554
3640
|
], "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
3641
|
getFunction(nameOrSignature: "updateOrder"): TypedContractMethod<[
|
|
3567
3642
|
depositParams: {
|
|
3568
3643
|
token: AddressLike;
|
|
@@ -3599,7 +3674,31 @@ interface Broker extends BaseContract {
|
|
|
3599
3674
|
], [
|
|
3600
3675
|
void
|
|
3601
3676
|
], "payable">;
|
|
3677
|
+
getFunction(nameOrSignature: "updateUserFeeData"): TypedContractMethod<[
|
|
3678
|
+
user: AddressLike,
|
|
3679
|
+
feeData: {
|
|
3680
|
+
tier: BigNumberish;
|
|
3681
|
+
referrer: AddressLike;
|
|
3682
|
+
totalReferralRebatePct: BigNumberish;
|
|
3683
|
+
referrerRebatePct: BigNumberish;
|
|
3684
|
+
}
|
|
3685
|
+
], [
|
|
3686
|
+
void
|
|
3687
|
+
], "nonpayable">;
|
|
3688
|
+
getFunction(nameOrSignature: "upgradeTo"): TypedContractMethod<[
|
|
3689
|
+
newImplementation: AddressLike,
|
|
3690
|
+
data: BytesLike
|
|
3691
|
+
], [
|
|
3692
|
+
void
|
|
3693
|
+
], "payable">;
|
|
3694
|
+
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
3695
|
+
newImplementation: AddressLike,
|
|
3696
|
+
data: BytesLike
|
|
3697
|
+
], [
|
|
3698
|
+
void
|
|
3699
|
+
], "payable">;
|
|
3602
3700
|
getFunction(nameOrSignature: "userFeeData"): TypedContractMethod<[
|
|
3701
|
+
userFeeDataEpoch: BigNumberish,
|
|
3603
3702
|
user: AddressLike
|
|
3604
3703
|
], [
|
|
3605
3704
|
[
|
|
@@ -3628,6 +3727,8 @@ interface Broker extends BaseContract {
|
|
|
3628
3727
|
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
3629
3728
|
getEvent(key: "RebateClaimed"): TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3630
3729
|
getEvent(key: "SignerUpdated"): TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3730
|
+
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3731
|
+
getEvent(key: "UserFeeDataReset"): TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3631
3732
|
getEvent(key: "UserFeeDataUpdated"): TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3632
3733
|
filters: {
|
|
3633
3734
|
"BrokerStatusUpdated(address,bool)": TypedContractEvent<BrokerStatusUpdatedEvent.InputTuple, BrokerStatusUpdatedEvent.OutputTuple, BrokerStatusUpdatedEvent.OutputObject>;
|
|
@@ -3644,7 +3745,11 @@ interface Broker extends BaseContract {
|
|
|
3644
3745
|
RebateClaimed: TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3645
3746
|
"SignerUpdated(address,bool)": TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3646
3747
|
SignerUpdated: TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3647
|
-
"
|
|
3748
|
+
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3749
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3750
|
+
"UserFeeDataReset(address,address,uint256)": TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3751
|
+
UserFeeDataReset: TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3752
|
+
"UserFeeDataUpdated(address,address,address,uint256,uint8,address,uint32,uint32)": TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3648
3753
|
UserFeeDataUpdated: TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3649
3754
|
};
|
|
3650
3755
|
}
|
|
@@ -3681,7 +3786,7 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3681
3786
|
* @returns the transaction receipt
|
|
3682
3787
|
*/
|
|
3683
3788
|
submitAppeal(poolId: string, lpToken: Address$2, lpAmount: string): Promise<{
|
|
3684
|
-
transaction:
|
|
3789
|
+
transaction: ethers.ContractTransactionReceipt;
|
|
3685
3790
|
caseId: bigint;
|
|
3686
3791
|
}>;
|
|
3687
3792
|
/**
|
|
@@ -3690,13 +3795,13 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3690
3795
|
* @param isFor - true if for the appeal, false if against the appeal
|
|
3691
3796
|
* @returns the transaction receipt
|
|
3692
3797
|
*/
|
|
3693
|
-
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<
|
|
3798
|
+
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3694
3799
|
/**
|
|
3695
3800
|
* claim appeal margin
|
|
3696
3801
|
* @param caseId - the case id
|
|
3697
3802
|
* @returns the transaction receipt
|
|
3698
3803
|
*/
|
|
3699
|
-
claimAppealMargin(caseId: number): Promise<
|
|
3804
|
+
claimAppealMargin(caseId: number): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3700
3805
|
/**
|
|
3701
3806
|
* claim reimbursement
|
|
3702
3807
|
* @param caseId - the case id
|
|
@@ -3705,12 +3810,22 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3705
3810
|
* @param merkleProof - the merkle proof
|
|
3706
3811
|
* @returns the transaction receipt
|
|
3707
3812
|
*/
|
|
3708
|
-
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<
|
|
3813
|
+
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3709
3814
|
/**
|
|
3710
3815
|
* get dispute configuration
|
|
3711
3816
|
*/
|
|
3712
|
-
getDisputeConfiguration(): Promise<
|
|
3713
|
-
|
|
3817
|
+
getDisputeConfiguration(): Promise<[string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
3818
|
+
appealToken: string;
|
|
3819
|
+
disputeBondUsd: bigint;
|
|
3820
|
+
appealBondUsd: bigint;
|
|
3821
|
+
disputeThresholdUsd: bigint;
|
|
3822
|
+
caseDuration: bigint;
|
|
3823
|
+
voteDuration: bigint;
|
|
3824
|
+
resolveDuration: bigint;
|
|
3825
|
+
voteCountRate: bigint;
|
|
3826
|
+
effectiveVoteRate: bigint;
|
|
3827
|
+
}>;
|
|
3828
|
+
appealReconsideration(caseId: number, appealToken: Address$2, appealAmount: string): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3714
3829
|
/**
|
|
3715
3830
|
* http api
|
|
3716
3831
|
*/
|
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>;
|
|
@@ -1648,6 +1652,7 @@ interface AppealReconsiderationDetail {
|
|
|
1648
1652
|
appealVotes: AppealVoteItem[];
|
|
1649
1653
|
appealTotalVoteCount: number;
|
|
1650
1654
|
appealVotedCount: number;
|
|
1655
|
+
appealCaseId?: number;
|
|
1651
1656
|
}
|
|
1652
1657
|
interface AppealReimbursementParams {
|
|
1653
1658
|
before?: number;
|
|
@@ -2348,22 +2353,15 @@ interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S exte
|
|
|
2348
2353
|
}
|
|
2349
2354
|
|
|
2350
2355
|
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;
|
|
2356
|
+
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;
|
|
2357
|
+
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "Upgraded" | "UserFeeDataReset" | "UserFeeDataUpdated"): EventFragment;
|
|
2353
2358
|
encodeFunctionData(functionFragment: "FEE_TYPEHASH", values?: undefined): string;
|
|
2359
|
+
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
2354
2360
|
encodeFunctionData(functionFragment: "__ERC2771ContextUpgradeable_init", values: [AddressLike]): string;
|
|
2355
2361
|
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
2356
2362
|
encodeFunctionData(functionFragment: "activeFeeTiers", values: [BigNumberish, BigNumberish]): string;
|
|
2357
2363
|
encodeFunctionData(functionFragment: "activeSpecialFeeTierList", values: [BigNumberish, BigNumberish]): string;
|
|
2358
2364
|
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
2365
|
encodeFunctionData(functionFragment: "batchSetSpecialFeeTiers", values: [
|
|
2368
2366
|
{
|
|
2369
2367
|
assetClass: BigNumberish;
|
|
@@ -2388,10 +2386,24 @@ interface BrokerInterface extends Interface {
|
|
|
2388
2386
|
encodeFunctionData(functionFragment: "cancelOrders", values: [BigNumberish[]]): string;
|
|
2389
2387
|
encodeFunctionData(functionFragment: "claimRebate", values: [AddressLike]): string;
|
|
2390
2388
|
encodeFunctionData(functionFragment: "claimRebates", values: [AddressLike[]]): string;
|
|
2389
|
+
encodeFunctionData(functionFragment: "currentFeeDataEpoch", values?: undefined): string;
|
|
2390
|
+
encodeFunctionData(functionFragment: "domainSeparatorV4", values?: undefined): string;
|
|
2391
2391
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
2392
2392
|
encodeFunctionData(functionFragment: "getAddOnFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2393
2393
|
encodeFunctionData(functionFragment: "getBaseFeeRate", values: [BigNumberish]): string;
|
|
2394
|
+
encodeFunctionData(functionFragment: "getImplementation", values?: undefined): string;
|
|
2394
2395
|
encodeFunctionData(functionFragment: "getSpecialFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2396
|
+
encodeFunctionData(functionFragment: "getUserFeeDataDigest", values: [
|
|
2397
|
+
AddressLike,
|
|
2398
|
+
BigNumberish,
|
|
2399
|
+
BigNumberish,
|
|
2400
|
+
{
|
|
2401
|
+
tier: BigNumberish;
|
|
2402
|
+
referrer: AddressLike;
|
|
2403
|
+
totalReferralRebatePct: BigNumberish;
|
|
2404
|
+
referrerRebatePct: BigNumberish;
|
|
2405
|
+
}
|
|
2406
|
+
]): string;
|
|
2395
2407
|
encodeFunctionData(functionFragment: "getUserFeeRate", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
2396
2408
|
encodeFunctionData(functionFragment: "initialize", values: [
|
|
2397
2409
|
AddressLike,
|
|
@@ -2514,7 +2526,9 @@ interface BrokerInterface extends Interface {
|
|
|
2514
2526
|
slPrice: BigNumberish;
|
|
2515
2527
|
}[]
|
|
2516
2528
|
]): string;
|
|
2529
|
+
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
2517
2530
|
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
2531
|
+
encodeFunctionData(functionFragment: "resetAllUserFeeData", values?: undefined): string;
|
|
2518
2532
|
encodeFunctionData(functionFragment: "setSigner", values: [AddressLike, boolean]): string;
|
|
2519
2533
|
encodeFunctionData(functionFragment: "setSpecialFeeTier", values: [
|
|
2520
2534
|
{
|
|
@@ -2563,15 +2577,6 @@ interface BrokerInterface extends Interface {
|
|
|
2563
2577
|
makerFeeRate: BigNumberish;
|
|
2564
2578
|
}
|
|
2565
2579
|
]): string;
|
|
2566
|
-
encodeFunctionData(functionFragment: "updateFeeTiers", values: [
|
|
2567
|
-
BigNumberish,
|
|
2568
|
-
BigNumberish,
|
|
2569
|
-
BigNumberish[],
|
|
2570
|
-
{
|
|
2571
|
-
takerFeeRate: BigNumberish;
|
|
2572
|
-
makerFeeRate: BigNumberish;
|
|
2573
|
-
}[]
|
|
2574
|
-
]): string;
|
|
2575
2580
|
encodeFunctionData(functionFragment: "updateOrder", values: [
|
|
2576
2581
|
{
|
|
2577
2582
|
token: AddressLike;
|
|
@@ -2604,26 +2609,41 @@ interface BrokerInterface extends Interface {
|
|
|
2604
2609
|
BytesLike,
|
|
2605
2610
|
BigNumberish
|
|
2606
2611
|
]): string;
|
|
2607
|
-
encodeFunctionData(functionFragment: "
|
|
2612
|
+
encodeFunctionData(functionFragment: "updateUserFeeData", values: [
|
|
2613
|
+
AddressLike,
|
|
2614
|
+
{
|
|
2615
|
+
tier: BigNumberish;
|
|
2616
|
+
referrer: AddressLike;
|
|
2617
|
+
totalReferralRebatePct: BigNumberish;
|
|
2618
|
+
referrerRebatePct: BigNumberish;
|
|
2619
|
+
}
|
|
2620
|
+
]): string;
|
|
2621
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [AddressLike, BytesLike]): string;
|
|
2622
|
+
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
2623
|
+
encodeFunctionData(functionFragment: "userFeeData", values: [BigNumberish, AddressLike]): string;
|
|
2608
2624
|
encodeFunctionData(functionFragment: "userNonces", values: [AddressLike]): string;
|
|
2609
2625
|
encodeFunctionData(functionFragment: "userRebates", values: [AddressLike, AddressLike]): string;
|
|
2610
2626
|
decodeFunctionResult(functionFragment: "FEE_TYPEHASH", data: BytesLike): Result;
|
|
2627
|
+
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
|
|
2611
2628
|
decodeFunctionResult(functionFragment: "__ERC2771ContextUpgradeable_init", data: BytesLike): Result;
|
|
2612
2629
|
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
2613
2630
|
decodeFunctionResult(functionFragment: "activeFeeTiers", data: BytesLike): Result;
|
|
2614
2631
|
decodeFunctionResult(functionFragment: "activeSpecialFeeTierList", data: BytesLike): Result;
|
|
2615
2632
|
decodeFunctionResult(functionFragment: "addressManager", data: BytesLike): Result;
|
|
2616
|
-
decodeFunctionResult(functionFragment: "adjustCollateral", data: BytesLike): Result;
|
|
2617
2633
|
decodeFunctionResult(functionFragment: "batchSetSpecialFeeTiers", data: BytesLike): Result;
|
|
2618
2634
|
decodeFunctionResult(functionFragment: "batchUpdateFeeTiers", data: BytesLike): Result;
|
|
2619
2635
|
decodeFunctionResult(functionFragment: "cancelOrder", data: BytesLike): Result;
|
|
2620
2636
|
decodeFunctionResult(functionFragment: "cancelOrders", data: BytesLike): Result;
|
|
2621
2637
|
decodeFunctionResult(functionFragment: "claimRebate", data: BytesLike): Result;
|
|
2622
2638
|
decodeFunctionResult(functionFragment: "claimRebates", data: BytesLike): Result;
|
|
2639
|
+
decodeFunctionResult(functionFragment: "currentFeeDataEpoch", data: BytesLike): Result;
|
|
2640
|
+
decodeFunctionResult(functionFragment: "domainSeparatorV4", data: BytesLike): Result;
|
|
2623
2641
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
2624
2642
|
decodeFunctionResult(functionFragment: "getAddOnFeeTier", data: BytesLike): Result;
|
|
2625
2643
|
decodeFunctionResult(functionFragment: "getBaseFeeRate", data: BytesLike): Result;
|
|
2644
|
+
decodeFunctionResult(functionFragment: "getImplementation", data: BytesLike): Result;
|
|
2626
2645
|
decodeFunctionResult(functionFragment: "getSpecialFeeTier", data: BytesLike): Result;
|
|
2646
|
+
decodeFunctionResult(functionFragment: "getUserFeeDataDigest", data: BytesLike): Result;
|
|
2627
2647
|
decodeFunctionResult(functionFragment: "getUserFeeRate", data: BytesLike): Result;
|
|
2628
2648
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
2629
2649
|
decodeFunctionResult(functionFragment: "isActive", data: BytesLike): Result;
|
|
@@ -2636,7 +2656,9 @@ interface BrokerInterface extends Interface {
|
|
|
2636
2656
|
decodeFunctionResult(functionFragment: "placeOrderWithSalt", data: BytesLike): Result;
|
|
2637
2657
|
decodeFunctionResult(functionFragment: "placeOrdersWithPosition", data: BytesLike): Result;
|
|
2638
2658
|
decodeFunctionResult(functionFragment: "placeOrdersWithSalt", data: BytesLike): Result;
|
|
2659
|
+
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
|
|
2639
2660
|
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
2661
|
+
decodeFunctionResult(functionFragment: "resetAllUserFeeData", data: BytesLike): Result;
|
|
2640
2662
|
decodeFunctionResult(functionFragment: "setSigner", data: BytesLike): Result;
|
|
2641
2663
|
decodeFunctionResult(functionFragment: "setSpecialFeeTier", data: BytesLike): Result;
|
|
2642
2664
|
decodeFunctionResult(functionFragment: "setUserFeeData", data: BytesLike): Result;
|
|
@@ -2647,9 +2669,11 @@ interface BrokerInterface extends Interface {
|
|
|
2647
2669
|
decodeFunctionResult(functionFragment: "updateBaseFeeRates", data: BytesLike): Result;
|
|
2648
2670
|
decodeFunctionResult(functionFragment: "updateBrokerStatus", data: BytesLike): Result;
|
|
2649
2671
|
decodeFunctionResult(functionFragment: "updateFeeTier", data: BytesLike): Result;
|
|
2650
|
-
decodeFunctionResult(functionFragment: "updateFeeTiers", data: BytesLike): Result;
|
|
2651
2672
|
decodeFunctionResult(functionFragment: "updateOrder", data: BytesLike): Result;
|
|
2652
2673
|
decodeFunctionResult(functionFragment: "updatePriceAndAdjustCollateral", data: BytesLike): Result;
|
|
2674
|
+
decodeFunctionResult(functionFragment: "updateUserFeeData", data: BytesLike): Result;
|
|
2675
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
2676
|
+
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
|
|
2653
2677
|
decodeFunctionResult(functionFragment: "userFeeData", data: BytesLike): Result;
|
|
2654
2678
|
decodeFunctionResult(functionFragment: "userNonces", data: BytesLike): Result;
|
|
2655
2679
|
decodeFunctionResult(functionFragment: "userRebates", data: BytesLike): Result;
|
|
@@ -2740,11 +2764,40 @@ declare namespace SignerUpdatedEvent {
|
|
|
2740
2764
|
type Log = TypedEventLog<Event>;
|
|
2741
2765
|
type LogDescription = TypedLogDescription<Event>;
|
|
2742
2766
|
}
|
|
2767
|
+
declare namespace UpgradedEvent {
|
|
2768
|
+
type InputTuple = [implementation: AddressLike];
|
|
2769
|
+
type OutputTuple = [implementation: string];
|
|
2770
|
+
interface OutputObject {
|
|
2771
|
+
implementation: string;
|
|
2772
|
+
}
|
|
2773
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2774
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2775
|
+
type Log = TypedEventLog<Event>;
|
|
2776
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2777
|
+
}
|
|
2778
|
+
declare namespace UserFeeDataResetEvent {
|
|
2779
|
+
type InputTuple = [
|
|
2780
|
+
broker: AddressLike,
|
|
2781
|
+
signer: AddressLike,
|
|
2782
|
+
epoch: BigNumberish
|
|
2783
|
+
];
|
|
2784
|
+
type OutputTuple = [broker: string, signer: string, epoch: bigint];
|
|
2785
|
+
interface OutputObject {
|
|
2786
|
+
broker: string;
|
|
2787
|
+
signer: string;
|
|
2788
|
+
epoch: bigint;
|
|
2789
|
+
}
|
|
2790
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2791
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2792
|
+
type Log = TypedEventLog<Event>;
|
|
2793
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2794
|
+
}
|
|
2743
2795
|
declare namespace UserFeeDataUpdatedEvent {
|
|
2744
2796
|
type InputTuple = [
|
|
2745
2797
|
broker: AddressLike,
|
|
2746
2798
|
signer: AddressLike,
|
|
2747
2799
|
user: AddressLike,
|
|
2800
|
+
epoch: BigNumberish,
|
|
2748
2801
|
tier: BigNumberish,
|
|
2749
2802
|
referrer: AddressLike,
|
|
2750
2803
|
totalReferralRebatePct: BigNumberish,
|
|
@@ -2754,6 +2807,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2754
2807
|
broker: string,
|
|
2755
2808
|
signer: string,
|
|
2756
2809
|
user: string,
|
|
2810
|
+
epoch: bigint,
|
|
2757
2811
|
tier: bigint,
|
|
2758
2812
|
referrer: string,
|
|
2759
2813
|
totalReferralRebatePct: bigint,
|
|
@@ -2763,6 +2817,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2763
2817
|
broker: string;
|
|
2764
2818
|
signer: string;
|
|
2765
2819
|
user: string;
|
|
2820
|
+
epoch: bigint;
|
|
2766
2821
|
tier: bigint;
|
|
2767
2822
|
referrer: string;
|
|
2768
2823
|
totalReferralRebatePct: bigint;
|
|
@@ -2787,6 +2842,7 @@ interface Broker extends BaseContract {
|
|
|
2787
2842
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2788
2843
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2789
2844
|
FEE_TYPEHASH: TypedContractMethod<[], [string], "view">;
|
|
2845
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
2790
2846
|
__ERC2771ContextUpgradeable_init: TypedContractMethod<[
|
|
2791
2847
|
trustedForwarder_: AddressLike
|
|
2792
2848
|
], [
|
|
@@ -2806,16 +2862,6 @@ interface Broker extends BaseContract {
|
|
|
2806
2862
|
bigint[]
|
|
2807
2863
|
], "view">;
|
|
2808
2864
|
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
2865
|
batchSetSpecialFeeTiers: TypedContractMethod<[
|
|
2820
2866
|
params: {
|
|
2821
2867
|
assetClass: BigNumberish;
|
|
@@ -2856,6 +2902,8 @@ interface Broker extends BaseContract {
|
|
|
2856
2902
|
], [
|
|
2857
2903
|
void
|
|
2858
2904
|
], "nonpayable">;
|
|
2905
|
+
currentFeeDataEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
2906
|
+
domainSeparatorV4: TypedContractMethod<[], [string], "view">;
|
|
2859
2907
|
eip712Domain: TypedContractMethod<[
|
|
2860
2908
|
], [
|
|
2861
2909
|
[
|
|
@@ -2894,6 +2942,7 @@ interface Broker extends BaseContract {
|
|
|
2894
2942
|
makerFeeRate: bigint;
|
|
2895
2943
|
}
|
|
2896
2944
|
], "view">;
|
|
2945
|
+
getImplementation: TypedContractMethod<[], [string], "view">;
|
|
2897
2946
|
getSpecialFeeTier: TypedContractMethod<[
|
|
2898
2947
|
assetClass: BigNumberish,
|
|
2899
2948
|
riskTier: BigNumberish,
|
|
@@ -2904,6 +2953,19 @@ interface Broker extends BaseContract {
|
|
|
2904
2953
|
takerFeeRate: bigint;
|
|
2905
2954
|
}
|
|
2906
2955
|
], "view">;
|
|
2956
|
+
getUserFeeDataDigest: TypedContractMethod<[
|
|
2957
|
+
user: AddressLike,
|
|
2958
|
+
nonce: BigNumberish,
|
|
2959
|
+
deadline: BigNumberish,
|
|
2960
|
+
feeData: {
|
|
2961
|
+
tier: BigNumberish;
|
|
2962
|
+
referrer: AddressLike;
|
|
2963
|
+
totalReferralRebatePct: BigNumberish;
|
|
2964
|
+
referrerRebatePct: BigNumberish;
|
|
2965
|
+
}
|
|
2966
|
+
], [
|
|
2967
|
+
string
|
|
2968
|
+
], "view">;
|
|
2907
2969
|
getUserFeeRate: TypedContractMethod<[
|
|
2908
2970
|
user: AddressLike,
|
|
2909
2971
|
assetClass: BigNumberish,
|
|
@@ -3071,7 +3133,9 @@ interface Broker extends BaseContract {
|
|
|
3071
3133
|
], [
|
|
3072
3134
|
void
|
|
3073
3135
|
], "payable">;
|
|
3136
|
+
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
3074
3137
|
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
3138
|
+
resetAllUserFeeData: TypedContractMethod<[], [void], "nonpayable">;
|
|
3075
3139
|
setSigner: TypedContractMethod<[
|
|
3076
3140
|
signer: AddressLike,
|
|
3077
3141
|
isSigner: boolean
|
|
@@ -3146,17 +3210,6 @@ interface Broker extends BaseContract {
|
|
|
3146
3210
|
], [
|
|
3147
3211
|
void
|
|
3148
3212
|
], "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
3213
|
updateOrder: TypedContractMethod<[
|
|
3161
3214
|
depositParams: {
|
|
3162
3215
|
token: AddressLike;
|
|
@@ -3193,7 +3246,31 @@ interface Broker extends BaseContract {
|
|
|
3193
3246
|
], [
|
|
3194
3247
|
void
|
|
3195
3248
|
], "payable">;
|
|
3249
|
+
updateUserFeeData: TypedContractMethod<[
|
|
3250
|
+
user: AddressLike,
|
|
3251
|
+
feeData: {
|
|
3252
|
+
tier: BigNumberish;
|
|
3253
|
+
referrer: AddressLike;
|
|
3254
|
+
totalReferralRebatePct: BigNumberish;
|
|
3255
|
+
referrerRebatePct: BigNumberish;
|
|
3256
|
+
}
|
|
3257
|
+
], [
|
|
3258
|
+
void
|
|
3259
|
+
], "nonpayable">;
|
|
3260
|
+
upgradeTo: TypedContractMethod<[
|
|
3261
|
+
newImplementation: AddressLike,
|
|
3262
|
+
data: BytesLike
|
|
3263
|
+
], [
|
|
3264
|
+
void
|
|
3265
|
+
], "payable">;
|
|
3266
|
+
upgradeToAndCall: TypedContractMethod<[
|
|
3267
|
+
newImplementation: AddressLike,
|
|
3268
|
+
data: BytesLike
|
|
3269
|
+
], [
|
|
3270
|
+
void
|
|
3271
|
+
], "payable">;
|
|
3196
3272
|
userFeeData: TypedContractMethod<[
|
|
3273
|
+
userFeeDataEpoch: BigNumberish,
|
|
3197
3274
|
user: AddressLike
|
|
3198
3275
|
], [
|
|
3199
3276
|
[
|
|
@@ -3217,6 +3294,7 @@ interface Broker extends BaseContract {
|
|
|
3217
3294
|
], "view">;
|
|
3218
3295
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3219
3296
|
getFunction(nameOrSignature: "FEE_TYPEHASH"): TypedContractMethod<[], [string], "view">;
|
|
3297
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
3220
3298
|
getFunction(nameOrSignature: "__ERC2771ContextUpgradeable_init"): TypedContractMethod<[
|
|
3221
3299
|
trustedForwarder_: AddressLike
|
|
3222
3300
|
], [
|
|
@@ -3236,16 +3314,6 @@ interface Broker extends BaseContract {
|
|
|
3236
3314
|
bigint[]
|
|
3237
3315
|
], "view">;
|
|
3238
3316
|
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
3317
|
getFunction(nameOrSignature: "batchSetSpecialFeeTiers"): TypedContractMethod<[
|
|
3250
3318
|
params: {
|
|
3251
3319
|
assetClass: BigNumberish;
|
|
@@ -3274,6 +3342,8 @@ interface Broker extends BaseContract {
|
|
|
3274
3342
|
getFunction(nameOrSignature: "cancelOrders"): TypedContractMethod<[orderIds: BigNumberish[]], [void], "nonpayable">;
|
|
3275
3343
|
getFunction(nameOrSignature: "claimRebate"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
3276
3344
|
getFunction(nameOrSignature: "claimRebates"): TypedContractMethod<[tokens: AddressLike[]], [void], "nonpayable">;
|
|
3345
|
+
getFunction(nameOrSignature: "currentFeeDataEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
3346
|
+
getFunction(nameOrSignature: "domainSeparatorV4"): TypedContractMethod<[], [string], "view">;
|
|
3277
3347
|
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
3278
3348
|
], [
|
|
3279
3349
|
[
|
|
@@ -3312,6 +3382,7 @@ interface Broker extends BaseContract {
|
|
|
3312
3382
|
makerFeeRate: bigint;
|
|
3313
3383
|
}
|
|
3314
3384
|
], "view">;
|
|
3385
|
+
getFunction(nameOrSignature: "getImplementation"): TypedContractMethod<[], [string], "view">;
|
|
3315
3386
|
getFunction(nameOrSignature: "getSpecialFeeTier"): TypedContractMethod<[
|
|
3316
3387
|
assetClass: BigNumberish,
|
|
3317
3388
|
riskTier: BigNumberish,
|
|
@@ -3322,6 +3393,19 @@ interface Broker extends BaseContract {
|
|
|
3322
3393
|
takerFeeRate: bigint;
|
|
3323
3394
|
}
|
|
3324
3395
|
], "view">;
|
|
3396
|
+
getFunction(nameOrSignature: "getUserFeeDataDigest"): TypedContractMethod<[
|
|
3397
|
+
user: AddressLike,
|
|
3398
|
+
nonce: BigNumberish,
|
|
3399
|
+
deadline: BigNumberish,
|
|
3400
|
+
feeData: {
|
|
3401
|
+
tier: BigNumberish;
|
|
3402
|
+
referrer: AddressLike;
|
|
3403
|
+
totalReferralRebatePct: BigNumberish;
|
|
3404
|
+
referrerRebatePct: BigNumberish;
|
|
3405
|
+
}
|
|
3406
|
+
], [
|
|
3407
|
+
string
|
|
3408
|
+
], "view">;
|
|
3325
3409
|
getFunction(nameOrSignature: "getUserFeeRate"): TypedContractMethod<[
|
|
3326
3410
|
user: AddressLike,
|
|
3327
3411
|
assetClass: BigNumberish,
|
|
@@ -3485,7 +3569,9 @@ interface Broker extends BaseContract {
|
|
|
3485
3569
|
], [
|
|
3486
3570
|
void
|
|
3487
3571
|
], "payable">;
|
|
3572
|
+
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
3488
3573
|
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3574
|
+
getFunction(nameOrSignature: "resetAllUserFeeData"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3489
3575
|
getFunction(nameOrSignature: "setSigner"): TypedContractMethod<[
|
|
3490
3576
|
signer: AddressLike,
|
|
3491
3577
|
isSigner: boolean
|
|
@@ -3552,17 +3638,6 @@ interface Broker extends BaseContract {
|
|
|
3552
3638
|
], [
|
|
3553
3639
|
void
|
|
3554
3640
|
], "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
3641
|
getFunction(nameOrSignature: "updateOrder"): TypedContractMethod<[
|
|
3567
3642
|
depositParams: {
|
|
3568
3643
|
token: AddressLike;
|
|
@@ -3599,7 +3674,31 @@ interface Broker extends BaseContract {
|
|
|
3599
3674
|
], [
|
|
3600
3675
|
void
|
|
3601
3676
|
], "payable">;
|
|
3677
|
+
getFunction(nameOrSignature: "updateUserFeeData"): TypedContractMethod<[
|
|
3678
|
+
user: AddressLike,
|
|
3679
|
+
feeData: {
|
|
3680
|
+
tier: BigNumberish;
|
|
3681
|
+
referrer: AddressLike;
|
|
3682
|
+
totalReferralRebatePct: BigNumberish;
|
|
3683
|
+
referrerRebatePct: BigNumberish;
|
|
3684
|
+
}
|
|
3685
|
+
], [
|
|
3686
|
+
void
|
|
3687
|
+
], "nonpayable">;
|
|
3688
|
+
getFunction(nameOrSignature: "upgradeTo"): TypedContractMethod<[
|
|
3689
|
+
newImplementation: AddressLike,
|
|
3690
|
+
data: BytesLike
|
|
3691
|
+
], [
|
|
3692
|
+
void
|
|
3693
|
+
], "payable">;
|
|
3694
|
+
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
3695
|
+
newImplementation: AddressLike,
|
|
3696
|
+
data: BytesLike
|
|
3697
|
+
], [
|
|
3698
|
+
void
|
|
3699
|
+
], "payable">;
|
|
3602
3700
|
getFunction(nameOrSignature: "userFeeData"): TypedContractMethod<[
|
|
3701
|
+
userFeeDataEpoch: BigNumberish,
|
|
3603
3702
|
user: AddressLike
|
|
3604
3703
|
], [
|
|
3605
3704
|
[
|
|
@@ -3628,6 +3727,8 @@ interface Broker extends BaseContract {
|
|
|
3628
3727
|
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
3629
3728
|
getEvent(key: "RebateClaimed"): TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3630
3729
|
getEvent(key: "SignerUpdated"): TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3730
|
+
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3731
|
+
getEvent(key: "UserFeeDataReset"): TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3631
3732
|
getEvent(key: "UserFeeDataUpdated"): TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3632
3733
|
filters: {
|
|
3633
3734
|
"BrokerStatusUpdated(address,bool)": TypedContractEvent<BrokerStatusUpdatedEvent.InputTuple, BrokerStatusUpdatedEvent.OutputTuple, BrokerStatusUpdatedEvent.OutputObject>;
|
|
@@ -3644,7 +3745,11 @@ interface Broker extends BaseContract {
|
|
|
3644
3745
|
RebateClaimed: TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3645
3746
|
"SignerUpdated(address,bool)": TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3646
3747
|
SignerUpdated: TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3647
|
-
"
|
|
3748
|
+
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3749
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3750
|
+
"UserFeeDataReset(address,address,uint256)": TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3751
|
+
UserFeeDataReset: TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3752
|
+
"UserFeeDataUpdated(address,address,address,uint256,uint8,address,uint32,uint32)": TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3648
3753
|
UserFeeDataUpdated: TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3649
3754
|
};
|
|
3650
3755
|
}
|
|
@@ -3681,7 +3786,7 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3681
3786
|
* @returns the transaction receipt
|
|
3682
3787
|
*/
|
|
3683
3788
|
submitAppeal(poolId: string, lpToken: Address$2, lpAmount: string): Promise<{
|
|
3684
|
-
transaction:
|
|
3789
|
+
transaction: ethers.ContractTransactionReceipt;
|
|
3685
3790
|
caseId: bigint;
|
|
3686
3791
|
}>;
|
|
3687
3792
|
/**
|
|
@@ -3690,13 +3795,13 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3690
3795
|
* @param isFor - true if for the appeal, false if against the appeal
|
|
3691
3796
|
* @returns the transaction receipt
|
|
3692
3797
|
*/
|
|
3693
|
-
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<
|
|
3798
|
+
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3694
3799
|
/**
|
|
3695
3800
|
* claim appeal margin
|
|
3696
3801
|
* @param caseId - the case id
|
|
3697
3802
|
* @returns the transaction receipt
|
|
3698
3803
|
*/
|
|
3699
|
-
claimAppealMargin(caseId: number): Promise<
|
|
3804
|
+
claimAppealMargin(caseId: number): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3700
3805
|
/**
|
|
3701
3806
|
* claim reimbursement
|
|
3702
3807
|
* @param caseId - the case id
|
|
@@ -3705,12 +3810,22 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3705
3810
|
* @param merkleProof - the merkle proof
|
|
3706
3811
|
* @returns the transaction receipt
|
|
3707
3812
|
*/
|
|
3708
|
-
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<
|
|
3813
|
+
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3709
3814
|
/**
|
|
3710
3815
|
* get dispute configuration
|
|
3711
3816
|
*/
|
|
3712
|
-
getDisputeConfiguration(): Promise<
|
|
3713
|
-
|
|
3817
|
+
getDisputeConfiguration(): Promise<[string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
3818
|
+
appealToken: string;
|
|
3819
|
+
disputeBondUsd: bigint;
|
|
3820
|
+
appealBondUsd: bigint;
|
|
3821
|
+
disputeThresholdUsd: bigint;
|
|
3822
|
+
caseDuration: bigint;
|
|
3823
|
+
voteDuration: bigint;
|
|
3824
|
+
resolveDuration: bigint;
|
|
3825
|
+
voteCountRate: bigint;
|
|
3826
|
+
effectiveVoteRate: bigint;
|
|
3827
|
+
}>;
|
|
3828
|
+
appealReconsideration(caseId: number, appealToken: Address$2, appealAmount: string): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3714
3829
|
/**
|
|
3715
3830
|
* http api
|
|
3716
3831
|
*/
|
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.254-0",
|
|
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.254-0",
|
|
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.254-0",
|
|
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
|
+
}
|