@gmx-io/sdk 2.6.0-next.0 → 2.7.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.
@@ -0,0 +1,41 @@
1
+ declare const _default: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "token";
5
+ readonly type: "address";
6
+ }, {
7
+ readonly internalType: "bytes";
8
+ readonly name: "";
9
+ readonly type: "bytes";
10
+ }];
11
+ readonly name: "getOraclePrice";
12
+ readonly outputs: readonly [{
13
+ readonly components: readonly [{
14
+ readonly internalType: "address";
15
+ readonly name: "token";
16
+ readonly type: "address";
17
+ }, {
18
+ readonly internalType: "uint256";
19
+ readonly name: "min";
20
+ readonly type: "uint256";
21
+ }, {
22
+ readonly internalType: "uint256";
23
+ readonly name: "max";
24
+ readonly type: "uint256";
25
+ }, {
26
+ readonly internalType: "uint256";
27
+ readonly name: "timestamp";
28
+ readonly type: "uint256";
29
+ }, {
30
+ readonly internalType: "address";
31
+ readonly name: "provider";
32
+ readonly type: "address";
33
+ }];
34
+ readonly internalType: "struct OracleUtils.ValidatedPrice";
35
+ readonly name: "";
36
+ readonly type: "tuple";
37
+ }];
38
+ readonly stateMutability: "view";
39
+ readonly type: "function";
40
+ }];
41
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: readonly [{
2
+ readonly inputs: readonly [];
3
+ readonly name: "paused";
4
+ readonly outputs: readonly [{
5
+ readonly internalType: "bool";
6
+ readonly name: "";
7
+ readonly type: "bool";
8
+ }];
9
+ readonly stateMutability: "view";
10
+ readonly type: "function";
11
+ }];
12
+ export default _default;
@@ -238,6 +238,46 @@ export declare const abis: {
238
238
  readonly stateMutability: "view";
239
239
  readonly type: "function";
240
240
  }];
241
+ ChainlinkPriceFeedProvider: readonly [{
242
+ readonly inputs: readonly [{
243
+ readonly internalType: "address";
244
+ readonly name: "token";
245
+ readonly type: "address";
246
+ }, {
247
+ readonly internalType: "bytes";
248
+ readonly name: "";
249
+ readonly type: "bytes";
250
+ }];
251
+ readonly name: "getOraclePrice";
252
+ readonly outputs: readonly [{
253
+ readonly components: readonly [{
254
+ readonly internalType: "address";
255
+ readonly name: "token";
256
+ readonly type: "address";
257
+ }, {
258
+ readonly internalType: "uint256";
259
+ readonly name: "min";
260
+ readonly type: "uint256";
261
+ }, {
262
+ readonly internalType: "uint256";
263
+ readonly name: "max";
264
+ readonly type: "uint256";
265
+ }, {
266
+ readonly internalType: "uint256";
267
+ readonly name: "timestamp";
268
+ readonly type: "uint256";
269
+ }, {
270
+ readonly internalType: "address";
271
+ readonly name: "provider";
272
+ readonly type: "address";
273
+ }];
274
+ readonly internalType: "struct OracleUtils.ValidatedPrice";
275
+ readonly name: "";
276
+ readonly type: "tuple";
277
+ }];
278
+ readonly stateMutability: "view";
279
+ readonly type: "function";
280
+ }];
241
281
  ClaimHandler: readonly [{
242
282
  readonly inputs: readonly [{
243
283
  readonly internalType: "contract RoleStore";
@@ -22176,6 +22216,17 @@ export declare const abis: {
22176
22216
  readonly stateMutability: "payable";
22177
22217
  readonly type: "receive";
22178
22218
  }];
22219
+ Pausable: readonly [{
22220
+ readonly inputs: readonly [];
22221
+ readonly name: "paused";
22222
+ readonly outputs: readonly [{
22223
+ readonly internalType: "bool";
22224
+ readonly name: "";
22225
+ readonly type: "bool";
22226
+ }];
22227
+ readonly stateMutability: "view";
22228
+ readonly type: "function";
22229
+ }];
22179
22230
  ReferralStorage: readonly [{
22180
22231
  readonly inputs: readonly [{
22181
22232
  readonly internalType: "address";
@@ -47,6 +47,7 @@ export type SameChainWithdrawRequest = {
47
47
  * Encodes `MultichainTransferRouter.transferOut(BridgeOutParams)` as a classic wallet tx.
48
48
  */
49
49
  export declare function buildSameChainWithdrawTxn(request: SameChainWithdrawRequest): BuildTxnResult;
50
+ export declare const DEFAULT_CROSS_CHAIN_WITHDRAW_SLIPPAGE_BPS = 50;
50
51
  /**
51
52
  * `BridgeOutParams.data` for cross-chain delivery is a single `uint32 dstEid`
52
53
  * pointing at the destination LayerZero endpoint; the on-chain provider takes
@@ -62,7 +63,7 @@ export declare function buildCrossChainWithdrawBridgeOutParams(params: {
62
63
  dstChainId: AnyChainId;
63
64
  /** Settlement-chain Stargate pool address handling this token. */
64
65
  stargateAddress: string;
65
- /** Slippage tolerance in basis points for `minAmountOut`. Default 0 = no slippage allowed. */
66
+ /** Slippage tolerance in basis points for `minAmountOut`. Default 50; 0 = no slippage allowed. */
66
67
  slippageBps?: number;
67
68
  }): BridgeOutParams;
68
69
  export declare function executeSameChainDeposit(signer: IAbstractSigner, request: SameChainDepositRequest): Promise<string>;
@@ -23,6 +23,7 @@ export type PrepareOrderRequest = {
23
23
  manualSwapPath?: string[];
24
24
  acceptablePriceImpactBps?: bigint;
25
25
  executionFeeBufferBps?: number;
26
+ skipExecutionFeePriorityFeeAllowance?: boolean;
26
27
  twapConfig?: {
27
28
  duration: number;
28
29
  parts: number;
@@ -174,6 +175,7 @@ export type PrepareCollateralRequest = {
174
175
  amount: bigint;
175
176
  slippage?: number;
176
177
  executionFeeBufferBps?: number;
178
+ skipExecutionFeePriorityFeeAllowance?: boolean;
177
179
  gasPaymentToken?: string;
178
180
  uiFeeReceiver?: string;
179
181
  mode: TransactionMode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmx-io/sdk",
3
- "version": "2.6.0-next.0",
3
+ "version": "2.7.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",