Skip to content

Commit

Permalink
feat: remove gst strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-angjelkoski committed Aug 14, 2023
1 parent c888b89 commit 0c11071
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/sdk-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk-ts/src/core/modules/wasm/exec-args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -38,6 +39,7 @@ export type ExecArgs =
| ExecArgDepositTokens
| ExecArgRegisterVault
| ExecArgCreateSpotGridStrategy
| ExecArgRemoveGridStrategy
| ExecArgSwapExactOutput
| ExecArgInitiateTransfer
| ExecArgIncreaseAllowance
Expand Down
Original file line number Diff line number Diff line change
@@ -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<ExecArgRemoveGridStrategy.Data> {
return dataToExecData('remove_strategy', this.toData())
}
}
2 changes: 2 additions & 0 deletions packages/sdk-ts/src/core/modules/wasm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -49,6 +50,7 @@ export {
ExecArgSwapExactOutput,
ExecArgInitiateTransfer,
ExecArgIncreaseAllowance,
ExecArgRemoveGridStrategy,
ExecArgUpdateAMMVaultConfig,
ExecArgUpdateSpotVaultConfig,
ExecArgCreateSpotGridStrategy,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2156,10 +2156,10 @@
dependencies:
browser-headers "^0.4.1"

"@injectivelabs/[email protected].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/[email protected].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"
Expand Down

0 comments on commit 0c11071

Please sign in to comment.