carbon-js-sdk 0.3.52 → 0.3.53
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/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +18 -0
- package/lib/codec/cosmos/app/module/v1alpha1/module.js +46 -0
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +57 -0
- package/lib/codec/cosmos/app/v1alpha1/config.js +125 -0
- package/lib/codec/cosmos/app/v1alpha1/export.d.ts +3 -0
- package/lib/codec/cosmos/app/v1alpha1/export.js +13 -0
- package/lib/codec/cosmos/app/v1alpha1/module.d.ts +109 -0
- package/lib/codec/cosmos/app/v1alpha1/module.js +192 -0
- package/lib/codec/cosmos/app/v1alpha1/query.d.ts +44 -0
- package/lib/codec/cosmos/app/v1alpha1/query.js +107 -0
- package/lib/codec/cosmos/authz/v1beta1/export.d.ts +4 -0
- package/lib/codec/cosmos/authz/v1beta1/export.js +25 -0
- package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +42 -0
- package/lib/codec/cosmos/base/node/v1beta1/query.js +104 -0
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +67 -0
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.js +423 -0
- package/lib/codec/cosmos/capability/v1beta1/export.d.ts +2 -0
- package/lib/codec/cosmos/capability/v1beta1/export.js +9 -0
- package/lib/codec/cosmos/crisis/v1beta1/export.d.ts +1 -0
- package/lib/codec/cosmos/crisis/v1beta1/export.js +6 -0
- package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +32 -0
- package/lib/codec/cosmos/crypto/hd/v1/hd.js +114 -0
- package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +78 -0
- package/lib/codec/cosmos/crypto/keyring/v1/record.js +309 -0
- package/lib/codec/cosmos/evidence/v1beta1/export.d.ts +3 -0
- package/lib/codec/cosmos/evidence/v1beta1/export.js +13 -0
- package/lib/codec/cosmos/feegrant/v1beta1/export.d.ts +3 -0
- package/lib/codec/cosmos/feegrant/v1beta1/export.js +20 -0
- package/lib/codec/cosmos/gov/v1/export.d.ts +3 -0
- package/lib/codec/cosmos/gov/v1/export.js +46 -0
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +34 -0
- package/lib/codec/cosmos/gov/v1/genesis.js +166 -0
- package/lib/codec/cosmos/gov/v1/gov.d.ts +198 -0
- package/lib/codec/cosmos/gov/v1/gov.js +855 -0
- package/lib/codec/cosmos/gov/v1/query.d.ts +264 -0
- package/lib/codec/cosmos/gov/v1/query.js +1045 -0
- package/lib/codec/cosmos/gov/v1/tx.d.ts +167 -0
- package/lib/codec/cosmos/gov/v1/tx.js +639 -0
- package/lib/codec/cosmos/group/v1/events.d.ts +124 -0
- package/lib/codec/cosmos/group/v1/events.js +480 -0
- package/lib/codec/cosmos/group/v1/export.d.ts +4 -0
- package/lib/codec/cosmos/group/v1/export.js +94 -0
- package/lib/codec/cosmos/group/v1/genesis.d.ts +45 -0
- package/lib/codec/cosmos/group/v1/genesis.js +176 -0
- package/lib/codec/cosmos/group/v1/query.d.ts +412 -0
- package/lib/codec/cosmos/group/v1/query.js +1648 -0
- package/lib/codec/cosmos/group/v1/tx.d.ts +483 -0
- package/lib/codec/cosmos/group/v1/tx.js +1840 -0
- package/lib/codec/cosmos/group/v1/types.d.ts +356 -0
- package/lib/codec/cosmos/group/v1/types.js +1306 -0
- package/lib/codec/cosmos/msg/v1/msg.d.ts +1 -0
- package/lib/codec/cosmos/msg/v1/msg.js +14 -0
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +48 -0
- package/lib/codec/cosmos/nft/v1beta1/event.js +227 -0
- package/lib/codec/cosmos/nft/v1beta1/export.d.ts +5 -0
- package/lib/codec/cosmos/nft/v1beta1/export.js +30 -0
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +36 -0
- package/lib/codec/cosmos/nft/v1beta1/genesis.js +140 -0
- package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +53 -0
- package/lib/codec/cosmos/nft/v1beta1/nft.js +233 -0
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +206 -0
- package/lib/codec/cosmos/nft/v1beta1/query.js +817 -0
- package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +49 -0
- package/lib/codec/cosmos/nft/v1beta1/tx.js +137 -0
- package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +22 -0
- package/lib/codec/cosmos/orm/module/v1alpha1/module.js +46 -0
- package/lib/codec/cosmos/orm/v1/export.d.ts +1 -0
- package/lib/codec/cosmos/orm/v1/export.js +8 -0
- package/lib/codec/cosmos/orm/v1/orm.d.ts +123 -0
- package/lib/codec/cosmos/orm/v1/orm.js +263 -0
- package/lib/codec/cosmos/orm/v1alpha1/export.d.ts +1 -0
- package/lib/codec/cosmos/orm/v1alpha1/export.js +9 -0
- package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +96 -0
- package/lib/codec/cosmos/orm/v1alpha1/schema.js +265 -0
- package/lib/codec/cosmos/upgrade/v1beta1/export.d.ts +3 -0
- package/lib/codec/cosmos/upgrade/v1beta1/export.js +24 -0
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +97 -0
- package/lib/codec/cosmos/upgrade/v1beta1/tx.js +203 -0
- package/lib/codec/ibc/applications/fee/v1/ack.d.ts +24 -0
- package/lib/codec/ibc/applications/fee/v1/ack.js +125 -0
- package/lib/codec/ibc/applications/fee/v1/export.d.ts +6 -0
- package/lib/codec/ibc/applications/fee/v1/export.js +47 -0
- package/lib/codec/ibc/applications/fee/v1/fee.d.ts +68 -0
- package/lib/codec/ibc/applications/fee/v1/fee.js +289 -0
- package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +93 -0
- package/lib/codec/ibc/applications/fee/v1/genesis.js +390 -0
- package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +25 -0
- package/lib/codec/ibc/applications/fee/v1/metadata.js +71 -0
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +312 -0
- package/lib/codec/ibc/applications/fee/v1/query.js +1187 -0
- package/lib/codec/ibc/applications/fee/v1/tx.d.ts +171 -0
- package/lib/codec/ibc/applications/fee/v1/tx.js +524 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +78 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +296 -0
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +80 -0
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +439 -0
- package/lib/insights/competition.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.QueryClientImpl = exports.QueryConfigResponse = exports.QueryConfigRequest = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const config_1 = require("./config");
|
|
11
|
+
exports.protobufPackage = "cosmos.app.v1alpha1";
|
|
12
|
+
const baseQueryConfigRequest = {};
|
|
13
|
+
exports.QueryConfigRequest = {
|
|
14
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
15
|
+
return writer;
|
|
16
|
+
},
|
|
17
|
+
decode(input, length) {
|
|
18
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
19
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
20
|
+
const message = Object.assign({}, baseQueryConfigRequest);
|
|
21
|
+
while (reader.pos < end) {
|
|
22
|
+
const tag = reader.uint32();
|
|
23
|
+
switch (tag >>> 3) {
|
|
24
|
+
default:
|
|
25
|
+
reader.skipType(tag & 7);
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return message;
|
|
30
|
+
},
|
|
31
|
+
fromJSON(_) {
|
|
32
|
+
const message = Object.assign({}, baseQueryConfigRequest);
|
|
33
|
+
return message;
|
|
34
|
+
},
|
|
35
|
+
toJSON(_) {
|
|
36
|
+
const obj = {};
|
|
37
|
+
return obj;
|
|
38
|
+
},
|
|
39
|
+
fromPartial(_) {
|
|
40
|
+
const message = Object.assign({}, baseQueryConfigRequest);
|
|
41
|
+
return message;
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
const baseQueryConfigResponse = {};
|
|
45
|
+
exports.QueryConfigResponse = {
|
|
46
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
47
|
+
if (message.config !== undefined) {
|
|
48
|
+
config_1.Config.encode(message.config, writer.uint32(10).fork()).ldelim();
|
|
49
|
+
}
|
|
50
|
+
return writer;
|
|
51
|
+
},
|
|
52
|
+
decode(input, length) {
|
|
53
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
54
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
55
|
+
const message = Object.assign({}, baseQueryConfigResponse);
|
|
56
|
+
while (reader.pos < end) {
|
|
57
|
+
const tag = reader.uint32();
|
|
58
|
+
switch (tag >>> 3) {
|
|
59
|
+
case 1:
|
|
60
|
+
message.config = config_1.Config.decode(reader, reader.uint32());
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
reader.skipType(tag & 7);
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return message;
|
|
68
|
+
},
|
|
69
|
+
fromJSON(object) {
|
|
70
|
+
const message = Object.assign({}, baseQueryConfigResponse);
|
|
71
|
+
message.config =
|
|
72
|
+
object.config !== undefined && object.config !== null
|
|
73
|
+
? config_1.Config.fromJSON(object.config)
|
|
74
|
+
: undefined;
|
|
75
|
+
return message;
|
|
76
|
+
},
|
|
77
|
+
toJSON(message) {
|
|
78
|
+
const obj = {};
|
|
79
|
+
message.config !== undefined &&
|
|
80
|
+
(obj.config = message.config ? config_1.Config.toJSON(message.config) : undefined);
|
|
81
|
+
return obj;
|
|
82
|
+
},
|
|
83
|
+
fromPartial(object) {
|
|
84
|
+
const message = Object.assign({}, baseQueryConfigResponse);
|
|
85
|
+
message.config =
|
|
86
|
+
object.config !== undefined && object.config !== null
|
|
87
|
+
? config_1.Config.fromPartial(object.config)
|
|
88
|
+
: undefined;
|
|
89
|
+
return message;
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
class QueryClientImpl {
|
|
93
|
+
constructor(rpc) {
|
|
94
|
+
this.rpc = rpc;
|
|
95
|
+
this.Config = this.Config.bind(this);
|
|
96
|
+
}
|
|
97
|
+
Config(request) {
|
|
98
|
+
const data = exports.QueryConfigRequest.encode(request).finish();
|
|
99
|
+
const promise = this.rpc.request("cosmos.app.v1alpha1.Query", "Config", data);
|
|
100
|
+
return promise.then((data) => exports.QueryConfigResponse.decode(new minimal_1.default.Reader(data)));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.QueryClientImpl = QueryClientImpl;
|
|
104
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
105
|
+
minimal_1.default.util.Long = long_1.default;
|
|
106
|
+
minimal_1.default.configure();
|
|
107
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { GenericAuthorization, Grant, GrantAuthorization, GrantQueueItem } from "./authz";
|
|
2
|
+
export { EventGrant, EventRevoke } from "./event";
|
|
3
|
+
export { QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "./query";
|
|
4
|
+
export { MsgGrant, MsgExecResponse, MsgExec, MsgGrantResponse, MsgRevoke, MsgRevokeResponse } from "./tx";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgRevokeResponse = exports.MsgRevoke = exports.MsgGrantResponse = exports.MsgExec = exports.MsgExecResponse = exports.MsgGrant = exports.QueryGranteeGrantsResponse = exports.QueryGranteeGrantsRequest = exports.QueryGranterGrantsResponse = exports.QueryGranterGrantsRequest = exports.QueryGrantsResponse = exports.QueryGrantsRequest = exports.EventRevoke = exports.EventGrant = exports.GrantQueueItem = exports.GrantAuthorization = exports.Grant = exports.GenericAuthorization = void 0;
|
|
4
|
+
var authz_1 = require("./authz");
|
|
5
|
+
Object.defineProperty(exports, "GenericAuthorization", { enumerable: true, get: function () { return authz_1.GenericAuthorization; } });
|
|
6
|
+
Object.defineProperty(exports, "Grant", { enumerable: true, get: function () { return authz_1.Grant; } });
|
|
7
|
+
Object.defineProperty(exports, "GrantAuthorization", { enumerable: true, get: function () { return authz_1.GrantAuthorization; } });
|
|
8
|
+
Object.defineProperty(exports, "GrantQueueItem", { enumerable: true, get: function () { return authz_1.GrantQueueItem; } });
|
|
9
|
+
var event_1 = require("./event");
|
|
10
|
+
Object.defineProperty(exports, "EventGrant", { enumerable: true, get: function () { return event_1.EventGrant; } });
|
|
11
|
+
Object.defineProperty(exports, "EventRevoke", { enumerable: true, get: function () { return event_1.EventRevoke; } });
|
|
12
|
+
var query_1 = require("./query");
|
|
13
|
+
Object.defineProperty(exports, "QueryGrantsRequest", { enumerable: true, get: function () { return query_1.QueryGrantsRequest; } });
|
|
14
|
+
Object.defineProperty(exports, "QueryGrantsResponse", { enumerable: true, get: function () { return query_1.QueryGrantsResponse; } });
|
|
15
|
+
Object.defineProperty(exports, "QueryGranterGrantsRequest", { enumerable: true, get: function () { return query_1.QueryGranterGrantsRequest; } });
|
|
16
|
+
Object.defineProperty(exports, "QueryGranterGrantsResponse", { enumerable: true, get: function () { return query_1.QueryGranterGrantsResponse; } });
|
|
17
|
+
Object.defineProperty(exports, "QueryGranteeGrantsRequest", { enumerable: true, get: function () { return query_1.QueryGranteeGrantsRequest; } });
|
|
18
|
+
Object.defineProperty(exports, "QueryGranteeGrantsResponse", { enumerable: true, get: function () { return query_1.QueryGranteeGrantsResponse; } });
|
|
19
|
+
var tx_1 = require("./tx");
|
|
20
|
+
Object.defineProperty(exports, "MsgGrant", { enumerable: true, get: function () { return tx_1.MsgGrant; } });
|
|
21
|
+
Object.defineProperty(exports, "MsgExecResponse", { enumerable: true, get: function () { return tx_1.MsgExecResponse; } });
|
|
22
|
+
Object.defineProperty(exports, "MsgExec", { enumerable: true, get: function () { return tx_1.MsgExec; } });
|
|
23
|
+
Object.defineProperty(exports, "MsgGrantResponse", { enumerable: true, get: function () { return tx_1.MsgGrantResponse; } });
|
|
24
|
+
Object.defineProperty(exports, "MsgRevoke", { enumerable: true, get: function () { return tx_1.MsgRevoke; } });
|
|
25
|
+
Object.defineProperty(exports, "MsgRevokeResponse", { enumerable: true, get: function () { return tx_1.MsgRevokeResponse; } });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "cosmos.base.node.v1beta1";
|
|
4
|
+
/** ConfigRequest defines the request structure for the Config gRPC query. */
|
|
5
|
+
export interface ConfigRequest {
|
|
6
|
+
}
|
|
7
|
+
/** ConfigResponse defines the response structure for the Config gRPC query. */
|
|
8
|
+
export interface ConfigResponse {
|
|
9
|
+
minimumGasPrice: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ConfigRequest: {
|
|
12
|
+
encode(_: ConfigRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ConfigRequest;
|
|
14
|
+
fromJSON(_: any): ConfigRequest;
|
|
15
|
+
toJSON(_: ConfigRequest): unknown;
|
|
16
|
+
fromPartial(_: DeepPartial<ConfigRequest>): ConfigRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const ConfigResponse: {
|
|
19
|
+
encode(message: ConfigResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ConfigResponse;
|
|
21
|
+
fromJSON(object: any): ConfigResponse;
|
|
22
|
+
toJSON(message: ConfigResponse): unknown;
|
|
23
|
+
fromPartial(object: DeepPartial<ConfigResponse>): ConfigResponse;
|
|
24
|
+
};
|
|
25
|
+
/** Service defines the gRPC querier service for node related queries. */
|
|
26
|
+
export interface Service {
|
|
27
|
+
/** Config queries for the operator configuration. */
|
|
28
|
+
Config(request: ConfigRequest): Promise<ConfigResponse>;
|
|
29
|
+
}
|
|
30
|
+
export declare class ServiceClientImpl implements Service {
|
|
31
|
+
private readonly rpc;
|
|
32
|
+
constructor(rpc: Rpc);
|
|
33
|
+
Config(request: ConfigRequest): Promise<ConfigResponse>;
|
|
34
|
+
}
|
|
35
|
+
interface Rpc {
|
|
36
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
37
|
+
}
|
|
38
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
39
|
+
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
40
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
41
|
+
} : Partial<T>;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ServiceClientImpl = exports.ConfigResponse = exports.ConfigRequest = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
exports.protobufPackage = "cosmos.base.node.v1beta1";
|
|
11
|
+
const baseConfigRequest = {};
|
|
12
|
+
exports.ConfigRequest = {
|
|
13
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
14
|
+
return writer;
|
|
15
|
+
},
|
|
16
|
+
decode(input, length) {
|
|
17
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
18
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
19
|
+
const message = Object.assign({}, baseConfigRequest);
|
|
20
|
+
while (reader.pos < end) {
|
|
21
|
+
const tag = reader.uint32();
|
|
22
|
+
switch (tag >>> 3) {
|
|
23
|
+
default:
|
|
24
|
+
reader.skipType(tag & 7);
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return message;
|
|
29
|
+
},
|
|
30
|
+
fromJSON(_) {
|
|
31
|
+
const message = Object.assign({}, baseConfigRequest);
|
|
32
|
+
return message;
|
|
33
|
+
},
|
|
34
|
+
toJSON(_) {
|
|
35
|
+
const obj = {};
|
|
36
|
+
return obj;
|
|
37
|
+
},
|
|
38
|
+
fromPartial(_) {
|
|
39
|
+
const message = Object.assign({}, baseConfigRequest);
|
|
40
|
+
return message;
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
const baseConfigResponse = { minimumGasPrice: "" };
|
|
44
|
+
exports.ConfigResponse = {
|
|
45
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
46
|
+
if (message.minimumGasPrice !== "") {
|
|
47
|
+
writer.uint32(10).string(message.minimumGasPrice);
|
|
48
|
+
}
|
|
49
|
+
return writer;
|
|
50
|
+
},
|
|
51
|
+
decode(input, length) {
|
|
52
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
53
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
54
|
+
const message = Object.assign({}, baseConfigResponse);
|
|
55
|
+
while (reader.pos < end) {
|
|
56
|
+
const tag = reader.uint32();
|
|
57
|
+
switch (tag >>> 3) {
|
|
58
|
+
case 1:
|
|
59
|
+
message.minimumGasPrice = reader.string();
|
|
60
|
+
break;
|
|
61
|
+
default:
|
|
62
|
+
reader.skipType(tag & 7);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return message;
|
|
67
|
+
},
|
|
68
|
+
fromJSON(object) {
|
|
69
|
+
const message = Object.assign({}, baseConfigResponse);
|
|
70
|
+
message.minimumGasPrice =
|
|
71
|
+
object.minimumGasPrice !== undefined && object.minimumGasPrice !== null
|
|
72
|
+
? String(object.minimumGasPrice)
|
|
73
|
+
: "";
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
toJSON(message) {
|
|
77
|
+
const obj = {};
|
|
78
|
+
message.minimumGasPrice !== undefined &&
|
|
79
|
+
(obj.minimumGasPrice = message.minimumGasPrice);
|
|
80
|
+
return obj;
|
|
81
|
+
},
|
|
82
|
+
fromPartial(object) {
|
|
83
|
+
var _a;
|
|
84
|
+
const message = Object.assign({}, baseConfigResponse);
|
|
85
|
+
message.minimumGasPrice = (_a = object.minimumGasPrice) !== null && _a !== void 0 ? _a : "";
|
|
86
|
+
return message;
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
class ServiceClientImpl {
|
|
90
|
+
constructor(rpc) {
|
|
91
|
+
this.rpc = rpc;
|
|
92
|
+
this.Config = this.Config.bind(this);
|
|
93
|
+
}
|
|
94
|
+
Config(request) {
|
|
95
|
+
const data = exports.ConfigRequest.encode(request).finish();
|
|
96
|
+
const promise = this.rpc.request("cosmos.base.node.v1beta1.Service", "Config", data);
|
|
97
|
+
return promise.then((data) => exports.ConfigResponse.decode(new minimal_1.default.Reader(data)));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.ServiceClientImpl = ServiceClientImpl;
|
|
101
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
102
|
+
minimal_1.default.util.Long = long_1.default;
|
|
103
|
+
minimal_1.default.configure();
|
|
104
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Data, Commit, BlockID } from "../../../../tendermint/types/types";
|
|
4
|
+
import { EvidenceList } from "../../../../tendermint/types/evidence";
|
|
5
|
+
import { Consensus } from "../../../../tendermint/version/types";
|
|
6
|
+
export declare const protobufPackage = "cosmos.base.tendermint.v1beta1";
|
|
7
|
+
/**
|
|
8
|
+
* Block is tendermint type Block, with the Header proposer address
|
|
9
|
+
* field converted to bech32 string.
|
|
10
|
+
*/
|
|
11
|
+
export interface Block {
|
|
12
|
+
header?: Header;
|
|
13
|
+
data?: Data;
|
|
14
|
+
evidence?: EvidenceList;
|
|
15
|
+
lastCommit?: Commit;
|
|
16
|
+
}
|
|
17
|
+
/** Header defines the structure of a Tendermint block header. */
|
|
18
|
+
export interface Header {
|
|
19
|
+
/** basic block info */
|
|
20
|
+
version?: Consensus;
|
|
21
|
+
chainId: string;
|
|
22
|
+
height: Long;
|
|
23
|
+
time?: Date;
|
|
24
|
+
/** prev block info */
|
|
25
|
+
lastBlockId?: BlockID;
|
|
26
|
+
/** hashes of block data */
|
|
27
|
+
lastCommitHash: Uint8Array;
|
|
28
|
+
/** transactions */
|
|
29
|
+
dataHash: Uint8Array;
|
|
30
|
+
/** hashes from the app output from the prev block */
|
|
31
|
+
validatorsHash: Uint8Array;
|
|
32
|
+
/** validators for the next block */
|
|
33
|
+
nextValidatorsHash: Uint8Array;
|
|
34
|
+
/** consensus params for current block */
|
|
35
|
+
consensusHash: Uint8Array;
|
|
36
|
+
/** state after txs from the previous block */
|
|
37
|
+
appHash: Uint8Array;
|
|
38
|
+
/** root hash of all results from the txs from the previous block */
|
|
39
|
+
lastResultsHash: Uint8Array;
|
|
40
|
+
/** consensus info */
|
|
41
|
+
evidenceHash: Uint8Array;
|
|
42
|
+
/**
|
|
43
|
+
* proposer_address is the original block proposer address, formatted as a Bech32 string.
|
|
44
|
+
* In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string
|
|
45
|
+
* for better UX.
|
|
46
|
+
*/
|
|
47
|
+
proposerAddress: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const Block: {
|
|
50
|
+
encode(message: Block, writer?: _m0.Writer): _m0.Writer;
|
|
51
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Block;
|
|
52
|
+
fromJSON(object: any): Block;
|
|
53
|
+
toJSON(message: Block): unknown;
|
|
54
|
+
fromPartial(object: DeepPartial<Block>): Block;
|
|
55
|
+
};
|
|
56
|
+
export declare const Header: {
|
|
57
|
+
encode(message: Header, writer?: _m0.Writer): _m0.Writer;
|
|
58
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Header;
|
|
59
|
+
fromJSON(object: any): Header;
|
|
60
|
+
toJSON(message: Header): unknown;
|
|
61
|
+
fromPartial(object: DeepPartial<Header>): Header;
|
|
62
|
+
};
|
|
63
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
64
|
+
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
65
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
66
|
+
} : Partial<T>;
|
|
67
|
+
export {};
|