@ark-us/wasmx-stargate 0.0.11 → 0.0.12
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/LICENSE +674 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +5 -1
- package/build/index.js.map +1 -1
- package/build/signingwasmxclient.js +8 -8
- package/build/signingwasmxclient.js.map +1 -1
- package/build/tendermintclient.d.ts +4 -2
- package/build/tendermintclient.js +8 -1
- package/build/tendermintclient.js.map +1 -1
- package/build/wasmxclient.d.ts +1 -2
- package/build/wasmxclient.js +2 -32
- package/build/wasmxclient.js.map +1 -1
- package/package.json +9 -9
- package/.DS_Store +0 -0
- package/.eslintignore +0 -5
- package/.eslintrc.js +0 -108
- package/.gitignore +0 -5
- package/build/encoding.spec.d.ts +0 -1
- package/build/encoding.spec.js +0 -78
- package/build/encoding.spec.js.map +0 -1
- package/build/modules/wasmx/aminomessages.spec.d.ts +0 -1
- package/build/modules/wasmx/aminomessages.spec.js +0 -242
- package/build/modules/wasmx/aminomessages.spec.js.map +0 -1
- package/jasmine-testrunner.js +0 -38
- package/karma.conf.js +0 -54
- package/src/encoding.spec.ts +0 -99
- package/src/encoding.ts +0 -21
- package/src/index.ts +0 -30
- package/src/modules/index.ts +0 -20
- package/src/modules/wasmx/aminomessages.spec.ts +0 -258
- package/src/modules/wasmx/aminomessages.ts +0 -177
- package/src/modules/wasmx/messages.ts +0 -54
- package/src/modules/wasmx/queries.ts +0 -141
- package/src/modules/wasmx/utils.ts +0 -43
- package/src/signingwasmxclient.ts +0 -658
- package/src/tendermintclient.ts +0 -7
- package/src/wasmxclient.ts +0 -494
- package/tsconfig.eslint.json +0 -9
- package/tsconfig.json +0 -12
- package/typedoc.js +0 -11
- package/webpack.web.config.js +0 -37
- package/yarn-error.log +0 -4205
- package/yarn.lock +0 -4145
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
7
|
-
const encoding_1 = require("@cosmjs/encoding");
|
|
8
|
-
const stargate_1 = require("@cosmjs/stargate");
|
|
9
|
-
const long_1 = __importDefault(require("long"));
|
|
10
|
-
const aminomessages_1 = require("./aminomessages");
|
|
11
|
-
describe("AminoTypes", () => {
|
|
12
|
-
describe("toAmino", () => {
|
|
13
|
-
it("works for MsgStoreCode", () => {
|
|
14
|
-
const msg = {
|
|
15
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
16
|
-
byteCode: (0, encoding_1.fromBase64)("WUVMTE9XIFNVQk1BUklORQ=="),
|
|
17
|
-
deps: [],
|
|
18
|
-
};
|
|
19
|
-
const aminoMsg = new stargate_1.AminoTypes((0, aminomessages_1.createWasmAminoConverters)()).toAmino({
|
|
20
|
-
typeUrl: "/mythos.wasmx.v1.MsgStoreCode",
|
|
21
|
-
value: msg,
|
|
22
|
-
});
|
|
23
|
-
const expected = {
|
|
24
|
-
type: "wasmx/MsgStoreCode",
|
|
25
|
-
value: {
|
|
26
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
27
|
-
byte_code: "WUVMTE9XIFNVQk1BUklORQ==",
|
|
28
|
-
metadata: { name: "", categ: [], icon: "", author: "", site: "", abi: new Uint8Array(0), jsonSchema: "" },
|
|
29
|
-
deps: [],
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
expect(aminoMsg).toEqual(expected);
|
|
33
|
-
});
|
|
34
|
-
it("works for MsgDeployCode", () => {
|
|
35
|
-
const msg = {
|
|
36
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
37
|
-
byteCode: (0, encoding_1.fromBase64)("WUVMTE9XIFNVQk1BUklORQ=="),
|
|
38
|
-
deps: [],
|
|
39
|
-
msg: (0, encoding_1.toUtf8)(`{"data":"0x"}`),
|
|
40
|
-
funds: (0, stargate_1.coins)(0, "ucosm"),
|
|
41
|
-
label: "label",
|
|
42
|
-
};
|
|
43
|
-
const aminoMsg = new stargate_1.AminoTypes((0, aminomessages_1.createWasmAminoConverters)()).toAmino({
|
|
44
|
-
typeUrl: "/mythos.wasmx.v1.MsgDeployCode",
|
|
45
|
-
value: msg,
|
|
46
|
-
});
|
|
47
|
-
const expected = {
|
|
48
|
-
type: "wasmx/MsgDeployCode",
|
|
49
|
-
value: {
|
|
50
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
51
|
-
byte_code: "WUVMTE9XIFNVQk1BUklORQ==",
|
|
52
|
-
metadata: { name: "", categ: [], icon: "", author: "", site: "", abi: new Uint8Array(0), jsonSchema: "" },
|
|
53
|
-
deps: [],
|
|
54
|
-
msg: { "data": "0x" },
|
|
55
|
-
funds: (0, stargate_1.coins)(0, "ucosm"),
|
|
56
|
-
label: "label",
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
expect(aminoMsg).toEqual(expected);
|
|
60
|
-
});
|
|
61
|
-
it("works for MsgInstantiateContract", () => {
|
|
62
|
-
// With admin
|
|
63
|
-
{
|
|
64
|
-
const msg = {
|
|
65
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
66
|
-
// @ts-ignore
|
|
67
|
-
codeId: long_1.default.fromString("12345"),
|
|
68
|
-
label: "sticky",
|
|
69
|
-
msg: (0, encoding_1.toUtf8)(`{"foo":"bar"}`),
|
|
70
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
71
|
-
};
|
|
72
|
-
const aminoMsg = new stargate_1.AminoTypes((0, aminomessages_1.createWasmAminoConverters)()).toAmino({
|
|
73
|
-
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
74
|
-
value: msg,
|
|
75
|
-
});
|
|
76
|
-
const expected = {
|
|
77
|
-
type: "wasmx/MsgInstantiateContract",
|
|
78
|
-
value: {
|
|
79
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
80
|
-
code_id: "12345",
|
|
81
|
-
label: "sticky",
|
|
82
|
-
msg: { foo: "bar" },
|
|
83
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
expect(aminoMsg).toEqual(expected);
|
|
87
|
-
}
|
|
88
|
-
// Without admin
|
|
89
|
-
{
|
|
90
|
-
const msg = {
|
|
91
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
codeId: long_1.default.fromString("12345"),
|
|
94
|
-
label: "sticky",
|
|
95
|
-
msg: (0, encoding_1.toUtf8)(`{"foo":"bar"}`),
|
|
96
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
97
|
-
};
|
|
98
|
-
const aminoMsg = new stargate_1.AminoTypes((0, aminomessages_1.createWasmAminoConverters)()).toAmino({
|
|
99
|
-
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
100
|
-
value: msg,
|
|
101
|
-
});
|
|
102
|
-
const expected = {
|
|
103
|
-
type: "wasmx/MsgInstantiateContract",
|
|
104
|
-
value: {
|
|
105
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
106
|
-
code_id: "12345",
|
|
107
|
-
label: "sticky",
|
|
108
|
-
msg: { foo: "bar" },
|
|
109
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
expect(aminoMsg).toEqual(expected);
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
it("works for MsgExecuteContract", () => {
|
|
116
|
-
const msg = {
|
|
117
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
118
|
-
contract: "cosmos1xy4yqngt0nlkdcenxymg8tenrghmek4nmqm28k",
|
|
119
|
-
msg: (0, encoding_1.toUtf8)(`{"foo":"bar"}`),
|
|
120
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
121
|
-
dependencies: [],
|
|
122
|
-
};
|
|
123
|
-
const aminoMsg = new stargate_1.AminoTypes((0, aminomessages_1.createWasmAminoConverters)()).toAmino({
|
|
124
|
-
typeUrl: "/mythos.wasmx.v1.MsgExecuteContract",
|
|
125
|
-
value: msg,
|
|
126
|
-
});
|
|
127
|
-
const expected = {
|
|
128
|
-
type: "wasmx/MsgExecuteContract",
|
|
129
|
-
value: {
|
|
130
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
131
|
-
contract: "cosmos1xy4yqngt0nlkdcenxymg8tenrghmek4nmqm28k",
|
|
132
|
-
msg: { foo: "bar" },
|
|
133
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
134
|
-
dependencies: [],
|
|
135
|
-
},
|
|
136
|
-
};
|
|
137
|
-
expect(aminoMsg).toEqual(expected);
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
describe("fromAmino", () => {
|
|
141
|
-
it("works for MsgStoreCode", () => {
|
|
142
|
-
const aminoMsg = {
|
|
143
|
-
type: "wasmx/MsgStoreCode",
|
|
144
|
-
value: {
|
|
145
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
146
|
-
byte_code: "WUVMTE9XIFNVQk1BUklORQ==",
|
|
147
|
-
metadata: { name: "", categ: [], icon: "", author: "", site: "", abi: new Uint8Array(0), jsonSchema: "" },
|
|
148
|
-
deps: [],
|
|
149
|
-
},
|
|
150
|
-
};
|
|
151
|
-
const msg = new stargate_1.AminoTypes((0, aminomessages_1.createWasmAminoConverters)()).fromAmino(aminoMsg);
|
|
152
|
-
const expectedValue = {
|
|
153
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
154
|
-
byteCode: (0, encoding_1.fromBase64)("WUVMTE9XIFNVQk1BUklORQ=="),
|
|
155
|
-
deps: [],
|
|
156
|
-
};
|
|
157
|
-
expect(msg).toEqual({
|
|
158
|
-
typeUrl: "/mythos.wasmx.v1.MsgStoreCode",
|
|
159
|
-
value: expectedValue,
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
it("works for MsgInstantiateContract", () => {
|
|
163
|
-
// With admin
|
|
164
|
-
{
|
|
165
|
-
const aminoMsg = {
|
|
166
|
-
type: "wasmx/MsgInstantiateContract",
|
|
167
|
-
value: {
|
|
168
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
169
|
-
code_id: "12345",
|
|
170
|
-
label: "sticky",
|
|
171
|
-
msg: { foo: "bar" },
|
|
172
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
173
|
-
},
|
|
174
|
-
};
|
|
175
|
-
const msg = new stargate_1.AminoTypes((0, aminomessages_1.createWasmAminoConverters)()).fromAmino(aminoMsg);
|
|
176
|
-
const expectedValue = {
|
|
177
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
178
|
-
// @ts-ignore
|
|
179
|
-
codeId: long_1.default.fromString("12345"),
|
|
180
|
-
label: "sticky",
|
|
181
|
-
msg: (0, encoding_1.toUtf8)(`{"foo":"bar"}`),
|
|
182
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
183
|
-
};
|
|
184
|
-
expect(msg).toEqual({
|
|
185
|
-
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
186
|
-
value: expectedValue,
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
// Without admin
|
|
190
|
-
{
|
|
191
|
-
const aminoMsg = {
|
|
192
|
-
type: "wasmx/MsgInstantiateContract",
|
|
193
|
-
value: {
|
|
194
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
195
|
-
code_id: "12345",
|
|
196
|
-
label: "sticky",
|
|
197
|
-
msg: { foo: "bar" },
|
|
198
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
199
|
-
},
|
|
200
|
-
};
|
|
201
|
-
const msg = new stargate_1.AminoTypes((0, aminomessages_1.createWasmAminoConverters)()).fromAmino(aminoMsg);
|
|
202
|
-
const expectedValue = {
|
|
203
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
204
|
-
// @ts-ignore
|
|
205
|
-
codeId: long_1.default.fromString("12345"),
|
|
206
|
-
label: "sticky",
|
|
207
|
-
msg: (0, encoding_1.toUtf8)(`{"foo":"bar"}`),
|
|
208
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
209
|
-
};
|
|
210
|
-
expect(msg).toEqual({
|
|
211
|
-
typeUrl: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
212
|
-
value: expectedValue,
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
it("works for MsgExecuteContract", () => {
|
|
217
|
-
const aminoMsg = {
|
|
218
|
-
type: "wasmx/MsgExecuteContract",
|
|
219
|
-
value: {
|
|
220
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
221
|
-
contract: "cosmos1xy4yqngt0nlkdcenxymg8tenrghmek4nmqm28k",
|
|
222
|
-
msg: { foo: "bar" },
|
|
223
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
224
|
-
dependencies: [],
|
|
225
|
-
},
|
|
226
|
-
};
|
|
227
|
-
const msg = new stargate_1.AminoTypes((0, aminomessages_1.createWasmAminoConverters)()).fromAmino(aminoMsg);
|
|
228
|
-
const expectedValue = {
|
|
229
|
-
sender: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
|
230
|
-
contract: "cosmos1xy4yqngt0nlkdcenxymg8tenrghmek4nmqm28k",
|
|
231
|
-
msg: (0, encoding_1.toUtf8)(`{"foo":"bar"}`),
|
|
232
|
-
funds: (0, stargate_1.coins)(1234, "ucosm"),
|
|
233
|
-
dependencies: [],
|
|
234
|
-
};
|
|
235
|
-
expect(msg).toEqual({
|
|
236
|
-
typeUrl: "/mythos.wasmx.v1.MsgExecuteContract",
|
|
237
|
-
value: expectedValue,
|
|
238
|
-
});
|
|
239
|
-
});
|
|
240
|
-
});
|
|
241
|
-
});
|
|
242
|
-
//# sourceMappingURL=aminomessages.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aminomessages.spec.js","sourceRoot":"","sources":["../../../src/modules/wasmx/aminomessages.spec.ts"],"names":[],"mappings":";;;;;AAAA,yDAAyD;AACzD,+CAAsD;AACtD,+CAAqD;AAOrD,gDAAwB;AAExB,mDAMyB;AAEzB,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;YAChC,MAAM,GAAG,GAAiB;gBACxB,MAAM,EAAE,+CAA+C;gBACvD,QAAQ,EAAE,IAAA,qBAAU,EAAC,0BAA0B,CAAC;gBAChD,IAAI,EAAE,EAAE;aACT,CAAC;YACF,MAAM,QAAQ,GAAG,IAAI,qBAAU,CAAC,IAAA,yCAAyB,GAAE,CAAC,CAAC,OAAO,CAAC;gBACnE,OAAO,EAAE,+BAA+B;gBACxC,KAAK,EAAE,GAAG;aACX,CAAC,CAAC;YACH,MAAM,QAAQ,GAAsB;gBAClC,IAAI,EAAE,oBAAoB;gBAC1B,KAAK,EAAE;oBACL,MAAM,EAAE,+CAA+C;oBACvD,S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,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/jasmine-testrunner.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
-
|
|
3
|
-
if (process.env.SES_ENABLED) {
|
|
4
|
-
require("ses/lockdown");
|
|
5
|
-
// eslint-disable-next-line no-undef
|
|
6
|
-
lockdown();
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
require("source-map-support").install();
|
|
10
|
-
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
|
11
|
-
|
|
12
|
-
// setup Jasmine
|
|
13
|
-
const Jasmine = require("jasmine");
|
|
14
|
-
const jasmine = new Jasmine();
|
|
15
|
-
jasmine.loadConfig({
|
|
16
|
-
spec_dir: "build",
|
|
17
|
-
spec_files: ["**/*.spec.js"],
|
|
18
|
-
helpers: [],
|
|
19
|
-
random: false,
|
|
20
|
-
seed: null,
|
|
21
|
-
stopSpecOnExpectationFailure: false,
|
|
22
|
-
});
|
|
23
|
-
jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 15 * 1000;
|
|
24
|
-
|
|
25
|
-
// setup reporter
|
|
26
|
-
const { SpecReporter } = require("jasmine-spec-reporter");
|
|
27
|
-
const reporter = new SpecReporter({
|
|
28
|
-
...defaultSpecReporterConfig,
|
|
29
|
-
spec: {
|
|
30
|
-
...defaultSpecReporterConfig.spec,
|
|
31
|
-
displaySuccessful: !process.argv.includes("--quiet"),
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
// initialize and execute
|
|
36
|
-
jasmine.env.clearReporters();
|
|
37
|
-
jasmine.addReporter(reporter);
|
|
38
|
-
void jasmine.execute();
|
package/karma.conf.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
const chrome = require("karma-chrome-launcher");
|
|
2
|
-
const firefox = require("karma-firefox-launcher");
|
|
3
|
-
const jasmine = require("karma-jasmine");
|
|
4
|
-
const kjhtml = require("karma-jasmine-html-reporter");
|
|
5
|
-
|
|
6
|
-
module.exports = function (config) {
|
|
7
|
-
config.set({
|
|
8
|
-
// base path that will be used to resolve all patterns (eg. files, exclude)
|
|
9
|
-
basePath: ".",
|
|
10
|
-
// registers plugins but does not activate them
|
|
11
|
-
plugins: [jasmine, kjhtml, chrome, firefox],
|
|
12
|
-
|
|
13
|
-
// frameworks to use
|
|
14
|
-
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
|
15
|
-
frameworks: ["jasmine"],
|
|
16
|
-
|
|
17
|
-
// list of files / patterns to load in the browser
|
|
18
|
-
files: ["dist/web/tests.js"],
|
|
19
|
-
|
|
20
|
-
client: {
|
|
21
|
-
jasmine: {
|
|
22
|
-
random: false,
|
|
23
|
-
timeoutInterval: 15000,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
// test results reporter to use
|
|
28
|
-
// possible values: 'dots', 'progress'
|
|
29
|
-
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
|
30
|
-
reporters: ["progress", "kjhtml"],
|
|
31
|
-
|
|
32
|
-
// web server port
|
|
33
|
-
port: 9876,
|
|
34
|
-
|
|
35
|
-
// enable / disable colors in the output (reporters and logs)
|
|
36
|
-
colors: true,
|
|
37
|
-
|
|
38
|
-
// level of logging
|
|
39
|
-
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
|
40
|
-
logLevel: config.LOG_INFO,
|
|
41
|
-
|
|
42
|
-
// enable / disable watching file and executing tests whenever any file changes
|
|
43
|
-
autoWatch: false,
|
|
44
|
-
|
|
45
|
-
// start these browsers
|
|
46
|
-
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
|
47
|
-
browsers: ["Firefox"],
|
|
48
|
-
|
|
49
|
-
browserNoActivityTimeout: 90000,
|
|
50
|
-
|
|
51
|
-
// Keep brower open for debugging. This is overridden by yarn scripts
|
|
52
|
-
singleRun: false,
|
|
53
|
-
});
|
|
54
|
-
};
|
package/src/encoding.spec.ts
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { fromBinary, toBinary } from "./encoding";
|
|
2
|
-
|
|
3
|
-
describe("encoding", () => {
|
|
4
|
-
describe("toBinary", () => {
|
|
5
|
-
it("works for objects", () => {
|
|
6
|
-
// echo -n "{}" | base64
|
|
7
|
-
expect(toBinary({})).toEqual("e30=");
|
|
8
|
-
|
|
9
|
-
// echo -n '{"swap":{"max_spread":"0.25"}}' | base64
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11
|
-
expect(toBinary({ swap: { max_spread: "0.25" } })).toEqual("eyJzd2FwIjp7Im1heF9zcHJlYWQiOiIwLjI1In19");
|
|
12
|
-
|
|
13
|
-
// echo -n '{"num":3.45,"null":null,"bool":true,"obj":{"str":"bar"}}' | base64
|
|
14
|
-
expect(
|
|
15
|
-
toBinary({ num: 3.45, null: null, bool: true, obj: { str: "bar" }, omitted: undefined }),
|
|
16
|
-
).toEqual("eyJudW0iOjMuNDUsIm51bGwiOm51bGwsImJvb2wiOnRydWUsIm9iaiI6eyJzdHIiOiJiYXIifX0=");
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it("works for strings", () => {
|
|
20
|
-
// echo -n '""' | base64
|
|
21
|
-
expect(toBinary("")).toEqual("IiI=");
|
|
22
|
-
|
|
23
|
-
// echo -n '"hi"' | base64
|
|
24
|
-
expect(toBinary("hi")).toEqual("ImhpIg==");
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it("works for arrays", () => {
|
|
28
|
-
// echo -n '[]' | base64
|
|
29
|
-
expect(toBinary([])).toEqual("W10=");
|
|
30
|
-
|
|
31
|
-
// echo -n '[1,2,3]' | base64
|
|
32
|
-
expect(toBinary([1, 2, 3])).toEqual("WzEsMiwzXQ==");
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it("works for booleans", () => {
|
|
36
|
-
// echo -n 'true' | base64
|
|
37
|
-
expect(toBinary(true)).toEqual("dHJ1ZQ==");
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
it("works for numbers", () => {
|
|
41
|
-
// echo -n '12.21' | base64
|
|
42
|
-
expect(toBinary(12.21)).toEqual("MTIuMjE=");
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
it("works for null", () => {
|
|
46
|
-
// echo -n 'null' | base64
|
|
47
|
-
expect(toBinary(null)).toEqual("bnVsbA==");
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
describe("fromBinary", () => {
|
|
52
|
-
it("works for objects", () => {
|
|
53
|
-
// echo -n "{}" | base64
|
|
54
|
-
expect(fromBinary("e30=")).toEqual({});
|
|
55
|
-
|
|
56
|
-
// echo -n '{"swap":{"max_spread":"0.25"}}' | base64
|
|
57
|
-
expect(fromBinary("eyJzd2FwIjp7Im1heF9zcHJlYWQiOiIwLjI1In19")).toEqual({
|
|
58
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
59
|
-
swap: { max_spread: "0.25" },
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
// echo -n '{"num":3.45,"null":null,"bool":true,"obj":{"str":"bar"}}' | base64
|
|
63
|
-
expect(
|
|
64
|
-
fromBinary("eyJudW0iOjMuNDUsIm51bGwiOm51bGwsImJvb2wiOnRydWUsIm9iaiI6eyJzdHIiOiJiYXIifX0="),
|
|
65
|
-
).toEqual({ num: 3.45, null: null, bool: true, obj: { str: "bar" } });
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it("works for strings", () => {
|
|
69
|
-
// echo -n '""' | base64
|
|
70
|
-
expect(fromBinary("IiI=")).toEqual("");
|
|
71
|
-
|
|
72
|
-
// echo -n '"hi"' | base64
|
|
73
|
-
expect(fromBinary("ImhpIg==")).toEqual("hi");
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
it("works for arrays", () => {
|
|
77
|
-
// echo -n '[]' | base64
|
|
78
|
-
expect(fromBinary("W10=")).toEqual([]);
|
|
79
|
-
|
|
80
|
-
// echo -n '[1,2,3]' | base64
|
|
81
|
-
expect(fromBinary("WzEsMiwzXQ==")).toEqual([1, 2, 3]);
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
it("works for booleans", () => {
|
|
85
|
-
// echo -n 'true' | base64
|
|
86
|
-
expect(fromBinary("dHJ1ZQ==")).toEqual(true);
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
it("works for numbers", () => {
|
|
90
|
-
// echo -n '12.21' | base64
|
|
91
|
-
expect(fromBinary("MTIuMjE=")).toEqual(12.21);
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
it("works for null", () => {
|
|
95
|
-
// echo -n 'null' | base64
|
|
96
|
-
expect(fromBinary("bnVsbA==")).toEqual(null);
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
});
|
package/src/encoding.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@cosmjs/encoding";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Takes a value, serializes it to JSON and encodes it as base64.
|
|
5
|
-
*
|
|
6
|
-
* This can be used for creating values of fields that have the WasmX Binary type.
|
|
7
|
-
*/
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
9
|
-
export function toBinary(obj: any): string {
|
|
10
|
-
return toBase64(toUtf8(JSON.stringify(obj)));
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Takes a base64 string, decodes it and parses the content from JSON to an object.
|
|
15
|
-
*
|
|
16
|
-
* This can be used for parsing the values of a WasmX Binary field.
|
|
17
|
-
*/
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
19
|
-
export function fromBinary(base64: string): any {
|
|
20
|
-
return JSON.parse(fromUtf8(fromBase64(base64)));
|
|
21
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export { Code, CodeDetails, Contract, ContractCodeHistoryEntry, WasmXClient } from "./wasmxclient";
|
|
2
|
-
export { fromBinary, toBinary } from "./encoding";
|
|
3
|
-
export {
|
|
4
|
-
wasmXTypes,
|
|
5
|
-
createWasmAminoConverters,
|
|
6
|
-
isMsgExecuteEncodeObject,
|
|
7
|
-
isMsgInstantiateContractEncodeObject,
|
|
8
|
-
isMsgStoreCodeEncodeObject,
|
|
9
|
-
JsonObject,
|
|
10
|
-
MsgExecuteContractEncodeObject,
|
|
11
|
-
MsgInstantiateContractEncodeObject,
|
|
12
|
-
MsgStoreCodeEncodeObject,
|
|
13
|
-
setupWasmExtension,
|
|
14
|
-
WasmExtension,
|
|
15
|
-
} from "./modules";
|
|
16
|
-
export {
|
|
17
|
-
ChangeAdminResult,
|
|
18
|
-
ExecuteInstruction,
|
|
19
|
-
ExecuteResult,
|
|
20
|
-
InstantiateOptions,
|
|
21
|
-
InstantiateResult,
|
|
22
|
-
MigrateResult,
|
|
23
|
-
SigningWasmXClient,
|
|
24
|
-
SigningWasmXClientOptions,
|
|
25
|
-
UploadResult,
|
|
26
|
-
} from "./signingwasmxclient";
|
|
27
|
-
|
|
28
|
-
// Re-exported because this is part of the WasmXClient/SigningWasmXClient APIs
|
|
29
|
-
export { Attribute, DeliverTxResponse, Event, IndexedTx } from "@cosmjs/stargate";
|
|
30
|
-
export { HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
package/src/modules/index.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
AminoMsgExecuteContract,
|
|
3
|
-
AminoMsgInstantiateContract,
|
|
4
|
-
AminoMsgStoreCode,
|
|
5
|
-
AminoMsgDeployCode,
|
|
6
|
-
wasmXTypes,
|
|
7
|
-
createWasmAminoConverters,
|
|
8
|
-
} from "./wasmx/aminomessages";
|
|
9
|
-
export {
|
|
10
|
-
isMsgExecuteEncodeObject,
|
|
11
|
-
isMsgInstantiateContractEncodeObject,
|
|
12
|
-
isMsgStoreCodeEncodeObject,
|
|
13
|
-
isMsgDeployCodeEncodeObject,
|
|
14
|
-
MsgExecuteContractEncodeObject,
|
|
15
|
-
MsgInstantiateContractEncodeObject,
|
|
16
|
-
MsgStoreCodeEncodeObject,
|
|
17
|
-
MsgDeployCodeEncodeObject,
|
|
18
|
-
wasmTypes,
|
|
19
|
-
} from "./wasmx/messages";
|
|
20
|
-
export { JsonObject, setupWasmExtension, WasmExtension } from "./wasmx/queries";
|