@injectivelabs/sdk-ts 1.16.1-alpha.5 → 1.16.1-alpha.6
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/cjs/core/modules/gov/ProposalContentDecomposer.d.ts +3 -2
- package/dist/cjs/core/modules/gov/ProposalContentDecomposer.js +4 -1
- package/dist/esm/core/modules/gov/ProposalContentDecomposer.d.ts +3 -2
- package/dist/esm/core/modules/gov/ProposalContentDecomposer.js +5 -2
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CosmosGovV1Tx, CosmosGovV1Beta1Gov, CosmosParamsV1Beta1Params, CosmosUpgradeV1Beta1Upgrade,
|
|
1
|
+
import { CosmosGovV1Tx, CosmosGovV1Beta1Gov, CosmosParamsV1Beta1Params, CosmosUpgradeV1Beta1Upgrade, InjectiveExchangeV2Proposal, InjectiveOracleV1Beta1Proposal, InjectiveExchangeV1Beta1Proposal } from '@injectivelabs/core-proto-ts';
|
|
2
2
|
export declare class ProposalDecomposer {
|
|
3
3
|
static getMsgExecLegacyContent(content: Uint8Array): CosmosGovV1Tx.MsgExecLegacyContent;
|
|
4
4
|
static grantBandOraclePrivilegeProposal(content: Uint8Array): InjectiveOracleV1Beta1Proposal.GrantBandOraclePrivilegeProposal;
|
|
@@ -10,7 +10,8 @@ export declare class ProposalDecomposer {
|
|
|
10
10
|
static spotMarketLaunch(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.SpotMarketLaunchProposal;
|
|
11
11
|
static exchangeEnableProposal(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.ExchangeEnableProposal;
|
|
12
12
|
static spotMarketUpdate(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.SpotMarketParamUpdateProposal;
|
|
13
|
-
static
|
|
13
|
+
static perpetualMarketLaunchV1Beta1(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.PerpetualMarketLaunchProposal;
|
|
14
|
+
static perpetualMarketLaunchV2(content: Uint8Array): InjectiveExchangeV2Proposal.PerpetualMarketLaunchProposal;
|
|
14
15
|
static expiryFuturesMarketLaunch(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.ExpiryFuturesMarketLaunchProposal;
|
|
15
16
|
static derivativeMarketUpdate(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.DerivativeMarketParamUpdateProposal;
|
|
16
17
|
static FeeDiscount(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.FeeDiscountProposal;
|
|
@@ -33,9 +33,12 @@ class ProposalDecomposer {
|
|
|
33
33
|
static spotMarketUpdate(content) {
|
|
34
34
|
return core_proto_ts_1.InjectiveExchangeV1Beta1Proposal.SpotMarketParamUpdateProposal.decode(content);
|
|
35
35
|
}
|
|
36
|
-
static
|
|
36
|
+
static perpetualMarketLaunchV1Beta1(content) {
|
|
37
37
|
return core_proto_ts_1.InjectiveExchangeV1Beta1Proposal.PerpetualMarketLaunchProposal.decode(content);
|
|
38
38
|
}
|
|
39
|
+
static perpetualMarketLaunchV2(content) {
|
|
40
|
+
return core_proto_ts_1.InjectiveExchangeV2Proposal.PerpetualMarketLaunchProposal.decode(content);
|
|
41
|
+
}
|
|
39
42
|
static expiryFuturesMarketLaunch(content) {
|
|
40
43
|
return core_proto_ts_1.InjectiveExchangeV1Beta1Proposal.ExpiryFuturesMarketLaunchProposal.decode(content);
|
|
41
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CosmosGovV1Tx, CosmosGovV1Beta1Gov, CosmosParamsV1Beta1Params, CosmosUpgradeV1Beta1Upgrade,
|
|
1
|
+
import { CosmosGovV1Tx, CosmosGovV1Beta1Gov, CosmosParamsV1Beta1Params, CosmosUpgradeV1Beta1Upgrade, InjectiveExchangeV2Proposal, InjectiveOracleV1Beta1Proposal, InjectiveExchangeV1Beta1Proposal } from '@injectivelabs/core-proto-ts';
|
|
2
2
|
export declare class ProposalDecomposer {
|
|
3
3
|
static getMsgExecLegacyContent(content: Uint8Array): CosmosGovV1Tx.MsgExecLegacyContent;
|
|
4
4
|
static grantBandOraclePrivilegeProposal(content: Uint8Array): InjectiveOracleV1Beta1Proposal.GrantBandOraclePrivilegeProposal;
|
|
@@ -10,7 +10,8 @@ export declare class ProposalDecomposer {
|
|
|
10
10
|
static spotMarketLaunch(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.SpotMarketLaunchProposal;
|
|
11
11
|
static exchangeEnableProposal(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.ExchangeEnableProposal;
|
|
12
12
|
static spotMarketUpdate(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.SpotMarketParamUpdateProposal;
|
|
13
|
-
static
|
|
13
|
+
static perpetualMarketLaunchV1Beta1(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.PerpetualMarketLaunchProposal;
|
|
14
|
+
static perpetualMarketLaunchV2(content: Uint8Array): InjectiveExchangeV2Proposal.PerpetualMarketLaunchProposal;
|
|
14
15
|
static expiryFuturesMarketLaunch(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.ExpiryFuturesMarketLaunchProposal;
|
|
15
16
|
static derivativeMarketUpdate(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.DerivativeMarketParamUpdateProposal;
|
|
16
17
|
static FeeDiscount(content: Uint8Array): InjectiveExchangeV1Beta1Proposal.FeeDiscountProposal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CosmosGovV1Tx, CosmosGovV1Beta1Gov, CosmosParamsV1Beta1Params, CosmosUpgradeV1Beta1Upgrade,
|
|
1
|
+
import { CosmosGovV1Tx, CosmosGovV1Beta1Gov, CosmosParamsV1Beta1Params, CosmosUpgradeV1Beta1Upgrade, InjectiveExchangeV2Proposal, InjectiveOracleV1Beta1Proposal, InjectiveExchangeV1Beta1Proposal, } from '@injectivelabs/core-proto-ts';
|
|
2
2
|
export class ProposalDecomposer {
|
|
3
3
|
static getMsgExecLegacyContent(content) {
|
|
4
4
|
return CosmosGovV1Tx.MsgExecLegacyContent.decode(content);
|
|
@@ -30,9 +30,12 @@ export class ProposalDecomposer {
|
|
|
30
30
|
static spotMarketUpdate(content) {
|
|
31
31
|
return InjectiveExchangeV1Beta1Proposal.SpotMarketParamUpdateProposal.decode(content);
|
|
32
32
|
}
|
|
33
|
-
static
|
|
33
|
+
static perpetualMarketLaunchV1Beta1(content) {
|
|
34
34
|
return InjectiveExchangeV1Beta1Proposal.PerpetualMarketLaunchProposal.decode(content);
|
|
35
35
|
}
|
|
36
|
+
static perpetualMarketLaunchV2(content) {
|
|
37
|
+
return InjectiveExchangeV2Proposal.PerpetualMarketLaunchProposal.decode(content);
|
|
38
|
+
}
|
|
36
39
|
static expiryFuturesMarketLaunch(content) {
|
|
37
40
|
return InjectiveExchangeV1Beta1Proposal.ExpiryFuturesMarketLaunchProposal.decode(content);
|
|
38
41
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/sdk-ts",
|
|
3
3
|
"description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.",
|
|
4
|
-
"version": "1.16.1-alpha.
|
|
4
|
+
"version": "1.16.1-alpha.6",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": {
|
|
@@ -123,16 +123,16 @@
|
|
|
123
123
|
"@cosmjs/stargate": "^0.33.0",
|
|
124
124
|
"@injectivelabs/abacus-proto-ts": "1.14.0",
|
|
125
125
|
"@injectivelabs/core-proto-ts": "1.16.1",
|
|
126
|
-
"@injectivelabs/exceptions": "^1.16.1-alpha.
|
|
126
|
+
"@injectivelabs/exceptions": "^1.16.1-alpha.6",
|
|
127
127
|
"@injectivelabs/grpc-web": "^0.0.1",
|
|
128
128
|
"@injectivelabs/grpc-web-node-http-transport": "^0.0.2",
|
|
129
129
|
"@injectivelabs/grpc-web-react-native-transport": "^0.0.2",
|
|
130
130
|
"@injectivelabs/indexer-proto-ts": "1.13.14",
|
|
131
131
|
"@injectivelabs/mito-proto-ts": "1.13.2",
|
|
132
|
-
"@injectivelabs/networks": "^1.16.1-alpha.
|
|
132
|
+
"@injectivelabs/networks": "^1.16.1-alpha.6",
|
|
133
133
|
"@injectivelabs/olp-proto-ts": "1.13.4",
|
|
134
|
-
"@injectivelabs/ts-types": "^1.16.1-alpha.
|
|
135
|
-
"@injectivelabs/utils": "^1.16.1-alpha.
|
|
134
|
+
"@injectivelabs/ts-types": "^1.16.1-alpha.6",
|
|
135
|
+
"@injectivelabs/utils": "^1.16.1-alpha.6",
|
|
136
136
|
"@metamask/eth-sig-util": "^8.2.0",
|
|
137
137
|
"@noble/curves": "^1.8.1",
|
|
138
138
|
"@noble/hashes": "^1.7.1",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"shx": "^0.3.4",
|
|
152
152
|
"snakecase-keys": "^5.4.1"
|
|
153
153
|
},
|
|
154
|
-
"gitHead": "
|
|
154
|
+
"gitHead": "2e0a988a094d8284191b29502dde14f9696e7932",
|
|
155
155
|
"typedoc": {
|
|
156
156
|
"entryPoint": "./src/index.ts",
|
|
157
157
|
"readmeFile": "./README.md",
|