@injectivelabs/sdk-ts 1.14.14-beta.16 → 1.14.14-beta.18
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/wasm/msgs/MsgStoreCode.d.ts +5 -3
- package/dist/cjs/core/modules/wasm/msgs/MsgStoreCode.d.ts.map +1 -1
- package/dist/cjs/core/modules/wasm/msgs/MsgStoreCode.js +3 -0
- package/dist/cjs/core/modules/wasm/msgs/MsgStoreCode.js.map +1 -1
- package/dist/esm/core/modules/wasm/msgs/MsgStoreCode.d.ts +5 -3
- package/dist/esm/core/modules/wasm/msgs/MsgStoreCode.d.ts.map +1 -1
- package/dist/esm/core/modules/wasm/msgs/MsgStoreCode.js +3 -0
- package/dist/esm/core/modules/wasm/msgs/MsgStoreCode.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { MsgBase } from '../../MsgBase';
|
|
2
2
|
import { CosmwasmWasmV1Tx } from '@injectivelabs/core-proto-ts';
|
|
3
|
+
import { AccessConfig } from '@injectivelabs/core-proto-ts/cjs/cosmwasm/wasm/v1/types';
|
|
3
4
|
export declare namespace MsgStoreCode {
|
|
4
5
|
interface Params {
|
|
5
6
|
sender: string;
|
|
6
7
|
wasmBytes: Uint8Array | string;
|
|
8
|
+
instantiatePermission?: AccessConfig;
|
|
7
9
|
}
|
|
8
10
|
type Proto = CosmwasmWasmV1Tx.MsgStoreCode;
|
|
9
11
|
}
|
|
@@ -16,7 +18,7 @@ export default class MsgStoreCode extends MsgBase<MsgStoreCode.Params, MsgStoreC
|
|
|
16
18
|
toData(): {
|
|
17
19
|
sender: string;
|
|
18
20
|
wasmByteCode: Uint8Array;
|
|
19
|
-
instantiatePermission:
|
|
21
|
+
instantiatePermission: AccessConfig | undefined;
|
|
20
22
|
'@type': string;
|
|
21
23
|
};
|
|
22
24
|
toAmino(): {
|
|
@@ -24,13 +26,13 @@ export default class MsgStoreCode extends MsgBase<MsgStoreCode.Params, MsgStoreC
|
|
|
24
26
|
value: {
|
|
25
27
|
sender: string;
|
|
26
28
|
wasm_byte_code: Uint8Array;
|
|
27
|
-
instantiate_permission:
|
|
29
|
+
instantiate_permission: AccessConfig | undefined;
|
|
28
30
|
};
|
|
29
31
|
};
|
|
30
32
|
toWeb3(): {
|
|
31
33
|
sender: string;
|
|
32
34
|
wasm_byte_code: Uint8Array;
|
|
33
|
-
instantiate_permission:
|
|
35
|
+
instantiate_permission: AccessConfig | undefined;
|
|
34
36
|
'@type': string;
|
|
35
37
|
};
|
|
36
38
|
toDirectSign(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MsgStoreCode.d.ts","sourceRoot":"","sources":["../../../../../../src/core/modules/wasm/msgs/MsgStoreCode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"MsgStoreCode.d.ts","sourceRoot":"","sources":["../../../../../../src/core/modules/wasm/msgs/MsgStoreCode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAA;AAEtF,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,UAAiB,MAAM;QACrB,MAAM,EAAE,MAAM,CAAA;QACd,SAAS,EAAE,UAAU,GAAG,MAAM,CAAA;QAC9B,qBAAqB,CAAC,EAAE,YAAY,CAAA;KACrC;IAED,KAAY,KAAK,GAAG,gBAAgB,CAAC,YAAY,CAAA;CAClD;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO,CAC/C,YAAY,CAAC,MAAM,EACnB,YAAY,CAAC,KAAK,CACnB;IACC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,YAAY;IAInD,OAAO;IAkBP,MAAM;;;;;;IASN,OAAO;;;;;;;;IAYP,MAAM;;;;;;IAUN,YAAY;;;;IASZ,QAAQ,IAAI,UAAU;CAG9B"}
|
|
@@ -22,6 +22,9 @@ class MsgStoreCode extends MsgBase_1.MsgBase {
|
|
|
22
22
|
typeof params.wasmBytes === 'string'
|
|
23
23
|
? (0, utf8_1.fromUtf8)(params.wasmBytes)
|
|
24
24
|
: params.wasmBytes;
|
|
25
|
+
if (params.instantiatePermission) {
|
|
26
|
+
message.instantiatePermission = params.instantiatePermission;
|
|
27
|
+
}
|
|
25
28
|
return core_proto_ts_1.CosmwasmWasmV1Tx.MsgStoreCode.fromPartial(message);
|
|
26
29
|
}
|
|
27
30
|
toData() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MsgStoreCode.js","sourceRoot":"","sources":["../../../../../../src/core/modules/wasm/msgs/MsgStoreCode.ts"],"names":[],"mappings":";;;;;AAAA,iDAAiD;AACjD,2CAAuC;AACvC,oEAA0C;AAC1C,gEAA+D;
|
|
1
|
+
{"version":3,"file":"MsgStoreCode.js","sourceRoot":"","sources":["../../../../../../src/core/modules/wasm/msgs/MsgStoreCode.ts"],"names":[],"mappings":";;;;;AAAA,iDAAiD;AACjD,2CAAuC;AACvC,oEAA0C;AAC1C,gEAA+D;AAa/D;;GAEG;AACH,MAAqB,YAAa,SAAQ,iBAGzC;IACC,MAAM,CAAC,QAAQ,CAAC,MAA2B;QACzC,OAAO,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;IACjC,CAAC;IAEM,OAAO;QACZ,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;QAEvB,MAAM,OAAO,GAAG,gCAAgB,CAAC,YAAY,CAAC,MAAM,EAAE,CAAA;QAEtD,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;QAC9B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
import { MsgBase } from '../../MsgBase';
|
|
2
2
|
import { CosmwasmWasmV1Tx } from '@injectivelabs/core-proto-ts';
|
|
3
|
+
import { AccessConfig } from '@injectivelabs/core-proto-ts/cjs/cosmwasm/wasm/v1/types';
|
|
3
4
|
export declare namespace MsgStoreCode {
|
|
4
5
|
interface Params {
|
|
5
6
|
sender: string;
|
|
6
7
|
wasmBytes: Uint8Array | string;
|
|
8
|
+
instantiatePermission?: AccessConfig;
|
|
7
9
|
}
|
|
8
10
|
type Proto = CosmwasmWasmV1Tx.MsgStoreCode;
|
|
9
11
|
}
|
|
@@ -16,7 +18,7 @@ export default class MsgStoreCode extends MsgBase<MsgStoreCode.Params, MsgStoreC
|
|
|
16
18
|
toData(): {
|
|
17
19
|
sender: string;
|
|
18
20
|
wasmByteCode: Uint8Array;
|
|
19
|
-
instantiatePermission:
|
|
21
|
+
instantiatePermission: AccessConfig | undefined;
|
|
20
22
|
'@type': string;
|
|
21
23
|
};
|
|
22
24
|
toAmino(): {
|
|
@@ -24,13 +26,13 @@ export default class MsgStoreCode extends MsgBase<MsgStoreCode.Params, MsgStoreC
|
|
|
24
26
|
value: {
|
|
25
27
|
sender: string;
|
|
26
28
|
wasm_byte_code: Uint8Array;
|
|
27
|
-
instantiate_permission:
|
|
29
|
+
instantiate_permission: AccessConfig | undefined;
|
|
28
30
|
};
|
|
29
31
|
};
|
|
30
32
|
toWeb3(): {
|
|
31
33
|
sender: string;
|
|
32
34
|
wasm_byte_code: Uint8Array;
|
|
33
|
-
instantiate_permission:
|
|
35
|
+
instantiate_permission: AccessConfig | undefined;
|
|
34
36
|
'@type': string;
|
|
35
37
|
};
|
|
36
38
|
toDirectSign(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MsgStoreCode.d.ts","sourceRoot":"","sources":["../../../../../../src/core/modules/wasm/msgs/MsgStoreCode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"MsgStoreCode.d.ts","sourceRoot":"","sources":["../../../../../../src/core/modules/wasm/msgs/MsgStoreCode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAA;AAEtF,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,UAAiB,MAAM;QACrB,MAAM,EAAE,MAAM,CAAA;QACd,SAAS,EAAE,UAAU,GAAG,MAAM,CAAA;QAC9B,qBAAqB,CAAC,EAAE,YAAY,CAAA;KACrC;IAED,KAAY,KAAK,GAAG,gBAAgB,CAAC,YAAY,CAAA;CAClD;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO,CAC/C,YAAY,CAAC,MAAM,EACnB,YAAY,CAAC,KAAK,CACnB;IACC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,YAAY;IAInD,OAAO;IAkBP,MAAM;;;;;;IASN,OAAO;;;;;;;;IAYP,MAAM;;;;;;IAUN,YAAY;;;;IASZ,QAAQ,IAAI,UAAU;CAG9B"}
|
|
@@ -17,6 +17,9 @@ export default class MsgStoreCode extends MsgBase {
|
|
|
17
17
|
typeof params.wasmBytes === 'string'
|
|
18
18
|
? fromUtf8(params.wasmBytes)
|
|
19
19
|
: params.wasmBytes;
|
|
20
|
+
if (params.instantiatePermission) {
|
|
21
|
+
message.instantiatePermission = params.instantiatePermission;
|
|
22
|
+
}
|
|
20
23
|
return CosmwasmWasmV1Tx.MsgStoreCode.fromPartial(message);
|
|
21
24
|
}
|
|
22
25
|
toData() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MsgStoreCode.js","sourceRoot":"","sources":["../../../../../../src/core/modules/wasm/msgs/MsgStoreCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,aAAa,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"MsgStoreCode.js","sourceRoot":"","sources":["../../../../../../src/core/modules/wasm/msgs/MsgStoreCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,aAAa,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAa/D;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAGzC;IACC,MAAM,CAAC,QAAQ,CAAC,MAA2B;QACzC,OAAO,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;IACjC,CAAC;IAEM,OAAO;QACZ,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;QAEvB,MAAM,OAAO,GAAG,gBAAgB,CAAC,YAAY,CAAC,MAAM,EAAE,CAAA;QAEtD,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;QAC9B,OAAO,CAAC,YAAY;YAClB,OAAO,MAAM,CAAC,SAAS,KAAK,QAAQ;gBAClC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC;gBAC5B,CAAC,CAAC,MAAM,CAAC,SAAS,CAAA;QAEtB,IAAI,MAAM,CAAC,qBAAqB,EAAE,CAAC;YACjC,OAAO,CAAC,qBAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAA;QAC9D,CAAC;QAED,OAAO,gBAAgB,CAAC,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3D,CAAC;IAEM,MAAM;QACX,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAA;QAE5B,OAAO;YACL,OAAO,EAAE,gCAAgC;YACzC,GAAG,KAAK;SACT,CAAA;IACH,CAAC;IAEM,OAAO;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAA;QAC5B,MAAM,OAAO,GAAG;YACd,GAAG,aAAa,CAAC,KAAK,CAAC;SACxB,CAAA;QAED,OAAO;YACL,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,EAAE,GAAG,OAAO,EAAE;SACtB,CAAA;IACH,CAAC;IAEM,MAAM;QACX,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAA;QAC5B,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAA;QAEvB,OAAO;YACL,OAAO,EAAE,gCAAgC;YACzC,GAAG,KAAK;SACT,CAAA;IACH,CAAC;IAEM,YAAY;QACjB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAA;QAE5B,OAAO;YACL,IAAI,EAAE,gCAAgC;YACtC,OAAO,EAAE,KAAK;SACf,CAAA;IACH,CAAC;IAEM,QAAQ;QACb,OAAO,gBAAgB,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAA;IACtE,CAAC;CACF"}
|
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.14.14-beta.
|
|
4
|
+
"version": "1.14.14-beta.18",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@injectivelabs/grpc-web": "^0.0.1",
|
|
44
44
|
"@injectivelabs/grpc-web-node-http-transport": "^0.0.2",
|
|
45
45
|
"@injectivelabs/grpc-web-react-native-transport": "^0.0.2",
|
|
46
|
-
"@injectivelabs/indexer-proto-ts": "1.11.
|
|
46
|
+
"@injectivelabs/indexer-proto-ts": "1.11.49",
|
|
47
47
|
"@injectivelabs/mito-proto-ts": "1.0.65",
|
|
48
48
|
"@injectivelabs/networks": "^1.14.14-beta.3",
|
|
49
49
|
"@injectivelabs/test-utils": "^1.14.14-beta.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"shx": "^0.3.2",
|
|
69
69
|
"snakecase-keys": "^5.4.1"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "f3696f76dac329aec581012fd6ea265d3d0e0423",
|
|
72
72
|
"typedoc": {
|
|
73
73
|
"entryPoint": "./src/index.ts",
|
|
74
74
|
"readmeFile": "./README.md",
|