From 08c8e78a40646d0d0dc5905597b689974598aa80 Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Tue, 12 Nov 2024 11:26:16 +0100 Subject: [PATCH 1/4] refactor: sgt trailing modes lp --- .../ExecArgCreateSpotGridStrategy.ts | 25 ++++++++++++++++--- .../sdk-ts/src/core/modules/wasm/types.ts | 8 ++++++ 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts index 8f3002278..a62649bc5 100644 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts @@ -9,6 +9,7 @@ import { ExitConfig, StrategyType, TrailingArithmetic, + TrailingArithmeticLP, } from '../types.js' export declare namespace ExecArgCreateSpotGridStrategy { export interface Params { @@ -21,7 +22,11 @@ export declare namespace ExecArgCreateSpotGridStrategy { takeProfit?: ExitConfig exitType?: ExitType strategyType?: StrategyType - trailingArithmetic?: TrailingArithmetic + trailingArithmetic?: { + upperTrailing: string + lowerTrailing: string + lpMode?: boolean + } } export interface Data { @@ -38,7 +43,7 @@ export declare namespace ExecArgCreateSpotGridStrategy { exit_price: string } exit_type?: ExitType - strategy_type?: StrategyType | TrailingArithmetic + strategy_type?: StrategyType | TrailingArithmetic | TrailingArithmeticLP } } @@ -58,6 +63,20 @@ export default class ExecArgCreateSpotGridStrategy extends ExecArgBase< toData(): ExecArgCreateSpotGridStrategy.Data { const { params } = this + const trailingBounds = params.trailingArithmetic + ? { + upper_trailing_bound: params.trailingArithmetic.upperTrailing, + lower_trailing_bound: params.trailingArithmetic.lowerTrailing, + } + : undefined + + const strategyType = + params.trailingArithmetic && trailingBounds + ? params.trailingArithmetic.lpMode + ? { trailing_arithmetic_lp: trailingBounds } + : { trailing_arithmetic: trailingBounds } + : params.strategyType ?? StrategyType.Arithmetic + return { subaccount_id: params.subaccountId, levels: params.levels, @@ -76,7 +95,7 @@ export default class ExecArgCreateSpotGridStrategy extends ExecArgBase< exit_price: params.takeProfit.exitPrice, } : undefined, - strategy_type: params.trailingArithmetic ?? params.strategyType, + strategy_type: strategyType, } } diff --git a/packages/sdk-ts/src/core/modules/wasm/types.ts b/packages/sdk-ts/src/core/modules/wasm/types.ts index fa2940cda..d414bbc8f 100644 --- a/packages/sdk-ts/src/core/modules/wasm/types.ts +++ b/packages/sdk-ts/src/core/modules/wasm/types.ts @@ -6,6 +6,7 @@ export enum ExitType { export enum StrategyType { Arithmetic = 'arithmetic', + ArithmeticLP = 'arithmetic_lp', Geometric = 'geometric', } @@ -16,6 +17,13 @@ export type TrailingArithmetic = { } } +export type TrailingArithmeticLP = { + trailing_arithmetic_lp: { + lower_trailing_bound: string + upper_trailing_bound: string + } +} + export type ExitConfig = { exitType: ExitType exitPrice: string From f20014324f9b1bb5ec86a8c37dbb0039f4baf084 Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Tue, 12 Nov 2024 10:32:06 +0000 Subject: [PATCH 2/4] chore: release - @injectivelabs/sdk-ts@1.14.20-beta.0 - @injectivelabs/wallet-ts@1.14.20-beta.0 - @injectivelabs/wallet-base@0.0.7-beta.0 - @injectivelabs/wallet-core@0.0.7-beta.0 - @injectivelabs/wallet-cosmos-strategy@0.0.7-beta.0 - @injectivelabs/wallet-cosmos@0.0.7-beta.0 - @injectivelabs/wallet-cosmostation@0.0.7-beta.0 - @injectivelabs/wallet-evm@0.0.7-beta.0 - @injectivelabs/wallet-ledger@0.0.7-beta.0 - @injectivelabs/wallet-magic@0.0.7-beta.0 - @injectivelabs/wallet-private-key@0.0.7-beta.0 - @injectivelabs/wallet-strategy@0.0.7-beta.0 - @injectivelabs/wallet-trezor@0.0.7-beta.0 - @injectivelabs/wallet-wallet-connect@0.0.7-beta.0 --- packages/sdk-ts/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 4 ++-- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 14 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 779477a2c..8078809f5 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.19", + "version": "1.14.20-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index f4ca6fd67..e69a840a1 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.19", + "version": "1.14.20-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -41,7 +41,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index c5bf173a8..8c04a4cc4 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,7 +37,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index e9a6c1b66..466d769b5 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -35,7 +35,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "eip1193-provider": "^1.0.1" diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index c2c4798e8..84692493e 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,13 +37,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.6", - "@injectivelabs/wallet-core": "^0.0.6", - "@injectivelabs/wallet-cosmos": "^0.0.6", - "@injectivelabs/wallet-cosmostation": "^0.0.6", + "@injectivelabs/wallet-base": "^0.0.7-beta.0", + "@injectivelabs/wallet-core": "^0.0.7-beta.0", + "@injectivelabs/wallet-cosmos": "^0.0.7-beta.0", + "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.0", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 2f5b17c90..a6cb06b3c 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -39,10 +39,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.6", + "@injectivelabs/wallet-base": "^0.0.7-beta.0", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 05896a408..18d055d99 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -36,10 +36,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.6", + "@injectivelabs/wallet-base": "^0.0.7-beta.0", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 4ed09a7c2..7976cac92 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -35,7 +35,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "ethers": "^6.5.1", diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 3cb6342b1..26aee194f 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,10 +37,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.6", + "@injectivelabs/wallet-base": "^0.0.7-beta.0", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index d92df1b29..94998922e 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.6", + "@injectivelabs/wallet-base": "^0.0.7-beta.0", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index ebf2f8d72..a00e41aa0 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.6" + "@injectivelabs/wallet-base": "^0.0.7-beta.0" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 0fdb4ee76..63f6a375d 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,19 +37,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.6", - "@injectivelabs/wallet-core": "^0.0.6", - "@injectivelabs/wallet-cosmos": "^0.0.6", - "@injectivelabs/wallet-cosmostation": "^0.0.6", - "@injectivelabs/wallet-evm": "^0.0.6", - "@injectivelabs/wallet-ledger": "^0.0.6", - "@injectivelabs/wallet-magic": "^0.0.6", - "@injectivelabs/wallet-private-key": "^0.0.6", - "@injectivelabs/wallet-trezor": "^0.0.6", - "@injectivelabs/wallet-wallet-connect": "^0.0.6", + "@injectivelabs/wallet-base": "^0.0.7-beta.0", + "@injectivelabs/wallet-core": "^0.0.7-beta.0", + "@injectivelabs/wallet-cosmos": "^0.0.7-beta.0", + "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.0", + "@injectivelabs/wallet-evm": "^0.0.7-beta.0", + "@injectivelabs/wallet-ledger": "^0.0.7-beta.0", + "@injectivelabs/wallet-magic": "^0.0.7-beta.0", + "@injectivelabs/wallet-private-key": "^0.0.7-beta.0", + "@injectivelabs/wallet-trezor": "^0.0.7-beta.0", + "@injectivelabs/wallet-wallet-connect": "^0.0.7-beta.0", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 70f6aa0e2..198415aa4 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,10 +37,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.6", + "@injectivelabs/wallet-base": "^0.0.7-beta.0", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 1d98c7e8b..018d57a83 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.6", + "version": "0.0.7-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.19", + "@injectivelabs/sdk-ts": "^1.14.20-beta.0", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.6", + "@injectivelabs/wallet-base": "^0.0.7-beta.0", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From 9f679e2d10461cabf571f161d4076c5aaf8848f2 Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Tue, 12 Nov 2024 12:38:45 +0100 Subject: [PATCH 3/4] fix: minor naming --- .../modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts | 2 +- packages/sdk-ts/src/core/modules/wasm/types.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts index a62649bc5..277b405a7 100644 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts @@ -73,7 +73,7 @@ export default class ExecArgCreateSpotGridStrategy extends ExecArgBase< const strategyType = params.trailingArithmetic && trailingBounds ? params.trailingArithmetic.lpMode - ? { trailing_arithmetic_lp: trailingBounds } + ? { trailing_arithmetic_l_p: trailingBounds } : { trailing_arithmetic: trailingBounds } : params.strategyType ?? StrategyType.Arithmetic diff --git a/packages/sdk-ts/src/core/modules/wasm/types.ts b/packages/sdk-ts/src/core/modules/wasm/types.ts index d414bbc8f..ea0720195 100644 --- a/packages/sdk-ts/src/core/modules/wasm/types.ts +++ b/packages/sdk-ts/src/core/modules/wasm/types.ts @@ -6,7 +6,7 @@ export enum ExitType { export enum StrategyType { Arithmetic = 'arithmetic', - ArithmeticLP = 'arithmetic_lp', + ArithmeticLP = 'arithmetic_l_p', Geometric = 'geometric', } @@ -18,7 +18,7 @@ export type TrailingArithmetic = { } export type TrailingArithmeticLP = { - trailing_arithmetic_lp: { + trailing_arithmetic_l_p: { lower_trailing_bound: string upper_trailing_bound: string } From 954cb4d80277cb8e9fec4bbd536557a80930964d Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Tue, 12 Nov 2024 11:43:46 +0000 Subject: [PATCH 4/4] chore: release - @injectivelabs/sdk-ts@1.14.20-beta.1 - @injectivelabs/wallet-ts@1.14.20-beta.1 - @injectivelabs/wallet-base@0.0.7-beta.1 - @injectivelabs/wallet-core@0.0.7-beta.1 - @injectivelabs/wallet-cosmos-strategy@0.0.7-beta.1 - @injectivelabs/wallet-cosmos@0.0.7-beta.1 - @injectivelabs/wallet-cosmostation@0.0.7-beta.1 - @injectivelabs/wallet-evm@0.0.7-beta.1 - @injectivelabs/wallet-ledger@0.0.7-beta.1 - @injectivelabs/wallet-magic@0.0.7-beta.1 - @injectivelabs/wallet-private-key@0.0.7-beta.1 - @injectivelabs/wallet-strategy@0.0.7-beta.1 - @injectivelabs/wallet-trezor@0.0.7-beta.1 - @injectivelabs/wallet-wallet-connect@0.0.7-beta.1 --- packages/sdk-ts/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 4 ++-- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 14 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 8078809f5..7ab46bed1 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.20-beta.0", + "version": "1.14.20-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index e69a840a1..077c88567 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.20-beta.0", + "version": "1.14.20-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -41,7 +41,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 8c04a4cc4..b8b47a6eb 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,7 +37,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 466d769b5..b24c8681f 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -35,7 +35,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "eip1193-provider": "^1.0.1" diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 84692493e..64de73842 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,13 +37,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.0", - "@injectivelabs/wallet-core": "^0.0.7-beta.0", - "@injectivelabs/wallet-cosmos": "^0.0.7-beta.0", - "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.0", + "@injectivelabs/wallet-base": "^0.0.7-beta.1", + "@injectivelabs/wallet-core": "^0.0.7-beta.1", + "@injectivelabs/wallet-cosmos": "^0.0.7-beta.1", + "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index a6cb06b3c..7e8feeb44 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -39,10 +39,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.0", + "@injectivelabs/wallet-base": "^0.0.7-beta.1", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 18d055d99..9be8fb1c4 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -36,10 +36,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.0", + "@injectivelabs/wallet-base": "^0.0.7-beta.1", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 7976cac92..b61a0c6f7 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -35,7 +35,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "ethers": "^6.5.1", diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 26aee194f..538b2ccb4 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,10 +37,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.0", + "@injectivelabs/wallet-base": "^0.0.7-beta.1", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 94998922e..05f9f0838 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.0", + "@injectivelabs/wallet-base": "^0.0.7-beta.1", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index a00e41aa0..3fee83a4c 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.0" + "@injectivelabs/wallet-base": "^0.0.7-beta.1" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 63f6a375d..135069c5d 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,19 +37,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.0", - "@injectivelabs/wallet-core": "^0.0.7-beta.0", - "@injectivelabs/wallet-cosmos": "^0.0.7-beta.0", - "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.0", - "@injectivelabs/wallet-evm": "^0.0.7-beta.0", - "@injectivelabs/wallet-ledger": "^0.0.7-beta.0", - "@injectivelabs/wallet-magic": "^0.0.7-beta.0", - "@injectivelabs/wallet-private-key": "^0.0.7-beta.0", - "@injectivelabs/wallet-trezor": "^0.0.7-beta.0", - "@injectivelabs/wallet-wallet-connect": "^0.0.7-beta.0", + "@injectivelabs/wallet-base": "^0.0.7-beta.1", + "@injectivelabs/wallet-core": "^0.0.7-beta.1", + "@injectivelabs/wallet-cosmos": "^0.0.7-beta.1", + "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.1", + "@injectivelabs/wallet-evm": "^0.0.7-beta.1", + "@injectivelabs/wallet-ledger": "^0.0.7-beta.1", + "@injectivelabs/wallet-magic": "^0.0.7-beta.1", + "@injectivelabs/wallet-private-key": "^0.0.7-beta.1", + "@injectivelabs/wallet-trezor": "^0.0.7-beta.1", + "@injectivelabs/wallet-wallet-connect": "^0.0.7-beta.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 198415aa4..752f70092 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,10 +37,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.0", + "@injectivelabs/wallet-base": "^0.0.7-beta.1", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 018d57a83..67a712f94 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.0", + "version": "0.0.7-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.0", + "@injectivelabs/sdk-ts": "^1.14.20-beta.1", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.0", + "@injectivelabs/wallet-base": "^0.0.7-beta.1", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445",