atlas.js-protos 0.1.0
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 +21 -0
- package/README.md +85 -0
- package/dist/filetree/index.d.ts +2 -0
- package/dist/filetree/index.js +8 -0
- package/dist/filetree/index.mjs +3 -0
- package/dist/filetree/query.d.ts +1 -0
- package/dist/filetree/query.js +13 -0
- package/dist/filetree/query.mjs +2 -0
- package/dist/filetree/tx.d.ts +1 -0
- package/dist/filetree/tx.js +11 -0
- package/dist/filetree/tx.mjs +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/dist/index.mjs +1 -0
- package/dist/storage/index.d.ts +5 -0
- package/dist/storage/index.js +16 -0
- package/dist/storage/index.mjs +6 -0
- package/dist/storage/query.d.ts +1 -0
- package/dist/storage/query.js +27 -0
- package/dist/storage/query.mjs +2 -0
- package/dist/storage/tx.d.ts +1 -0
- package/dist/storage/tx.js +21 -0
- package/dist/storage/tx.mjs +2 -0
- package/dist/types/amino/amino.d.ts +1 -0
- package/dist/types/amino/amino.js +2 -0
- package/dist/types/amino/amino.mjs +1 -0
- package/dist/types/amino/bundle.d.ts +1 -0
- package/dist/types/amino/bundle.js +41 -0
- package/dist/types/amino/bundle.mjs +5 -0
- package/dist/types/atlas/bundle.d.ts +905 -0
- package/dist/types/atlas/bundle.js +98 -0
- package/dist/types/atlas/bundle.mjs +62 -0
- package/dist/types/atlas/filetree/v1/genesis.d.ts +45 -0
- package/dist/types/atlas/filetree/v1/genesis.js +107 -0
- package/dist/types/atlas/filetree/v1/genesis.mjs +71 -0
- package/dist/types/atlas/filetree/v1/params.d.ts +40 -0
- package/dist/types/atlas/filetree/v1/params.js +94 -0
- package/dist/types/atlas/filetree/v1/params.mjs +58 -0
- package/dist/types/atlas/filetree/v1/query.d.ts +330 -0
- package/dist/types/atlas/filetree/v1/query.js +567 -0
- package/dist/types/atlas/filetree/v1/query.mjs +531 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.d.ts +28 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.js +89 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.mjs +51 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.d.ts +29 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.js +58 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.mjs +55 -0
- package/dist/types/atlas/filetree/v1/tree.d.ts +44 -0
- package/dist/types/atlas/filetree/v1/tree.js +124 -0
- package/dist/types/atlas/filetree/v1/tree.mjs +88 -0
- package/dist/types/atlas/filetree/v1/tx.d.ts +260 -0
- package/dist/types/atlas/filetree/v1/tx.js +449 -0
- package/dist/types/atlas/filetree/v1/tx.mjs +413 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.d.ts +23 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.js +34 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.mjs +31 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.d.ts +22 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.js +67 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.mjs +29 -0
- package/dist/types/atlas/rpc.query.d.ts +49 -0
- package/dist/types/atlas/rpc.query.js +59 -0
- package/dist/types/atlas/rpc.query.mjs +22 -0
- package/dist/types/atlas/rpc.tx.d.ts +18 -0
- package/dist/types/atlas/rpc.tx.js +52 -0
- package/dist/types/atlas/rpc.tx.mjs +15 -0
- package/dist/types/atlas/storage/v1/file.d.ts +59 -0
- package/dist/types/atlas/storage/v1/file.js +173 -0
- package/dist/types/atlas/storage/v1/file.mjs +137 -0
- package/dist/types/atlas/storage/v1/genesis.d.ts +45 -0
- package/dist/types/atlas/storage/v1/genesis.js +107 -0
- package/dist/types/atlas/storage/v1/genesis.mjs +71 -0
- package/dist/types/atlas/storage/v1/params.d.ts +48 -0
- package/dist/types/atlas/storage/v1/params.js +127 -0
- package/dist/types/atlas/storage/v1/params.mjs +91 -0
- package/dist/types/atlas/storage/v1/proof.d.ts +145 -0
- package/dist/types/atlas/storage/v1/proof.js +318 -0
- package/dist/types/atlas/storage/v1/proof.mjs +282 -0
- package/dist/types/atlas/storage/v1/provider.d.ts +51 -0
- package/dist/types/atlas/storage/v1/provider.js +141 -0
- package/dist/types/atlas/storage/v1/provider.mjs +105 -0
- package/dist/types/atlas/storage/v1/query.d.ts +914 -0
- package/dist/types/atlas/storage/v1/query.js +1570 -0
- package/dist/types/atlas/storage/v1/query.mjs +1534 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.d.ts +56 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.js +154 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.mjs +116 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.d.ts +78 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.js +149 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.mjs +146 -0
- package/dist/types/atlas/storage/v1/subscription.d.ts +55 -0
- package/dist/types/atlas/storage/v1/subscription.js +159 -0
- package/dist/types/atlas/storage/v1/subscription.mjs +123 -0
- package/dist/types/atlas/storage/v1/tx.d.ts +694 -0
- package/dist/types/atlas/storage/v1/tx.js +1203 -0
- package/dist/types/atlas/storage/v1/tx.mjs +1167 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.d.ts +56 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.js +77 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.mjs +74 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.d.ts +35 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.js +97 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.mjs +59 -0
- package/dist/types/cosmos/bank/v1beta1/authz.d.ts +62 -0
- package/dist/types/cosmos/bank/v1beta1/authz.js +123 -0
- package/dist/types/cosmos/bank/v1beta1/authz.mjs +87 -0
- package/dist/types/cosmos/bank/v1beta1/bank.d.ts +391 -0
- package/dist/types/cosmos/bank/v1beta1/bank.js +626 -0
- package/dist/types/cosmos/bank/v1beta1/bank.mjs +590 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.d.ts +122 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.js +224 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.mjs +188 -0
- package/dist/types/cosmos/bank/v1beta1/query.d.ts +1377 -0
- package/dist/types/cosmos/bank/v1beta1/query.js +2038 -0
- package/dist/types/cosmos/bank/v1beta1/query.mjs +2002 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.d.ts +119 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.js +174 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.mjs +136 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.d.ts +129 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.js +212 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.mjs +209 -0
- package/dist/types/cosmos/bank/v1beta1/tx.d.ts +398 -0
- package/dist/types/cosmos/bank/v1beta1/tx.js +599 -0
- package/dist/types/cosmos/bank/v1beta1/tx.mjs +563 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.d.ts +37 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.js +50 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.mjs +47 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +34 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.js +73 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.mjs +35 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.d.ts +163 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.js +219 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.mjs +183 -0
- package/dist/types/cosmos/base/v1beta1/coin.d.ts +193 -0
- package/dist/types/cosmos/base/v1beta1/coin.js +320 -0
- package/dist/types/cosmos/base/v1beta1/coin.mjs +284 -0
- package/dist/types/cosmos/bundle.d.ts +761 -0
- package/dist/types/cosmos/bundle.js +97 -0
- package/dist/types/cosmos/bundle.mjs +61 -0
- package/dist/types/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/types/cosmos/msg/v1/msg.mjs +1 -0
- package/dist/types/cosmos/query/v1/query.d.ts +1 -0
- package/dist/types/cosmos/query/v1/query.js +2 -0
- package/dist/types/cosmos/query/v1/query.mjs +1 -0
- package/dist/types/cosmos/rpc.query.d.ts +24 -0
- package/dist/types/cosmos/rpc.query.js +51 -0
- package/dist/types/cosmos/rpc.query.mjs +14 -0
- package/dist/types/cosmos/rpc.tx.d.ts +10 -0
- package/dist/types/cosmos/rpc.tx.js +44 -0
- package/dist/types/cosmos/rpc.tx.mjs +7 -0
- package/dist/types/cosmos_proto/bundle.d.ts +31 -0
- package/dist/types/cosmos_proto/bundle.js +41 -0
- package/dist/types/cosmos_proto/bundle.mjs +5 -0
- package/dist/types/cosmos_proto/cosmos.d.ts +144 -0
- package/dist/types/cosmos_proto/cosmos.js +244 -0
- package/dist/types/cosmos_proto/cosmos.mjs +206 -0
- package/dist/types/extern.d.ts +11 -0
- package/dist/types/extern.js +47 -0
- package/dist/types/extern.mjs +41 -0
- package/dist/types/gogoproto/bundle.d.ts +1 -0
- package/dist/types/gogoproto/bundle.js +41 -0
- package/dist/types/gogoproto/bundle.mjs +5 -0
- package/dist/types/gogoproto/gogo.d.ts +1 -0
- package/dist/types/gogoproto/gogo.js +2 -0
- package/dist/types/gogoproto/gogo.mjs +1 -0
- package/dist/types/google/api/annotations.d.ts +1 -0
- package/dist/types/google/api/annotations.js +2 -0
- package/dist/types/google/api/annotations.mjs +1 -0
- package/dist/types/google/api/http.d.ts +1006 -0
- package/dist/types/google/api/http.js +589 -0
- package/dist/types/google/api/http.mjs +553 -0
- package/dist/types/google/bundle.d.ts +545 -0
- package/dist/types/google/bundle.js +52 -0
- package/dist/types/google/bundle.mjs +16 -0
- package/dist/types/google/protobuf/descriptor.d.ts +2755 -0
- package/dist/types/google/protobuf/descriptor.js +4612 -0
- package/dist/types/google/protobuf/descriptor.mjs +4535 -0
- package/dist/types/google/protobuf/timestamp.d.ts +319 -0
- package/dist/types/google/protobuf/timestamp.js +197 -0
- package/dist/types/google/protobuf/timestamp.mjs +161 -0
- package/dist/types/helper-func-types.d.ts +40 -0
- package/dist/types/helper-func-types.js +57 -0
- package/dist/types/helper-func-types.mjs +53 -0
- package/dist/types/helpers.d.ts +56 -0
- package/dist/types/helpers.js +161 -0
- package/dist/types/helpers.mjs +110 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/index.js +32 -0
- package/dist/types/index.mjs +16 -0
- package/dist/types/registry.d.ts +35 -0
- package/dist/types/registry.js +200 -0
- package/dist/types/registry.mjs +163 -0
- package/dist/types/types.d.ts +74 -0
- package/dist/types/types.js +8 -0
- package/dist/types/types.mjs +7 -0
- package/package.json +97 -0
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
function createBaseParams() {
|
|
6
|
+
return {
|
|
7
|
+
sendEnabled: [],
|
|
8
|
+
defaultSendEnabled: false
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Params defines the parameters for the bank module.
|
|
13
|
+
* @name Params
|
|
14
|
+
* @package cosmos.bank.v1beta1
|
|
15
|
+
* @see proto type: cosmos.bank.v1beta1.Params
|
|
16
|
+
*/
|
|
17
|
+
export const Params = {
|
|
18
|
+
typeUrl: "/cosmos.bank.v1beta1.Params",
|
|
19
|
+
aminoType: "cosmos-sdk/x/bank/Params",
|
|
20
|
+
is(o) {
|
|
21
|
+
return o && (o.$typeUrl === Params.typeUrl || Array.isArray(o.sendEnabled) && (!o.sendEnabled.length || SendEnabled.is(o.sendEnabled[0])) && typeof o.defaultSendEnabled === "boolean");
|
|
22
|
+
},
|
|
23
|
+
isSDK(o) {
|
|
24
|
+
return o && (o.$typeUrl === Params.typeUrl || Array.isArray(o.send_enabled) && (!o.send_enabled.length || SendEnabled.isSDK(o.send_enabled[0])) && typeof o.default_send_enabled === "boolean");
|
|
25
|
+
},
|
|
26
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
27
|
+
for (const v of message.sendEnabled) {
|
|
28
|
+
SendEnabled.encode(v, writer.uint32(10).fork()).ldelim();
|
|
29
|
+
}
|
|
30
|
+
if (message.defaultSendEnabled === true) {
|
|
31
|
+
writer.uint32(16).bool(message.defaultSendEnabled);
|
|
32
|
+
}
|
|
33
|
+
return writer;
|
|
34
|
+
},
|
|
35
|
+
decode(input, length) {
|
|
36
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
37
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
+
const message = createBaseParams();
|
|
39
|
+
while (reader.pos < end) {
|
|
40
|
+
const tag = reader.uint32();
|
|
41
|
+
switch (tag >>> 3) {
|
|
42
|
+
case 1:
|
|
43
|
+
message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32()));
|
|
44
|
+
break;
|
|
45
|
+
case 2:
|
|
46
|
+
message.defaultSendEnabled = reader.bool();
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
reader.skipType(tag & 7);
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromPartial(object) {
|
|
56
|
+
const message = createBaseParams();
|
|
57
|
+
message.sendEnabled = object.sendEnabled?.map(e => SendEnabled.fromPartial(e)) || [];
|
|
58
|
+
message.defaultSendEnabled = object.defaultSendEnabled ?? false;
|
|
59
|
+
return message;
|
|
60
|
+
},
|
|
61
|
+
fromProtoMsg(message) {
|
|
62
|
+
return Params.decode(message.value);
|
|
63
|
+
},
|
|
64
|
+
toProto(message) {
|
|
65
|
+
return Params.encode(message).finish();
|
|
66
|
+
},
|
|
67
|
+
toProtoMsg(message) {
|
|
68
|
+
return {
|
|
69
|
+
typeUrl: "/cosmos.bank.v1beta1.Params",
|
|
70
|
+
value: Params.encode(message).finish()
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
registerTypeUrl() {
|
|
74
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(Params.typeUrl)) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
SendEnabled.registerTypeUrl();
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
81
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
82
|
+
function createBaseSendEnabled() {
|
|
83
|
+
return {
|
|
84
|
+
denom: "",
|
|
85
|
+
enabled: false
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* SendEnabled maps coin denom to a send_enabled status (whether a denom is
|
|
90
|
+
* sendable).
|
|
91
|
+
* @name SendEnabled
|
|
92
|
+
* @package cosmos.bank.v1beta1
|
|
93
|
+
* @see proto type: cosmos.bank.v1beta1.SendEnabled
|
|
94
|
+
*/
|
|
95
|
+
export const SendEnabled = {
|
|
96
|
+
typeUrl: "/cosmos.bank.v1beta1.SendEnabled",
|
|
97
|
+
aminoType: "cosmos-sdk/SendEnabled",
|
|
98
|
+
is(o) {
|
|
99
|
+
return o && (o.$typeUrl === SendEnabled.typeUrl || typeof o.denom === "string" && typeof o.enabled === "boolean");
|
|
100
|
+
},
|
|
101
|
+
isSDK(o) {
|
|
102
|
+
return o && (o.$typeUrl === SendEnabled.typeUrl || typeof o.denom === "string" && typeof o.enabled === "boolean");
|
|
103
|
+
},
|
|
104
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
105
|
+
if (message.denom !== "") {
|
|
106
|
+
writer.uint32(10).string(message.denom);
|
|
107
|
+
}
|
|
108
|
+
if (message.enabled === true) {
|
|
109
|
+
writer.uint32(16).bool(message.enabled);
|
|
110
|
+
}
|
|
111
|
+
return writer;
|
|
112
|
+
},
|
|
113
|
+
decode(input, length) {
|
|
114
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
115
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
116
|
+
const message = createBaseSendEnabled();
|
|
117
|
+
while (reader.pos < end) {
|
|
118
|
+
const tag = reader.uint32();
|
|
119
|
+
switch (tag >>> 3) {
|
|
120
|
+
case 1:
|
|
121
|
+
message.denom = reader.string();
|
|
122
|
+
break;
|
|
123
|
+
case 2:
|
|
124
|
+
message.enabled = reader.bool();
|
|
125
|
+
break;
|
|
126
|
+
default:
|
|
127
|
+
reader.skipType(tag & 7);
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return message;
|
|
132
|
+
},
|
|
133
|
+
fromPartial(object) {
|
|
134
|
+
const message = createBaseSendEnabled();
|
|
135
|
+
message.denom = object.denom ?? "";
|
|
136
|
+
message.enabled = object.enabled ?? false;
|
|
137
|
+
return message;
|
|
138
|
+
},
|
|
139
|
+
fromProtoMsg(message) {
|
|
140
|
+
return SendEnabled.decode(message.value);
|
|
141
|
+
},
|
|
142
|
+
toProto(message) {
|
|
143
|
+
return SendEnabled.encode(message).finish();
|
|
144
|
+
},
|
|
145
|
+
toProtoMsg(message) {
|
|
146
|
+
return {
|
|
147
|
+
typeUrl: "/cosmos.bank.v1beta1.SendEnabled",
|
|
148
|
+
value: SendEnabled.encode(message).finish()
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
registerTypeUrl() { }
|
|
152
|
+
};
|
|
153
|
+
GlobalDecoderRegistry.register(SendEnabled.typeUrl, SendEnabled);
|
|
154
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SendEnabled.aminoType, SendEnabled.typeUrl);
|
|
155
|
+
function createBaseInput() {
|
|
156
|
+
return {
|
|
157
|
+
address: "",
|
|
158
|
+
coins: []
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Input models transaction input.
|
|
163
|
+
* @name Input
|
|
164
|
+
* @package cosmos.bank.v1beta1
|
|
165
|
+
* @see proto type: cosmos.bank.v1beta1.Input
|
|
166
|
+
*/
|
|
167
|
+
export const Input = {
|
|
168
|
+
typeUrl: "/cosmos.bank.v1beta1.Input",
|
|
169
|
+
aminoType: "cosmos-sdk/Input",
|
|
170
|
+
is(o) {
|
|
171
|
+
return o && (o.$typeUrl === Input.typeUrl || typeof o.address === "string" && Array.isArray(o.coins) && (!o.coins.length || Coin.is(o.coins[0])));
|
|
172
|
+
},
|
|
173
|
+
isSDK(o) {
|
|
174
|
+
return o && (o.$typeUrl === Input.typeUrl || typeof o.address === "string" && Array.isArray(o.coins) && (!o.coins.length || Coin.isSDK(o.coins[0])));
|
|
175
|
+
},
|
|
176
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
177
|
+
if (message.address !== "") {
|
|
178
|
+
writer.uint32(10).string(message.address);
|
|
179
|
+
}
|
|
180
|
+
for (const v of message.coins) {
|
|
181
|
+
Coin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
182
|
+
}
|
|
183
|
+
return writer;
|
|
184
|
+
},
|
|
185
|
+
decode(input, length) {
|
|
186
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
187
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
188
|
+
const message = createBaseInput();
|
|
189
|
+
while (reader.pos < end) {
|
|
190
|
+
const tag = reader.uint32();
|
|
191
|
+
switch (tag >>> 3) {
|
|
192
|
+
case 1:
|
|
193
|
+
message.address = reader.string();
|
|
194
|
+
break;
|
|
195
|
+
case 2:
|
|
196
|
+
message.coins.push(Coin.decode(reader, reader.uint32()));
|
|
197
|
+
break;
|
|
198
|
+
default:
|
|
199
|
+
reader.skipType(tag & 7);
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return message;
|
|
204
|
+
},
|
|
205
|
+
fromPartial(object) {
|
|
206
|
+
const message = createBaseInput();
|
|
207
|
+
message.address = object.address ?? "";
|
|
208
|
+
message.coins = object.coins?.map(e => Coin.fromPartial(e)) || [];
|
|
209
|
+
return message;
|
|
210
|
+
},
|
|
211
|
+
fromProtoMsg(message) {
|
|
212
|
+
return Input.decode(message.value);
|
|
213
|
+
},
|
|
214
|
+
toProto(message) {
|
|
215
|
+
return Input.encode(message).finish();
|
|
216
|
+
},
|
|
217
|
+
toProtoMsg(message) {
|
|
218
|
+
return {
|
|
219
|
+
typeUrl: "/cosmos.bank.v1beta1.Input",
|
|
220
|
+
value: Input.encode(message).finish()
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
registerTypeUrl() {
|
|
224
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(Input.typeUrl)) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
Coin.registerTypeUrl();
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
GlobalDecoderRegistry.register(Input.typeUrl, Input);
|
|
231
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Input.aminoType, Input.typeUrl);
|
|
232
|
+
function createBaseOutput() {
|
|
233
|
+
return {
|
|
234
|
+
address: "",
|
|
235
|
+
coins: []
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Output models transaction outputs.
|
|
240
|
+
* @name Output
|
|
241
|
+
* @package cosmos.bank.v1beta1
|
|
242
|
+
* @see proto type: cosmos.bank.v1beta1.Output
|
|
243
|
+
*/
|
|
244
|
+
export const Output = {
|
|
245
|
+
typeUrl: "/cosmos.bank.v1beta1.Output",
|
|
246
|
+
aminoType: "cosmos-sdk/Output",
|
|
247
|
+
is(o) {
|
|
248
|
+
return o && (o.$typeUrl === Output.typeUrl || typeof o.address === "string" && Array.isArray(o.coins) && (!o.coins.length || Coin.is(o.coins[0])));
|
|
249
|
+
},
|
|
250
|
+
isSDK(o) {
|
|
251
|
+
return o && (o.$typeUrl === Output.typeUrl || typeof o.address === "string" && Array.isArray(o.coins) && (!o.coins.length || Coin.isSDK(o.coins[0])));
|
|
252
|
+
},
|
|
253
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
254
|
+
if (message.address !== "") {
|
|
255
|
+
writer.uint32(10).string(message.address);
|
|
256
|
+
}
|
|
257
|
+
for (const v of message.coins) {
|
|
258
|
+
Coin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
259
|
+
}
|
|
260
|
+
return writer;
|
|
261
|
+
},
|
|
262
|
+
decode(input, length) {
|
|
263
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
264
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
265
|
+
const message = createBaseOutput();
|
|
266
|
+
while (reader.pos < end) {
|
|
267
|
+
const tag = reader.uint32();
|
|
268
|
+
switch (tag >>> 3) {
|
|
269
|
+
case 1:
|
|
270
|
+
message.address = reader.string();
|
|
271
|
+
break;
|
|
272
|
+
case 2:
|
|
273
|
+
message.coins.push(Coin.decode(reader, reader.uint32()));
|
|
274
|
+
break;
|
|
275
|
+
default:
|
|
276
|
+
reader.skipType(tag & 7);
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return message;
|
|
281
|
+
},
|
|
282
|
+
fromPartial(object) {
|
|
283
|
+
const message = createBaseOutput();
|
|
284
|
+
message.address = object.address ?? "";
|
|
285
|
+
message.coins = object.coins?.map(e => Coin.fromPartial(e)) || [];
|
|
286
|
+
return message;
|
|
287
|
+
},
|
|
288
|
+
fromProtoMsg(message) {
|
|
289
|
+
return Output.decode(message.value);
|
|
290
|
+
},
|
|
291
|
+
toProto(message) {
|
|
292
|
+
return Output.encode(message).finish();
|
|
293
|
+
},
|
|
294
|
+
toProtoMsg(message) {
|
|
295
|
+
return {
|
|
296
|
+
typeUrl: "/cosmos.bank.v1beta1.Output",
|
|
297
|
+
value: Output.encode(message).finish()
|
|
298
|
+
};
|
|
299
|
+
},
|
|
300
|
+
registerTypeUrl() {
|
|
301
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(Output.typeUrl)) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
Coin.registerTypeUrl();
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
GlobalDecoderRegistry.register(Output.typeUrl, Output);
|
|
308
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Output.aminoType, Output.typeUrl);
|
|
309
|
+
function createBaseSupply() {
|
|
310
|
+
return {
|
|
311
|
+
$typeUrl: "/cosmos.bank.v1beta1.Supply",
|
|
312
|
+
total: []
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Supply represents a struct that passively keeps track of the total supply
|
|
317
|
+
* amounts in the network.
|
|
318
|
+
* This message is deprecated now that supply is indexed by denom.
|
|
319
|
+
* @name Supply
|
|
320
|
+
* @package cosmos.bank.v1beta1
|
|
321
|
+
* @see proto type: cosmos.bank.v1beta1.Supply
|
|
322
|
+
* @deprecated
|
|
323
|
+
*/
|
|
324
|
+
export const Supply = {
|
|
325
|
+
typeUrl: "/cosmos.bank.v1beta1.Supply",
|
|
326
|
+
aminoType: "cosmos-sdk/Supply",
|
|
327
|
+
is(o) {
|
|
328
|
+
return o && (o.$typeUrl === Supply.typeUrl || Array.isArray(o.total) && (!o.total.length || Coin.is(o.total[0])));
|
|
329
|
+
},
|
|
330
|
+
isSDK(o) {
|
|
331
|
+
return o && (o.$typeUrl === Supply.typeUrl || Array.isArray(o.total) && (!o.total.length || Coin.isSDK(o.total[0])));
|
|
332
|
+
},
|
|
333
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
334
|
+
for (const v of message.total) {
|
|
335
|
+
Coin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
336
|
+
}
|
|
337
|
+
return writer;
|
|
338
|
+
},
|
|
339
|
+
decode(input, length) {
|
|
340
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
341
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
342
|
+
const message = createBaseSupply();
|
|
343
|
+
while (reader.pos < end) {
|
|
344
|
+
const tag = reader.uint32();
|
|
345
|
+
switch (tag >>> 3) {
|
|
346
|
+
case 1:
|
|
347
|
+
message.total.push(Coin.decode(reader, reader.uint32()));
|
|
348
|
+
break;
|
|
349
|
+
default:
|
|
350
|
+
reader.skipType(tag & 7);
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
return message;
|
|
355
|
+
},
|
|
356
|
+
fromPartial(object) {
|
|
357
|
+
const message = createBaseSupply();
|
|
358
|
+
message.total = object.total?.map(e => Coin.fromPartial(e)) || [];
|
|
359
|
+
return message;
|
|
360
|
+
},
|
|
361
|
+
fromProtoMsg(message) {
|
|
362
|
+
return Supply.decode(message.value);
|
|
363
|
+
},
|
|
364
|
+
toProto(message) {
|
|
365
|
+
return Supply.encode(message).finish();
|
|
366
|
+
},
|
|
367
|
+
toProtoMsg(message) {
|
|
368
|
+
return {
|
|
369
|
+
typeUrl: "/cosmos.bank.v1beta1.Supply",
|
|
370
|
+
value: Supply.encode(message).finish()
|
|
371
|
+
};
|
|
372
|
+
},
|
|
373
|
+
registerTypeUrl() {
|
|
374
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(Supply.typeUrl)) {
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
GlobalDecoderRegistry.register(Supply.typeUrl, Supply);
|
|
378
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Supply.aminoType, Supply.typeUrl);
|
|
379
|
+
Coin.registerTypeUrl();
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
GlobalDecoderRegistry.register(Supply.typeUrl, Supply);
|
|
383
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Supply.aminoType, Supply.typeUrl);
|
|
384
|
+
function createBaseDenomUnit() {
|
|
385
|
+
return {
|
|
386
|
+
denom: "",
|
|
387
|
+
exponent: 0,
|
|
388
|
+
aliases: []
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* DenomUnit represents a struct that describes a given
|
|
393
|
+
* denomination unit of the basic token.
|
|
394
|
+
* @name DenomUnit
|
|
395
|
+
* @package cosmos.bank.v1beta1
|
|
396
|
+
* @see proto type: cosmos.bank.v1beta1.DenomUnit
|
|
397
|
+
*/
|
|
398
|
+
export const DenomUnit = {
|
|
399
|
+
typeUrl: "/cosmos.bank.v1beta1.DenomUnit",
|
|
400
|
+
aminoType: "cosmos-sdk/DenomUnit",
|
|
401
|
+
is(o) {
|
|
402
|
+
return o && (o.$typeUrl === DenomUnit.typeUrl || typeof o.denom === "string" && typeof o.exponent === "number" && Array.isArray(o.aliases) && (!o.aliases.length || typeof o.aliases[0] === "string"));
|
|
403
|
+
},
|
|
404
|
+
isSDK(o) {
|
|
405
|
+
return o && (o.$typeUrl === DenomUnit.typeUrl || typeof o.denom === "string" && typeof o.exponent === "number" && Array.isArray(o.aliases) && (!o.aliases.length || typeof o.aliases[0] === "string"));
|
|
406
|
+
},
|
|
407
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
408
|
+
if (message.denom !== "") {
|
|
409
|
+
writer.uint32(10).string(message.denom);
|
|
410
|
+
}
|
|
411
|
+
if (message.exponent !== 0) {
|
|
412
|
+
writer.uint32(16).uint32(message.exponent);
|
|
413
|
+
}
|
|
414
|
+
for (const v of message.aliases) {
|
|
415
|
+
writer.uint32(26).string(v);
|
|
416
|
+
}
|
|
417
|
+
return writer;
|
|
418
|
+
},
|
|
419
|
+
decode(input, length) {
|
|
420
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
421
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
422
|
+
const message = createBaseDenomUnit();
|
|
423
|
+
while (reader.pos < end) {
|
|
424
|
+
const tag = reader.uint32();
|
|
425
|
+
switch (tag >>> 3) {
|
|
426
|
+
case 1:
|
|
427
|
+
message.denom = reader.string();
|
|
428
|
+
break;
|
|
429
|
+
case 2:
|
|
430
|
+
message.exponent = reader.uint32();
|
|
431
|
+
break;
|
|
432
|
+
case 3:
|
|
433
|
+
message.aliases.push(reader.string());
|
|
434
|
+
break;
|
|
435
|
+
default:
|
|
436
|
+
reader.skipType(tag & 7);
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
return message;
|
|
441
|
+
},
|
|
442
|
+
fromPartial(object) {
|
|
443
|
+
const message = createBaseDenomUnit();
|
|
444
|
+
message.denom = object.denom ?? "";
|
|
445
|
+
message.exponent = object.exponent ?? 0;
|
|
446
|
+
message.aliases = object.aliases?.map(e => e) || [];
|
|
447
|
+
return message;
|
|
448
|
+
},
|
|
449
|
+
fromProtoMsg(message) {
|
|
450
|
+
return DenomUnit.decode(message.value);
|
|
451
|
+
},
|
|
452
|
+
toProto(message) {
|
|
453
|
+
return DenomUnit.encode(message).finish();
|
|
454
|
+
},
|
|
455
|
+
toProtoMsg(message) {
|
|
456
|
+
return {
|
|
457
|
+
typeUrl: "/cosmos.bank.v1beta1.DenomUnit",
|
|
458
|
+
value: DenomUnit.encode(message).finish()
|
|
459
|
+
};
|
|
460
|
+
},
|
|
461
|
+
registerTypeUrl() { }
|
|
462
|
+
};
|
|
463
|
+
GlobalDecoderRegistry.register(DenomUnit.typeUrl, DenomUnit);
|
|
464
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(DenomUnit.aminoType, DenomUnit.typeUrl);
|
|
465
|
+
function createBaseMetadata() {
|
|
466
|
+
return {
|
|
467
|
+
description: "",
|
|
468
|
+
denomUnits: [],
|
|
469
|
+
base: "",
|
|
470
|
+
display: "",
|
|
471
|
+
name: "",
|
|
472
|
+
symbol: "",
|
|
473
|
+
uri: "",
|
|
474
|
+
uriHash: ""
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Metadata represents a struct that describes
|
|
479
|
+
* a basic token.
|
|
480
|
+
* @name Metadata
|
|
481
|
+
* @package cosmos.bank.v1beta1
|
|
482
|
+
* @see proto type: cosmos.bank.v1beta1.Metadata
|
|
483
|
+
*/
|
|
484
|
+
export const Metadata = {
|
|
485
|
+
typeUrl: "/cosmos.bank.v1beta1.Metadata",
|
|
486
|
+
aminoType: "cosmos-sdk/Metadata",
|
|
487
|
+
is(o) {
|
|
488
|
+
return o && (o.$typeUrl === Metadata.typeUrl || typeof o.description === "string" && Array.isArray(o.denomUnits) && (!o.denomUnits.length || DenomUnit.is(o.denomUnits[0])) && typeof o.base === "string" && typeof o.display === "string" && typeof o.name === "string" && typeof o.symbol === "string" && typeof o.uri === "string" && typeof o.uriHash === "string");
|
|
489
|
+
},
|
|
490
|
+
isSDK(o) {
|
|
491
|
+
return o && (o.$typeUrl === Metadata.typeUrl || typeof o.description === "string" && Array.isArray(o.denom_units) && (!o.denom_units.length || DenomUnit.isSDK(o.denom_units[0])) && typeof o.base === "string" && typeof o.display === "string" && typeof o.name === "string" && typeof o.symbol === "string" && typeof o.uri === "string" && typeof o.uri_hash === "string");
|
|
492
|
+
},
|
|
493
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
494
|
+
if (message.description !== "") {
|
|
495
|
+
writer.uint32(10).string(message.description);
|
|
496
|
+
}
|
|
497
|
+
for (const v of message.denomUnits) {
|
|
498
|
+
DenomUnit.encode(v, writer.uint32(18).fork()).ldelim();
|
|
499
|
+
}
|
|
500
|
+
if (message.base !== "") {
|
|
501
|
+
writer.uint32(26).string(message.base);
|
|
502
|
+
}
|
|
503
|
+
if (message.display !== "") {
|
|
504
|
+
writer.uint32(34).string(message.display);
|
|
505
|
+
}
|
|
506
|
+
if (message.name !== "") {
|
|
507
|
+
writer.uint32(42).string(message.name);
|
|
508
|
+
}
|
|
509
|
+
if (message.symbol !== "") {
|
|
510
|
+
writer.uint32(50).string(message.symbol);
|
|
511
|
+
}
|
|
512
|
+
if (message.uri !== "") {
|
|
513
|
+
writer.uint32(58).string(message.uri);
|
|
514
|
+
}
|
|
515
|
+
if (message.uriHash !== "") {
|
|
516
|
+
writer.uint32(66).string(message.uriHash);
|
|
517
|
+
}
|
|
518
|
+
return writer;
|
|
519
|
+
},
|
|
520
|
+
decode(input, length) {
|
|
521
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
522
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
523
|
+
const message = createBaseMetadata();
|
|
524
|
+
while (reader.pos < end) {
|
|
525
|
+
const tag = reader.uint32();
|
|
526
|
+
switch (tag >>> 3) {
|
|
527
|
+
case 1:
|
|
528
|
+
message.description = reader.string();
|
|
529
|
+
break;
|
|
530
|
+
case 2:
|
|
531
|
+
message.denomUnits.push(DenomUnit.decode(reader, reader.uint32()));
|
|
532
|
+
break;
|
|
533
|
+
case 3:
|
|
534
|
+
message.base = reader.string();
|
|
535
|
+
break;
|
|
536
|
+
case 4:
|
|
537
|
+
message.display = reader.string();
|
|
538
|
+
break;
|
|
539
|
+
case 5:
|
|
540
|
+
message.name = reader.string();
|
|
541
|
+
break;
|
|
542
|
+
case 6:
|
|
543
|
+
message.symbol = reader.string();
|
|
544
|
+
break;
|
|
545
|
+
case 7:
|
|
546
|
+
message.uri = reader.string();
|
|
547
|
+
break;
|
|
548
|
+
case 8:
|
|
549
|
+
message.uriHash = reader.string();
|
|
550
|
+
break;
|
|
551
|
+
default:
|
|
552
|
+
reader.skipType(tag & 7);
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
return message;
|
|
557
|
+
},
|
|
558
|
+
fromPartial(object) {
|
|
559
|
+
const message = createBaseMetadata();
|
|
560
|
+
message.description = object.description ?? "";
|
|
561
|
+
message.denomUnits = object.denomUnits?.map(e => DenomUnit.fromPartial(e)) || [];
|
|
562
|
+
message.base = object.base ?? "";
|
|
563
|
+
message.display = object.display ?? "";
|
|
564
|
+
message.name = object.name ?? "";
|
|
565
|
+
message.symbol = object.symbol ?? "";
|
|
566
|
+
message.uri = object.uri ?? "";
|
|
567
|
+
message.uriHash = object.uriHash ?? "";
|
|
568
|
+
return message;
|
|
569
|
+
},
|
|
570
|
+
fromProtoMsg(message) {
|
|
571
|
+
return Metadata.decode(message.value);
|
|
572
|
+
},
|
|
573
|
+
toProto(message) {
|
|
574
|
+
return Metadata.encode(message).finish();
|
|
575
|
+
},
|
|
576
|
+
toProtoMsg(message) {
|
|
577
|
+
return {
|
|
578
|
+
typeUrl: "/cosmos.bank.v1beta1.Metadata",
|
|
579
|
+
value: Metadata.encode(message).finish()
|
|
580
|
+
};
|
|
581
|
+
},
|
|
582
|
+
registerTypeUrl() {
|
|
583
|
+
if (!GlobalDecoderRegistry.registerExistingTypeUrl(Metadata.typeUrl)) {
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
586
|
+
DenomUnit.registerTypeUrl();
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
GlobalDecoderRegistry.register(Metadata.typeUrl, Metadata);
|
|
590
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Metadata.aminoType, Metadata.typeUrl);
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Params, ParamsSDKType, Metadata, MetadataSDKType, SendEnabled, SendEnabledSDKType } from "./bank";
|
|
2
|
+
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
|
4
|
+
/**
|
|
5
|
+
* GenesisState defines the bank module's genesis state.
|
|
6
|
+
* @name GenesisState
|
|
7
|
+
* @package cosmos.bank.v1beta1
|
|
8
|
+
* @see proto type: cosmos.bank.v1beta1.GenesisState
|
|
9
|
+
*/
|
|
10
|
+
export interface GenesisState {
|
|
11
|
+
/**
|
|
12
|
+
* params defines all the parameters of the module.
|
|
13
|
+
*/
|
|
14
|
+
params: Params;
|
|
15
|
+
/**
|
|
16
|
+
* balances is an array containing the balances of all the accounts.
|
|
17
|
+
*/
|
|
18
|
+
balances: Balance[];
|
|
19
|
+
/**
|
|
20
|
+
* supply represents the total supply. If it is left empty, then supply will be calculated based on the provided
|
|
21
|
+
* balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
|
|
22
|
+
*/
|
|
23
|
+
supply: Coin[];
|
|
24
|
+
/**
|
|
25
|
+
* denom_metadata defines the metadata of the different coins.
|
|
26
|
+
*/
|
|
27
|
+
denomMetadata: Metadata[];
|
|
28
|
+
/**
|
|
29
|
+
* send_enabled defines the denoms where send is enabled or disabled.
|
|
30
|
+
*
|
|
31
|
+
* Since: cosmos-sdk 0.47
|
|
32
|
+
*/
|
|
33
|
+
sendEnabled: SendEnabled[];
|
|
34
|
+
}
|
|
35
|
+
export interface GenesisStateProtoMsg {
|
|
36
|
+
typeUrl: "/cosmos.bank.v1beta1.GenesisState";
|
|
37
|
+
value: Uint8Array;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* GenesisState defines the bank module's genesis state.
|
|
41
|
+
* @name GenesisStateSDKType
|
|
42
|
+
* @package cosmos.bank.v1beta1
|
|
43
|
+
* @see proto type: cosmos.bank.v1beta1.GenesisState
|
|
44
|
+
*/
|
|
45
|
+
export interface GenesisStateSDKType {
|
|
46
|
+
params: ParamsSDKType;
|
|
47
|
+
balances: BalanceSDKType[];
|
|
48
|
+
supply: CoinSDKType[];
|
|
49
|
+
denom_metadata: MetadataSDKType[];
|
|
50
|
+
send_enabled: SendEnabledSDKType[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Balance defines an account address and balance pair used in the bank module's
|
|
54
|
+
* genesis state.
|
|
55
|
+
* @name Balance
|
|
56
|
+
* @package cosmos.bank.v1beta1
|
|
57
|
+
* @see proto type: cosmos.bank.v1beta1.Balance
|
|
58
|
+
*/
|
|
59
|
+
export interface Balance {
|
|
60
|
+
/**
|
|
61
|
+
* address is the address of the balance holder.
|
|
62
|
+
*/
|
|
63
|
+
address: string;
|
|
64
|
+
/**
|
|
65
|
+
* coins defines the different coins this balance holds.
|
|
66
|
+
*/
|
|
67
|
+
coins: Coin[];
|
|
68
|
+
}
|
|
69
|
+
export interface BalanceProtoMsg {
|
|
70
|
+
typeUrl: "/cosmos.bank.v1beta1.Balance";
|
|
71
|
+
value: Uint8Array;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Balance defines an account address and balance pair used in the bank module's
|
|
75
|
+
* genesis state.
|
|
76
|
+
* @name BalanceSDKType
|
|
77
|
+
* @package cosmos.bank.v1beta1
|
|
78
|
+
* @see proto type: cosmos.bank.v1beta1.Balance
|
|
79
|
+
*/
|
|
80
|
+
export interface BalanceSDKType {
|
|
81
|
+
address: string;
|
|
82
|
+
coins: CoinSDKType[];
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* GenesisState defines the bank module's genesis state.
|
|
86
|
+
* @name GenesisState
|
|
87
|
+
* @package cosmos.bank.v1beta1
|
|
88
|
+
* @see proto type: cosmos.bank.v1beta1.GenesisState
|
|
89
|
+
*/
|
|
90
|
+
export declare const GenesisState: {
|
|
91
|
+
typeUrl: string;
|
|
92
|
+
aminoType: string;
|
|
93
|
+
is(o: any): o is GenesisState;
|
|
94
|
+
isSDK(o: any): o is GenesisStateSDKType;
|
|
95
|
+
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
96
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
|
97
|
+
fromPartial(object: Partial<GenesisState>): GenesisState;
|
|
98
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState;
|
|
99
|
+
toProto(message: GenesisState): Uint8Array;
|
|
100
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
101
|
+
registerTypeUrl(): void;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Balance defines an account address and balance pair used in the bank module's
|
|
105
|
+
* genesis state.
|
|
106
|
+
* @name Balance
|
|
107
|
+
* @package cosmos.bank.v1beta1
|
|
108
|
+
* @see proto type: cosmos.bank.v1beta1.Balance
|
|
109
|
+
*/
|
|
110
|
+
export declare const Balance: {
|
|
111
|
+
typeUrl: string;
|
|
112
|
+
aminoType: string;
|
|
113
|
+
is(o: any): o is Balance;
|
|
114
|
+
isSDK(o: any): o is BalanceSDKType;
|
|
115
|
+
encode(message: Balance, writer?: _m0.Writer): _m0.Writer;
|
|
116
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Balance;
|
|
117
|
+
fromPartial(object: Partial<Balance>): Balance;
|
|
118
|
+
fromProtoMsg(message: BalanceProtoMsg): Balance;
|
|
119
|
+
toProto(message: Balance): Uint8Array;
|
|
120
|
+
toProtoMsg(message: Balance): BalanceProtoMsg;
|
|
121
|
+
registerTypeUrl(): void;
|
|
122
|
+
};
|