injectivejs 1.6.2 → 1.6.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 +373 -2
- package/binary.d.ts +1 -1
- package/binary.js +1 -1
- package/cosmos/authz/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/authz/v1beta1/tx.registry.js +67 -0
- package/cosmos/bank/v1beta1/tx.registry.d.ts +59 -0
- package/cosmos/bank/v1beta1/tx.registry.js +85 -0
- package/cosmos/client.d.ts +13 -0
- package/cosmos/client.js +59 -0
- package/cosmos/distribution/v1beta1/tx.registry.d.ts +95 -0
- package/cosmos/distribution/v1beta1/tx.registry.js +139 -0
- package/cosmos/feegrant/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/feegrant/v1beta1/tx.registry.js +67 -0
- package/cosmos/gov/v1/tx.registry.d.ts +95 -0
- package/cosmos/gov/v1/tx.registry.js +139 -0
- package/cosmos/gov/v1beta1/tx.registry.d.ts +59 -0
- package/cosmos/gov/v1beta1/tx.registry.js +85 -0
- package/cosmos/group/v1/tx.registry.d.ts +179 -0
- package/cosmos/group/v1/tx.registry.js +265 -0
- package/cosmos/staking/v1beta1/tx.registry.d.ts +95 -0
- package/cosmos/staking/v1beta1/tx.registry.js +139 -0
- package/cosmos/vesting/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/vesting/v1beta1/tx.registry.js +67 -0
- package/cosmwasm/client.d.ts +16 -0
- package/cosmwasm/client.js +53 -0
- package/cosmwasm/wasm/v1/tx.registry.d.ts +215 -0
- package/cosmwasm/wasm/v1/tx.registry.js +319 -0
- package/esm/binary.js +1 -1
- package/esm/cosmos/authz/v1beta1/tx.registry.js +64 -0
- package/esm/cosmos/bank/v1beta1/tx.registry.js +82 -0
- package/esm/cosmos/client.js +31 -0
- package/esm/cosmos/distribution/v1beta1/tx.registry.js +136 -0
- package/esm/cosmos/feegrant/v1beta1/tx.registry.js +64 -0
- package/esm/cosmos/gov/v1/tx.registry.js +136 -0
- package/esm/cosmos/gov/v1beta1/tx.registry.js +82 -0
- package/esm/cosmos/group/v1/tx.registry.js +262 -0
- package/esm/cosmos/staking/v1beta1/tx.registry.js +136 -0
- package/esm/cosmos/vesting/v1beta1/tx.registry.js +64 -0
- package/esm/cosmwasm/client.js +25 -0
- package/esm/cosmwasm/wasm/v1/tx.registry.js +316 -0
- package/esm/extern.js +1 -1
- package/esm/helper-func-types.js +1 -1
- package/esm/helpers.js +1 -1
- package/esm/ibc/applications/transfer/v1/tx.registry.js +46 -0
- package/esm/ibc/client.js +28 -0
- package/esm/ibc/core/channel/v1/tx.registry.js +352 -0
- package/esm/ibc/core/client/v1/tx.registry.js +136 -0
- package/esm/ibc/core/connection/v1/tx.registry.js +100 -0
- package/esm/injective/auction/v1beta1/tx.registry.js +46 -0
- package/esm/injective/client.js +33 -0
- package/esm/injective/exchange/v1beta1/tx.registry.js +640 -0
- package/esm/injective/insurance/v1beta1/tx.registry.js +82 -0
- package/esm/injective/ocr/v1beta1/tx.registry.js +172 -0
- package/esm/injective/oracle/v1beta1/tx.registry.js +154 -0
- package/esm/injective/peggy/v1/msgs.registry.js +262 -0
- package/esm/injective/permissions/v1beta1/tx.registry.js +136 -0
- package/esm/injective/tokenfactory/v1beta1/tx.registry.js +118 -0
- package/esm/injective/wasmx/v1/tx.registry.js +118 -0
- package/esm/registry.js +1 -1
- package/esm/types.js +1 -1
- package/esm/utf8.js +1 -1
- package/esm/varint.js +1 -1
- package/extern.d.ts +1 -1
- package/extern.js +1 -1
- package/helper-func-types.d.ts +1 -1
- package/helper-func-types.js +1 -1
- package/helpers.d.ts +1 -1
- package/helpers.js +1 -1
- package/ibc/applications/transfer/v1/tx.registry.d.ts +35 -0
- package/ibc/applications/transfer/v1/tx.registry.js +49 -0
- package/ibc/client.d.ts +16 -0
- package/ibc/client.js +56 -0
- package/ibc/core/channel/v1/tx.registry.d.ts +239 -0
- package/ibc/core/channel/v1/tx.registry.js +355 -0
- package/ibc/core/client/v1/tx.registry.d.ts +95 -0
- package/ibc/core/client/v1/tx.registry.js +139 -0
- package/ibc/core/connection/v1/tx.registry.d.ts +71 -0
- package/ibc/core/connection/v1/tx.registry.js +103 -0
- package/injective/auction/v1beta1/tx.registry.d.ts +35 -0
- package/injective/auction/v1beta1/tx.registry.js +49 -0
- package/injective/client.d.ts +16 -0
- package/injective/client.js +61 -0
- package/injective/exchange/v1beta1/tx.registry.d.ts +431 -0
- package/injective/exchange/v1beta1/tx.registry.js +643 -0
- package/injective/insurance/v1beta1/tx.registry.d.ts +59 -0
- package/injective/insurance/v1beta1/tx.registry.js +85 -0
- package/injective/ocr/v1beta1/tx.registry.d.ts +119 -0
- package/injective/ocr/v1beta1/tx.registry.js +175 -0
- package/injective/oracle/v1beta1/tx.registry.d.ts +107 -0
- package/injective/oracle/v1beta1/tx.registry.js +157 -0
- package/injective/peggy/v1/msgs.registry.d.ts +179 -0
- package/injective/peggy/v1/msgs.registry.js +265 -0
- package/injective/permissions/v1beta1/tx.registry.d.ts +95 -0
- package/injective/permissions/v1beta1/tx.registry.js +139 -0
- package/injective/tokenfactory/v1beta1/tx.registry.d.ts +83 -0
- package/injective/tokenfactory/v1beta1/tx.registry.js +121 -0
- package/injective/wasmx/v1/tx.registry.d.ts +83 -0
- package/injective/wasmx/v1/tx.registry.js +121 -0
- package/package.json +6 -6
- package/registry.d.ts +1 -1
- package/registry.js +1 -1
- package/types.d.ts +1 -1
- package/types.js +1 -1
- package/utf8.d.ts +1 -1
- package/utf8.js +1 -1
- package/varint.d.ts +1 -1
- package/varint.js +1 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageComposer = exports.registry = void 0;
|
|
4
|
+
const tx_1 = require("./tx");
|
|
5
|
+
exports.registry = [["/cosmos.staking.v1beta1.MsgCreateValidator", tx_1.MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", tx_1.MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", tx_1.MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", tx_1.MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", tx_1.MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", tx_1.MsgCancelUnbondingDelegation], ["/cosmos.staking.v1beta1.MsgUpdateParams", tx_1.MsgUpdateParams]];
|
|
6
|
+
exports.MessageComposer = {
|
|
7
|
+
encoded: {
|
|
8
|
+
createValidator(value) {
|
|
9
|
+
return {
|
|
10
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
|
|
11
|
+
value: tx_1.MsgCreateValidator.encode(value).finish()
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
editValidator(value) {
|
|
15
|
+
return {
|
|
16
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
|
|
17
|
+
value: tx_1.MsgEditValidator.encode(value).finish()
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
delegate(value) {
|
|
21
|
+
return {
|
|
22
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
|
|
23
|
+
value: tx_1.MsgDelegate.encode(value).finish()
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
beginRedelegate(value) {
|
|
27
|
+
return {
|
|
28
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
|
|
29
|
+
value: tx_1.MsgBeginRedelegate.encode(value).finish()
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
undelegate(value) {
|
|
33
|
+
return {
|
|
34
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
|
|
35
|
+
value: tx_1.MsgUndelegate.encode(value).finish()
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
cancelUnbondingDelegation(value) {
|
|
39
|
+
return {
|
|
40
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
|
41
|
+
value: tx_1.MsgCancelUnbondingDelegation.encode(value).finish()
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
updateParams(value) {
|
|
45
|
+
return {
|
|
46
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
|
|
47
|
+
value: tx_1.MsgUpdateParams.encode(value).finish()
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
withTypeUrl: {
|
|
52
|
+
createValidator(value) {
|
|
53
|
+
return {
|
|
54
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
|
|
55
|
+
value
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
editValidator(value) {
|
|
59
|
+
return {
|
|
60
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
|
|
61
|
+
value
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
delegate(value) {
|
|
65
|
+
return {
|
|
66
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
|
|
67
|
+
value
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
beginRedelegate(value) {
|
|
71
|
+
return {
|
|
72
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
|
|
73
|
+
value
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
undelegate(value) {
|
|
77
|
+
return {
|
|
78
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
|
|
79
|
+
value
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
cancelUnbondingDelegation(value) {
|
|
83
|
+
return {
|
|
84
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
|
85
|
+
value
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
updateParams(value) {
|
|
89
|
+
return {
|
|
90
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
|
|
91
|
+
value
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
fromPartial: {
|
|
96
|
+
createValidator(value) {
|
|
97
|
+
return {
|
|
98
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
|
|
99
|
+
value: tx_1.MsgCreateValidator.fromPartial(value)
|
|
100
|
+
};
|
|
101
|
+
},
|
|
102
|
+
editValidator(value) {
|
|
103
|
+
return {
|
|
104
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
|
|
105
|
+
value: tx_1.MsgEditValidator.fromPartial(value)
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
delegate(value) {
|
|
109
|
+
return {
|
|
110
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
|
|
111
|
+
value: tx_1.MsgDelegate.fromPartial(value)
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
beginRedelegate(value) {
|
|
115
|
+
return {
|
|
116
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
|
|
117
|
+
value: tx_1.MsgBeginRedelegate.fromPartial(value)
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
undelegate(value) {
|
|
121
|
+
return {
|
|
122
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
|
|
123
|
+
value: tx_1.MsgUndelegate.fromPartial(value)
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
cancelUnbondingDelegation(value) {
|
|
127
|
+
return {
|
|
128
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
|
129
|
+
value: tx_1.MsgCancelUnbondingDelegation.fromPartial(value)
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
updateParams(value) {
|
|
133
|
+
return {
|
|
134
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
|
|
135
|
+
value: tx_1.MsgUpdateParams.fromPartial(value)
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { TelescopeGeneratedType } from "../../../types";
|
|
2
|
+
import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx";
|
|
3
|
+
export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
|
|
4
|
+
export declare const MessageComposer: {
|
|
5
|
+
encoded: {
|
|
6
|
+
createVestingAccount(value: MsgCreateVestingAccount): {
|
|
7
|
+
typeUrl: string;
|
|
8
|
+
value: Uint8Array;
|
|
9
|
+
};
|
|
10
|
+
createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): {
|
|
11
|
+
typeUrl: string;
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
};
|
|
14
|
+
createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): {
|
|
15
|
+
typeUrl: string;
|
|
16
|
+
value: Uint8Array;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
withTypeUrl: {
|
|
20
|
+
createVestingAccount(value: MsgCreateVestingAccount): {
|
|
21
|
+
typeUrl: string;
|
|
22
|
+
value: MsgCreateVestingAccount;
|
|
23
|
+
};
|
|
24
|
+
createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): {
|
|
25
|
+
typeUrl: string;
|
|
26
|
+
value: MsgCreatePermanentLockedAccount;
|
|
27
|
+
};
|
|
28
|
+
createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): {
|
|
29
|
+
typeUrl: string;
|
|
30
|
+
value: MsgCreatePeriodicVestingAccount;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
fromPartial: {
|
|
34
|
+
createVestingAccount(value: MsgCreateVestingAccount): {
|
|
35
|
+
typeUrl: string;
|
|
36
|
+
value: MsgCreateVestingAccount;
|
|
37
|
+
};
|
|
38
|
+
createPermanentLockedAccount(value: MsgCreatePermanentLockedAccount): {
|
|
39
|
+
typeUrl: string;
|
|
40
|
+
value: MsgCreatePermanentLockedAccount;
|
|
41
|
+
};
|
|
42
|
+
createPeriodicVestingAccount(value: MsgCreatePeriodicVestingAccount): {
|
|
43
|
+
typeUrl: string;
|
|
44
|
+
value: MsgCreatePeriodicVestingAccount;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageComposer = exports.registry = void 0;
|
|
4
|
+
const tx_1 = require("./tx");
|
|
5
|
+
exports.registry = [["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", tx_1.MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", tx_1.MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", tx_1.MsgCreatePeriodicVestingAccount]];
|
|
6
|
+
exports.MessageComposer = {
|
|
7
|
+
encoded: {
|
|
8
|
+
createVestingAccount(value) {
|
|
9
|
+
return {
|
|
10
|
+
typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount",
|
|
11
|
+
value: tx_1.MsgCreateVestingAccount.encode(value).finish()
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
createPermanentLockedAccount(value) {
|
|
15
|
+
return {
|
|
16
|
+
typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",
|
|
17
|
+
value: tx_1.MsgCreatePermanentLockedAccount.encode(value).finish()
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
createPeriodicVestingAccount(value) {
|
|
21
|
+
return {
|
|
22
|
+
typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",
|
|
23
|
+
value: tx_1.MsgCreatePeriodicVestingAccount.encode(value).finish()
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
withTypeUrl: {
|
|
28
|
+
createVestingAccount(value) {
|
|
29
|
+
return {
|
|
30
|
+
typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount",
|
|
31
|
+
value
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
createPermanentLockedAccount(value) {
|
|
35
|
+
return {
|
|
36
|
+
typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",
|
|
37
|
+
value
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
createPeriodicVestingAccount(value) {
|
|
41
|
+
return {
|
|
42
|
+
typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",
|
|
43
|
+
value
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
fromPartial: {
|
|
48
|
+
createVestingAccount(value) {
|
|
49
|
+
return {
|
|
50
|
+
typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount",
|
|
51
|
+
value: tx_1.MsgCreateVestingAccount.fromPartial(value)
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
createPermanentLockedAccount(value) {
|
|
55
|
+
return {
|
|
56
|
+
typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount",
|
|
57
|
+
value: tx_1.MsgCreatePermanentLockedAccount.fromPartial(value)
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
createPeriodicVestingAccount(value) {
|
|
61
|
+
return {
|
|
62
|
+
typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",
|
|
63
|
+
value: tx_1.MsgCreatePeriodicVestingAccount.fromPartial(value)
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
|
|
2
|
+
import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
3
|
+
import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
|
4
|
+
export declare const cosmwasmAminoConverters: {};
|
|
5
|
+
export declare const cosmwasmProtoRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
6
|
+
export declare const getSigningCosmwasmClientOptions: ({ defaultTypes }?: {
|
|
7
|
+
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
|
8
|
+
}) => {
|
|
9
|
+
registry: Registry;
|
|
10
|
+
aminoTypes: AminoTypes;
|
|
11
|
+
};
|
|
12
|
+
export declare const getSigningCosmwasmClient: ({ rpcEndpoint, signer, defaultTypes }: {
|
|
13
|
+
rpcEndpoint: string | HttpEndpoint;
|
|
14
|
+
signer: OfflineSigner;
|
|
15
|
+
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
|
16
|
+
}) => Promise<SigningStargateClient>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.getSigningCosmwasmClient = exports.getSigningCosmwasmClientOptions = exports.cosmwasmProtoRegistry = exports.cosmwasmAminoConverters = void 0;
|
|
27
|
+
const proto_signing_1 = require("@cosmjs/proto-signing");
|
|
28
|
+
const stargate_1 = require("@cosmjs/stargate");
|
|
29
|
+
const cosmwasmWasmV1TxRegistry = __importStar(require("./wasm/v1/tx.registry"));
|
|
30
|
+
exports.cosmwasmAminoConverters = {};
|
|
31
|
+
exports.cosmwasmProtoRegistry = [...cosmwasmWasmV1TxRegistry.registry];
|
|
32
|
+
const getSigningCosmwasmClientOptions = ({ defaultTypes = stargate_1.defaultRegistryTypes } = {}) => {
|
|
33
|
+
const registry = new proto_signing_1.Registry([...defaultTypes, ...exports.cosmwasmProtoRegistry]);
|
|
34
|
+
const aminoTypes = new stargate_1.AminoTypes({
|
|
35
|
+
...exports.cosmwasmAminoConverters
|
|
36
|
+
});
|
|
37
|
+
return {
|
|
38
|
+
registry,
|
|
39
|
+
aminoTypes
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
exports.getSigningCosmwasmClientOptions = getSigningCosmwasmClientOptions;
|
|
43
|
+
const getSigningCosmwasmClient = async ({ rpcEndpoint, signer, defaultTypes = stargate_1.defaultRegistryTypes }) => {
|
|
44
|
+
const { registry, aminoTypes } = (0, exports.getSigningCosmwasmClientOptions)({
|
|
45
|
+
defaultTypes
|
|
46
|
+
});
|
|
47
|
+
const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
48
|
+
registry: registry,
|
|
49
|
+
aminoTypes
|
|
50
|
+
});
|
|
51
|
+
return client;
|
|
52
|
+
};
|
|
53
|
+
exports.getSigningCosmwasmClient = getSigningCosmwasmClient;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { TelescopeGeneratedType } from "../../../types";
|
|
2
|
+
import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgSudoContract, MsgPinCodes, MsgUnpinCodes, MsgStoreAndInstantiateContract, MsgRemoveCodeUploadParamsAddresses, MsgAddCodeUploadParamsAddresses, MsgStoreAndMigrateContract, MsgUpdateContractLabel } from "./tx";
|
|
3
|
+
export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
|
|
4
|
+
export declare const MessageComposer: {
|
|
5
|
+
encoded: {
|
|
6
|
+
storeCode(value: MsgStoreCode): {
|
|
7
|
+
typeUrl: string;
|
|
8
|
+
value: Uint8Array;
|
|
9
|
+
};
|
|
10
|
+
instantiateContract(value: MsgInstantiateContract): {
|
|
11
|
+
typeUrl: string;
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
};
|
|
14
|
+
instantiateContract2(value: MsgInstantiateContract2): {
|
|
15
|
+
typeUrl: string;
|
|
16
|
+
value: Uint8Array;
|
|
17
|
+
};
|
|
18
|
+
executeContract(value: MsgExecuteContract): {
|
|
19
|
+
typeUrl: string;
|
|
20
|
+
value: Uint8Array;
|
|
21
|
+
};
|
|
22
|
+
migrateContract(value: MsgMigrateContract): {
|
|
23
|
+
typeUrl: string;
|
|
24
|
+
value: Uint8Array;
|
|
25
|
+
};
|
|
26
|
+
updateAdmin(value: MsgUpdateAdmin): {
|
|
27
|
+
typeUrl: string;
|
|
28
|
+
value: Uint8Array;
|
|
29
|
+
};
|
|
30
|
+
clearAdmin(value: MsgClearAdmin): {
|
|
31
|
+
typeUrl: string;
|
|
32
|
+
value: Uint8Array;
|
|
33
|
+
};
|
|
34
|
+
updateInstantiateConfig(value: MsgUpdateInstantiateConfig): {
|
|
35
|
+
typeUrl: string;
|
|
36
|
+
value: Uint8Array;
|
|
37
|
+
};
|
|
38
|
+
updateParams(value: MsgUpdateParams): {
|
|
39
|
+
typeUrl: string;
|
|
40
|
+
value: Uint8Array;
|
|
41
|
+
};
|
|
42
|
+
sudoContract(value: MsgSudoContract): {
|
|
43
|
+
typeUrl: string;
|
|
44
|
+
value: Uint8Array;
|
|
45
|
+
};
|
|
46
|
+
pinCodes(value: MsgPinCodes): {
|
|
47
|
+
typeUrl: string;
|
|
48
|
+
value: Uint8Array;
|
|
49
|
+
};
|
|
50
|
+
unpinCodes(value: MsgUnpinCodes): {
|
|
51
|
+
typeUrl: string;
|
|
52
|
+
value: Uint8Array;
|
|
53
|
+
};
|
|
54
|
+
storeAndInstantiateContract(value: MsgStoreAndInstantiateContract): {
|
|
55
|
+
typeUrl: string;
|
|
56
|
+
value: Uint8Array;
|
|
57
|
+
};
|
|
58
|
+
removeCodeUploadParamsAddresses(value: MsgRemoveCodeUploadParamsAddresses): {
|
|
59
|
+
typeUrl: string;
|
|
60
|
+
value: Uint8Array;
|
|
61
|
+
};
|
|
62
|
+
addCodeUploadParamsAddresses(value: MsgAddCodeUploadParamsAddresses): {
|
|
63
|
+
typeUrl: string;
|
|
64
|
+
value: Uint8Array;
|
|
65
|
+
};
|
|
66
|
+
storeAndMigrateContract(value: MsgStoreAndMigrateContract): {
|
|
67
|
+
typeUrl: string;
|
|
68
|
+
value: Uint8Array;
|
|
69
|
+
};
|
|
70
|
+
updateContractLabel(value: MsgUpdateContractLabel): {
|
|
71
|
+
typeUrl: string;
|
|
72
|
+
value: Uint8Array;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
withTypeUrl: {
|
|
76
|
+
storeCode(value: MsgStoreCode): {
|
|
77
|
+
typeUrl: string;
|
|
78
|
+
value: MsgStoreCode;
|
|
79
|
+
};
|
|
80
|
+
instantiateContract(value: MsgInstantiateContract): {
|
|
81
|
+
typeUrl: string;
|
|
82
|
+
value: MsgInstantiateContract;
|
|
83
|
+
};
|
|
84
|
+
instantiateContract2(value: MsgInstantiateContract2): {
|
|
85
|
+
typeUrl: string;
|
|
86
|
+
value: MsgInstantiateContract2;
|
|
87
|
+
};
|
|
88
|
+
executeContract(value: MsgExecuteContract): {
|
|
89
|
+
typeUrl: string;
|
|
90
|
+
value: MsgExecuteContract;
|
|
91
|
+
};
|
|
92
|
+
migrateContract(value: MsgMigrateContract): {
|
|
93
|
+
typeUrl: string;
|
|
94
|
+
value: MsgMigrateContract;
|
|
95
|
+
};
|
|
96
|
+
updateAdmin(value: MsgUpdateAdmin): {
|
|
97
|
+
typeUrl: string;
|
|
98
|
+
value: MsgUpdateAdmin;
|
|
99
|
+
};
|
|
100
|
+
clearAdmin(value: MsgClearAdmin): {
|
|
101
|
+
typeUrl: string;
|
|
102
|
+
value: MsgClearAdmin;
|
|
103
|
+
};
|
|
104
|
+
updateInstantiateConfig(value: MsgUpdateInstantiateConfig): {
|
|
105
|
+
typeUrl: string;
|
|
106
|
+
value: MsgUpdateInstantiateConfig;
|
|
107
|
+
};
|
|
108
|
+
updateParams(value: MsgUpdateParams): {
|
|
109
|
+
typeUrl: string;
|
|
110
|
+
value: MsgUpdateParams;
|
|
111
|
+
};
|
|
112
|
+
sudoContract(value: MsgSudoContract): {
|
|
113
|
+
typeUrl: string;
|
|
114
|
+
value: MsgSudoContract;
|
|
115
|
+
};
|
|
116
|
+
pinCodes(value: MsgPinCodes): {
|
|
117
|
+
typeUrl: string;
|
|
118
|
+
value: MsgPinCodes;
|
|
119
|
+
};
|
|
120
|
+
unpinCodes(value: MsgUnpinCodes): {
|
|
121
|
+
typeUrl: string;
|
|
122
|
+
value: MsgUnpinCodes;
|
|
123
|
+
};
|
|
124
|
+
storeAndInstantiateContract(value: MsgStoreAndInstantiateContract): {
|
|
125
|
+
typeUrl: string;
|
|
126
|
+
value: MsgStoreAndInstantiateContract;
|
|
127
|
+
};
|
|
128
|
+
removeCodeUploadParamsAddresses(value: MsgRemoveCodeUploadParamsAddresses): {
|
|
129
|
+
typeUrl: string;
|
|
130
|
+
value: MsgRemoveCodeUploadParamsAddresses;
|
|
131
|
+
};
|
|
132
|
+
addCodeUploadParamsAddresses(value: MsgAddCodeUploadParamsAddresses): {
|
|
133
|
+
typeUrl: string;
|
|
134
|
+
value: MsgAddCodeUploadParamsAddresses;
|
|
135
|
+
};
|
|
136
|
+
storeAndMigrateContract(value: MsgStoreAndMigrateContract): {
|
|
137
|
+
typeUrl: string;
|
|
138
|
+
value: MsgStoreAndMigrateContract;
|
|
139
|
+
};
|
|
140
|
+
updateContractLabel(value: MsgUpdateContractLabel): {
|
|
141
|
+
typeUrl: string;
|
|
142
|
+
value: MsgUpdateContractLabel;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
fromPartial: {
|
|
146
|
+
storeCode(value: MsgStoreCode): {
|
|
147
|
+
typeUrl: string;
|
|
148
|
+
value: MsgStoreCode;
|
|
149
|
+
};
|
|
150
|
+
instantiateContract(value: MsgInstantiateContract): {
|
|
151
|
+
typeUrl: string;
|
|
152
|
+
value: MsgInstantiateContract;
|
|
153
|
+
};
|
|
154
|
+
instantiateContract2(value: MsgInstantiateContract2): {
|
|
155
|
+
typeUrl: string;
|
|
156
|
+
value: MsgInstantiateContract2;
|
|
157
|
+
};
|
|
158
|
+
executeContract(value: MsgExecuteContract): {
|
|
159
|
+
typeUrl: string;
|
|
160
|
+
value: MsgExecuteContract;
|
|
161
|
+
};
|
|
162
|
+
migrateContract(value: MsgMigrateContract): {
|
|
163
|
+
typeUrl: string;
|
|
164
|
+
value: MsgMigrateContract;
|
|
165
|
+
};
|
|
166
|
+
updateAdmin(value: MsgUpdateAdmin): {
|
|
167
|
+
typeUrl: string;
|
|
168
|
+
value: MsgUpdateAdmin;
|
|
169
|
+
};
|
|
170
|
+
clearAdmin(value: MsgClearAdmin): {
|
|
171
|
+
typeUrl: string;
|
|
172
|
+
value: MsgClearAdmin;
|
|
173
|
+
};
|
|
174
|
+
updateInstantiateConfig(value: MsgUpdateInstantiateConfig): {
|
|
175
|
+
typeUrl: string;
|
|
176
|
+
value: MsgUpdateInstantiateConfig;
|
|
177
|
+
};
|
|
178
|
+
updateParams(value: MsgUpdateParams): {
|
|
179
|
+
typeUrl: string;
|
|
180
|
+
value: MsgUpdateParams;
|
|
181
|
+
};
|
|
182
|
+
sudoContract(value: MsgSudoContract): {
|
|
183
|
+
typeUrl: string;
|
|
184
|
+
value: MsgSudoContract;
|
|
185
|
+
};
|
|
186
|
+
pinCodes(value: MsgPinCodes): {
|
|
187
|
+
typeUrl: string;
|
|
188
|
+
value: MsgPinCodes;
|
|
189
|
+
};
|
|
190
|
+
unpinCodes(value: MsgUnpinCodes): {
|
|
191
|
+
typeUrl: string;
|
|
192
|
+
value: MsgUnpinCodes;
|
|
193
|
+
};
|
|
194
|
+
storeAndInstantiateContract(value: MsgStoreAndInstantiateContract): {
|
|
195
|
+
typeUrl: string;
|
|
196
|
+
value: MsgStoreAndInstantiateContract;
|
|
197
|
+
};
|
|
198
|
+
removeCodeUploadParamsAddresses(value: MsgRemoveCodeUploadParamsAddresses): {
|
|
199
|
+
typeUrl: string;
|
|
200
|
+
value: MsgRemoveCodeUploadParamsAddresses;
|
|
201
|
+
};
|
|
202
|
+
addCodeUploadParamsAddresses(value: MsgAddCodeUploadParamsAddresses): {
|
|
203
|
+
typeUrl: string;
|
|
204
|
+
value: MsgAddCodeUploadParamsAddresses;
|
|
205
|
+
};
|
|
206
|
+
storeAndMigrateContract(value: MsgStoreAndMigrateContract): {
|
|
207
|
+
typeUrl: string;
|
|
208
|
+
value: MsgStoreAndMigrateContract;
|
|
209
|
+
};
|
|
210
|
+
updateContractLabel(value: MsgUpdateContractLabel): {
|
|
211
|
+
typeUrl: string;
|
|
212
|
+
value: MsgUpdateContractLabel;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|