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,284 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
+
import { Decimal } from "@interchainjs/math";
|
|
5
|
+
function createBaseCoin() {
|
|
6
|
+
return {
|
|
7
|
+
denom: "",
|
|
8
|
+
amount: ""
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Coin defines a token with a denomination and an amount.
|
|
13
|
+
*
|
|
14
|
+
* NOTE: The amount field is an Int which implements the custom method
|
|
15
|
+
* signatures required by gogoproto.
|
|
16
|
+
* @name Coin
|
|
17
|
+
* @package cosmos.base.v1beta1
|
|
18
|
+
* @see proto type: cosmos.base.v1beta1.Coin
|
|
19
|
+
*/
|
|
20
|
+
export const Coin = {
|
|
21
|
+
typeUrl: "/cosmos.base.v1beta1.Coin",
|
|
22
|
+
aminoType: "cosmos-sdk/Coin",
|
|
23
|
+
is(o) {
|
|
24
|
+
return o && (o.$typeUrl === Coin.typeUrl || typeof o.denom === "string" && typeof o.amount === "string");
|
|
25
|
+
},
|
|
26
|
+
isSDK(o) {
|
|
27
|
+
return o && (o.$typeUrl === Coin.typeUrl || typeof o.denom === "string" && typeof o.amount === "string");
|
|
28
|
+
},
|
|
29
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
30
|
+
if (message.denom !== "") {
|
|
31
|
+
writer.uint32(10).string(message.denom);
|
|
32
|
+
}
|
|
33
|
+
if (message.amount !== "") {
|
|
34
|
+
writer.uint32(18).string(message.amount);
|
|
35
|
+
}
|
|
36
|
+
return writer;
|
|
37
|
+
},
|
|
38
|
+
decode(input, length) {
|
|
39
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
40
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
41
|
+
const message = createBaseCoin();
|
|
42
|
+
while (reader.pos < end) {
|
|
43
|
+
const tag = reader.uint32();
|
|
44
|
+
switch (tag >>> 3) {
|
|
45
|
+
case 1:
|
|
46
|
+
message.denom = reader.string();
|
|
47
|
+
break;
|
|
48
|
+
case 2:
|
|
49
|
+
message.amount = reader.string();
|
|
50
|
+
break;
|
|
51
|
+
default:
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return message;
|
|
57
|
+
},
|
|
58
|
+
fromPartial(object) {
|
|
59
|
+
const message = createBaseCoin();
|
|
60
|
+
message.denom = object.denom ?? "";
|
|
61
|
+
message.amount = object.amount ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromProtoMsg(message) {
|
|
65
|
+
return Coin.decode(message.value);
|
|
66
|
+
},
|
|
67
|
+
toProto(message) {
|
|
68
|
+
return Coin.encode(message).finish();
|
|
69
|
+
},
|
|
70
|
+
toProtoMsg(message) {
|
|
71
|
+
return {
|
|
72
|
+
typeUrl: "/cosmos.base.v1beta1.Coin",
|
|
73
|
+
value: Coin.encode(message).finish()
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
registerTypeUrl() { }
|
|
77
|
+
};
|
|
78
|
+
GlobalDecoderRegistry.register(Coin.typeUrl, Coin);
|
|
79
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Coin.aminoType, Coin.typeUrl);
|
|
80
|
+
function createBaseDecCoin() {
|
|
81
|
+
return {
|
|
82
|
+
denom: "",
|
|
83
|
+
amount: ""
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* DecCoin defines a token with a denomination and a decimal amount.
|
|
88
|
+
*
|
|
89
|
+
* NOTE: The amount field is an Dec which implements the custom method
|
|
90
|
+
* signatures required by gogoproto.
|
|
91
|
+
* @name DecCoin
|
|
92
|
+
* @package cosmos.base.v1beta1
|
|
93
|
+
* @see proto type: cosmos.base.v1beta1.DecCoin
|
|
94
|
+
*/
|
|
95
|
+
export const DecCoin = {
|
|
96
|
+
typeUrl: "/cosmos.base.v1beta1.DecCoin",
|
|
97
|
+
aminoType: "cosmos-sdk/DecCoin",
|
|
98
|
+
is(o) {
|
|
99
|
+
return o && (o.$typeUrl === DecCoin.typeUrl || typeof o.denom === "string" && typeof o.amount === "string");
|
|
100
|
+
},
|
|
101
|
+
isSDK(o) {
|
|
102
|
+
return o && (o.$typeUrl === DecCoin.typeUrl || typeof o.denom === "string" && typeof o.amount === "string");
|
|
103
|
+
},
|
|
104
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
105
|
+
if (message.denom !== "") {
|
|
106
|
+
writer.uint32(10).string(message.denom);
|
|
107
|
+
}
|
|
108
|
+
if (message.amount !== "") {
|
|
109
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.amount, 18).atomics);
|
|
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 = createBaseDecCoin();
|
|
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.amount = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
125
|
+
break;
|
|
126
|
+
default:
|
|
127
|
+
reader.skipType(tag & 7);
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return message;
|
|
132
|
+
},
|
|
133
|
+
fromPartial(object) {
|
|
134
|
+
const message = createBaseDecCoin();
|
|
135
|
+
message.denom = object.denom ?? "";
|
|
136
|
+
message.amount = object.amount ?? "";
|
|
137
|
+
return message;
|
|
138
|
+
},
|
|
139
|
+
fromProtoMsg(message) {
|
|
140
|
+
return DecCoin.decode(message.value);
|
|
141
|
+
},
|
|
142
|
+
toProto(message) {
|
|
143
|
+
return DecCoin.encode(message).finish();
|
|
144
|
+
},
|
|
145
|
+
toProtoMsg(message) {
|
|
146
|
+
return {
|
|
147
|
+
typeUrl: "/cosmos.base.v1beta1.DecCoin",
|
|
148
|
+
value: DecCoin.encode(message).finish()
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
registerTypeUrl() { }
|
|
152
|
+
};
|
|
153
|
+
GlobalDecoderRegistry.register(DecCoin.typeUrl, DecCoin);
|
|
154
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(DecCoin.aminoType, DecCoin.typeUrl);
|
|
155
|
+
function createBaseIntProto() {
|
|
156
|
+
return {
|
|
157
|
+
int: ""
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* IntProto defines a Protobuf wrapper around an Int object.
|
|
162
|
+
* Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
|
|
163
|
+
* @name IntProto
|
|
164
|
+
* @package cosmos.base.v1beta1
|
|
165
|
+
* @see proto type: cosmos.base.v1beta1.IntProto
|
|
166
|
+
*/
|
|
167
|
+
export const IntProto = {
|
|
168
|
+
typeUrl: "/cosmos.base.v1beta1.IntProto",
|
|
169
|
+
aminoType: "cosmos-sdk/IntProto",
|
|
170
|
+
is(o) {
|
|
171
|
+
return o && (o.$typeUrl === IntProto.typeUrl || typeof o.int === "string");
|
|
172
|
+
},
|
|
173
|
+
isSDK(o) {
|
|
174
|
+
return o && (o.$typeUrl === IntProto.typeUrl || typeof o.int === "string");
|
|
175
|
+
},
|
|
176
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
177
|
+
if (message.int !== "") {
|
|
178
|
+
writer.uint32(10).string(message.int);
|
|
179
|
+
}
|
|
180
|
+
return writer;
|
|
181
|
+
},
|
|
182
|
+
decode(input, length) {
|
|
183
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
184
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
185
|
+
const message = createBaseIntProto();
|
|
186
|
+
while (reader.pos < end) {
|
|
187
|
+
const tag = reader.uint32();
|
|
188
|
+
switch (tag >>> 3) {
|
|
189
|
+
case 1:
|
|
190
|
+
message.int = reader.string();
|
|
191
|
+
break;
|
|
192
|
+
default:
|
|
193
|
+
reader.skipType(tag & 7);
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return message;
|
|
198
|
+
},
|
|
199
|
+
fromPartial(object) {
|
|
200
|
+
const message = createBaseIntProto();
|
|
201
|
+
message.int = object.int ?? "";
|
|
202
|
+
return message;
|
|
203
|
+
},
|
|
204
|
+
fromProtoMsg(message) {
|
|
205
|
+
return IntProto.decode(message.value);
|
|
206
|
+
},
|
|
207
|
+
toProto(message) {
|
|
208
|
+
return IntProto.encode(message).finish();
|
|
209
|
+
},
|
|
210
|
+
toProtoMsg(message) {
|
|
211
|
+
return {
|
|
212
|
+
typeUrl: "/cosmos.base.v1beta1.IntProto",
|
|
213
|
+
value: IntProto.encode(message).finish()
|
|
214
|
+
};
|
|
215
|
+
},
|
|
216
|
+
registerTypeUrl() { }
|
|
217
|
+
};
|
|
218
|
+
GlobalDecoderRegistry.register(IntProto.typeUrl, IntProto);
|
|
219
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(IntProto.aminoType, IntProto.typeUrl);
|
|
220
|
+
function createBaseDecProto() {
|
|
221
|
+
return {
|
|
222
|
+
dec: ""
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* DecProto defines a Protobuf wrapper around a Dec object.
|
|
227
|
+
* Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
|
|
228
|
+
* @name DecProto
|
|
229
|
+
* @package cosmos.base.v1beta1
|
|
230
|
+
* @see proto type: cosmos.base.v1beta1.DecProto
|
|
231
|
+
*/
|
|
232
|
+
export const DecProto = {
|
|
233
|
+
typeUrl: "/cosmos.base.v1beta1.DecProto",
|
|
234
|
+
aminoType: "cosmos-sdk/DecProto",
|
|
235
|
+
is(o) {
|
|
236
|
+
return o && (o.$typeUrl === DecProto.typeUrl || typeof o.dec === "string");
|
|
237
|
+
},
|
|
238
|
+
isSDK(o) {
|
|
239
|
+
return o && (o.$typeUrl === DecProto.typeUrl || typeof o.dec === "string");
|
|
240
|
+
},
|
|
241
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
242
|
+
if (message.dec !== "") {
|
|
243
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.dec, 18).atomics);
|
|
244
|
+
}
|
|
245
|
+
return writer;
|
|
246
|
+
},
|
|
247
|
+
decode(input, length) {
|
|
248
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
249
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
250
|
+
const message = createBaseDecProto();
|
|
251
|
+
while (reader.pos < end) {
|
|
252
|
+
const tag = reader.uint32();
|
|
253
|
+
switch (tag >>> 3) {
|
|
254
|
+
case 1:
|
|
255
|
+
message.dec = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
256
|
+
break;
|
|
257
|
+
default:
|
|
258
|
+
reader.skipType(tag & 7);
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return message;
|
|
263
|
+
},
|
|
264
|
+
fromPartial(object) {
|
|
265
|
+
const message = createBaseDecProto();
|
|
266
|
+
message.dec = object.dec ?? "";
|
|
267
|
+
return message;
|
|
268
|
+
},
|
|
269
|
+
fromProtoMsg(message) {
|
|
270
|
+
return DecProto.decode(message.value);
|
|
271
|
+
},
|
|
272
|
+
toProto(message) {
|
|
273
|
+
return DecProto.encode(message).finish();
|
|
274
|
+
},
|
|
275
|
+
toProtoMsg(message) {
|
|
276
|
+
return {
|
|
277
|
+
typeUrl: "/cosmos.base.v1beta1.DecProto",
|
|
278
|
+
value: DecProto.encode(message).finish()
|
|
279
|
+
};
|
|
280
|
+
},
|
|
281
|
+
registerTypeUrl() { }
|
|
282
|
+
};
|
|
283
|
+
GlobalDecoderRegistry.register(DecProto.typeUrl, DecProto);
|
|
284
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(DecProto.aminoType, DecProto.typeUrl);
|