diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 897771f48..8c3dc298f 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -42,7 +42,7 @@ "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", - "@injectivelabs/indexer-proto-ts": "1.11.6", + "@injectivelabs/indexer-proto-ts": "1.11.8", "@injectivelabs/mito-proto-ts": "1.0.32", "@injectivelabs/networks": "^1.12.0-beta.17", "@injectivelabs/test-utils": "^1.12.0-beta.1", diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args.ts index 4aa7765e5..69ddae8b4 100644 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args.ts +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args.ts @@ -11,6 +11,7 @@ import ExecArgSwapMinOutput from './exec-args/ExecArgSwapMinOutput' import ExecArgSwapExactOutput from './exec-args/ExecArgSwapExactOutput' import ExecArgInitiateTransfer from './exec-args/ExecArgInitiateTransfer' import ExecArgIncreaseAllowance from './exec-args/ExecArgIncreaseAllowance' +import ExecArgRemoveGridStrategy from './exec-args/ExecArgRemoveGridStrategy' import ExecArgUpdateAMMVaultConfig from './exec-args/ExecArgUpdateAMMVaultConfig' import ExecArgUpdateSpotVaultConfig from './exec-args/ExecArgUpdateSpotVaultConfig' import ExecArgCreateSpotGridStrategy from './exec-args/ExecArgCreateSpotGridStrategy' @@ -38,6 +39,7 @@ export type ExecArgs = | ExecArgDepositTokens | ExecArgRegisterVault | ExecArgCreateSpotGridStrategy + | ExecArgRemoveGridStrategy | ExecArgSwapExactOutput | ExecArgInitiateTransfer | ExecArgIncreaseAllowance diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgRemoveGridStrategy.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgRemoveGridStrategy.ts new file mode 100644 index 000000000..e3a384a36 --- /dev/null +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgRemoveGridStrategy.ts @@ -0,0 +1,35 @@ +import { + dataToExecData, + ExecArgBase, + ExecDataRepresentation, +} from '../ExecArgBase' + +export declare namespace ExecArgRemoveGridStrategy { + export interface Params {} + + export interface Data {} +} + +/** + * @category Contract Exec Arguments + */ +export default class ExecArgRemoveGridStrategy extends ExecArgBase< + ExecArgRemoveGridStrategy.Params, + ExecArgRemoveGridStrategy.Data +> { + static fromJSON( + params: ExecArgRemoveGridStrategy.Params, + ): ExecArgRemoveGridStrategy { + return new ExecArgRemoveGridStrategy(params) + } + + toData(): ExecArgRemoveGridStrategy.Data { + // const { params } = this + + return {} + } + + toExecData(): ExecDataRepresentation { + return dataToExecData('remove_strategy', this.toData()) + } +} diff --git a/packages/sdk-ts/src/core/modules/wasm/index.ts b/packages/sdk-ts/src/core/modules/wasm/index.ts index 3f16ff985..5eb30f0c3 100644 --- a/packages/sdk-ts/src/core/modules/wasm/index.ts +++ b/packages/sdk-ts/src/core/modules/wasm/index.ts @@ -11,6 +11,7 @@ import ExecArgRegisterVault from './exec-args/ExecArgRegisterVault' import ExecArgSwapExactOutput from './exec-args/ExecArgSwapExactOutput' import ExecArgInitiateTransfer from './exec-args/ExecArgInitiateTransfer' import ExecArgIncreaseAllowance from './exec-args/ExecArgIncreaseAllowance' +import ExecArgRemoveGridStrategy from './exec-args/ExecArgRemoveGridStrategy' import ExecArgUpdateAMMVaultConfig from './exec-args/ExecArgUpdateAMMVaultConfig' import ExecArgUpdateSpotVaultConfig from './exec-args/ExecArgUpdateSpotVaultConfig' import ExecArgCreateSpotGridStrategy from './exec-args/ExecArgCreateSpotGridStrategy' @@ -49,6 +50,7 @@ export { ExecArgSwapExactOutput, ExecArgInitiateTransfer, ExecArgIncreaseAllowance, + ExecArgRemoveGridStrategy, ExecArgUpdateAMMVaultConfig, ExecArgUpdateSpotVaultConfig, ExecArgCreateSpotGridStrategy, diff --git a/yarn.lock b/yarn.lock index 2f987b9f3..a8d9fce8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2156,10 +2156,10 @@ dependencies: browser-headers "^0.4.1" -"@injectivelabs/indexer-proto-ts@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.11.6.tgz#cf5f9ee629230dfbba630a3429d1ea021162b118" - integrity sha512-ikw1PCqon51goCsEhzvevgKbMgSNYs9iuzi08lIfeF9kh7mZ8o9yQe4ihd+faf0FjdMwRSHw2LGeuKqbLTTyMg== +"@injectivelabs/indexer-proto-ts@1.11.8": + version "1.11.8" + resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.11.8.tgz#fb1850d9aaa305eb895a8fa8ea56c11e31d90569" + integrity sha512-fToWhxF42CBHMw/PXuUZMdkb+Y/MOTTIbCMyhUst+3tTNITLbEdamWZ3vg5+h5fiEfPEqIM4WgFtZCri3NKnHA== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0"