@ark-us/wasmxjs 0.0.2 → 0.0.4
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/README.md +1 -1
- package/main/codegen/index.js +10 -10
- package/main/codegen/{wasmx → mythos}/bundle.js +32 -26
- package/main/codegen/{wasmx → mythos}/client.js +19 -19
- package/main/codegen/{wasmx → mythos}/index.js +9 -9
- package/main/codegen/{wasmx → mythos}/rpc.query.js +16 -10
- package/main/codegen/{wasmx → mythos}/rpc.tx.js +18 -12
- package/main/codegen/{wasmx/wasmx → mythos/wasmx/v1}/contract.js +1 -1
- package/main/codegen/{wasmx/wasmx → mythos/wasmx/v1}/genesis.js +1 -1
- package/main/codegen/{wasmx/wasmx → mythos/wasmx/v1}/query.js +3 -3
- package/main/codegen/{wasmx/wasmx → mythos/wasmx/v1}/query.rpc.Query.js +9 -9
- package/main/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.amino.js +17 -17
- package/main/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.js +2 -2
- package/main/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.registry.js +41 -41
- package/main/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.rpc.msg.js +8 -8
- package/main/codegen/{wasmx/websrv → mythos/websrv/v1}/genesis.js +1 -1
- package/main/codegen/{wasmx/websrv → mythos/websrv/v1}/params.js +1 -1
- package/main/codegen/{wasmx/websrv → mythos/websrv/v1}/proposal.js +1 -1
- package/main/codegen/{wasmx/websrv → mythos/websrv/v1}/query.js +2 -2
- package/main/codegen/{wasmx/websrv → mythos/websrv/v1}/query.rpc.Query.js +7 -7
- package/main/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.amino.js +7 -7
- package/main/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.js +1 -1
- package/main/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.registry.js +16 -16
- package/main/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.rpc.msg.js +3 -3
- package/main/codegen/tendermint/bundle.js +17 -17
- package/module/codegen/index.js +3 -3
- package/module/codegen/mythos/bundle.js +35 -0
- package/module/codegen/{wasmx → mythos}/client.js +11 -11
- package/module/codegen/mythos/index.js +11 -0
- package/module/codegen/{wasmx → mythos}/rpc.query.js +7 -3
- package/module/codegen/mythos/rpc.tx.js +12 -0
- package/module/codegen/{wasmx/wasmx → mythos/wasmx/v1}/contract.js +1 -1
- package/module/codegen/{wasmx/wasmx → mythos/wasmx/v1}/genesis.js +1 -1
- package/module/codegen/{wasmx/wasmx → mythos/wasmx/v1}/query.js +3 -3
- package/module/codegen/{wasmx/wasmx → mythos/wasmx/v1}/query.rpc.Query.js +9 -9
- package/module/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.amino.js +17 -17
- package/module/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.js +2 -2
- package/module/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.registry.js +41 -41
- package/module/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.rpc.msg.js +8 -8
- package/module/codegen/{wasmx/websrv → mythos/websrv/v1}/genesis.js +1 -1
- package/module/codegen/{wasmx/websrv → mythos/websrv/v1}/params.js +1 -1
- package/module/codegen/{wasmx/websrv → mythos/websrv/v1}/proposal.js +1 -1
- package/module/codegen/{wasmx/websrv → mythos/websrv/v1}/query.js +2 -2
- package/module/codegen/{wasmx/websrv → mythos/websrv/v1}/query.rpc.Query.js +7 -7
- package/module/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.amino.js +7 -7
- package/module/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.js +1 -1
- package/module/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.registry.js +16 -16
- package/module/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.rpc.msg.js +3 -3
- package/module/codegen/tendermint/bundle.js +17 -17
- package/package.json +1 -1
- package/src/codegen/index.ts +3 -3
- package/src/codegen/mythos/bundle.ts +49 -0
- package/src/codegen/{wasmx → mythos}/client.ts +12 -12
- package/src/codegen/mythos/index.ts +11 -0
- package/src/codegen/{wasmx → mythos}/rpc.query.ts +7 -3
- package/src/codegen/mythos/rpc.tx.ts +15 -0
- package/src/codegen/{wasmx/wasmx → mythos/wasmx/v1}/contract.ts +1 -1
- package/src/codegen/{wasmx/wasmx → mythos/wasmx/v1}/genesis.ts +1 -1
- package/src/codegen/{wasmx/wasmx → mythos/wasmx/v1}/query.rpc.Query.ts +10 -10
- package/src/codegen/{wasmx/wasmx → mythos/wasmx/v1}/query.ts +3 -3
- package/src/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.amino.ts +25 -25
- package/src/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.registry.ts +41 -41
- package/src/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.rpc.msg.ts +9 -9
- package/src/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.ts +2 -2
- package/src/codegen/{wasmx/websrv → mythos/websrv/v1}/genesis.ts +1 -1
- package/src/codegen/{wasmx/websrv → mythos/websrv/v1}/params.ts +1 -1
- package/src/codegen/{wasmx/websrv → mythos/websrv/v1}/proposal.ts +1 -1
- package/src/codegen/{wasmx/websrv → mythos/websrv/v1}/query.rpc.Query.ts +8 -8
- package/src/codegen/{wasmx/websrv → mythos/websrv/v1}/query.ts +2 -2
- package/src/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.amino.ts +10 -10
- package/src/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.registry.ts +16 -16
- package/src/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.rpc.msg.ts +4 -4
- package/src/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.ts +1 -1
- package/src/codegen/tendermint/bundle.ts +22 -22
- package/types/codegen/index.d.ts +3 -3
- package/types/codegen/mythos/bundle.d.ts +1039 -0
- package/types/codegen/{wasmx → mythos}/client.d.ts +37 -37
- package/types/codegen/mythos/index.d.ts +11 -0
- package/types/codegen/mythos/rpc.query.d.ts +45 -0
- package/types/codegen/mythos/rpc.tx.d.ts +13 -0
- package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/contract.d.ts +1 -1
- package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/genesis.d.ts +1 -1
- package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/query.d.ts +3 -3
- package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/query.rpc.Query.d.ts +1 -1
- package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.amino.d.ts +16 -16
- package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.d.ts +2 -2
- package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.rpc.msg.d.ts +1 -1
- package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/query.d.ts +2 -2
- package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/query.rpc.Query.d.ts +1 -1
- package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.amino.d.ts +6 -6
- package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.d.ts +1 -1
- package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.rpc.msg.d.ts +1 -1
- package/types/codegen/tendermint/bundle.d.ts +456 -456
- package/module/codegen/wasmx/bundle.js +0 -29
- package/module/codegen/wasmx/index.js +0 -11
- package/module/codegen/wasmx/rpc.tx.js +0 -8
- package/src/codegen/wasmx/bundle.ts +0 -45
- package/src/codegen/wasmx/index.ts +0 -11
- package/src/codegen/wasmx/rpc.tx.ts +0 -11
- package/types/codegen/wasmx/bundle.d.ts +0 -1027
- package/types/codegen/wasmx/index.d.ts +0 -11
- package/types/codegen/wasmx/lcd.d.ts +0 -14
- package/types/codegen/wasmx/rpc.query.d.ts +0 -41
- package/types/codegen/wasmx/rpc.tx.d.ts +0 -9
- package/types/codegen/wasmx/wasmx/query.lcd.d.ts +0 -17
- /package/main/codegen/{wasmx/wasmx → mythos/wasmx/v1}/params.js +0 -0
- /package/module/codegen/{wasmx/wasmx → mythos/wasmx/v1}/params.js +0 -0
- /package/src/codegen/{wasmx/wasmx → mythos/wasmx/v1}/params.ts +0 -0
- /package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/params.d.ts +0 -0
- /package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.registry.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/genesis.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/params.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/proposal.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.registry.d.ts +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
4
|
+
import * as _28 from "./abci/types";
|
|
5
|
+
import * as _29 from "./crypto/keys";
|
|
6
|
+
import * as _30 from "./crypto/proof";
|
|
7
|
+
import * as _31 from "./libs/bits/types";
|
|
8
|
+
import * as _32 from "./p2p/types";
|
|
9
|
+
import * as _33 from "./types/block";
|
|
10
|
+
import * as _34 from "./types/evidence";
|
|
11
|
+
import * as _35 from "./types/params";
|
|
12
|
+
import * as _36 from "./types/types";
|
|
13
|
+
import * as _37 from "./types/validator";
|
|
14
|
+
import * as _38 from "./version/types";
|
|
15
15
|
export let tendermint;
|
|
16
16
|
(function (_tendermint) {
|
|
17
|
-
const abci = _tendermint.abci = _objectSpread({},
|
|
18
|
-
const crypto = _tendermint.crypto = _objectSpread(_objectSpread({},
|
|
17
|
+
const abci = _tendermint.abci = _objectSpread({}, _28);
|
|
18
|
+
const crypto = _tendermint.crypto = _objectSpread(_objectSpread({}, _29), _30);
|
|
19
19
|
let libs;
|
|
20
20
|
(function (_libs) {
|
|
21
|
-
const bits = _libs.bits = _objectSpread({},
|
|
21
|
+
const bits = _libs.bits = _objectSpread({}, _31);
|
|
22
22
|
})(libs || (libs = _tendermint.libs || (_tendermint.libs = {})));
|
|
23
|
-
const p2p = _tendermint.p2p = _objectSpread({},
|
|
24
|
-
const types = _tendermint.types = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},
|
|
25
|
-
const version = _tendermint.version = _objectSpread({},
|
|
23
|
+
const p2p = _tendermint.p2p = _objectSpread({}, _32);
|
|
24
|
+
const types = _tendermint.types = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _33), _34), _35), _36), _37);
|
|
25
|
+
const version = _tendermint.version = _objectSpread({}, _38);
|
|
26
26
|
})(tendermint || (tendermint = {}));
|
package/package.json
CHANGED
package/src/codegen/index.ts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
export * from "./cosmos/bundle";
|
|
8
8
|
export * from "./gogoproto/bundle";
|
|
9
9
|
export * from "./google/bundle";
|
|
10
|
+
export * from "./mythos/bundle";
|
|
11
|
+
export * from "./mythos/client";
|
|
10
12
|
export * from "./tendermint/bundle";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./wasmx/client";
|
|
13
|
-
export * from "./wasmx/index";
|
|
13
|
+
export * from "./mythos/index";
|
|
14
14
|
export * from "./extern";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as _18 from "./wasmx/v1/contract";
|
|
2
|
+
import * as _19 from "./wasmx/v1/genesis";
|
|
3
|
+
import * as _20 from "./wasmx/v1/params";
|
|
4
|
+
import * as _21 from "./wasmx/v1/query";
|
|
5
|
+
import * as _22 from "./wasmx/v1/tx";
|
|
6
|
+
import * as _23 from "./websrv/v1/genesis";
|
|
7
|
+
import * as _24 from "./websrv/v1/params";
|
|
8
|
+
import * as _25 from "./websrv/v1/proposal";
|
|
9
|
+
import * as _26 from "./websrv/v1/query";
|
|
10
|
+
import * as _27 from "./websrv/v1/tx";
|
|
11
|
+
import * as _40 from "./wasmx/v1/tx.amino";
|
|
12
|
+
import * as _41 from "./websrv/v1/tx.amino";
|
|
13
|
+
import * as _42 from "./wasmx/v1/tx.registry";
|
|
14
|
+
import * as _43 from "./websrv/v1/tx.registry";
|
|
15
|
+
import * as _44 from "./wasmx/v1/query.rpc.Query";
|
|
16
|
+
import * as _45 from "./websrv/v1/query.rpc.Query";
|
|
17
|
+
import * as _46 from "./wasmx/v1/tx.rpc.msg";
|
|
18
|
+
import * as _47 from "./websrv/v1/tx.rpc.msg";
|
|
19
|
+
import * as _49 from "./rpc.query";
|
|
20
|
+
import * as _50 from "./rpc.tx";
|
|
21
|
+
export namespace mythos {
|
|
22
|
+
export namespace wasmx {
|
|
23
|
+
export const v1 = { ..._18,
|
|
24
|
+
..._19,
|
|
25
|
+
..._20,
|
|
26
|
+
..._21,
|
|
27
|
+
..._22,
|
|
28
|
+
..._40,
|
|
29
|
+
..._42,
|
|
30
|
+
..._44,
|
|
31
|
+
..._46
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export namespace websrv {
|
|
35
|
+
export const v1 = { ..._23,
|
|
36
|
+
..._24,
|
|
37
|
+
..._25,
|
|
38
|
+
..._26,
|
|
39
|
+
..._27,
|
|
40
|
+
..._41,
|
|
41
|
+
..._43,
|
|
42
|
+
..._45,
|
|
43
|
+
..._47
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export const ClientFactory = { ..._49,
|
|
47
|
+
..._50
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
|
|
2
2
|
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
3
3
|
import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
export const
|
|
9
|
-
...
|
|
4
|
+
import * as mythosWasmxV1TxRegistry from "./wasmx/v1/tx.registry";
|
|
5
|
+
import * as mythosWebsrvV1TxRegistry from "./websrv/v1/tx.registry";
|
|
6
|
+
import * as mythosWasmxV1TxAmino from "./wasmx/v1/tx.amino";
|
|
7
|
+
import * as mythosWebsrvV1TxAmino from "./websrv/v1/tx.amino";
|
|
8
|
+
export const mythosAminoConverters = { ...mythosWasmxV1TxAmino.AminoConverter,
|
|
9
|
+
...mythosWebsrvV1TxAmino.AminoConverter
|
|
10
10
|
};
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
11
|
+
export const mythosProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...mythosWasmxV1TxRegistry.registry, ...mythosWebsrvV1TxRegistry.registry];
|
|
12
|
+
export const getSigningMythosClientOptions = ({
|
|
13
13
|
defaultTypes = defaultRegistryTypes
|
|
14
14
|
}: {
|
|
15
15
|
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
|
@@ -17,15 +17,15 @@ export const getSigningWasmxClientOptions = ({
|
|
|
17
17
|
registry: Registry;
|
|
18
18
|
aminoTypes: AminoTypes;
|
|
19
19
|
} => {
|
|
20
|
-
const registry = new Registry([...defaultTypes, ...
|
|
21
|
-
const aminoTypes = new AminoTypes({ ...
|
|
20
|
+
const registry = new Registry([...defaultTypes, ...mythosProtoRegistry]);
|
|
21
|
+
const aminoTypes = new AminoTypes({ ...mythosAminoConverters
|
|
22
22
|
});
|
|
23
23
|
return {
|
|
24
24
|
registry,
|
|
25
25
|
aminoTypes
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export const
|
|
28
|
+
export const getSigningMythosClient = async ({
|
|
29
29
|
rpcEndpoint,
|
|
30
30
|
signer,
|
|
31
31
|
defaultTypes = defaultRegistryTypes
|
|
@@ -37,7 +37,7 @@ export const getSigningWasmxClient = async ({
|
|
|
37
37
|
const {
|
|
38
38
|
registry,
|
|
39
39
|
aminoTypes
|
|
40
|
-
} =
|
|
40
|
+
} = getSigningMythosClientOptions({
|
|
41
41
|
defaultTypes
|
|
42
42
|
});
|
|
43
43
|
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./wasmx/v1/contract";
|
|
2
|
+
export * from "./wasmx/v1/genesis";
|
|
3
|
+
export * from "./wasmx/v1/params";
|
|
4
|
+
export * from "./wasmx/v1/query";
|
|
5
|
+
export * from "./wasmx/v1/tx";
|
|
6
|
+
export * from "./wasmx/v1/tx.amino";
|
|
7
|
+
export * from "./wasmx/v1/tx.registry";
|
|
8
|
+
export * from "./wasmx/v1/query.rpc.Query";
|
|
9
|
+
export * from "./wasmx/v1/tx.rpc.msg";
|
|
10
|
+
export * from "./rpc.query";
|
|
11
|
+
export * from "./rpc.tx";
|
|
@@ -15,9 +15,13 @@ export const createRPCQueryClient = async ({
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
wasmx:
|
|
20
|
-
|
|
18
|
+
mythos: {
|
|
19
|
+
wasmx: {
|
|
20
|
+
v1: (await import("./wasmx/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
21
|
+
},
|
|
22
|
+
websrv: {
|
|
23
|
+
v1: (await import("./websrv/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
24
|
+
}
|
|
21
25
|
}
|
|
22
26
|
};
|
|
23
27
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Rpc } from "../helpers";
|
|
2
|
+
export const createRPCMsgClient = async ({
|
|
3
|
+
rpc
|
|
4
|
+
}: {
|
|
5
|
+
rpc: Rpc;
|
|
6
|
+
}) => ({
|
|
7
|
+
mythos: {
|
|
8
|
+
wasmx: {
|
|
9
|
+
v1: new (await import("./wasmx/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
10
|
+
},
|
|
11
|
+
websrv: {
|
|
12
|
+
v1: new (await import("./websrv/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
import { isSet, bytesFromBase64, base64FromBytes, Long } from "
|
|
2
|
+
import { isSet, bytesFromBase64, base64FromBytes, Long } from "../../../helpers";
|
|
3
3
|
/** ContractStorage */
|
|
4
4
|
|
|
5
5
|
export interface ContractStorage {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Params, ParamsSDKType } from "./params";
|
|
2
2
|
import { CodeInfo, CodeInfoSDKType, CodeMetadata, CodeMetadataSDKType, ContractInfo, ContractInfoSDKType, ContractStorage, ContractStorageSDKType } from "./contract";
|
|
3
3
|
import * as _m0 from "protobufjs/minimal";
|
|
4
|
-
import { isSet, bytesFromBase64, base64FromBytes, Long } from "
|
|
4
|
+
import { isSet, bytesFromBase64, base64FromBytes, Long } from "../../../helpers";
|
|
5
5
|
/** GenesisState defines the wasmx module's genesis state. */
|
|
6
6
|
|
|
7
7
|
export interface GenesisState {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rpc } from "
|
|
1
|
+
import { Rpc } from "../../../helpers";
|
|
2
2
|
import * as _m0 from "protobufjs/minimal";
|
|
3
3
|
import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate";
|
|
4
4
|
import { QueryContractInfoRequest, QueryContractInfoResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryAllContractStateRequest, QueryAllContractStateResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractCallRequest, QuerySmartContractCallResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryParamsRequest, QueryParamsResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse } from "./query";
|
|
@@ -50,37 +50,37 @@ export class QueryClientImpl implements Query {
|
|
|
50
50
|
|
|
51
51
|
contractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse> {
|
|
52
52
|
const data = QueryContractInfoRequest.encode(request).finish();
|
|
53
|
-
const promise = this.rpc.request("
|
|
53
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "ContractInfo", data);
|
|
54
54
|
return promise.then(data => QueryContractInfoResponse.decode(new _m0.Reader(data)));
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
contractsByCode(request: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponse> {
|
|
58
58
|
const data = QueryContractsByCodeRequest.encode(request).finish();
|
|
59
|
-
const promise = this.rpc.request("
|
|
59
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "ContractsByCode", data);
|
|
60
60
|
return promise.then(data => QueryContractsByCodeResponse.decode(new _m0.Reader(data)));
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
allContractState(request: QueryAllContractStateRequest): Promise<QueryAllContractStateResponse> {
|
|
64
64
|
const data = QueryAllContractStateRequest.encode(request).finish();
|
|
65
|
-
const promise = this.rpc.request("
|
|
65
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "AllContractState", data);
|
|
66
66
|
return promise.then(data => QueryAllContractStateResponse.decode(new _m0.Reader(data)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
rawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse> {
|
|
70
70
|
const data = QueryRawContractStateRequest.encode(request).finish();
|
|
71
|
-
const promise = this.rpc.request("
|
|
71
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "RawContractState", data);
|
|
72
72
|
return promise.then(data => QueryRawContractStateResponse.decode(new _m0.Reader(data)));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
smartContractCall(request: QuerySmartContractCallRequest): Promise<QuerySmartContractCallResponse> {
|
|
76
76
|
const data = QuerySmartContractCallRequest.encode(request).finish();
|
|
77
|
-
const promise = this.rpc.request("
|
|
77
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "SmartContractCall", data);
|
|
78
78
|
return promise.then(data => QuerySmartContractCallResponse.decode(new _m0.Reader(data)));
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
code(request: QueryCodeRequest): Promise<QueryCodeResponse> {
|
|
82
82
|
const data = QueryCodeRequest.encode(request).finish();
|
|
83
|
-
const promise = this.rpc.request("
|
|
83
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "Code", data);
|
|
84
84
|
return promise.then(data => QueryCodeResponse.decode(new _m0.Reader(data)));
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -88,19 +88,19 @@ export class QueryClientImpl implements Query {
|
|
|
88
88
|
pagination: undefined
|
|
89
89
|
}): Promise<QueryCodesResponse> {
|
|
90
90
|
const data = QueryCodesRequest.encode(request).finish();
|
|
91
|
-
const promise = this.rpc.request("
|
|
91
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "Codes", data);
|
|
92
92
|
return promise.then(data => QueryCodesResponse.decode(new _m0.Reader(data)));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
params(request: QueryParamsRequest = {}): Promise<QueryParamsResponse> {
|
|
96
96
|
const data = QueryParamsRequest.encode(request).finish();
|
|
97
|
-
const promise = this.rpc.request("
|
|
97
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "Params", data);
|
|
98
98
|
return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data)));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
contractsByCreator(request: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponse> {
|
|
102
102
|
const data = QueryContractsByCreatorRequest.encode(request).finish();
|
|
103
|
-
const promise = this.rpc.request("
|
|
103
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "ContractsByCreator", data);
|
|
104
104
|
return promise.then(data => QueryContractsByCreatorResponse.decode(new _m0.Reader(data)));
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "
|
|
2
|
-
import { Coin, CoinSDKType } from "
|
|
1
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
2
|
+
import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
|
|
3
3
|
import { ContractInfo, ContractInfoSDKType, ContractStorage, ContractStorageSDKType } from "./contract";
|
|
4
4
|
import { Params, ParamsSDKType } from "./params";
|
|
5
5
|
import * as _m0 from "protobufjs/minimal";
|
|
6
|
-
import { isSet, Long, bytesFromBase64, base64FromBytes } from "
|
|
6
|
+
import { isSet, Long, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
7
7
|
/**
|
|
8
8
|
* QueryContractInfoRequest is the request type for the Query/ContractInfo RPC
|
|
9
9
|
* method
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { AminoMsg } from "@cosmjs/amino";
|
|
2
2
|
import { fromUtf8, toUtf8 } from "@cosmjs/encoding";
|
|
3
|
-
import { Long } from "
|
|
3
|
+
import { Long } from "../../../helpers";
|
|
4
4
|
import { MsgStoreCode, MsgStoreCodeEvm, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgExecuteWithOriginContract, MsgExecuteDelegateContract, MsgCompileContract } from "./tx";
|
|
5
5
|
export interface AminoMsgStoreCode extends AminoMsg {
|
|
6
|
-
type: "/
|
|
6
|
+
type: "/mythos.wasmx.v1.MsgStoreCode";
|
|
7
7
|
value: {
|
|
8
8
|
sender: string;
|
|
9
9
|
wasm_byte_code: Uint8Array;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export interface AminoMsgStoreCodeEvm extends AminoMsg {
|
|
13
|
-
type: "/
|
|
13
|
+
type: "/mythos.wasmx.v1.MsgStoreCodeEvm";
|
|
14
14
|
value: {
|
|
15
15
|
sender: string;
|
|
16
16
|
evm_byte_code: Uint8Array;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
export interface AminoMsgInstantiateContract extends AminoMsg {
|
|
20
|
-
type: "/
|
|
20
|
+
type: "/mythos.wasmx.v1.MsgInstantiateContract";
|
|
21
21
|
value: {
|
|
22
22
|
sender: string;
|
|
23
23
|
code_id: string;
|
|
@@ -30,7 +30,7 @@ export interface AminoMsgInstantiateContract extends AminoMsg {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export interface AminoMsgInstantiateContract2 extends AminoMsg {
|
|
33
|
-
type: "/
|
|
33
|
+
type: "/mythos.wasmx.v1.MsgInstantiateContract2";
|
|
34
34
|
value: {
|
|
35
35
|
sender: string;
|
|
36
36
|
code_id: string;
|
|
@@ -45,7 +45,7 @@ export interface AminoMsgInstantiateContract2 extends AminoMsg {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
export interface AminoMsgExecuteContract extends AminoMsg {
|
|
48
|
-
type: "/
|
|
48
|
+
type: "/mythos.wasmx.v1.MsgExecuteContract";
|
|
49
49
|
value: {
|
|
50
50
|
sender: string;
|
|
51
51
|
contract: string;
|
|
@@ -58,7 +58,7 @@ export interface AminoMsgExecuteContract extends AminoMsg {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
export interface AminoMsgExecuteWithOriginContract extends AminoMsg {
|
|
61
|
-
type: "/
|
|
61
|
+
type: "/mythos.wasmx.v1.MsgExecuteWithOriginContract";
|
|
62
62
|
value: {
|
|
63
63
|
origin: string;
|
|
64
64
|
sender: string;
|
|
@@ -71,7 +71,7 @@ export interface AminoMsgExecuteWithOriginContract extends AminoMsg {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
export interface AminoMsgExecuteDelegateContract extends AminoMsg {
|
|
74
|
-
type: "/
|
|
74
|
+
type: "/mythos.wasmx.v1.MsgExecuteDelegateContract";
|
|
75
75
|
value: {
|
|
76
76
|
origin: string;
|
|
77
77
|
sender: string;
|
|
@@ -86,15 +86,15 @@ export interface AminoMsgExecuteDelegateContract extends AminoMsg {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
export interface AminoMsgCompileContract extends AminoMsg {
|
|
89
|
-
type: "/
|
|
89
|
+
type: "/mythos.wasmx.v1.MsgCompileContract";
|
|
90
90
|
value: {
|
|
91
91
|
sender: string;
|
|
92
92
|
codeId: string;
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
export const AminoConverter = {
|
|
96
|
-
"/
|
|
97
|
-
aminoType: "/
|
|
96
|
+
"/mythos.wasmx.v1.MsgStoreCode": {
|
|
97
|
+
aminoType: "/mythos.wasmx.v1.MsgStoreCode",
|
|
98
98
|
toAmino: ({
|
|
99
99
|
sender,
|
|
100
100
|
wasmByteCode
|
|
@@ -114,8 +114,8 @@ export const AminoConverter = {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
|
-
"/
|
|
118
|
-
aminoType: "/
|
|
117
|
+
"/mythos.wasmx.v1.MsgStoreCodeEvm": {
|
|
118
|
+
aminoType: "/mythos.wasmx.v1.MsgStoreCodeEvm",
|
|
119
119
|
toAmino: ({
|
|
120
120
|
sender,
|
|
121
121
|
evmByteCode
|
|
@@ -135,8 +135,8 @@ export const AminoConverter = {
|
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
|
-
"/
|
|
139
|
-
aminoType: "/
|
|
138
|
+
"/mythos.wasmx.v1.MsgInstantiateContract": {
|
|
139
|
+
aminoType: "/mythos.wasmx.v1.MsgInstantiateContract",
|
|
140
140
|
toAmino: ({
|
|
141
141
|
sender,
|
|
142
142
|
codeId,
|
|
@@ -174,8 +174,8 @@ export const AminoConverter = {
|
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
|
-
"/
|
|
178
|
-
aminoType: "/
|
|
177
|
+
"/mythos.wasmx.v1.MsgInstantiateContract2": {
|
|
178
|
+
aminoType: "/mythos.wasmx.v1.MsgInstantiateContract2",
|
|
179
179
|
toAmino: ({
|
|
180
180
|
sender,
|
|
181
181
|
codeId,
|
|
@@ -221,8 +221,8 @@ export const AminoConverter = {
|
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
|
-
"/
|
|
225
|
-
aminoType: "/
|
|
224
|
+
"/mythos.wasmx.v1.MsgExecuteContract": {
|
|
225
|
+
aminoType: "/mythos.wasmx.v1.MsgExecuteContract",
|
|
226
226
|
toAmino: ({
|
|
227
227
|
sender,
|
|
228
228
|
contract,
|
|
@@ -260,8 +260,8 @@ export const AminoConverter = {
|
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
|
-
"/
|
|
264
|
-
aminoType: "/
|
|
263
|
+
"/mythos.wasmx.v1.MsgExecuteWithOriginContract": {
|
|
264
|
+
aminoType: "/mythos.wasmx.v1.MsgExecuteWithOriginContract",
|
|
265
265
|
toAmino: ({
|
|
266
266
|
origin,
|
|
267
267
|
sender,
|
|
@@ -299,8 +299,8 @@ export const AminoConverter = {
|
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
|
-
"/
|
|
303
|
-
aminoType: "/
|
|
302
|
+
"/mythos.wasmx.v1.MsgExecuteDelegateContract": {
|
|
303
|
+
aminoType: "/mythos.wasmx.v1.MsgExecuteDelegateContract",
|
|
304
304
|
toAmino: ({
|
|
305
305
|
origin,
|
|
306
306
|
sender,
|
|
@@ -346,8 +346,8 @@ export const AminoConverter = {
|
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
348
|
},
|
|
349
|
-
"/
|
|
350
|
-
aminoType: "/
|
|
349
|
+
"/mythos.wasmx.v1.MsgCompileContract": {
|
|
350
|
+
aminoType: "/mythos.wasmx.v1.MsgCompileContract",
|
|
351
351
|
toAmino: ({
|
|
352
352
|
sender,
|
|
353
353
|
codeId
|