carbon-js-sdk 0.3.52 → 0.3.53-dev.1
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/CarbonSDK.js +1 -1
- package/lib/clients/ETHClient.d.ts +11 -4
- package/lib/clients/ETHClient.js +20 -6
- package/lib/clients/HydrogenClient.d.ts +16 -7
- package/lib/clients/HydrogenClient.js +55 -9
- package/lib/clients/NEOClient.d.ts +1 -1
- package/lib/clients/NEOClient.js +9 -4
- package/lib/clients/TokenClient.d.ts +17 -4
- package/lib/clients/TokenClient.js +121 -8
- package/lib/clients/ZILClient.d.ts +1 -1
- package/lib/clients/ZILClient.js +9 -4
- 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/hydrogen/transfer.d.ts +5 -5
- package/lib/insights/competition.d.ts +1 -0
- package/lib/provider/metamask/MetaMask.d.ts +5 -5
- package/lib/provider/metamask/MetaMask.js +35 -35
- package/lib/util/blockchain.d.ts +9 -0
- package/lib/util/blockchain.js +143 -1
- package/lib/util/ibc.d.ts +4 -4
- package/lib/util/ibc.js +17 -18
- package/package.json +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { ProposalExecutorResult } from "./types";
|
|
4
|
+
export declare const protobufPackage = "cosmos.group.v1";
|
|
5
|
+
/** Since: cosmos-sdk 0.46 */
|
|
6
|
+
/** EventCreateGroup is an event emitted when a group is created. */
|
|
7
|
+
export interface EventCreateGroup {
|
|
8
|
+
/** group_id is the unique ID of the group. */
|
|
9
|
+
groupId: Long;
|
|
10
|
+
}
|
|
11
|
+
/** EventUpdateGroup is an event emitted when a group is updated. */
|
|
12
|
+
export interface EventUpdateGroup {
|
|
13
|
+
/** group_id is the unique ID of the group. */
|
|
14
|
+
groupId: Long;
|
|
15
|
+
}
|
|
16
|
+
/** EventCreateGroupPolicy is an event emitted when a group policy is created. */
|
|
17
|
+
export interface EventCreateGroupPolicy {
|
|
18
|
+
/** address is the account address of the group policy. */
|
|
19
|
+
address: string;
|
|
20
|
+
}
|
|
21
|
+
/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */
|
|
22
|
+
export interface EventUpdateGroupPolicy {
|
|
23
|
+
/** address is the account address of the group policy. */
|
|
24
|
+
address: string;
|
|
25
|
+
}
|
|
26
|
+
/** EventSubmitProposal is an event emitted when a proposal is created. */
|
|
27
|
+
export interface EventSubmitProposal {
|
|
28
|
+
/** proposal_id is the unique ID of the proposal. */
|
|
29
|
+
proposalId: Long;
|
|
30
|
+
}
|
|
31
|
+
/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */
|
|
32
|
+
export interface EventWithdrawProposal {
|
|
33
|
+
/** proposal_id is the unique ID of the proposal. */
|
|
34
|
+
proposalId: Long;
|
|
35
|
+
}
|
|
36
|
+
/** EventVote is an event emitted when a voter votes on a proposal. */
|
|
37
|
+
export interface EventVote {
|
|
38
|
+
/** proposal_id is the unique ID of the proposal. */
|
|
39
|
+
proposalId: Long;
|
|
40
|
+
}
|
|
41
|
+
/** EventExec is an event emitted when a proposal is executed. */
|
|
42
|
+
export interface EventExec {
|
|
43
|
+
/** proposal_id is the unique ID of the proposal. */
|
|
44
|
+
proposalId: Long;
|
|
45
|
+
/** result is the proposal execution result. */
|
|
46
|
+
result: ProposalExecutorResult;
|
|
47
|
+
/** logs contains error logs in case the execution result is FAILURE. */
|
|
48
|
+
logs: string;
|
|
49
|
+
}
|
|
50
|
+
/** EventLeaveGroup is an event emitted when group member leaves the group. */
|
|
51
|
+
export interface EventLeaveGroup {
|
|
52
|
+
/** group_id is the unique ID of the group. */
|
|
53
|
+
groupId: Long;
|
|
54
|
+
/** address is the account address of the group member. */
|
|
55
|
+
address: string;
|
|
56
|
+
}
|
|
57
|
+
export declare const EventCreateGroup: {
|
|
58
|
+
encode(message: EventCreateGroup, writer?: _m0.Writer): _m0.Writer;
|
|
59
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventCreateGroup;
|
|
60
|
+
fromJSON(object: any): EventCreateGroup;
|
|
61
|
+
toJSON(message: EventCreateGroup): unknown;
|
|
62
|
+
fromPartial(object: DeepPartial<EventCreateGroup>): EventCreateGroup;
|
|
63
|
+
};
|
|
64
|
+
export declare const EventUpdateGroup: {
|
|
65
|
+
encode(message: EventUpdateGroup, writer?: _m0.Writer): _m0.Writer;
|
|
66
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventUpdateGroup;
|
|
67
|
+
fromJSON(object: any): EventUpdateGroup;
|
|
68
|
+
toJSON(message: EventUpdateGroup): unknown;
|
|
69
|
+
fromPartial(object: DeepPartial<EventUpdateGroup>): EventUpdateGroup;
|
|
70
|
+
};
|
|
71
|
+
export declare const EventCreateGroupPolicy: {
|
|
72
|
+
encode(message: EventCreateGroupPolicy, writer?: _m0.Writer): _m0.Writer;
|
|
73
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventCreateGroupPolicy;
|
|
74
|
+
fromJSON(object: any): EventCreateGroupPolicy;
|
|
75
|
+
toJSON(message: EventCreateGroupPolicy): unknown;
|
|
76
|
+
fromPartial(object: DeepPartial<EventCreateGroupPolicy>): EventCreateGroupPolicy;
|
|
77
|
+
};
|
|
78
|
+
export declare const EventUpdateGroupPolicy: {
|
|
79
|
+
encode(message: EventUpdateGroupPolicy, writer?: _m0.Writer): _m0.Writer;
|
|
80
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventUpdateGroupPolicy;
|
|
81
|
+
fromJSON(object: any): EventUpdateGroupPolicy;
|
|
82
|
+
toJSON(message: EventUpdateGroupPolicy): unknown;
|
|
83
|
+
fromPartial(object: DeepPartial<EventUpdateGroupPolicy>): EventUpdateGroupPolicy;
|
|
84
|
+
};
|
|
85
|
+
export declare const EventSubmitProposal: {
|
|
86
|
+
encode(message: EventSubmitProposal, writer?: _m0.Writer): _m0.Writer;
|
|
87
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventSubmitProposal;
|
|
88
|
+
fromJSON(object: any): EventSubmitProposal;
|
|
89
|
+
toJSON(message: EventSubmitProposal): unknown;
|
|
90
|
+
fromPartial(object: DeepPartial<EventSubmitProposal>): EventSubmitProposal;
|
|
91
|
+
};
|
|
92
|
+
export declare const EventWithdrawProposal: {
|
|
93
|
+
encode(message: EventWithdrawProposal, writer?: _m0.Writer): _m0.Writer;
|
|
94
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventWithdrawProposal;
|
|
95
|
+
fromJSON(object: any): EventWithdrawProposal;
|
|
96
|
+
toJSON(message: EventWithdrawProposal): unknown;
|
|
97
|
+
fromPartial(object: DeepPartial<EventWithdrawProposal>): EventWithdrawProposal;
|
|
98
|
+
};
|
|
99
|
+
export declare const EventVote: {
|
|
100
|
+
encode(message: EventVote, writer?: _m0.Writer): _m0.Writer;
|
|
101
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventVote;
|
|
102
|
+
fromJSON(object: any): EventVote;
|
|
103
|
+
toJSON(message: EventVote): unknown;
|
|
104
|
+
fromPartial(object: DeepPartial<EventVote>): EventVote;
|
|
105
|
+
};
|
|
106
|
+
export declare const EventExec: {
|
|
107
|
+
encode(message: EventExec, writer?: _m0.Writer): _m0.Writer;
|
|
108
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventExec;
|
|
109
|
+
fromJSON(object: any): EventExec;
|
|
110
|
+
toJSON(message: EventExec): unknown;
|
|
111
|
+
fromPartial(object: DeepPartial<EventExec>): EventExec;
|
|
112
|
+
};
|
|
113
|
+
export declare const EventLeaveGroup: {
|
|
114
|
+
encode(message: EventLeaveGroup, writer?: _m0.Writer): _m0.Writer;
|
|
115
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventLeaveGroup;
|
|
116
|
+
fromJSON(object: any): EventLeaveGroup;
|
|
117
|
+
toJSON(message: EventLeaveGroup): unknown;
|
|
118
|
+
fromPartial(object: DeepPartial<EventLeaveGroup>): EventLeaveGroup;
|
|
119
|
+
};
|
|
120
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
121
|
+
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 {} ? {
|
|
122
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
123
|
+
} : Partial<T>;
|
|
124
|
+
export {};
|
|
@@ -0,0 +1,480 @@
|
|
|
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.EventLeaveGroup = exports.EventExec = exports.EventVote = exports.EventWithdrawProposal = exports.EventSubmitProposal = exports.EventUpdateGroupPolicy = exports.EventCreateGroupPolicy = exports.EventUpdateGroup = exports.EventCreateGroup = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const types_1 = require("./types");
|
|
11
|
+
exports.protobufPackage = "cosmos.group.v1";
|
|
12
|
+
const baseEventCreateGroup = { groupId: long_1.default.UZERO };
|
|
13
|
+
exports.EventCreateGroup = {
|
|
14
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
+
if (!message.groupId.isZero()) {
|
|
16
|
+
writer.uint32(8).uint64(message.groupId);
|
|
17
|
+
}
|
|
18
|
+
return writer;
|
|
19
|
+
},
|
|
20
|
+
decode(input, length) {
|
|
21
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
22
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
|
+
const message = Object.assign({}, baseEventCreateGroup);
|
|
24
|
+
while (reader.pos < end) {
|
|
25
|
+
const tag = reader.uint32();
|
|
26
|
+
switch (tag >>> 3) {
|
|
27
|
+
case 1:
|
|
28
|
+
message.groupId = reader.uint64();
|
|
29
|
+
break;
|
|
30
|
+
default:
|
|
31
|
+
reader.skipType(tag & 7);
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(object) {
|
|
38
|
+
const message = Object.assign({}, baseEventCreateGroup);
|
|
39
|
+
message.groupId =
|
|
40
|
+
object.groupId !== undefined && object.groupId !== null
|
|
41
|
+
? long_1.default.fromString(object.groupId)
|
|
42
|
+
: long_1.default.UZERO;
|
|
43
|
+
return message;
|
|
44
|
+
},
|
|
45
|
+
toJSON(message) {
|
|
46
|
+
const obj = {};
|
|
47
|
+
message.groupId !== undefined &&
|
|
48
|
+
(obj.groupId = (message.groupId || long_1.default.UZERO).toString());
|
|
49
|
+
return obj;
|
|
50
|
+
},
|
|
51
|
+
fromPartial(object) {
|
|
52
|
+
const message = Object.assign({}, baseEventCreateGroup);
|
|
53
|
+
message.groupId =
|
|
54
|
+
object.groupId !== undefined && object.groupId !== null
|
|
55
|
+
? long_1.default.fromValue(object.groupId)
|
|
56
|
+
: long_1.default.UZERO;
|
|
57
|
+
return message;
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
const baseEventUpdateGroup = { groupId: long_1.default.UZERO };
|
|
61
|
+
exports.EventUpdateGroup = {
|
|
62
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
63
|
+
if (!message.groupId.isZero()) {
|
|
64
|
+
writer.uint32(8).uint64(message.groupId);
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = Object.assign({}, baseEventUpdateGroup);
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1:
|
|
76
|
+
message.groupId = reader.uint64();
|
|
77
|
+
break;
|
|
78
|
+
default:
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return message;
|
|
84
|
+
},
|
|
85
|
+
fromJSON(object) {
|
|
86
|
+
const message = Object.assign({}, baseEventUpdateGroup);
|
|
87
|
+
message.groupId =
|
|
88
|
+
object.groupId !== undefined && object.groupId !== null
|
|
89
|
+
? long_1.default.fromString(object.groupId)
|
|
90
|
+
: long_1.default.UZERO;
|
|
91
|
+
return message;
|
|
92
|
+
},
|
|
93
|
+
toJSON(message) {
|
|
94
|
+
const obj = {};
|
|
95
|
+
message.groupId !== undefined &&
|
|
96
|
+
(obj.groupId = (message.groupId || long_1.default.UZERO).toString());
|
|
97
|
+
return obj;
|
|
98
|
+
},
|
|
99
|
+
fromPartial(object) {
|
|
100
|
+
const message = Object.assign({}, baseEventUpdateGroup);
|
|
101
|
+
message.groupId =
|
|
102
|
+
object.groupId !== undefined && object.groupId !== null
|
|
103
|
+
? long_1.default.fromValue(object.groupId)
|
|
104
|
+
: long_1.default.UZERO;
|
|
105
|
+
return message;
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
const baseEventCreateGroupPolicy = { address: "" };
|
|
109
|
+
exports.EventCreateGroupPolicy = {
|
|
110
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
111
|
+
if (message.address !== "") {
|
|
112
|
+
writer.uint32(10).string(message.address);
|
|
113
|
+
}
|
|
114
|
+
return writer;
|
|
115
|
+
},
|
|
116
|
+
decode(input, length) {
|
|
117
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
118
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
119
|
+
const message = Object.assign({}, baseEventCreateGroupPolicy);
|
|
120
|
+
while (reader.pos < end) {
|
|
121
|
+
const tag = reader.uint32();
|
|
122
|
+
switch (tag >>> 3) {
|
|
123
|
+
case 1:
|
|
124
|
+
message.address = reader.string();
|
|
125
|
+
break;
|
|
126
|
+
default:
|
|
127
|
+
reader.skipType(tag & 7);
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return message;
|
|
132
|
+
},
|
|
133
|
+
fromJSON(object) {
|
|
134
|
+
const message = Object.assign({}, baseEventCreateGroupPolicy);
|
|
135
|
+
message.address =
|
|
136
|
+
object.address !== undefined && object.address !== null
|
|
137
|
+
? String(object.address)
|
|
138
|
+
: "";
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
toJSON(message) {
|
|
142
|
+
const obj = {};
|
|
143
|
+
message.address !== undefined && (obj.address = message.address);
|
|
144
|
+
return obj;
|
|
145
|
+
},
|
|
146
|
+
fromPartial(object) {
|
|
147
|
+
var _a;
|
|
148
|
+
const message = Object.assign({}, baseEventCreateGroupPolicy);
|
|
149
|
+
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
150
|
+
return message;
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
const baseEventUpdateGroupPolicy = { address: "" };
|
|
154
|
+
exports.EventUpdateGroupPolicy = {
|
|
155
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
156
|
+
if (message.address !== "") {
|
|
157
|
+
writer.uint32(10).string(message.address);
|
|
158
|
+
}
|
|
159
|
+
return writer;
|
|
160
|
+
},
|
|
161
|
+
decode(input, length) {
|
|
162
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
163
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
164
|
+
const message = Object.assign({}, baseEventUpdateGroupPolicy);
|
|
165
|
+
while (reader.pos < end) {
|
|
166
|
+
const tag = reader.uint32();
|
|
167
|
+
switch (tag >>> 3) {
|
|
168
|
+
case 1:
|
|
169
|
+
message.address = reader.string();
|
|
170
|
+
break;
|
|
171
|
+
default:
|
|
172
|
+
reader.skipType(tag & 7);
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return message;
|
|
177
|
+
},
|
|
178
|
+
fromJSON(object) {
|
|
179
|
+
const message = Object.assign({}, baseEventUpdateGroupPolicy);
|
|
180
|
+
message.address =
|
|
181
|
+
object.address !== undefined && object.address !== null
|
|
182
|
+
? String(object.address)
|
|
183
|
+
: "";
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
toJSON(message) {
|
|
187
|
+
const obj = {};
|
|
188
|
+
message.address !== undefined && (obj.address = message.address);
|
|
189
|
+
return obj;
|
|
190
|
+
},
|
|
191
|
+
fromPartial(object) {
|
|
192
|
+
var _a;
|
|
193
|
+
const message = Object.assign({}, baseEventUpdateGroupPolicy);
|
|
194
|
+
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
195
|
+
return message;
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
const baseEventSubmitProposal = { proposalId: long_1.default.UZERO };
|
|
199
|
+
exports.EventSubmitProposal = {
|
|
200
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
201
|
+
if (!message.proposalId.isZero()) {
|
|
202
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
203
|
+
}
|
|
204
|
+
return writer;
|
|
205
|
+
},
|
|
206
|
+
decode(input, length) {
|
|
207
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
208
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
209
|
+
const message = Object.assign({}, baseEventSubmitProposal);
|
|
210
|
+
while (reader.pos < end) {
|
|
211
|
+
const tag = reader.uint32();
|
|
212
|
+
switch (tag >>> 3) {
|
|
213
|
+
case 1:
|
|
214
|
+
message.proposalId = reader.uint64();
|
|
215
|
+
break;
|
|
216
|
+
default:
|
|
217
|
+
reader.skipType(tag & 7);
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return message;
|
|
222
|
+
},
|
|
223
|
+
fromJSON(object) {
|
|
224
|
+
const message = Object.assign({}, baseEventSubmitProposal);
|
|
225
|
+
message.proposalId =
|
|
226
|
+
object.proposalId !== undefined && object.proposalId !== null
|
|
227
|
+
? long_1.default.fromString(object.proposalId)
|
|
228
|
+
: long_1.default.UZERO;
|
|
229
|
+
return message;
|
|
230
|
+
},
|
|
231
|
+
toJSON(message) {
|
|
232
|
+
const obj = {};
|
|
233
|
+
message.proposalId !== undefined &&
|
|
234
|
+
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
235
|
+
return obj;
|
|
236
|
+
},
|
|
237
|
+
fromPartial(object) {
|
|
238
|
+
const message = Object.assign({}, baseEventSubmitProposal);
|
|
239
|
+
message.proposalId =
|
|
240
|
+
object.proposalId !== undefined && object.proposalId !== null
|
|
241
|
+
? long_1.default.fromValue(object.proposalId)
|
|
242
|
+
: long_1.default.UZERO;
|
|
243
|
+
return message;
|
|
244
|
+
},
|
|
245
|
+
};
|
|
246
|
+
const baseEventWithdrawProposal = { proposalId: long_1.default.UZERO };
|
|
247
|
+
exports.EventWithdrawProposal = {
|
|
248
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
249
|
+
if (!message.proposalId.isZero()) {
|
|
250
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
251
|
+
}
|
|
252
|
+
return writer;
|
|
253
|
+
},
|
|
254
|
+
decode(input, length) {
|
|
255
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
256
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
257
|
+
const message = Object.assign({}, baseEventWithdrawProposal);
|
|
258
|
+
while (reader.pos < end) {
|
|
259
|
+
const tag = reader.uint32();
|
|
260
|
+
switch (tag >>> 3) {
|
|
261
|
+
case 1:
|
|
262
|
+
message.proposalId = reader.uint64();
|
|
263
|
+
break;
|
|
264
|
+
default:
|
|
265
|
+
reader.skipType(tag & 7);
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return message;
|
|
270
|
+
},
|
|
271
|
+
fromJSON(object) {
|
|
272
|
+
const message = Object.assign({}, baseEventWithdrawProposal);
|
|
273
|
+
message.proposalId =
|
|
274
|
+
object.proposalId !== undefined && object.proposalId !== null
|
|
275
|
+
? long_1.default.fromString(object.proposalId)
|
|
276
|
+
: long_1.default.UZERO;
|
|
277
|
+
return message;
|
|
278
|
+
},
|
|
279
|
+
toJSON(message) {
|
|
280
|
+
const obj = {};
|
|
281
|
+
message.proposalId !== undefined &&
|
|
282
|
+
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
283
|
+
return obj;
|
|
284
|
+
},
|
|
285
|
+
fromPartial(object) {
|
|
286
|
+
const message = Object.assign({}, baseEventWithdrawProposal);
|
|
287
|
+
message.proposalId =
|
|
288
|
+
object.proposalId !== undefined && object.proposalId !== null
|
|
289
|
+
? long_1.default.fromValue(object.proposalId)
|
|
290
|
+
: long_1.default.UZERO;
|
|
291
|
+
return message;
|
|
292
|
+
},
|
|
293
|
+
};
|
|
294
|
+
const baseEventVote = { proposalId: long_1.default.UZERO };
|
|
295
|
+
exports.EventVote = {
|
|
296
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
297
|
+
if (!message.proposalId.isZero()) {
|
|
298
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
299
|
+
}
|
|
300
|
+
return writer;
|
|
301
|
+
},
|
|
302
|
+
decode(input, length) {
|
|
303
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
304
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
305
|
+
const message = Object.assign({}, baseEventVote);
|
|
306
|
+
while (reader.pos < end) {
|
|
307
|
+
const tag = reader.uint32();
|
|
308
|
+
switch (tag >>> 3) {
|
|
309
|
+
case 1:
|
|
310
|
+
message.proposalId = reader.uint64();
|
|
311
|
+
break;
|
|
312
|
+
default:
|
|
313
|
+
reader.skipType(tag & 7);
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return message;
|
|
318
|
+
},
|
|
319
|
+
fromJSON(object) {
|
|
320
|
+
const message = Object.assign({}, baseEventVote);
|
|
321
|
+
message.proposalId =
|
|
322
|
+
object.proposalId !== undefined && object.proposalId !== null
|
|
323
|
+
? long_1.default.fromString(object.proposalId)
|
|
324
|
+
: long_1.default.UZERO;
|
|
325
|
+
return message;
|
|
326
|
+
},
|
|
327
|
+
toJSON(message) {
|
|
328
|
+
const obj = {};
|
|
329
|
+
message.proposalId !== undefined &&
|
|
330
|
+
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
331
|
+
return obj;
|
|
332
|
+
},
|
|
333
|
+
fromPartial(object) {
|
|
334
|
+
const message = Object.assign({}, baseEventVote);
|
|
335
|
+
message.proposalId =
|
|
336
|
+
object.proposalId !== undefined && object.proposalId !== null
|
|
337
|
+
? long_1.default.fromValue(object.proposalId)
|
|
338
|
+
: long_1.default.UZERO;
|
|
339
|
+
return message;
|
|
340
|
+
},
|
|
341
|
+
};
|
|
342
|
+
const baseEventExec = { proposalId: long_1.default.UZERO, result: 0, logs: "" };
|
|
343
|
+
exports.EventExec = {
|
|
344
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
345
|
+
if (!message.proposalId.isZero()) {
|
|
346
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
347
|
+
}
|
|
348
|
+
if (message.result !== 0) {
|
|
349
|
+
writer.uint32(16).int32(message.result);
|
|
350
|
+
}
|
|
351
|
+
if (message.logs !== "") {
|
|
352
|
+
writer.uint32(26).string(message.logs);
|
|
353
|
+
}
|
|
354
|
+
return writer;
|
|
355
|
+
},
|
|
356
|
+
decode(input, length) {
|
|
357
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
358
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
359
|
+
const message = Object.assign({}, baseEventExec);
|
|
360
|
+
while (reader.pos < end) {
|
|
361
|
+
const tag = reader.uint32();
|
|
362
|
+
switch (tag >>> 3) {
|
|
363
|
+
case 1:
|
|
364
|
+
message.proposalId = reader.uint64();
|
|
365
|
+
break;
|
|
366
|
+
case 2:
|
|
367
|
+
message.result = reader.int32();
|
|
368
|
+
break;
|
|
369
|
+
case 3:
|
|
370
|
+
message.logs = reader.string();
|
|
371
|
+
break;
|
|
372
|
+
default:
|
|
373
|
+
reader.skipType(tag & 7);
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return message;
|
|
378
|
+
},
|
|
379
|
+
fromJSON(object) {
|
|
380
|
+
const message = Object.assign({}, baseEventExec);
|
|
381
|
+
message.proposalId =
|
|
382
|
+
object.proposalId !== undefined && object.proposalId !== null
|
|
383
|
+
? long_1.default.fromString(object.proposalId)
|
|
384
|
+
: long_1.default.UZERO;
|
|
385
|
+
message.result =
|
|
386
|
+
object.result !== undefined && object.result !== null
|
|
387
|
+
? types_1.proposalExecutorResultFromJSON(object.result)
|
|
388
|
+
: 0;
|
|
389
|
+
message.logs =
|
|
390
|
+
object.logs !== undefined && object.logs !== null
|
|
391
|
+
? String(object.logs)
|
|
392
|
+
: "";
|
|
393
|
+
return message;
|
|
394
|
+
},
|
|
395
|
+
toJSON(message) {
|
|
396
|
+
const obj = {};
|
|
397
|
+
message.proposalId !== undefined &&
|
|
398
|
+
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
399
|
+
message.result !== undefined &&
|
|
400
|
+
(obj.result = types_1.proposalExecutorResultToJSON(message.result));
|
|
401
|
+
message.logs !== undefined && (obj.logs = message.logs);
|
|
402
|
+
return obj;
|
|
403
|
+
},
|
|
404
|
+
fromPartial(object) {
|
|
405
|
+
var _a, _b;
|
|
406
|
+
const message = Object.assign({}, baseEventExec);
|
|
407
|
+
message.proposalId =
|
|
408
|
+
object.proposalId !== undefined && object.proposalId !== null
|
|
409
|
+
? long_1.default.fromValue(object.proposalId)
|
|
410
|
+
: long_1.default.UZERO;
|
|
411
|
+
message.result = (_a = object.result) !== null && _a !== void 0 ? _a : 0;
|
|
412
|
+
message.logs = (_b = object.logs) !== null && _b !== void 0 ? _b : "";
|
|
413
|
+
return message;
|
|
414
|
+
},
|
|
415
|
+
};
|
|
416
|
+
const baseEventLeaveGroup = { groupId: long_1.default.UZERO, address: "" };
|
|
417
|
+
exports.EventLeaveGroup = {
|
|
418
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
419
|
+
if (!message.groupId.isZero()) {
|
|
420
|
+
writer.uint32(8).uint64(message.groupId);
|
|
421
|
+
}
|
|
422
|
+
if (message.address !== "") {
|
|
423
|
+
writer.uint32(18).string(message.address);
|
|
424
|
+
}
|
|
425
|
+
return writer;
|
|
426
|
+
},
|
|
427
|
+
decode(input, length) {
|
|
428
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
429
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
430
|
+
const message = Object.assign({}, baseEventLeaveGroup);
|
|
431
|
+
while (reader.pos < end) {
|
|
432
|
+
const tag = reader.uint32();
|
|
433
|
+
switch (tag >>> 3) {
|
|
434
|
+
case 1:
|
|
435
|
+
message.groupId = reader.uint64();
|
|
436
|
+
break;
|
|
437
|
+
case 2:
|
|
438
|
+
message.address = reader.string();
|
|
439
|
+
break;
|
|
440
|
+
default:
|
|
441
|
+
reader.skipType(tag & 7);
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return message;
|
|
446
|
+
},
|
|
447
|
+
fromJSON(object) {
|
|
448
|
+
const message = Object.assign({}, baseEventLeaveGroup);
|
|
449
|
+
message.groupId =
|
|
450
|
+
object.groupId !== undefined && object.groupId !== null
|
|
451
|
+
? long_1.default.fromString(object.groupId)
|
|
452
|
+
: long_1.default.UZERO;
|
|
453
|
+
message.address =
|
|
454
|
+
object.address !== undefined && object.address !== null
|
|
455
|
+
? String(object.address)
|
|
456
|
+
: "";
|
|
457
|
+
return message;
|
|
458
|
+
},
|
|
459
|
+
toJSON(message) {
|
|
460
|
+
const obj = {};
|
|
461
|
+
message.groupId !== undefined &&
|
|
462
|
+
(obj.groupId = (message.groupId || long_1.default.UZERO).toString());
|
|
463
|
+
message.address !== undefined && (obj.address = message.address);
|
|
464
|
+
return obj;
|
|
465
|
+
},
|
|
466
|
+
fromPartial(object) {
|
|
467
|
+
var _a;
|
|
468
|
+
const message = Object.assign({}, baseEventLeaveGroup);
|
|
469
|
+
message.groupId =
|
|
470
|
+
object.groupId !== undefined && object.groupId !== null
|
|
471
|
+
? long_1.default.fromValue(object.groupId)
|
|
472
|
+
: long_1.default.UZERO;
|
|
473
|
+
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
474
|
+
return message;
|
|
475
|
+
},
|
|
476
|
+
};
|
|
477
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
478
|
+
minimal_1.default.util.Long = long_1.default;
|
|
479
|
+
minimal_1.default.configure();
|
|
480
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { EventCreateGroup, EventUpdateGroup, EventCreateGroupPolicy, EventUpdateGroupPolicy, EventSubmitProposal, EventWithdrawProposal, EventVote, EventExec, EventLeaveGroup } from "./events";
|
|
2
|
+
export { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query";
|
|
3
|
+
export { Exec, execFromJSON, execToJSON, MsgCreateGroup, MsgCreateGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgUpdateGroupPolicyAdmin, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse, MsgVote, MsgVoteResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse } from "./tx";
|
|
4
|
+
export { VoteOption, voteOptionFromJSON, voteOptionToJSON, ProposalStatus, proposalStatusFromJSON, proposalStatusToJSON, ProposalExecutorResult, proposalExecutorResultFromJSON, proposalExecutorResultToJSON, Member, MemberRequest, ThresholdDecisionPolicy, PercentageDecisionPolicy, DecisionPolicyWindows, GroupInfo, GroupMember, GroupPolicyInfo, Proposal, TallyResult, Vote } from "./types";
|