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,244 @@
|
|
|
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 () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ScalarDescriptor = exports.InterfaceDescriptor = exports.ScalarTypeSDKType = exports.ScalarType = void 0;
|
|
37
|
+
exports.scalarTypeFromJSON = scalarTypeFromJSON;
|
|
38
|
+
exports.scalarTypeToJSON = scalarTypeToJSON;
|
|
39
|
+
//@ts-nocheck
|
|
40
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
41
|
+
const registry_1 = require("../registry");
|
|
42
|
+
var ScalarType;
|
|
43
|
+
(function (ScalarType) {
|
|
44
|
+
ScalarType[ScalarType["SCALAR_TYPE_UNSPECIFIED"] = 0] = "SCALAR_TYPE_UNSPECIFIED";
|
|
45
|
+
ScalarType[ScalarType["SCALAR_TYPE_STRING"] = 1] = "SCALAR_TYPE_STRING";
|
|
46
|
+
ScalarType[ScalarType["SCALAR_TYPE_BYTES"] = 2] = "SCALAR_TYPE_BYTES";
|
|
47
|
+
ScalarType[ScalarType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
48
|
+
})(ScalarType || (exports.ScalarType = ScalarType = {}));
|
|
49
|
+
exports.ScalarTypeSDKType = ScalarType;
|
|
50
|
+
function scalarTypeFromJSON(object) {
|
|
51
|
+
switch (object) {
|
|
52
|
+
case 0:
|
|
53
|
+
case "SCALAR_TYPE_UNSPECIFIED":
|
|
54
|
+
return ScalarType.SCALAR_TYPE_UNSPECIFIED;
|
|
55
|
+
case 1:
|
|
56
|
+
case "SCALAR_TYPE_STRING":
|
|
57
|
+
return ScalarType.SCALAR_TYPE_STRING;
|
|
58
|
+
case 2:
|
|
59
|
+
case "SCALAR_TYPE_BYTES":
|
|
60
|
+
return ScalarType.SCALAR_TYPE_BYTES;
|
|
61
|
+
case -1:
|
|
62
|
+
case "UNRECOGNIZED":
|
|
63
|
+
default:
|
|
64
|
+
return ScalarType.UNRECOGNIZED;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function scalarTypeToJSON(object) {
|
|
68
|
+
switch (object) {
|
|
69
|
+
case ScalarType.SCALAR_TYPE_UNSPECIFIED:
|
|
70
|
+
return "SCALAR_TYPE_UNSPECIFIED";
|
|
71
|
+
case ScalarType.SCALAR_TYPE_STRING:
|
|
72
|
+
return "SCALAR_TYPE_STRING";
|
|
73
|
+
case ScalarType.SCALAR_TYPE_BYTES:
|
|
74
|
+
return "SCALAR_TYPE_BYTES";
|
|
75
|
+
case ScalarType.UNRECOGNIZED:
|
|
76
|
+
default:
|
|
77
|
+
return "UNRECOGNIZED";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function createBaseInterfaceDescriptor() {
|
|
81
|
+
return {
|
|
82
|
+
name: "",
|
|
83
|
+
description: ""
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* InterfaceDescriptor describes an interface type to be used with
|
|
88
|
+
* accepts_interface and implements_interface and declared by declare_interface.
|
|
89
|
+
* @name InterfaceDescriptor
|
|
90
|
+
* @package cosmos_proto
|
|
91
|
+
* @see proto type: cosmos_proto.InterfaceDescriptor
|
|
92
|
+
*/
|
|
93
|
+
exports.InterfaceDescriptor = {
|
|
94
|
+
typeUrl: "/cosmos_proto.InterfaceDescriptor",
|
|
95
|
+
is(o) {
|
|
96
|
+
return o && (o.$typeUrl === exports.InterfaceDescriptor.typeUrl || typeof o.name === "string" && typeof o.description === "string");
|
|
97
|
+
},
|
|
98
|
+
isSDK(o) {
|
|
99
|
+
return o && (o.$typeUrl === exports.InterfaceDescriptor.typeUrl || typeof o.name === "string" && typeof o.description === "string");
|
|
100
|
+
},
|
|
101
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
102
|
+
if (message.name !== "") {
|
|
103
|
+
writer.uint32(10).string(message.name);
|
|
104
|
+
}
|
|
105
|
+
if (message.description !== "") {
|
|
106
|
+
writer.uint32(18).string(message.description);
|
|
107
|
+
}
|
|
108
|
+
return writer;
|
|
109
|
+
},
|
|
110
|
+
decode(input, length) {
|
|
111
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
112
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
113
|
+
const message = createBaseInterfaceDescriptor();
|
|
114
|
+
while (reader.pos < end) {
|
|
115
|
+
const tag = reader.uint32();
|
|
116
|
+
switch (tag >>> 3) {
|
|
117
|
+
case 1:
|
|
118
|
+
message.name = reader.string();
|
|
119
|
+
break;
|
|
120
|
+
case 2:
|
|
121
|
+
message.description = reader.string();
|
|
122
|
+
break;
|
|
123
|
+
default:
|
|
124
|
+
reader.skipType(tag & 7);
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
fromPartial(object) {
|
|
131
|
+
const message = createBaseInterfaceDescriptor();
|
|
132
|
+
message.name = object.name ?? "";
|
|
133
|
+
message.description = object.description ?? "";
|
|
134
|
+
return message;
|
|
135
|
+
},
|
|
136
|
+
fromProtoMsg(message) {
|
|
137
|
+
return exports.InterfaceDescriptor.decode(message.value);
|
|
138
|
+
},
|
|
139
|
+
toProto(message) {
|
|
140
|
+
return exports.InterfaceDescriptor.encode(message).finish();
|
|
141
|
+
},
|
|
142
|
+
toProtoMsg(message) {
|
|
143
|
+
return {
|
|
144
|
+
typeUrl: "/cosmos_proto.InterfaceDescriptor",
|
|
145
|
+
value: exports.InterfaceDescriptor.encode(message).finish()
|
|
146
|
+
};
|
|
147
|
+
},
|
|
148
|
+
registerTypeUrl() { }
|
|
149
|
+
};
|
|
150
|
+
registry_1.GlobalDecoderRegistry.register(exports.InterfaceDescriptor.typeUrl, exports.InterfaceDescriptor);
|
|
151
|
+
function createBaseScalarDescriptor() {
|
|
152
|
+
return {
|
|
153
|
+
name: "",
|
|
154
|
+
description: "",
|
|
155
|
+
fieldType: []
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* ScalarDescriptor describes an scalar type to be used with
|
|
160
|
+
* the scalar field option and declared by declare_scalar.
|
|
161
|
+
* Scalars extend simple protobuf built-in types with additional
|
|
162
|
+
* syntax and semantics, for instance to represent big integers.
|
|
163
|
+
* Scalars should ideally define an encoding such that there is only one
|
|
164
|
+
* valid syntactical representation for a given semantic meaning,
|
|
165
|
+
* i.e. the encoding should be deterministic.
|
|
166
|
+
* @name ScalarDescriptor
|
|
167
|
+
* @package cosmos_proto
|
|
168
|
+
* @see proto type: cosmos_proto.ScalarDescriptor
|
|
169
|
+
*/
|
|
170
|
+
exports.ScalarDescriptor = {
|
|
171
|
+
typeUrl: "/cosmos_proto.ScalarDescriptor",
|
|
172
|
+
is(o) {
|
|
173
|
+
return o && (o.$typeUrl === exports.ScalarDescriptor.typeUrl || typeof o.name === "string" && typeof o.description === "string" && Array.isArray(o.fieldType));
|
|
174
|
+
},
|
|
175
|
+
isSDK(o) {
|
|
176
|
+
return o && (o.$typeUrl === exports.ScalarDescriptor.typeUrl || typeof o.name === "string" && typeof o.description === "string" && Array.isArray(o.field_type));
|
|
177
|
+
},
|
|
178
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
179
|
+
if (message.name !== "") {
|
|
180
|
+
writer.uint32(10).string(message.name);
|
|
181
|
+
}
|
|
182
|
+
if (message.description !== "") {
|
|
183
|
+
writer.uint32(18).string(message.description);
|
|
184
|
+
}
|
|
185
|
+
writer.uint32(26).fork();
|
|
186
|
+
for (const v of message.fieldType) {
|
|
187
|
+
writer.int32(v);
|
|
188
|
+
}
|
|
189
|
+
writer.ldelim();
|
|
190
|
+
return writer;
|
|
191
|
+
},
|
|
192
|
+
decode(input, length) {
|
|
193
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
194
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
195
|
+
const message = createBaseScalarDescriptor();
|
|
196
|
+
while (reader.pos < end) {
|
|
197
|
+
const tag = reader.uint32();
|
|
198
|
+
switch (tag >>> 3) {
|
|
199
|
+
case 1:
|
|
200
|
+
message.name = reader.string();
|
|
201
|
+
break;
|
|
202
|
+
case 2:
|
|
203
|
+
message.description = reader.string();
|
|
204
|
+
break;
|
|
205
|
+
case 3:
|
|
206
|
+
if ((tag & 7) === 2) {
|
|
207
|
+
const end2 = reader.uint32() + reader.pos;
|
|
208
|
+
while (reader.pos < end2) {
|
|
209
|
+
message.fieldType.push(reader.int32());
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
message.fieldType.push(reader.int32());
|
|
214
|
+
}
|
|
215
|
+
break;
|
|
216
|
+
default:
|
|
217
|
+
reader.skipType(tag & 7);
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return message;
|
|
222
|
+
},
|
|
223
|
+
fromPartial(object) {
|
|
224
|
+
const message = createBaseScalarDescriptor();
|
|
225
|
+
message.name = object.name ?? "";
|
|
226
|
+
message.description = object.description ?? "";
|
|
227
|
+
message.fieldType = object.fieldType?.map(e => e) || [];
|
|
228
|
+
return message;
|
|
229
|
+
},
|
|
230
|
+
fromProtoMsg(message) {
|
|
231
|
+
return exports.ScalarDescriptor.decode(message.value);
|
|
232
|
+
},
|
|
233
|
+
toProto(message) {
|
|
234
|
+
return exports.ScalarDescriptor.encode(message).finish();
|
|
235
|
+
},
|
|
236
|
+
toProtoMsg(message) {
|
|
237
|
+
return {
|
|
238
|
+
typeUrl: "/cosmos_proto.ScalarDescriptor",
|
|
239
|
+
value: exports.ScalarDescriptor.encode(message).finish()
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
registerTypeUrl() { }
|
|
243
|
+
};
|
|
244
|
+
registry_1.GlobalDecoderRegistry.register(exports.ScalarDescriptor.typeUrl, exports.ScalarDescriptor);
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../registry";
|
|
4
|
+
export var ScalarType;
|
|
5
|
+
(function (ScalarType) {
|
|
6
|
+
ScalarType[ScalarType["SCALAR_TYPE_UNSPECIFIED"] = 0] = "SCALAR_TYPE_UNSPECIFIED";
|
|
7
|
+
ScalarType[ScalarType["SCALAR_TYPE_STRING"] = 1] = "SCALAR_TYPE_STRING";
|
|
8
|
+
ScalarType[ScalarType["SCALAR_TYPE_BYTES"] = 2] = "SCALAR_TYPE_BYTES";
|
|
9
|
+
ScalarType[ScalarType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
10
|
+
})(ScalarType || (ScalarType = {}));
|
|
11
|
+
export const ScalarTypeSDKType = ScalarType;
|
|
12
|
+
export function scalarTypeFromJSON(object) {
|
|
13
|
+
switch (object) {
|
|
14
|
+
case 0:
|
|
15
|
+
case "SCALAR_TYPE_UNSPECIFIED":
|
|
16
|
+
return ScalarType.SCALAR_TYPE_UNSPECIFIED;
|
|
17
|
+
case 1:
|
|
18
|
+
case "SCALAR_TYPE_STRING":
|
|
19
|
+
return ScalarType.SCALAR_TYPE_STRING;
|
|
20
|
+
case 2:
|
|
21
|
+
case "SCALAR_TYPE_BYTES":
|
|
22
|
+
return ScalarType.SCALAR_TYPE_BYTES;
|
|
23
|
+
case -1:
|
|
24
|
+
case "UNRECOGNIZED":
|
|
25
|
+
default:
|
|
26
|
+
return ScalarType.UNRECOGNIZED;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export function scalarTypeToJSON(object) {
|
|
30
|
+
switch (object) {
|
|
31
|
+
case ScalarType.SCALAR_TYPE_UNSPECIFIED:
|
|
32
|
+
return "SCALAR_TYPE_UNSPECIFIED";
|
|
33
|
+
case ScalarType.SCALAR_TYPE_STRING:
|
|
34
|
+
return "SCALAR_TYPE_STRING";
|
|
35
|
+
case ScalarType.SCALAR_TYPE_BYTES:
|
|
36
|
+
return "SCALAR_TYPE_BYTES";
|
|
37
|
+
case ScalarType.UNRECOGNIZED:
|
|
38
|
+
default:
|
|
39
|
+
return "UNRECOGNIZED";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function createBaseInterfaceDescriptor() {
|
|
43
|
+
return {
|
|
44
|
+
name: "",
|
|
45
|
+
description: ""
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* InterfaceDescriptor describes an interface type to be used with
|
|
50
|
+
* accepts_interface and implements_interface and declared by declare_interface.
|
|
51
|
+
* @name InterfaceDescriptor
|
|
52
|
+
* @package cosmos_proto
|
|
53
|
+
* @see proto type: cosmos_proto.InterfaceDescriptor
|
|
54
|
+
*/
|
|
55
|
+
export const InterfaceDescriptor = {
|
|
56
|
+
typeUrl: "/cosmos_proto.InterfaceDescriptor",
|
|
57
|
+
is(o) {
|
|
58
|
+
return o && (o.$typeUrl === InterfaceDescriptor.typeUrl || typeof o.name === "string" && typeof o.description === "string");
|
|
59
|
+
},
|
|
60
|
+
isSDK(o) {
|
|
61
|
+
return o && (o.$typeUrl === InterfaceDescriptor.typeUrl || typeof o.name === "string" && typeof o.description === "string");
|
|
62
|
+
},
|
|
63
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
64
|
+
if (message.name !== "") {
|
|
65
|
+
writer.uint32(10).string(message.name);
|
|
66
|
+
}
|
|
67
|
+
if (message.description !== "") {
|
|
68
|
+
writer.uint32(18).string(message.description);
|
|
69
|
+
}
|
|
70
|
+
return writer;
|
|
71
|
+
},
|
|
72
|
+
decode(input, length) {
|
|
73
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
74
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
75
|
+
const message = createBaseInterfaceDescriptor();
|
|
76
|
+
while (reader.pos < end) {
|
|
77
|
+
const tag = reader.uint32();
|
|
78
|
+
switch (tag >>> 3) {
|
|
79
|
+
case 1:
|
|
80
|
+
message.name = reader.string();
|
|
81
|
+
break;
|
|
82
|
+
case 2:
|
|
83
|
+
message.description = reader.string();
|
|
84
|
+
break;
|
|
85
|
+
default:
|
|
86
|
+
reader.skipType(tag & 7);
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
fromPartial(object) {
|
|
93
|
+
const message = createBaseInterfaceDescriptor();
|
|
94
|
+
message.name = object.name ?? "";
|
|
95
|
+
message.description = object.description ?? "";
|
|
96
|
+
return message;
|
|
97
|
+
},
|
|
98
|
+
fromProtoMsg(message) {
|
|
99
|
+
return InterfaceDescriptor.decode(message.value);
|
|
100
|
+
},
|
|
101
|
+
toProto(message) {
|
|
102
|
+
return InterfaceDescriptor.encode(message).finish();
|
|
103
|
+
},
|
|
104
|
+
toProtoMsg(message) {
|
|
105
|
+
return {
|
|
106
|
+
typeUrl: "/cosmos_proto.InterfaceDescriptor",
|
|
107
|
+
value: InterfaceDescriptor.encode(message).finish()
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
registerTypeUrl() { }
|
|
111
|
+
};
|
|
112
|
+
GlobalDecoderRegistry.register(InterfaceDescriptor.typeUrl, InterfaceDescriptor);
|
|
113
|
+
function createBaseScalarDescriptor() {
|
|
114
|
+
return {
|
|
115
|
+
name: "",
|
|
116
|
+
description: "",
|
|
117
|
+
fieldType: []
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* ScalarDescriptor describes an scalar type to be used with
|
|
122
|
+
* the scalar field option and declared by declare_scalar.
|
|
123
|
+
* Scalars extend simple protobuf built-in types with additional
|
|
124
|
+
* syntax and semantics, for instance to represent big integers.
|
|
125
|
+
* Scalars should ideally define an encoding such that there is only one
|
|
126
|
+
* valid syntactical representation for a given semantic meaning,
|
|
127
|
+
* i.e. the encoding should be deterministic.
|
|
128
|
+
* @name ScalarDescriptor
|
|
129
|
+
* @package cosmos_proto
|
|
130
|
+
* @see proto type: cosmos_proto.ScalarDescriptor
|
|
131
|
+
*/
|
|
132
|
+
export const ScalarDescriptor = {
|
|
133
|
+
typeUrl: "/cosmos_proto.ScalarDescriptor",
|
|
134
|
+
is(o) {
|
|
135
|
+
return o && (o.$typeUrl === ScalarDescriptor.typeUrl || typeof o.name === "string" && typeof o.description === "string" && Array.isArray(o.fieldType));
|
|
136
|
+
},
|
|
137
|
+
isSDK(o) {
|
|
138
|
+
return o && (o.$typeUrl === ScalarDescriptor.typeUrl || typeof o.name === "string" && typeof o.description === "string" && Array.isArray(o.field_type));
|
|
139
|
+
},
|
|
140
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
141
|
+
if (message.name !== "") {
|
|
142
|
+
writer.uint32(10).string(message.name);
|
|
143
|
+
}
|
|
144
|
+
if (message.description !== "") {
|
|
145
|
+
writer.uint32(18).string(message.description);
|
|
146
|
+
}
|
|
147
|
+
writer.uint32(26).fork();
|
|
148
|
+
for (const v of message.fieldType) {
|
|
149
|
+
writer.int32(v);
|
|
150
|
+
}
|
|
151
|
+
writer.ldelim();
|
|
152
|
+
return writer;
|
|
153
|
+
},
|
|
154
|
+
decode(input, length) {
|
|
155
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
156
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
157
|
+
const message = createBaseScalarDescriptor();
|
|
158
|
+
while (reader.pos < end) {
|
|
159
|
+
const tag = reader.uint32();
|
|
160
|
+
switch (tag >>> 3) {
|
|
161
|
+
case 1:
|
|
162
|
+
message.name = reader.string();
|
|
163
|
+
break;
|
|
164
|
+
case 2:
|
|
165
|
+
message.description = reader.string();
|
|
166
|
+
break;
|
|
167
|
+
case 3:
|
|
168
|
+
if ((tag & 7) === 2) {
|
|
169
|
+
const end2 = reader.uint32() + reader.pos;
|
|
170
|
+
while (reader.pos < end2) {
|
|
171
|
+
message.fieldType.push(reader.int32());
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
message.fieldType.push(reader.int32());
|
|
176
|
+
}
|
|
177
|
+
break;
|
|
178
|
+
default:
|
|
179
|
+
reader.skipType(tag & 7);
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return message;
|
|
184
|
+
},
|
|
185
|
+
fromPartial(object) {
|
|
186
|
+
const message = createBaseScalarDescriptor();
|
|
187
|
+
message.name = object.name ?? "";
|
|
188
|
+
message.description = object.description ?? "";
|
|
189
|
+
message.fieldType = object.fieldType?.map(e => e) || [];
|
|
190
|
+
return message;
|
|
191
|
+
},
|
|
192
|
+
fromProtoMsg(message) {
|
|
193
|
+
return ScalarDescriptor.decode(message.value);
|
|
194
|
+
},
|
|
195
|
+
toProto(message) {
|
|
196
|
+
return ScalarDescriptor.encode(message).finish();
|
|
197
|
+
},
|
|
198
|
+
toProtoMsg(message) {
|
|
199
|
+
return {
|
|
200
|
+
typeUrl: "/cosmos_proto.ScalarDescriptor",
|
|
201
|
+
value: ScalarDescriptor.encode(message).finish()
|
|
202
|
+
};
|
|
203
|
+
},
|
|
204
|
+
registerTypeUrl() { }
|
|
205
|
+
};
|
|
206
|
+
GlobalDecoderRegistry.register(ScalarDescriptor.typeUrl, ScalarDescriptor);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file and any referenced files were automatically generated by @ahm23/telescope@2.3.1
|
|
3
|
+
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
4
|
+
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
5
|
+
*/
|
|
6
|
+
import { HttpEndpoint } from "@interchainjs/types";
|
|
7
|
+
import { Rpc } from "./helpers";
|
|
8
|
+
import { ClientOptions } from "@interchainjs/cosmos";
|
|
9
|
+
export declare const getRpcEndpointKey: (rpcEndpoint: string | HttpEndpoint) => string;
|
|
10
|
+
export declare const getRpcClient: (rpcEndpoint: string | HttpEndpoint) => Promise<Rpc>;
|
|
11
|
+
export declare const createRpcClient: (rpcEndpoint: string | HttpEndpoint, options?: ClientOptions) => Promise<import("@interchainjs/cosmos").ICosmosQueryClient>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//@ts-nocheck
|
|
3
|
+
/**
|
|
4
|
+
* This file and any referenced files were automatically generated by @ahm23/telescope@2.3.1
|
|
5
|
+
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
6
|
+
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.createRpcClient = exports.getRpcClient = exports.getRpcEndpointKey = void 0;
|
|
10
|
+
const cosmos_1 = require("@interchainjs/cosmos");
|
|
11
|
+
const _rpcClients = {};
|
|
12
|
+
const getRpcEndpointKey = (rpcEndpoint) => {
|
|
13
|
+
if (typeof rpcEndpoint === 'string') {
|
|
14
|
+
return rpcEndpoint;
|
|
15
|
+
}
|
|
16
|
+
else if (!!rpcEndpoint) {
|
|
17
|
+
//@ts-ignore
|
|
18
|
+
return rpcEndpoint.url;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.getRpcEndpointKey = getRpcEndpointKey;
|
|
22
|
+
const getRpcClient = async (rpcEndpoint) => {
|
|
23
|
+
const key = (0, exports.getRpcEndpointKey)(rpcEndpoint);
|
|
24
|
+
if (!key)
|
|
25
|
+
return;
|
|
26
|
+
if (_rpcClients.hasOwnProperty(key)) {
|
|
27
|
+
return _rpcClients[key];
|
|
28
|
+
}
|
|
29
|
+
const rpc = await (0, exports.createRpcClient)(rpcEndpoint);
|
|
30
|
+
_rpcClients[key] = rpc;
|
|
31
|
+
return rpc;
|
|
32
|
+
};
|
|
33
|
+
exports.getRpcClient = getRpcClient;
|
|
34
|
+
const createRpcClient = async (rpcEndpoint, options) => {
|
|
35
|
+
if (typeof rpcEndpoint === 'string') {
|
|
36
|
+
return (0, cosmos_1.createCosmosQueryClient)(rpcEndpoint, options);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
const endpointStr = rpcEndpoint.url;
|
|
40
|
+
const clientOptions = {
|
|
41
|
+
...options,
|
|
42
|
+
headers: rpcEndpoint.headers
|
|
43
|
+
};
|
|
44
|
+
return (0, cosmos_1.createCosmosQueryClient)(endpointStr, clientOptions);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.createRpcClient = createRpcClient;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* This file and any referenced files were automatically generated by @ahm23/telescope@2.3.1
|
|
4
|
+
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
5
|
+
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
6
|
+
*/
|
|
7
|
+
import { createCosmosQueryClient } from "@interchainjs/cosmos";
|
|
8
|
+
const _rpcClients = {};
|
|
9
|
+
export const getRpcEndpointKey = (rpcEndpoint) => {
|
|
10
|
+
if (typeof rpcEndpoint === 'string') {
|
|
11
|
+
return rpcEndpoint;
|
|
12
|
+
}
|
|
13
|
+
else if (!!rpcEndpoint) {
|
|
14
|
+
//@ts-ignore
|
|
15
|
+
return rpcEndpoint.url;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export const getRpcClient = async (rpcEndpoint) => {
|
|
19
|
+
const key = getRpcEndpointKey(rpcEndpoint);
|
|
20
|
+
if (!key)
|
|
21
|
+
return;
|
|
22
|
+
if (_rpcClients.hasOwnProperty(key)) {
|
|
23
|
+
return _rpcClients[key];
|
|
24
|
+
}
|
|
25
|
+
const rpc = await createRpcClient(rpcEndpoint);
|
|
26
|
+
_rpcClients[key] = rpc;
|
|
27
|
+
return rpc;
|
|
28
|
+
};
|
|
29
|
+
export const createRpcClient = async (rpcEndpoint, options) => {
|
|
30
|
+
if (typeof rpcEndpoint === 'string') {
|
|
31
|
+
return createCosmosQueryClient(rpcEndpoint, options);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
const endpointStr = rpcEndpoint.url;
|
|
35
|
+
const clientOptions = {
|
|
36
|
+
...options,
|
|
37
|
+
headers: rpcEndpoint.headers
|
|
38
|
+
};
|
|
39
|
+
return createCosmosQueryClient(endpointStr, clientOptions);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const gogoproto: {};
|
|
@@ -0,0 +1,41 @@
|
|
|
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 () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.gogoproto = void 0;
|
|
37
|
+
//@ts-nocheck
|
|
38
|
+
const _24 = __importStar(require("./gogo"));
|
|
39
|
+
exports.gogoproto = {
|
|
40
|
+
..._24
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|