@sparkdreamnft/sparkdreamjs 0.0.44 → 0.0.46
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/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/nested-amino.js +6 -4
- package/esm/sparkdream/artifact/v1/genesis.js +217 -3
- package/esm/sparkdream/artifact/v1/params.js +146 -2
- package/esm/sparkdream/artifact/v1/query.js +3767 -5
- package/esm/sparkdream/artifact/v1/query.lcd.js +173 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +195 -1
- package/esm/sparkdream/artifact/v1/tx.amino.js +324 -5
- package/esm/sparkdream/artifact/v1/tx.js +7498 -5
- package/esm/sparkdream/artifact/v1/tx.registry.js +704 -2
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +241 -1
- package/esm/sparkdream/artifact/v1/types.js +4312 -1120
- package/esm/sparkdream/blog/v1/tx.amino.js +21 -1
- package/esm/sparkdream/bundle.js +329 -291
- package/esm/sparkdream/client.js +5 -2
- package/esm/sparkdream/collect/v1/tx.amino.js +16 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +33 -1
- package/esm/sparkdream/commons/v1/tx.js +25 -1
- package/esm/sparkdream/federation/v1/tx.amino.js +51 -1
- package/esm/sparkdream/forum/v1/tx.amino.js +21 -1
- package/esm/sparkdream/guardian/v1/tx.amino.js +33 -3
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/name/v1/genesis.js +32 -2
- package/esm/sparkdream/rep/v1/genesis.js +74 -1
- package/esm/sparkdream/rep/v1/member.js +110 -1
- package/esm/sparkdream/rep/v1/migration.js +957 -0
- package/esm/sparkdream/rep/v1/params.js +193 -1
- package/esm/sparkdream/rep/v1/query.js +1060 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +48 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +65 -1
- package/esm/sparkdream/rep/v1/tx.amino.js +71 -1
- package/esm/sparkdream/rep/v1/tx.js +1886 -1
- package/esm/sparkdream/rep/v1/tx.registry.js +218 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +75 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/tx.amino.js +64 -2
- package/esm/sparkdream/season/v1/tx.js +33 -2
- package/esm/sparkdream/service/v1/operator.js +25 -1
- package/esm/sparkdream/service/v1/tx.amino.js +6 -1
- package/esm/sparkdream/service/v1/tx.js +163 -0
- package/esm/sparkdream/service/v1/tx.registry.js +20 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +11 -1
- package/esm/sparkdream/session/v1/grant.js +98 -6
- package/esm/sparkdream/session/v1/tx.amino.js +3 -0
- package/esm/sparkdream/session/v1/tx.js +53 -5
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +2 -2
- package/esm/sparkdream/shield/v1/genesis.js +32 -2
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/query.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +414 -15
- package/esm/sparkdream/vault/module/v1/module.js +71 -0
- package/esm/sparkdream/vault/v1/genesis.js +104 -0
- package/esm/sparkdream/vault/v1/params.js +90 -0
- package/esm/sparkdream/vault/v1/query.js +1535 -0
- package/esm/sparkdream/vault/v1/query.lcd.js +100 -0
- package/esm/sparkdream/vault/v1/query.rpc.Query.js +111 -0
- package/esm/sparkdream/vault/v1/tx.amino.js +111 -0
- package/esm/sparkdream/vault/v1/tx.js +1393 -0
- package/esm/sparkdream/vault/v1/tx.registry.js +159 -0
- package/esm/sparkdream/vault/v1/tx.rpc.msg.js +60 -0
- package/esm/sparkdream/vault/v1/vault.js +163 -0
- package/esm/sparkdream/vault/v1/vault_proposal.js +277 -0
- package/esm/sparkdream/vault/v1/vault_signer.js +85 -0
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/nested-amino.d.ts +3 -2
- package/nested-amino.js +6 -4
- package/package.json +1 -13
- package/sparkdream/artifact/v1/genesis.d.ts +37 -4
- package/sparkdream/artifact/v1/genesis.js +216 -2
- package/sparkdream/artifact/v1/params.d.ts +92 -0
- package/sparkdream/artifact/v1/params.js +146 -2
- package/sparkdream/artifact/v1/query.d.ts +2373 -168
- package/sparkdream/artifact/v1/query.js +3768 -5
- package/sparkdream/artifact/v1/query.lcd.d.ts +22 -1
- package/sparkdream/artifact/v1/query.lcd.js +173 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +98 -1
- package/sparkdream/artifact/v1/query.rpc.Query.js +194 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +200 -5
- package/sparkdream/artifact/v1/tx.amino.js +324 -5
- package/sparkdream/artifact/v1/tx.d.ts +5188 -930
- package/sparkdream/artifact/v1/tx.js +7499 -5
- package/sparkdream/artifact/v1/tx.registry.d.ts +469 -1
- package/sparkdream/artifact/v1/tx.registry.js +703 -1
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +136 -1
- package/sparkdream/artifact/v1/tx.rpc.msg.js +240 -0
- package/sparkdream/artifact/v1/types.d.ts +1797 -25
- package/sparkdream/artifact/v1/types.js +4322 -1121
- package/sparkdream/blog/v1/tx.amino.d.ts +21 -1
- package/sparkdream/blog/v1/tx.amino.js +20 -0
- package/sparkdream/bundle.d.ts +13721 -9493
- package/sparkdream/bundle.js +329 -291
- package/sparkdream/client.d.ts +394 -9
- package/sparkdream/client.js +5 -2
- package/sparkdream/collect/v1/tx.amino.d.ts +16 -1
- package/sparkdream/collect/v1/tx.amino.js +15 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +21 -1
- package/sparkdream/commons/v1/tx.amino.js +32 -0
- package/sparkdream/commons/v1/tx.d.ts +18 -0
- package/sparkdream/commons/v1/tx.js +25 -1
- package/sparkdream/federation/v1/tx.amino.d.ts +1 -1
- package/sparkdream/federation/v1/tx.amino.js +52 -2
- package/sparkdream/forum/v1/tx.amino.d.ts +21 -1
- package/sparkdream/forum/v1/tx.amino.js +20 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +3 -3
- package/sparkdream/guardian/v1/tx.amino.js +36 -5
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/name/v1/genesis.d.ts +23 -1
- package/sparkdream/name/v1/genesis.js +31 -1
- package/sparkdream/rep/v1/genesis.d.ts +19 -0
- package/sparkdream/rep/v1/genesis.js +74 -1
- package/sparkdream/rep/v1/member.d.ts +92 -0
- package/sparkdream/rep/v1/member.js +110 -1
- package/sparkdream/rep/v1/migration.d.ts +587 -0
- package/sparkdream/rep/v1/migration.js +964 -0
- package/sparkdream/rep/v1/params.d.ts +190 -0
- package/sparkdream/rep/v1/params.js +193 -1
- package/sparkdream/rep/v1/query.d.ts +679 -0
- package/sparkdream/rep/v1/query.js +1061 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +8 -1
- package/sparkdream/rep/v1/query.lcd.js +48 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +32 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +64 -0
- package/sparkdream/rep/v1/tx.amino.d.ts +71 -1
- package/sparkdream/rep/v1/tx.amino.js +70 -0
- package/sparkdream/rep/v1/tx.d.ts +1278 -0
- package/sparkdream/rep/v1/tx.js +1887 -2
- package/sparkdream/rep/v1/tx.registry.d.ts +145 -1
- package/sparkdream/rep/v1/tx.registry.js +217 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +41 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +74 -0
- package/sparkdream/rpc.query.d.ts +42 -0
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/tx.amino.d.ts +2 -2
- package/sparkdream/season/v1/tx.amino.js +65 -3
- package/sparkdream/season/v1/tx.d.ts +19 -0
- package/sparkdream/season/v1/tx.js +33 -2
- package/sparkdream/service/v1/operator.d.ts +30 -0
- package/sparkdream/service/v1/operator.js +25 -1
- package/sparkdream/service/v1/tx.amino.d.ts +6 -1
- package/sparkdream/service/v1/tx.amino.js +5 -0
- package/sparkdream/service/v1/tx.d.ts +119 -0
- package/sparkdream/service/v1/tx.js +164 -1
- package/sparkdream/service/v1/tx.registry.d.ts +13 -1
- package/sparkdream/service/v1/tx.registry.js +19 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +10 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +10 -0
- package/sparkdream/session/v1/grant.d.ts +75 -7
- package/sparkdream/session/v1/grant.js +99 -7
- package/sparkdream/session/v1/tx.amino.js +3 -0
- package/sparkdream/session/v1/tx.d.ts +36 -4
- package/sparkdream/session/v1/tx.js +52 -4
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +2 -2
- package/sparkdream/session/v1/tx.rpc.msg.js +2 -2
- package/sparkdream/shield/v1/genesis.d.ts +17 -1
- package/sparkdream/shield/v1/genesis.js +31 -1
- package/sparkdream/shield/v1/params.d.ts +16 -4
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/query.d.ts +8 -0
- package/sparkdream/shield/v1/query.js +13 -1
- package/sparkdream/shield/v1/tx.d.ts +36 -10
- package/sparkdream/shield/v1/types.d.ts +294 -13
- package/sparkdream/shield/v1/types.js +415 -16
- package/sparkdream/vault/module/v1/module.d.ts +54 -0
- package/sparkdream/vault/module/v1/module.js +74 -0
- package/sparkdream/vault/v1/genesis.d.ts +59 -0
- package/sparkdream/vault/v1/genesis.js +107 -0
- package/sparkdream/vault/v1/params.d.ts +68 -0
- package/sparkdream/vault/v1/params.js +93 -0
- package/sparkdream/vault/v1/query.d.ts +935 -0
- package/sparkdream/vault/v1/query.js +1538 -0
- package/sparkdream/vault/v1/query.lcd.d.ts +18 -0
- package/sparkdream/vault/v1/query.lcd.js +104 -0
- package/sparkdream/vault/v1/query.rpc.Query.d.ts +56 -0
- package/sparkdream/vault/v1/query.rpc.Query.js +116 -0
- package/sparkdream/vault/v1/tx.amino.d.ts +44 -0
- package/sparkdream/vault/v1/tx.amino.js +115 -0
- package/sparkdream/vault/v1/tx.d.ts +826 -0
- package/sparkdream/vault/v1/tx.js +1399 -0
- package/sparkdream/vault/v1/tx.registry.d.ts +109 -0
- package/sparkdream/vault/v1/tx.registry.js +163 -0
- package/sparkdream/vault/v1/tx.rpc.msg.d.ts +37 -0
- package/sparkdream/vault/v1/tx.rpc.msg.js +65 -0
- package/sparkdream/vault/v1/vault.d.ts +117 -0
- package/sparkdream/vault/v1/vault.js +166 -0
- package/sparkdream/vault/v1/vault_proposal.d.ts +158 -0
- package/sparkdream/vault/v1/vault_proposal.js +285 -0
- package/sparkdream/vault/v1/vault_signer.d.ts +54 -0
- package/sparkdream/vault/v1/vault_signer.js +88 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
/** ProposalStatus is the lifecycle of a VaultProposal. */
|
|
5
|
+
export declare enum ProposalStatus {
|
|
6
|
+
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
|
7
|
+
/** PROPOSAL_STATUS_PENDING - Collecting approvals; executable once the threshold is met. */
|
|
8
|
+
PROPOSAL_STATUS_PENDING = 1,
|
|
9
|
+
/** PROPOSAL_STATUS_EXECUTED - Every inner message ran successfully. */
|
|
10
|
+
PROPOSAL_STATUS_EXECUTED = 2,
|
|
11
|
+
/** PROPOSAL_STATUS_CANCELLED - Cancelled by the proposer or by the vault itself (executed MsgCancelProposal). */
|
|
12
|
+
PROPOSAL_STATUS_CANCELLED = 3,
|
|
13
|
+
/** PROPOSAL_STATUS_EXPIRED - expires_at passed before execution (EndBlocker). */
|
|
14
|
+
PROPOSAL_STATUS_EXPIRED = 4,
|
|
15
|
+
/** PROPOSAL_STATUS_INVALIDATED - The vault's signer set or threshold changed after creation. */
|
|
16
|
+
PROPOSAL_STATUS_INVALIDATED = 5,
|
|
17
|
+
UNRECOGNIZED = -1
|
|
18
|
+
}
|
|
19
|
+
export declare const ProposalStatusAmino: typeof ProposalStatus;
|
|
20
|
+
export declare function proposalStatusFromJSON(object: any): ProposalStatus;
|
|
21
|
+
export declare function proposalStatusToJSON(object: ProposalStatus): string;
|
|
22
|
+
/**
|
|
23
|
+
* VaultProposal is a batch of messages a vault's signers approve. Every inner
|
|
24
|
+
* message is signed by the vault address and runs atomically through the msg
|
|
25
|
+
* router when the approving weight reaches the vault's threshold.
|
|
26
|
+
* @name VaultProposal
|
|
27
|
+
* @package sparkdream.vault.v1
|
|
28
|
+
* @see proto type: sparkdream.vault.v1.VaultProposal
|
|
29
|
+
*/
|
|
30
|
+
export interface VaultProposal {
|
|
31
|
+
proposalId: bigint;
|
|
32
|
+
vaultId: bigint;
|
|
33
|
+
/**
|
|
34
|
+
* Canonical (x/rep alias) address of the proposer.
|
|
35
|
+
*/
|
|
36
|
+
proposer: string;
|
|
37
|
+
/**
|
|
38
|
+
* Inner messages; each GetSigners() must be exactly [vault.address]; at most
|
|
39
|
+
* MaxMessagesPerProposal; denylisted types (identity, shield exec, vault
|
|
40
|
+
* recursion, session exec) are refused at propose and at execute.
|
|
41
|
+
*/
|
|
42
|
+
messages: (Any)[] | Any[];
|
|
43
|
+
/**
|
|
44
|
+
* sha256 over the deterministic proto encoding of `messages`; MsgApprove must
|
|
45
|
+
* repeat it so a hardware wallet shows what is being approved.
|
|
46
|
+
*/
|
|
47
|
+
messagesHash: Uint8Array;
|
|
48
|
+
/**
|
|
49
|
+
* Vault config_version at creation; a mismatch means INVALIDATED.
|
|
50
|
+
*/
|
|
51
|
+
configVersion: bigint;
|
|
52
|
+
/**
|
|
53
|
+
* Canonical addresses of approvers (the proposer approves implicitly). Only
|
|
54
|
+
* approvers who are current signers count toward the tally.
|
|
55
|
+
*/
|
|
56
|
+
approvals: string[];
|
|
57
|
+
status: ProposalStatus;
|
|
58
|
+
/**
|
|
59
|
+
* Unix seconds after which a PENDING proposal becomes EXPIRED.
|
|
60
|
+
*/
|
|
61
|
+
expiresAt: bigint;
|
|
62
|
+
/**
|
|
63
|
+
* Display only, <= MaxMemoLength chars.
|
|
64
|
+
*/
|
|
65
|
+
memo: string;
|
|
66
|
+
/**
|
|
67
|
+
* Unix seconds when the proposal left PENDING; drives retention pruning.
|
|
68
|
+
*/
|
|
69
|
+
resolvedAt: bigint;
|
|
70
|
+
}
|
|
71
|
+
export interface VaultProposalProtoMsg {
|
|
72
|
+
typeUrl: "/sparkdream.vault.v1.VaultProposal";
|
|
73
|
+
value: Uint8Array;
|
|
74
|
+
}
|
|
75
|
+
export type VaultProposalEncoded = Omit<VaultProposal, "messages"> & {
|
|
76
|
+
/**
|
|
77
|
+
* Inner messages; each GetSigners() must be exactly [vault.address]; at most
|
|
78
|
+
* MaxMessagesPerProposal; denylisted types (identity, shield exec, vault
|
|
79
|
+
* recursion, session exec) are refused at propose and at execute.
|
|
80
|
+
*/
|
|
81
|
+
messages: (AnyProtoMsg)[];
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* VaultProposal is a batch of messages a vault's signers approve. Every inner
|
|
85
|
+
* message is signed by the vault address and runs atomically through the msg
|
|
86
|
+
* router when the approving weight reaches the vault's threshold.
|
|
87
|
+
* @name VaultProposalAmino
|
|
88
|
+
* @package sparkdream.vault.v1
|
|
89
|
+
* @see proto type: sparkdream.vault.v1.VaultProposal
|
|
90
|
+
*/
|
|
91
|
+
export interface VaultProposalAmino {
|
|
92
|
+
proposal_id?: string;
|
|
93
|
+
vault_id?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Canonical (x/rep alias) address of the proposer.
|
|
96
|
+
*/
|
|
97
|
+
proposer?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Inner messages; each GetSigners() must be exactly [vault.address]; at most
|
|
100
|
+
* MaxMessagesPerProposal; denylisted types (identity, shield exec, vault
|
|
101
|
+
* recursion, session exec) are refused at propose and at execute.
|
|
102
|
+
*/
|
|
103
|
+
messages?: AnyAmino[];
|
|
104
|
+
/**
|
|
105
|
+
* sha256 over the deterministic proto encoding of `messages`; MsgApprove must
|
|
106
|
+
* repeat it so a hardware wallet shows what is being approved.
|
|
107
|
+
*/
|
|
108
|
+
messages_hash?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Vault config_version at creation; a mismatch means INVALIDATED.
|
|
111
|
+
*/
|
|
112
|
+
config_version?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Canonical addresses of approvers (the proposer approves implicitly). Only
|
|
115
|
+
* approvers who are current signers count toward the tally.
|
|
116
|
+
*/
|
|
117
|
+
approvals?: string[];
|
|
118
|
+
status?: ProposalStatus;
|
|
119
|
+
/**
|
|
120
|
+
* Unix seconds after which a PENDING proposal becomes EXPIRED.
|
|
121
|
+
*/
|
|
122
|
+
expires_at?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Display only, <= MaxMemoLength chars.
|
|
125
|
+
*/
|
|
126
|
+
memo?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Unix seconds when the proposal left PENDING; drives retention pruning.
|
|
129
|
+
*/
|
|
130
|
+
resolved_at?: string;
|
|
131
|
+
}
|
|
132
|
+
export interface VaultProposalAminoMsg {
|
|
133
|
+
type: "/sparkdream.vault.v1.VaultProposal";
|
|
134
|
+
value: VaultProposalAmino;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* VaultProposal is a batch of messages a vault's signers approve. Every inner
|
|
138
|
+
* message is signed by the vault address and runs atomically through the msg
|
|
139
|
+
* router when the approving weight reaches the vault's threshold.
|
|
140
|
+
* @name VaultProposal
|
|
141
|
+
* @package sparkdream.vault.v1
|
|
142
|
+
* @see proto type: sparkdream.vault.v1.VaultProposal
|
|
143
|
+
*/
|
|
144
|
+
export declare const VaultProposal: {
|
|
145
|
+
typeUrl: string;
|
|
146
|
+
encode(message: VaultProposal, writer?: BinaryWriter): BinaryWriter;
|
|
147
|
+
decode(input: BinaryReader | Uint8Array, length?: number): VaultProposal;
|
|
148
|
+
fromPartial(object: DeepPartial<VaultProposal>): VaultProposal;
|
|
149
|
+
fromAmino(object: VaultProposalAmino): VaultProposal;
|
|
150
|
+
toAmino(message: VaultProposal): VaultProposalAmino;
|
|
151
|
+
fromAminoMsg(object: VaultProposalAminoMsg): VaultProposal;
|
|
152
|
+
fromProtoMsg(message: VaultProposalProtoMsg): VaultProposal;
|
|
153
|
+
toProto(message: VaultProposal): Uint8Array;
|
|
154
|
+
toProtoMsg(message: VaultProposal): VaultProposalProtoMsg;
|
|
155
|
+
};
|
|
156
|
+
export declare const Cosmos_basev1beta1Msg_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any;
|
|
157
|
+
export declare const Cosmos_basev1beta1Msg_FromAmino: (content: AnyAmino) => Any;
|
|
158
|
+
export declare const Cosmos_basev1beta1Msg_ToAmino: (content: Any) => AnyAmino;
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Cosmos_basev1beta1Msg_ToAmino = exports.Cosmos_basev1beta1Msg_FromAmino = exports.Cosmos_basev1beta1Msg_InterfaceDecoder = exports.VaultProposal = exports.ProposalStatusAmino = exports.ProposalStatus = void 0;
|
|
4
|
+
exports.proposalStatusFromJSON = proposalStatusFromJSON;
|
|
5
|
+
exports.proposalStatusToJSON = proposalStatusToJSON;
|
|
6
|
+
//@ts-nocheck
|
|
7
|
+
const any_1 = require("../../../google/protobuf/any");
|
|
8
|
+
const binary_1 = require("../../../binary");
|
|
9
|
+
const helpers_1 = require("../../../helpers");
|
|
10
|
+
/** ProposalStatus is the lifecycle of a VaultProposal. */
|
|
11
|
+
var ProposalStatus;
|
|
12
|
+
(function (ProposalStatus) {
|
|
13
|
+
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED";
|
|
14
|
+
/** PROPOSAL_STATUS_PENDING - Collecting approvals; executable once the threshold is met. */
|
|
15
|
+
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_PENDING"] = 1] = "PROPOSAL_STATUS_PENDING";
|
|
16
|
+
/** PROPOSAL_STATUS_EXECUTED - Every inner message ran successfully. */
|
|
17
|
+
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_EXECUTED"] = 2] = "PROPOSAL_STATUS_EXECUTED";
|
|
18
|
+
/** PROPOSAL_STATUS_CANCELLED - Cancelled by the proposer or by the vault itself (executed MsgCancelProposal). */
|
|
19
|
+
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_CANCELLED"] = 3] = "PROPOSAL_STATUS_CANCELLED";
|
|
20
|
+
/** PROPOSAL_STATUS_EXPIRED - expires_at passed before execution (EndBlocker). */
|
|
21
|
+
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_EXPIRED"] = 4] = "PROPOSAL_STATUS_EXPIRED";
|
|
22
|
+
/** PROPOSAL_STATUS_INVALIDATED - The vault's signer set or threshold changed after creation. */
|
|
23
|
+
ProposalStatus[ProposalStatus["PROPOSAL_STATUS_INVALIDATED"] = 5] = "PROPOSAL_STATUS_INVALIDATED";
|
|
24
|
+
ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
25
|
+
})(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {}));
|
|
26
|
+
exports.ProposalStatusAmino = ProposalStatus;
|
|
27
|
+
function proposalStatusFromJSON(object) {
|
|
28
|
+
switch (object) {
|
|
29
|
+
case 0:
|
|
30
|
+
case "PROPOSAL_STATUS_UNSPECIFIED":
|
|
31
|
+
return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED;
|
|
32
|
+
case 1:
|
|
33
|
+
case "PROPOSAL_STATUS_PENDING":
|
|
34
|
+
return ProposalStatus.PROPOSAL_STATUS_PENDING;
|
|
35
|
+
case 2:
|
|
36
|
+
case "PROPOSAL_STATUS_EXECUTED":
|
|
37
|
+
return ProposalStatus.PROPOSAL_STATUS_EXECUTED;
|
|
38
|
+
case 3:
|
|
39
|
+
case "PROPOSAL_STATUS_CANCELLED":
|
|
40
|
+
return ProposalStatus.PROPOSAL_STATUS_CANCELLED;
|
|
41
|
+
case 4:
|
|
42
|
+
case "PROPOSAL_STATUS_EXPIRED":
|
|
43
|
+
return ProposalStatus.PROPOSAL_STATUS_EXPIRED;
|
|
44
|
+
case 5:
|
|
45
|
+
case "PROPOSAL_STATUS_INVALIDATED":
|
|
46
|
+
return ProposalStatus.PROPOSAL_STATUS_INVALIDATED;
|
|
47
|
+
case -1:
|
|
48
|
+
case "UNRECOGNIZED":
|
|
49
|
+
default:
|
|
50
|
+
return ProposalStatus.UNRECOGNIZED;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function proposalStatusToJSON(object) {
|
|
54
|
+
switch (object) {
|
|
55
|
+
case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED:
|
|
56
|
+
return "PROPOSAL_STATUS_UNSPECIFIED";
|
|
57
|
+
case ProposalStatus.PROPOSAL_STATUS_PENDING:
|
|
58
|
+
return "PROPOSAL_STATUS_PENDING";
|
|
59
|
+
case ProposalStatus.PROPOSAL_STATUS_EXECUTED:
|
|
60
|
+
return "PROPOSAL_STATUS_EXECUTED";
|
|
61
|
+
case ProposalStatus.PROPOSAL_STATUS_CANCELLED:
|
|
62
|
+
return "PROPOSAL_STATUS_CANCELLED";
|
|
63
|
+
case ProposalStatus.PROPOSAL_STATUS_EXPIRED:
|
|
64
|
+
return "PROPOSAL_STATUS_EXPIRED";
|
|
65
|
+
case ProposalStatus.PROPOSAL_STATUS_INVALIDATED:
|
|
66
|
+
return "PROPOSAL_STATUS_INVALIDATED";
|
|
67
|
+
case ProposalStatus.UNRECOGNIZED:
|
|
68
|
+
default:
|
|
69
|
+
return "UNRECOGNIZED";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function createBaseVaultProposal() {
|
|
73
|
+
return {
|
|
74
|
+
proposalId: BigInt(0),
|
|
75
|
+
vaultId: BigInt(0),
|
|
76
|
+
proposer: "",
|
|
77
|
+
messages: [],
|
|
78
|
+
messagesHash: new Uint8Array(),
|
|
79
|
+
configVersion: BigInt(0),
|
|
80
|
+
approvals: [],
|
|
81
|
+
status: 0,
|
|
82
|
+
expiresAt: BigInt(0),
|
|
83
|
+
memo: "",
|
|
84
|
+
resolvedAt: BigInt(0)
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* VaultProposal is a batch of messages a vault's signers approve. Every inner
|
|
89
|
+
* message is signed by the vault address and runs atomically through the msg
|
|
90
|
+
* router when the approving weight reaches the vault's threshold.
|
|
91
|
+
* @name VaultProposal
|
|
92
|
+
* @package sparkdream.vault.v1
|
|
93
|
+
* @see proto type: sparkdream.vault.v1.VaultProposal
|
|
94
|
+
*/
|
|
95
|
+
exports.VaultProposal = {
|
|
96
|
+
typeUrl: "/sparkdream.vault.v1.VaultProposal",
|
|
97
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
98
|
+
if (message.proposalId !== BigInt(0)) {
|
|
99
|
+
writer.uint32(8).uint64(message.proposalId);
|
|
100
|
+
}
|
|
101
|
+
if (message.vaultId !== BigInt(0)) {
|
|
102
|
+
writer.uint32(16).uint64(message.vaultId);
|
|
103
|
+
}
|
|
104
|
+
if (message.proposer !== "") {
|
|
105
|
+
writer.uint32(26).string(message.proposer);
|
|
106
|
+
}
|
|
107
|
+
for (const v of message.messages) {
|
|
108
|
+
any_1.Any.encode(v, writer.uint32(34).fork()).ldelim();
|
|
109
|
+
}
|
|
110
|
+
if (message.messagesHash.length !== 0) {
|
|
111
|
+
writer.uint32(42).bytes(message.messagesHash);
|
|
112
|
+
}
|
|
113
|
+
if (message.configVersion !== BigInt(0)) {
|
|
114
|
+
writer.uint32(48).uint64(message.configVersion);
|
|
115
|
+
}
|
|
116
|
+
for (const v of message.approvals) {
|
|
117
|
+
writer.uint32(58).string(v);
|
|
118
|
+
}
|
|
119
|
+
if (message.status !== 0) {
|
|
120
|
+
writer.uint32(64).int32(message.status);
|
|
121
|
+
}
|
|
122
|
+
if (message.expiresAt !== BigInt(0)) {
|
|
123
|
+
writer.uint32(72).int64(message.expiresAt);
|
|
124
|
+
}
|
|
125
|
+
if (message.memo !== "") {
|
|
126
|
+
writer.uint32(82).string(message.memo);
|
|
127
|
+
}
|
|
128
|
+
if (message.resolvedAt !== BigInt(0)) {
|
|
129
|
+
writer.uint32(88).int64(message.resolvedAt);
|
|
130
|
+
}
|
|
131
|
+
return writer;
|
|
132
|
+
},
|
|
133
|
+
decode(input, length) {
|
|
134
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
135
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
136
|
+
const message = createBaseVaultProposal();
|
|
137
|
+
while (reader.pos < end) {
|
|
138
|
+
const tag = reader.uint32();
|
|
139
|
+
switch (tag >>> 3) {
|
|
140
|
+
case 1:
|
|
141
|
+
message.proposalId = reader.uint64();
|
|
142
|
+
break;
|
|
143
|
+
case 2:
|
|
144
|
+
message.vaultId = reader.uint64();
|
|
145
|
+
break;
|
|
146
|
+
case 3:
|
|
147
|
+
message.proposer = reader.string();
|
|
148
|
+
break;
|
|
149
|
+
case 4:
|
|
150
|
+
message.messages.push(any_1.Any.decode(reader, reader.uint32()));
|
|
151
|
+
break;
|
|
152
|
+
case 5:
|
|
153
|
+
message.messagesHash = reader.bytes();
|
|
154
|
+
break;
|
|
155
|
+
case 6:
|
|
156
|
+
message.configVersion = reader.uint64();
|
|
157
|
+
break;
|
|
158
|
+
case 7:
|
|
159
|
+
message.approvals.push(reader.string());
|
|
160
|
+
break;
|
|
161
|
+
case 8:
|
|
162
|
+
message.status = reader.int32();
|
|
163
|
+
break;
|
|
164
|
+
case 9:
|
|
165
|
+
message.expiresAt = reader.int64();
|
|
166
|
+
break;
|
|
167
|
+
case 10:
|
|
168
|
+
message.memo = reader.string();
|
|
169
|
+
break;
|
|
170
|
+
case 11:
|
|
171
|
+
message.resolvedAt = reader.int64();
|
|
172
|
+
break;
|
|
173
|
+
default:
|
|
174
|
+
reader.skipType(tag & 7);
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return message;
|
|
179
|
+
},
|
|
180
|
+
fromPartial(object) {
|
|
181
|
+
const message = createBaseVaultProposal();
|
|
182
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
|
|
183
|
+
message.vaultId = object.vaultId !== undefined && object.vaultId !== null ? BigInt(object.vaultId.toString()) : BigInt(0);
|
|
184
|
+
message.proposer = object.proposer ?? "";
|
|
185
|
+
message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || [];
|
|
186
|
+
message.messagesHash = object.messagesHash ?? new Uint8Array();
|
|
187
|
+
message.configVersion = object.configVersion !== undefined && object.configVersion !== null ? BigInt(object.configVersion.toString()) : BigInt(0);
|
|
188
|
+
message.approvals = object.approvals?.map(e => e) || [];
|
|
189
|
+
message.status = object.status ?? 0;
|
|
190
|
+
message.expiresAt = object.expiresAt !== undefined && object.expiresAt !== null ? BigInt(object.expiresAt.toString()) : BigInt(0);
|
|
191
|
+
message.memo = object.memo ?? "";
|
|
192
|
+
message.resolvedAt = object.resolvedAt !== undefined && object.resolvedAt !== null ? BigInt(object.resolvedAt.toString()) : BigInt(0);
|
|
193
|
+
return message;
|
|
194
|
+
},
|
|
195
|
+
fromAmino(object) {
|
|
196
|
+
const message = createBaseVaultProposal();
|
|
197
|
+
if (object.proposal_id !== undefined && object.proposal_id !== null) {
|
|
198
|
+
message.proposalId = BigInt(object.proposal_id);
|
|
199
|
+
}
|
|
200
|
+
if (object.vault_id !== undefined && object.vault_id !== null) {
|
|
201
|
+
message.vaultId = BigInt(object.vault_id);
|
|
202
|
+
}
|
|
203
|
+
if (object.proposer !== undefined && object.proposer !== null) {
|
|
204
|
+
message.proposer = object.proposer;
|
|
205
|
+
}
|
|
206
|
+
message.messages = object.messages?.map(e => (0, exports.Cosmos_basev1beta1Msg_FromAmino)(e)) || [];
|
|
207
|
+
if (object.messages_hash !== undefined && object.messages_hash !== null) {
|
|
208
|
+
message.messagesHash = (0, helpers_1.bytesFromBase64)(object.messages_hash);
|
|
209
|
+
}
|
|
210
|
+
if (object.config_version !== undefined && object.config_version !== null) {
|
|
211
|
+
message.configVersion = BigInt(object.config_version);
|
|
212
|
+
}
|
|
213
|
+
message.approvals = object.approvals?.map(e => e) || [];
|
|
214
|
+
if (object.status !== undefined && object.status !== null) {
|
|
215
|
+
message.status = object.status;
|
|
216
|
+
}
|
|
217
|
+
if (object.expires_at !== undefined && object.expires_at !== null) {
|
|
218
|
+
message.expiresAt = BigInt(object.expires_at);
|
|
219
|
+
}
|
|
220
|
+
if (object.memo !== undefined && object.memo !== null) {
|
|
221
|
+
message.memo = object.memo;
|
|
222
|
+
}
|
|
223
|
+
if (object.resolved_at !== undefined && object.resolved_at !== null) {
|
|
224
|
+
message.resolvedAt = BigInt(object.resolved_at);
|
|
225
|
+
}
|
|
226
|
+
return message;
|
|
227
|
+
},
|
|
228
|
+
toAmino(message) {
|
|
229
|
+
const obj = {};
|
|
230
|
+
obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
|
|
231
|
+
obj.vault_id = message.vaultId !== BigInt(0) ? message.vaultId?.toString() : undefined;
|
|
232
|
+
obj.proposer = message.proposer === "" ? undefined : message.proposer;
|
|
233
|
+
if (message.messages) {
|
|
234
|
+
obj.messages = message.messages.map(e => e ? (0, exports.Cosmos_basev1beta1Msg_ToAmino)(e) : undefined);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
obj.messages = message.messages;
|
|
238
|
+
}
|
|
239
|
+
obj.messages_hash = message.messagesHash ? (0, helpers_1.base64FromBytes)(message.messagesHash) : undefined;
|
|
240
|
+
obj.config_version = message.configVersion !== BigInt(0) ? message.configVersion?.toString() : undefined;
|
|
241
|
+
if (message.approvals) {
|
|
242
|
+
obj.approvals = message.approvals.map(e => e);
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
obj.approvals = message.approvals;
|
|
246
|
+
}
|
|
247
|
+
obj.status = message.status === 0 ? undefined : message.status;
|
|
248
|
+
obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
|
|
249
|
+
obj.memo = message.memo === "" ? undefined : message.memo;
|
|
250
|
+
obj.resolved_at = message.resolvedAt !== BigInt(0) ? message.resolvedAt?.toString() : undefined;
|
|
251
|
+
return obj;
|
|
252
|
+
},
|
|
253
|
+
fromAminoMsg(object) {
|
|
254
|
+
return exports.VaultProposal.fromAmino(object.value);
|
|
255
|
+
},
|
|
256
|
+
fromProtoMsg(message) {
|
|
257
|
+
return exports.VaultProposal.decode(message.value);
|
|
258
|
+
},
|
|
259
|
+
toProto(message) {
|
|
260
|
+
return exports.VaultProposal.encode(message).finish();
|
|
261
|
+
},
|
|
262
|
+
toProtoMsg(message) {
|
|
263
|
+
return {
|
|
264
|
+
typeUrl: "/sparkdream.vault.v1.VaultProposal",
|
|
265
|
+
value: exports.VaultProposal.encode(message).finish()
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
const Cosmos_basev1beta1Msg_InterfaceDecoder = (input) => {
|
|
270
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
271
|
+
const data = any_1.Any.decode(reader, reader.uint32());
|
|
272
|
+
switch (data.typeUrl) {
|
|
273
|
+
default:
|
|
274
|
+
return data;
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
exports.Cosmos_basev1beta1Msg_InterfaceDecoder = Cosmos_basev1beta1Msg_InterfaceDecoder;
|
|
278
|
+
const Cosmos_basev1beta1Msg_FromAmino = (content) => {
|
|
279
|
+
return any_1.Any.fromAmino(content);
|
|
280
|
+
};
|
|
281
|
+
exports.Cosmos_basev1beta1Msg_FromAmino = Cosmos_basev1beta1Msg_FromAmino;
|
|
282
|
+
const Cosmos_basev1beta1Msg_ToAmino = (content) => {
|
|
283
|
+
return any_1.Any.toAmino(content);
|
|
284
|
+
};
|
|
285
|
+
exports.Cosmos_basev1beta1Msg_ToAmino = Cosmos_basev1beta1Msg_ToAmino;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
/**
|
|
4
|
+
* VaultSigner is one weighted signer of a vault. The address is personal (never
|
|
5
|
+
* a vault, module account, group policy or reserved address); a native multisig
|
|
6
|
+
* address is allowed.
|
|
7
|
+
* @name VaultSigner
|
|
8
|
+
* @package sparkdream.vault.v1
|
|
9
|
+
* @see proto type: sparkdream.vault.v1.VaultSigner
|
|
10
|
+
*/
|
|
11
|
+
export interface VaultSigner {
|
|
12
|
+
address: string;
|
|
13
|
+
weight: bigint;
|
|
14
|
+
}
|
|
15
|
+
export interface VaultSignerProtoMsg {
|
|
16
|
+
typeUrl: "/sparkdream.vault.v1.VaultSigner";
|
|
17
|
+
value: Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* VaultSigner is one weighted signer of a vault. The address is personal (never
|
|
21
|
+
* a vault, module account, group policy or reserved address); a native multisig
|
|
22
|
+
* address is allowed.
|
|
23
|
+
* @name VaultSignerAmino
|
|
24
|
+
* @package sparkdream.vault.v1
|
|
25
|
+
* @see proto type: sparkdream.vault.v1.VaultSigner
|
|
26
|
+
*/
|
|
27
|
+
export interface VaultSignerAmino {
|
|
28
|
+
address?: string;
|
|
29
|
+
weight?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface VaultSignerAminoMsg {
|
|
32
|
+
type: "/sparkdream.vault.v1.VaultSigner";
|
|
33
|
+
value: VaultSignerAmino;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* VaultSigner is one weighted signer of a vault. The address is personal (never
|
|
37
|
+
* a vault, module account, group policy or reserved address); a native multisig
|
|
38
|
+
* address is allowed.
|
|
39
|
+
* @name VaultSigner
|
|
40
|
+
* @package sparkdream.vault.v1
|
|
41
|
+
* @see proto type: sparkdream.vault.v1.VaultSigner
|
|
42
|
+
*/
|
|
43
|
+
export declare const VaultSigner: {
|
|
44
|
+
typeUrl: string;
|
|
45
|
+
encode(message: VaultSigner, writer?: BinaryWriter): BinaryWriter;
|
|
46
|
+
decode(input: BinaryReader | Uint8Array, length?: number): VaultSigner;
|
|
47
|
+
fromPartial(object: DeepPartial<VaultSigner>): VaultSigner;
|
|
48
|
+
fromAmino(object: VaultSignerAmino): VaultSigner;
|
|
49
|
+
toAmino(message: VaultSigner): VaultSignerAmino;
|
|
50
|
+
fromAminoMsg(object: VaultSignerAminoMsg): VaultSigner;
|
|
51
|
+
fromProtoMsg(message: VaultSignerProtoMsg): VaultSigner;
|
|
52
|
+
toProto(message: VaultSigner): Uint8Array;
|
|
53
|
+
toProtoMsg(message: VaultSigner): VaultSignerProtoMsg;
|
|
54
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VaultSigner = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const binary_1 = require("../../../binary");
|
|
6
|
+
function createBaseVaultSigner() {
|
|
7
|
+
return {
|
|
8
|
+
address: "",
|
|
9
|
+
weight: BigInt(0)
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* VaultSigner is one weighted signer of a vault. The address is personal (never
|
|
14
|
+
* a vault, module account, group policy or reserved address); a native multisig
|
|
15
|
+
* address is allowed.
|
|
16
|
+
* @name VaultSigner
|
|
17
|
+
* @package sparkdream.vault.v1
|
|
18
|
+
* @see proto type: sparkdream.vault.v1.VaultSigner
|
|
19
|
+
*/
|
|
20
|
+
exports.VaultSigner = {
|
|
21
|
+
typeUrl: "/sparkdream.vault.v1.VaultSigner",
|
|
22
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
23
|
+
if (message.address !== "") {
|
|
24
|
+
writer.uint32(10).string(message.address);
|
|
25
|
+
}
|
|
26
|
+
if (message.weight !== BigInt(0)) {
|
|
27
|
+
writer.uint32(16).uint64(message.weight);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseVaultSigner();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
message.address = reader.string();
|
|
40
|
+
break;
|
|
41
|
+
case 2:
|
|
42
|
+
message.weight = reader.uint64();
|
|
43
|
+
break;
|
|
44
|
+
default:
|
|
45
|
+
reader.skipType(tag & 7);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
fromPartial(object) {
|
|
52
|
+
const message = createBaseVaultSigner();
|
|
53
|
+
message.address = object.address ?? "";
|
|
54
|
+
message.weight = object.weight !== undefined && object.weight !== null ? BigInt(object.weight.toString()) : BigInt(0);
|
|
55
|
+
return message;
|
|
56
|
+
},
|
|
57
|
+
fromAmino(object) {
|
|
58
|
+
const message = createBaseVaultSigner();
|
|
59
|
+
if (object.address !== undefined && object.address !== null) {
|
|
60
|
+
message.address = object.address;
|
|
61
|
+
}
|
|
62
|
+
if (object.weight !== undefined && object.weight !== null) {
|
|
63
|
+
message.weight = BigInt(object.weight);
|
|
64
|
+
}
|
|
65
|
+
return message;
|
|
66
|
+
},
|
|
67
|
+
toAmino(message) {
|
|
68
|
+
const obj = {};
|
|
69
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
70
|
+
obj.weight = message.weight !== BigInt(0) ? message.weight?.toString() : undefined;
|
|
71
|
+
return obj;
|
|
72
|
+
},
|
|
73
|
+
fromAminoMsg(object) {
|
|
74
|
+
return exports.VaultSigner.fromAmino(object.value);
|
|
75
|
+
},
|
|
76
|
+
fromProtoMsg(message) {
|
|
77
|
+
return exports.VaultSigner.decode(message.value);
|
|
78
|
+
},
|
|
79
|
+
toProto(message) {
|
|
80
|
+
return exports.VaultSigner.encode(message).finish();
|
|
81
|
+
},
|
|
82
|
+
toProtoMsg(message) {
|
|
83
|
+
return {
|
|
84
|
+
typeUrl: "/sparkdream.vault.v1.VaultSigner",
|
|
85
|
+
value: exports.VaultSigner.encode(message).finish()
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|