@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
package/esm/sparkdream/client.js
CHANGED
|
@@ -19,6 +19,7 @@ import * as sparkdreamSessionV1TxRegistry from "./session/v1/tx.registry";
|
|
|
19
19
|
import * as sparkdreamShieldV1TxRegistry from "./shield/v1/tx.registry";
|
|
20
20
|
import * as sparkdreamSparkdreamV1TxRegistry from "./sparkdream/v1/tx.registry";
|
|
21
21
|
import * as sparkdreamSplitV1TxRegistry from "./split/v1/tx.registry";
|
|
22
|
+
import * as sparkdreamVaultV1TxRegistry from "./vault/v1/tx.registry";
|
|
22
23
|
import * as sparkdreamArtifactV1TxAmino from "./artifact/v1/tx.amino";
|
|
23
24
|
import * as sparkdreamBlogV1TxAmino from "./blog/v1/tx.amino";
|
|
24
25
|
import * as sparkdreamCollectV1TxAmino from "./collect/v1/tx.amino";
|
|
@@ -37,6 +38,7 @@ import * as sparkdreamSessionV1TxAmino from "./session/v1/tx.amino";
|
|
|
37
38
|
import * as sparkdreamShieldV1TxAmino from "./shield/v1/tx.amino";
|
|
38
39
|
import * as sparkdreamSparkdreamV1TxAmino from "./sparkdream/v1/tx.amino";
|
|
39
40
|
import * as sparkdreamSplitV1TxAmino from "./split/v1/tx.amino";
|
|
41
|
+
import * as sparkdreamVaultV1TxAmino from "./vault/v1/tx.amino";
|
|
40
42
|
export const sparkdreamAminoConverters = {
|
|
41
43
|
...sparkdreamArtifactV1TxAmino.AminoConverter,
|
|
42
44
|
...sparkdreamBlogV1TxAmino.AminoConverter,
|
|
@@ -55,9 +57,10 @@ export const sparkdreamAminoConverters = {
|
|
|
55
57
|
...sparkdreamSessionV1TxAmino.AminoConverter,
|
|
56
58
|
...sparkdreamShieldV1TxAmino.AminoConverter,
|
|
57
59
|
...sparkdreamSparkdreamV1TxAmino.AminoConverter,
|
|
58
|
-
...sparkdreamSplitV1TxAmino.AminoConverter
|
|
60
|
+
...sparkdreamSplitV1TxAmino.AminoConverter,
|
|
61
|
+
...sparkdreamVaultV1TxAmino.AminoConverter
|
|
59
62
|
};
|
|
60
|
-
export const sparkdreamProtoRegistry = [...sparkdreamArtifactV1TxRegistry.registry, ...sparkdreamBlogV1TxRegistry.registry, ...sparkdreamCollectV1TxRegistry.registry, ...sparkdreamCommonsV1TxRegistry.registry, ...sparkdreamEcosystemV1TxRegistry.registry, ...sparkdreamFederationV1TxRegistry.registry, ...sparkdreamForumV1TxRegistry.registry, ...sparkdreamFutarchyV1TxRegistry.registry, ...sparkdreamGuardianV1TxRegistry.registry, ...sparkdreamNameV1TxRegistry.registry, ...sparkdreamRepV1TxRegistry.registry, ...sparkdreamRevealV1TxRegistry.registry, ...sparkdreamSeasonV1TxRegistry.registry, ...sparkdreamServiceV1TxRegistry.registry, ...sparkdreamSessionV1TxRegistry.registry, ...sparkdreamShieldV1TxRegistry.registry, ...sparkdreamSparkdreamV1TxRegistry.registry, ...sparkdreamSplitV1TxRegistry.registry];
|
|
63
|
+
export const sparkdreamProtoRegistry = [...sparkdreamArtifactV1TxRegistry.registry, ...sparkdreamBlogV1TxRegistry.registry, ...sparkdreamCollectV1TxRegistry.registry, ...sparkdreamCommonsV1TxRegistry.registry, ...sparkdreamEcosystemV1TxRegistry.registry, ...sparkdreamFederationV1TxRegistry.registry, ...sparkdreamForumV1TxRegistry.registry, ...sparkdreamFutarchyV1TxRegistry.registry, ...sparkdreamGuardianV1TxRegistry.registry, ...sparkdreamNameV1TxRegistry.registry, ...sparkdreamRepV1TxRegistry.registry, ...sparkdreamRevealV1TxRegistry.registry, ...sparkdreamSeasonV1TxRegistry.registry, ...sparkdreamServiceV1TxRegistry.registry, ...sparkdreamSessionV1TxRegistry.registry, ...sparkdreamShieldV1TxRegistry.registry, ...sparkdreamSparkdreamV1TxRegistry.registry, ...sparkdreamSplitV1TxRegistry.registry, ...sparkdreamVaultV1TxRegistry.registry];
|
|
61
64
|
export const getSigningSparkdreamClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
|
|
62
65
|
const registry = new Registry([...defaultTypes, ...sparkdreamProtoRegistry]);
|
|
63
66
|
const aminoTypes = new AminoTypes({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// them. In collect the offending messages are: MsgCreateCollection (tags),
|
|
7
7
|
// MsgUpdateCollection (tags), MsgAddItem (attributes), MsgAddItems (items),
|
|
8
8
|
// MsgUpdateItem (attributes), MsgRemoveItems (ids), MsgRateCollection (tags).
|
|
9
|
-
import { MsgUpdateParams, MsgCreateCollection, MsgUpdateCollection, MsgDeleteCollection, MsgAddItem, MsgAddItems, MsgUpdateItem, MsgRemoveItem, MsgRemoveItems, MsgReorderItem, MsgAddCollaborator, MsgRemoveCollaborator, MsgUpdateCollaboratorRole, MsgRateCollection, MsgChallengeReview, MsgRequestSponsorship, MsgCancelSponsorshipRequest, MsgSponsorCollection, MsgUpdateOperationalParams, MsgUpvoteContent, MsgDownvoteContent, MsgFlagContent, MsgHideContent, MsgAppealHide, MsgEndorseCollection, MsgSetSeekingEndorsement, MsgPinCollection, } from "./tx";
|
|
9
|
+
import { MsgUpdateParams, MsgCreateCollection, MsgUpdateCollection, MsgDeleteCollection, MsgAddItem, MsgAddItems, MsgUpdateItem, MsgRemoveItem, MsgRemoveItems, MsgReorderItem, MsgAddCollaborator, MsgRemoveCollaborator, MsgUpdateCollaboratorRole, MsgRateCollection, MsgChallengeReview, MsgRequestSponsorship, MsgCancelSponsorshipRequest, MsgSponsorCollection, MsgUpdateOperationalParams, MsgUpvoteContent, MsgDownvoteContent, MsgFlagContent, MsgHideContent, MsgAppealHide, MsgEndorseCollection, MsgSetSeekingEndorsement, MsgPinCollection, MsgUnpinCollection, MsgUnhideContent, MsgMakeCollectionPermanent, } from "./tx";
|
|
10
10
|
import { NftReference, LinkReference, OnChainReference, CustomReference, KeyValuePair, AddItemEntry } from "./types";
|
|
11
11
|
import { base64FromBytes } from "../../../helpers";
|
|
12
12
|
export const AminoConverter = {
|
|
@@ -238,4 +238,19 @@ export const AminoConverter = {
|
|
|
238
238
|
toAmino: MsgPinCollection.toAmino,
|
|
239
239
|
fromAmino: MsgPinCollection.fromAmino,
|
|
240
240
|
},
|
|
241
|
+
"/sparkdream.collect.v1.MsgUnpinCollection": {
|
|
242
|
+
aminoType: "sparkdream/x/collect/MsgUnpinCollection",
|
|
243
|
+
toAmino: MsgUnpinCollection.toAmino,
|
|
244
|
+
fromAmino: MsgUnpinCollection.fromAmino,
|
|
245
|
+
},
|
|
246
|
+
"/sparkdream.collect.v1.MsgUnhideContent": {
|
|
247
|
+
aminoType: "sparkdream/x/collect/MsgUnhideContent",
|
|
248
|
+
toAmino: MsgUnhideContent.toAmino,
|
|
249
|
+
fromAmino: MsgUnhideContent.fromAmino,
|
|
250
|
+
},
|
|
251
|
+
"/sparkdream.collect.v1.MsgMakeCollectionPermanent": {
|
|
252
|
+
aminoType: "sparkdream/x/collect/MsgMakeCollectionPermanent",
|
|
253
|
+
toAmino: MsgMakeCollectionPermanent.toAmino,
|
|
254
|
+
fromAmino: MsgMakeCollectionPermanent.fromAmino,
|
|
255
|
+
},
|
|
241
256
|
};
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// This override delegates the inner Any conversion to a consumer-supplied
|
|
14
14
|
// proto registry + AminoTypes via `configureNestedAminoConverter`. The rest of
|
|
15
15
|
// the converters are unchanged.
|
|
16
|
-
import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgVoteProposal, MsgExecuteProposal, MsgAnonymousVoteProposal, MsgCreateCategory, MsgDeleteCategory, } from "./tx";
|
|
16
|
+
import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgVoteProposal, MsgExecuteProposal, MsgAnonymousVoteProposal, MsgCreateCategory, MsgDeleteCategory, MsgScheduleRecurringSpend, MsgClaimRecurringSpend, MsgCancelRecurringSpend, MsgDeclineRecurringSpend, } from "./tx";
|
|
17
17
|
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
18
18
|
import { anyToAmino, aminoToAny } from "../../../nested-amino";
|
|
19
19
|
export { configureNestedAminoConverter } from "../../../nested-amino";
|
|
@@ -229,4 +229,36 @@ export const AminoConverter = {
|
|
|
229
229
|
toAmino: MsgDeleteCategory.toAmino,
|
|
230
230
|
fromAmino: MsgDeleteCategory.fromAmino,
|
|
231
231
|
},
|
|
232
|
+
"/sparkdream.commons.v1.MsgScheduleRecurringSpend": {
|
|
233
|
+
aminoType: "sparkdream/x/commons/MsgScheduleRecurringSpend",
|
|
234
|
+
toAmino(message) {
|
|
235
|
+
const obj = {};
|
|
236
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
237
|
+
obj.recipient = message.recipient === "" ? undefined : message.recipient;
|
|
238
|
+
obj.amount_per_period = (message.amountPerPeriod?.length ?? 0) > 0
|
|
239
|
+
? message.amountPerPeriod.map((e) => e ? Coin.toAmino(e) : undefined)
|
|
240
|
+
: undefined;
|
|
241
|
+
obj.period_seconds = message.periodSeconds !== BigInt(0) ? message.periodSeconds?.toString() : undefined;
|
|
242
|
+
obj.start_time = message.startTime !== BigInt(0) ? message.startTime?.toString() : undefined;
|
|
243
|
+
obj.end_time = message.endTime !== BigInt(0) ? message.endTime?.toString() : undefined;
|
|
244
|
+
obj.note = message.note === "" ? undefined : message.note;
|
|
245
|
+
return obj;
|
|
246
|
+
},
|
|
247
|
+
fromAmino: MsgScheduleRecurringSpend.fromAmino,
|
|
248
|
+
},
|
|
249
|
+
"/sparkdream.commons.v1.MsgClaimRecurringSpend": {
|
|
250
|
+
aminoType: "sparkdream/x/commons/MsgClaimRecurringSpend",
|
|
251
|
+
toAmino: MsgClaimRecurringSpend.toAmino,
|
|
252
|
+
fromAmino: MsgClaimRecurringSpend.fromAmino,
|
|
253
|
+
},
|
|
254
|
+
"/sparkdream.commons.v1.MsgCancelRecurringSpend": {
|
|
255
|
+
aminoType: "sparkdream/x/commons/MsgCancelRecurringSpend",
|
|
256
|
+
toAmino: MsgCancelRecurringSpend.toAmino,
|
|
257
|
+
fromAmino: MsgCancelRecurringSpend.fromAmino,
|
|
258
|
+
},
|
|
259
|
+
"/sparkdream.commons.v1.MsgDeclineRecurringSpend": {
|
|
260
|
+
aminoType: "sparkdream/x/commons/MsgDeclineRecurringSpend",
|
|
261
|
+
toAmino: MsgDeclineRecurringSpend.toAmino,
|
|
262
|
+
fromAmino: MsgDeclineRecurringSpend.fromAmino,
|
|
263
|
+
},
|
|
232
264
|
};
|
|
@@ -4178,7 +4178,9 @@ export const MsgClaimRecurringSpend = {
|
|
|
4178
4178
|
function createBaseMsgClaimRecurringSpendResponse() {
|
|
4179
4179
|
return {
|
|
4180
4180
|
claimNumber: BigInt(0),
|
|
4181
|
-
nextClaimTime: BigInt(0)
|
|
4181
|
+
nextClaimTime: BigInt(0),
|
|
4182
|
+
paused: false,
|
|
4183
|
+
completed: false
|
|
4182
4184
|
};
|
|
4183
4185
|
}
|
|
4184
4186
|
/**
|
|
@@ -4198,6 +4200,12 @@ export const MsgClaimRecurringSpendResponse = {
|
|
|
4198
4200
|
if (message.nextClaimTime !== BigInt(0)) {
|
|
4199
4201
|
writer.uint32(16).int64(message.nextClaimTime);
|
|
4200
4202
|
}
|
|
4203
|
+
if (message.paused === true) {
|
|
4204
|
+
writer.uint32(24).bool(message.paused);
|
|
4205
|
+
}
|
|
4206
|
+
if (message.completed === true) {
|
|
4207
|
+
writer.uint32(32).bool(message.completed);
|
|
4208
|
+
}
|
|
4201
4209
|
return writer;
|
|
4202
4210
|
},
|
|
4203
4211
|
decode(input, length) {
|
|
@@ -4213,6 +4221,12 @@ export const MsgClaimRecurringSpendResponse = {
|
|
|
4213
4221
|
case 2:
|
|
4214
4222
|
message.nextClaimTime = reader.int64();
|
|
4215
4223
|
break;
|
|
4224
|
+
case 3:
|
|
4225
|
+
message.paused = reader.bool();
|
|
4226
|
+
break;
|
|
4227
|
+
case 4:
|
|
4228
|
+
message.completed = reader.bool();
|
|
4229
|
+
break;
|
|
4216
4230
|
default:
|
|
4217
4231
|
reader.skipType(tag & 7);
|
|
4218
4232
|
break;
|
|
@@ -4224,6 +4238,8 @@ export const MsgClaimRecurringSpendResponse = {
|
|
|
4224
4238
|
const message = createBaseMsgClaimRecurringSpendResponse();
|
|
4225
4239
|
message.claimNumber = object.claimNumber !== undefined && object.claimNumber !== null ? BigInt(object.claimNumber.toString()) : BigInt(0);
|
|
4226
4240
|
message.nextClaimTime = object.nextClaimTime !== undefined && object.nextClaimTime !== null ? BigInt(object.nextClaimTime.toString()) : BigInt(0);
|
|
4241
|
+
message.paused = object.paused ?? false;
|
|
4242
|
+
message.completed = object.completed ?? false;
|
|
4227
4243
|
return message;
|
|
4228
4244
|
},
|
|
4229
4245
|
fromAmino(object) {
|
|
@@ -4234,12 +4250,20 @@ export const MsgClaimRecurringSpendResponse = {
|
|
|
4234
4250
|
if (object.next_claim_time !== undefined && object.next_claim_time !== null) {
|
|
4235
4251
|
message.nextClaimTime = BigInt(object.next_claim_time);
|
|
4236
4252
|
}
|
|
4253
|
+
if (object.paused !== undefined && object.paused !== null) {
|
|
4254
|
+
message.paused = object.paused;
|
|
4255
|
+
}
|
|
4256
|
+
if (object.completed !== undefined && object.completed !== null) {
|
|
4257
|
+
message.completed = object.completed;
|
|
4258
|
+
}
|
|
4237
4259
|
return message;
|
|
4238
4260
|
},
|
|
4239
4261
|
toAmino(message) {
|
|
4240
4262
|
const obj = {};
|
|
4241
4263
|
obj.claim_number = message.claimNumber !== BigInt(0) ? message.claimNumber?.toString() : undefined;
|
|
4242
4264
|
obj.next_claim_time = message.nextClaimTime !== BigInt(0) ? message.nextClaimTime?.toString() : undefined;
|
|
4265
|
+
obj.paused = message.paused === false ? undefined : message.paused;
|
|
4266
|
+
obj.completed = message.completed === false ? undefined : message.completed;
|
|
4243
4267
|
return obj;
|
|
4244
4268
|
},
|
|
4245
4269
|
fromAminoMsg(object) {
|
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
+
// HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
|
|
3
|
+
// by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
|
|
4
|
+
//
|
|
5
|
+
// Why: Telescope's auto-generated toAmino emits `[]` for empty repeated fields
|
|
6
|
+
// (the `if (message.field)` check is truthy for `[]` in JS), but
|
|
7
|
+
// cosmossdk.io/x/tx/signing/aminojson on the chain side omits them per
|
|
8
|
+
// `omitempty`. Whenever a repeated field happens to be empty, the JS side signs
|
|
9
|
+
// `"field":[]` and the chain reconstructs without the key — sign bytes differ,
|
|
10
|
+
// surfacing as "signature verification failed" / "unauthorized".
|
|
11
|
+
//
|
|
12
|
+
// Every federation message with a repeated field not marked
|
|
13
|
+
// `(amino.dont_omitempty) = true` is patched here to mirror aminojson's
|
|
14
|
+
// omitempty (return `undefined` when empty). MsgUpdatePeerPolicy's repeated
|
|
15
|
+
// fields sit inside the nested PeerPolicy, whose generated toAmino has the same
|
|
16
|
+
// bug, so it goes through peerPolicyToAmino below. The rest of the converters
|
|
17
|
+
// pass straight through to the auto-generated toAmino/fromAmino.
|
|
18
|
+
//
|
|
19
|
+
// MAINTENANCE: this map REPLACES the generated one wholesale, so it must list
|
|
20
|
+
// every message in tx.proto. A message added to the proto but not added here
|
|
21
|
+
// ends up with no amino converter at all, and amino (Ledger) signing for it
|
|
22
|
+
// fails at runtime. When syncing protos, diff the message list in
|
|
23
|
+
// protos/sparkdream/federation/v1/tx.proto against the keys below.
|
|
2
24
|
import { MsgUpdateParams, MsgRegisterPeer, MsgRemovePeer, MsgSuspendPeer, MsgResumePeer, MsgUpdatePeerPolicy, MsgRegisterBridge, MsgUpdateBridge, MsgSubmitFederatedContent, MsgFederateContent, MsgAttestOutbound, MsgModerateContent, MsgLinkIdentity, MsgUnlinkIdentity, MsgConfirmIdentityLink, MsgRequestReputationAttestation, MsgVerifyContent, MsgChallengeVerification, MsgSubmitArbiterHash, MsgEscalateChallenge, MsgResolveEscalatedChallenge, MsgUpdateOperationalParams, MsgUpdatePeerController, MsgResyncBridgeCount, MsgPruneOrphanBindings } from "./tx";
|
|
25
|
+
import { IdentityCuration } from "./types";
|
|
26
|
+
// Repeated string fields mirror aminojson's omitempty: omit when empty.
|
|
27
|
+
function omitEmptyStrings(list) {
|
|
28
|
+
return (list?.length ?? 0) > 0 ? list.map((e) => e) : undefined;
|
|
29
|
+
}
|
|
30
|
+
function peerPolicyToAmino(message) {
|
|
31
|
+
const obj = {};
|
|
32
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
33
|
+
obj.outbound_content_types = omitEmptyStrings(message.outboundContentTypes);
|
|
34
|
+
obj.inbound_content_types = omitEmptyStrings(message.inboundContentTypes);
|
|
35
|
+
obj.min_outbound_trust_level = message.minOutboundTrustLevel === 0 ? undefined : message.minOutboundTrustLevel;
|
|
36
|
+
obj.inbound_rate_limit_per_epoch = message.inboundRateLimitPerEpoch !== BigInt(0) ? message.inboundRateLimitPerEpoch?.toString() : undefined;
|
|
37
|
+
obj.outbound_rate_limit_per_epoch = message.outboundRateLimitPerEpoch !== BigInt(0) ? message.outboundRateLimitPerEpoch?.toString() : undefined;
|
|
38
|
+
obj.allow_reputation_queries = message.allowReputationQueries === false ? undefined : message.allowReputationQueries;
|
|
39
|
+
obj.accept_reputation_attestations = message.acceptReputationAttestations === false ? undefined : message.acceptReputationAttestations;
|
|
40
|
+
obj.require_review = message.requireReview === false ? undefined : message.requireReview;
|
|
41
|
+
obj.blocked_identities = omitEmptyStrings(message.blockedIdentities);
|
|
42
|
+
obj.content_hosts = omitEmptyStrings(message.contentHosts);
|
|
43
|
+
obj.allowed_identities = omitEmptyStrings(message.allowedIdentities);
|
|
44
|
+
obj.curation = message.curation ? IdentityCuration.toAmino(message.curation) : undefined;
|
|
45
|
+
return obj;
|
|
46
|
+
}
|
|
3
47
|
export const AminoConverter = {
|
|
4
48
|
"/sparkdream.federation.v1.MsgUpdateParams": {
|
|
5
49
|
aminoType: "sparkdream/x/federation/MsgUpdateParams",
|
|
@@ -28,7 +72,13 @@ export const AminoConverter = {
|
|
|
28
72
|
},
|
|
29
73
|
"/sparkdream.federation.v1.MsgUpdatePeerPolicy": {
|
|
30
74
|
aminoType: "sparkdream/x/federation/MsgUpdatePeerPolicy",
|
|
31
|
-
toAmino
|
|
75
|
+
toAmino(message) {
|
|
76
|
+
const obj = {};
|
|
77
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
78
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
79
|
+
obj.policy = message.policy ? peerPolicyToAmino(message.policy) : undefined;
|
|
80
|
+
return obj;
|
|
81
|
+
},
|
|
32
82
|
fromAmino: MsgUpdatePeerPolicy.fromAmino
|
|
33
83
|
},
|
|
34
84
|
"/sparkdream.federation.v1.MsgRegisterBridge": {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// Telescope emits `[]` for empty repeated fields; aminojson on the chain omits
|
|
6
6
|
// them. In forum the offending messages are MsgCreatePost and MsgEditPost,
|
|
7
7
|
// both of which have a repeated `tags` field that's commonly empty.
|
|
8
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused, } from "./tx";
|
|
8
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused, MsgMakePostPermanent, MsgStakePostConviction, MsgReleasePostConviction, MsgSetThreadProposalsLock, } from "./tx";
|
|
9
9
|
export const AminoConverter = {
|
|
10
10
|
"/sparkdream.forum.v1.MsgUpdateParams": {
|
|
11
11
|
aminoType: "sparkdream/x/forum/MsgUpdateParams",
|
|
@@ -210,4 +210,24 @@ export const AminoConverter = {
|
|
|
210
210
|
toAmino: MsgSetModerationPaused.toAmino,
|
|
211
211
|
fromAmino: MsgSetModerationPaused.fromAmino,
|
|
212
212
|
},
|
|
213
|
+
"/sparkdream.forum.v1.MsgMakePostPermanent": {
|
|
214
|
+
aminoType: "sparkdream/x/forum/MsgMakePostPermanent",
|
|
215
|
+
toAmino: MsgMakePostPermanent.toAmino,
|
|
216
|
+
fromAmino: MsgMakePostPermanent.fromAmino,
|
|
217
|
+
},
|
|
218
|
+
"/sparkdream.forum.v1.MsgStakePostConviction": {
|
|
219
|
+
aminoType: "sparkdream/x/forum/MsgStakePostConviction",
|
|
220
|
+
toAmino: MsgStakePostConviction.toAmino,
|
|
221
|
+
fromAmino: MsgStakePostConviction.fromAmino,
|
|
222
|
+
},
|
|
223
|
+
"/sparkdream.forum.v1.MsgReleasePostConviction": {
|
|
224
|
+
aminoType: "sparkdream/x/forum/MsgReleasePostConviction",
|
|
225
|
+
toAmino: MsgReleasePostConviction.toAmino,
|
|
226
|
+
fromAmino: MsgReleasePostConviction.fromAmino,
|
|
227
|
+
},
|
|
228
|
+
"/sparkdream.forum.v1.MsgSetThreadProposalsLock": {
|
|
229
|
+
aminoType: "sparkdream/x/forum/MsgSetThreadProposalsLock",
|
|
230
|
+
toAmino: MsgSetThreadProposalsLock.toAmino,
|
|
231
|
+
fromAmino: MsgSetThreadProposalsLock.fromAmino,
|
|
232
|
+
},
|
|
213
233
|
};
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
|
|
2
|
+
// HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
|
|
3
|
+
// by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
|
|
4
|
+
//
|
|
5
|
+
// Why: Telescope emits a flat AminoConverter that hands each entry's toAmino
|
|
6
|
+
// straight through to the message's auto-generated toAmino. For
|
|
7
|
+
// MsgExec (`google.protobuf.Any inner`), the auto-generated toAmino calls
|
|
8
|
+
// Any.toAmino, which just attaches the raw Uint8Array bytes — Ledger rejects
|
|
9
|
+
// the resulting JSON ("Dictionaries are not sorted") and the chain produces
|
|
10
|
+
// different sign bytes ("signature verification failed").
|
|
11
|
+
//
|
|
12
|
+
// This override delegates the inner Any conversion to a consumer-supplied
|
|
13
|
+
// proto registry + AminoTypes via `configureNestedAminoConverter`.
|
|
14
|
+
// The rest of the converters are unchanged.
|
|
15
|
+
//
|
|
16
|
+
// MAINTENANCE: this map REPLACES the generated one wholesale, so it must list
|
|
17
|
+
// every message in tx.proto. A message added to the proto but not added here
|
|
18
|
+
// ends up with no amino converter at all, and amino (Ledger) signing for it
|
|
19
|
+
// fails at runtime. When syncing protos, diff the message list in
|
|
20
|
+
// protos/sparkdream/guardian/v1/tx.proto against the keys below.
|
|
21
|
+
import { anyToAmino, aminoToAny } from "../../../nested-amino";
|
|
22
|
+
export { configureNestedAminoConverter } from "../../../nested-amino";
|
|
3
23
|
export const AminoConverter = {
|
|
4
24
|
"/sparkdream.guardian.v1.MsgExec": {
|
|
5
25
|
aminoType: "sparkdream/x/guardian/MsgExec",
|
|
6
|
-
toAmino
|
|
7
|
-
|
|
26
|
+
toAmino(message) {
|
|
27
|
+
const obj = {};
|
|
28
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
29
|
+
obj.inner = message.inner ? anyToAmino(message.inner) : undefined;
|
|
30
|
+
return obj;
|
|
31
|
+
},
|
|
32
|
+
fromAmino(object) {
|
|
33
|
+
return {
|
|
34
|
+
authority: object.authority ?? "",
|
|
35
|
+
inner: object.inner ? aminoToAny(object.inner) : undefined,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
8
38
|
}
|
|
9
39
|
};
|
package/esm/sparkdream/lcd.js
CHANGED
|
@@ -192,6 +192,11 @@ export const createLCDClient = async ({ restEndpoint }) => {
|
|
|
192
192
|
v1: new (await import("./split/v1/query.lcd")).LCDQueryClient({
|
|
193
193
|
requestClient
|
|
194
194
|
})
|
|
195
|
+
},
|
|
196
|
+
vault: {
|
|
197
|
+
v1: new (await import("./vault/v1/query.lcd")).LCDQueryClient({
|
|
198
|
+
requestClient
|
|
199
|
+
})
|
|
195
200
|
}
|
|
196
201
|
}
|
|
197
202
|
};
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
import { Params } from "./params";
|
|
3
3
|
import { NameRecord } from "./name_record";
|
|
4
4
|
import { OwnerInfo } from "./owner_info";
|
|
5
|
-
import { Dispute } from "./dispute";
|
|
5
|
+
import { Dispute, DisputeStake, ContestStake } from "./dispute";
|
|
6
6
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
7
|
function createBaseGenesisState() {
|
|
8
8
|
return {
|
|
9
9
|
params: Params.fromPartial({}),
|
|
10
10
|
nameRecords: [],
|
|
11
11
|
ownerInfos: [],
|
|
12
|
-
disputeMap: []
|
|
12
|
+
disputeMap: [],
|
|
13
|
+
disputeStakes: [],
|
|
14
|
+
contestStakes: []
|
|
13
15
|
};
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
@@ -33,6 +35,12 @@ export const GenesisState = {
|
|
|
33
35
|
for (const v of message.disputeMap) {
|
|
34
36
|
Dispute.encode(v, writer.uint32(34).fork()).ldelim();
|
|
35
37
|
}
|
|
38
|
+
for (const v of message.disputeStakes) {
|
|
39
|
+
DisputeStake.encode(v, writer.uint32(42).fork()).ldelim();
|
|
40
|
+
}
|
|
41
|
+
for (const v of message.contestStakes) {
|
|
42
|
+
ContestStake.encode(v, writer.uint32(50).fork()).ldelim();
|
|
43
|
+
}
|
|
36
44
|
return writer;
|
|
37
45
|
},
|
|
38
46
|
decode(input, length) {
|
|
@@ -54,6 +62,12 @@ export const GenesisState = {
|
|
|
54
62
|
case 4:
|
|
55
63
|
message.disputeMap.push(Dispute.decode(reader, reader.uint32()));
|
|
56
64
|
break;
|
|
65
|
+
case 5:
|
|
66
|
+
message.disputeStakes.push(DisputeStake.decode(reader, reader.uint32()));
|
|
67
|
+
break;
|
|
68
|
+
case 6:
|
|
69
|
+
message.contestStakes.push(ContestStake.decode(reader, reader.uint32()));
|
|
70
|
+
break;
|
|
57
71
|
default:
|
|
58
72
|
reader.skipType(tag & 7);
|
|
59
73
|
break;
|
|
@@ -67,6 +81,8 @@ export const GenesisState = {
|
|
|
67
81
|
message.nameRecords = object.nameRecords?.map(e => NameRecord.fromPartial(e)) || [];
|
|
68
82
|
message.ownerInfos = object.ownerInfos?.map(e => OwnerInfo.fromPartial(e)) || [];
|
|
69
83
|
message.disputeMap = object.disputeMap?.map(e => Dispute.fromPartial(e)) || [];
|
|
84
|
+
message.disputeStakes = object.disputeStakes?.map(e => DisputeStake.fromPartial(e)) || [];
|
|
85
|
+
message.contestStakes = object.contestStakes?.map(e => ContestStake.fromPartial(e)) || [];
|
|
70
86
|
return message;
|
|
71
87
|
},
|
|
72
88
|
fromAmino(object) {
|
|
@@ -77,6 +93,8 @@ export const GenesisState = {
|
|
|
77
93
|
message.nameRecords = object.name_records?.map(e => NameRecord.fromAmino(e)) || [];
|
|
78
94
|
message.ownerInfos = object.owner_infos?.map(e => OwnerInfo.fromAmino(e)) || [];
|
|
79
95
|
message.disputeMap = object.dispute_map?.map(e => Dispute.fromAmino(e)) || [];
|
|
96
|
+
message.disputeStakes = object.dispute_stakes?.map(e => DisputeStake.fromAmino(e)) || [];
|
|
97
|
+
message.contestStakes = object.contest_stakes?.map(e => ContestStake.fromAmino(e)) || [];
|
|
80
98
|
return message;
|
|
81
99
|
},
|
|
82
100
|
toAmino(message) {
|
|
@@ -100,6 +118,18 @@ export const GenesisState = {
|
|
|
100
118
|
else {
|
|
101
119
|
obj.dispute_map = message.disputeMap;
|
|
102
120
|
}
|
|
121
|
+
if (message.disputeStakes) {
|
|
122
|
+
obj.dispute_stakes = message.disputeStakes.map(e => e ? DisputeStake.toAmino(e) : undefined);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
obj.dispute_stakes = message.disputeStakes;
|
|
126
|
+
}
|
|
127
|
+
if (message.contestStakes) {
|
|
128
|
+
obj.contest_stakes = message.contestStakes.map(e => e ? ContestStake.toAmino(e) : undefined);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
obj.contest_stakes = message.contestStakes;
|
|
132
|
+
}
|
|
103
133
|
return obj;
|
|
104
134
|
},
|
|
105
135
|
fromAminoMsg(object) {
|
|
@@ -23,6 +23,7 @@ import { RoleActivity } from "./role_activity";
|
|
|
23
23
|
import { InitiativeReview } from "./initiative_review";
|
|
24
24
|
import { ReviewBounty } from "./review_bounty";
|
|
25
25
|
import { InitiativeBounty } from "./initiative_bounty";
|
|
26
|
+
import { Tombstone, MemberMigration, RecoveryCommitmentEntry, RecoveryCommit } from "./migration";
|
|
26
27
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
27
28
|
function createBaseGenesisState() {
|
|
28
29
|
return {
|
|
@@ -70,7 +71,12 @@ function createBaseGenesisState() {
|
|
|
70
71
|
reviewBountyList: [],
|
|
71
72
|
economicState: undefined,
|
|
72
73
|
giftRecordList: [],
|
|
73
|
-
initiativeBountyList: []
|
|
74
|
+
initiativeBountyList: [],
|
|
75
|
+
tombstoneList: [],
|
|
76
|
+
memberMigrationList: [],
|
|
77
|
+
memberMigrationCount: BigInt(0),
|
|
78
|
+
recoveryCommitmentList: [],
|
|
79
|
+
recoveryCommitList: []
|
|
74
80
|
};
|
|
75
81
|
}
|
|
76
82
|
/**
|
|
@@ -219,6 +225,21 @@ export const GenesisState = {
|
|
|
219
225
|
for (const v of message.initiativeBountyList) {
|
|
220
226
|
InitiativeBounty.encode(v, writer.uint32(362).fork()).ldelim();
|
|
221
227
|
}
|
|
228
|
+
for (const v of message.tombstoneList) {
|
|
229
|
+
Tombstone.encode(v, writer.uint32(370).fork()).ldelim();
|
|
230
|
+
}
|
|
231
|
+
for (const v of message.memberMigrationList) {
|
|
232
|
+
MemberMigration.encode(v, writer.uint32(378).fork()).ldelim();
|
|
233
|
+
}
|
|
234
|
+
if (message.memberMigrationCount !== BigInt(0)) {
|
|
235
|
+
writer.uint32(384).uint64(message.memberMigrationCount);
|
|
236
|
+
}
|
|
237
|
+
for (const v of message.recoveryCommitmentList) {
|
|
238
|
+
RecoveryCommitmentEntry.encode(v, writer.uint32(394).fork()).ldelim();
|
|
239
|
+
}
|
|
240
|
+
for (const v of message.recoveryCommitList) {
|
|
241
|
+
RecoveryCommit.encode(v, writer.uint32(402).fork()).ldelim();
|
|
242
|
+
}
|
|
222
243
|
return writer;
|
|
223
244
|
},
|
|
224
245
|
decode(input, length) {
|
|
@@ -371,6 +392,21 @@ export const GenesisState = {
|
|
|
371
392
|
case 45:
|
|
372
393
|
message.initiativeBountyList.push(InitiativeBounty.decode(reader, reader.uint32()));
|
|
373
394
|
break;
|
|
395
|
+
case 46:
|
|
396
|
+
message.tombstoneList.push(Tombstone.decode(reader, reader.uint32()));
|
|
397
|
+
break;
|
|
398
|
+
case 47:
|
|
399
|
+
message.memberMigrationList.push(MemberMigration.decode(reader, reader.uint32()));
|
|
400
|
+
break;
|
|
401
|
+
case 48:
|
|
402
|
+
message.memberMigrationCount = reader.uint64();
|
|
403
|
+
break;
|
|
404
|
+
case 49:
|
|
405
|
+
message.recoveryCommitmentList.push(RecoveryCommitmentEntry.decode(reader, reader.uint32()));
|
|
406
|
+
break;
|
|
407
|
+
case 50:
|
|
408
|
+
message.recoveryCommitList.push(RecoveryCommit.decode(reader, reader.uint32()));
|
|
409
|
+
break;
|
|
374
410
|
default:
|
|
375
411
|
reader.skipType(tag & 7);
|
|
376
412
|
break;
|
|
@@ -425,6 +461,11 @@ export const GenesisState = {
|
|
|
425
461
|
message.economicState = object.economicState !== undefined && object.economicState !== null ? EconomicState.fromPartial(object.economicState) : undefined;
|
|
426
462
|
message.giftRecordList = object.giftRecordList?.map(e => GiftRecordEntry.fromPartial(e)) || [];
|
|
427
463
|
message.initiativeBountyList = object.initiativeBountyList?.map(e => InitiativeBounty.fromPartial(e)) || [];
|
|
464
|
+
message.tombstoneList = object.tombstoneList?.map(e => Tombstone.fromPartial(e)) || [];
|
|
465
|
+
message.memberMigrationList = object.memberMigrationList?.map(e => MemberMigration.fromPartial(e)) || [];
|
|
466
|
+
message.memberMigrationCount = object.memberMigrationCount !== undefined && object.memberMigrationCount !== null ? BigInt(object.memberMigrationCount.toString()) : BigInt(0);
|
|
467
|
+
message.recoveryCommitmentList = object.recoveryCommitmentList?.map(e => RecoveryCommitmentEntry.fromPartial(e)) || [];
|
|
468
|
+
message.recoveryCommitList = object.recoveryCommitList?.map(e => RecoveryCommit.fromPartial(e)) || [];
|
|
428
469
|
return message;
|
|
429
470
|
},
|
|
430
471
|
fromAmino(object) {
|
|
@@ -502,6 +543,13 @@ export const GenesisState = {
|
|
|
502
543
|
}
|
|
503
544
|
message.giftRecordList = object.gift_record_list?.map(e => GiftRecordEntry.fromAmino(e)) || [];
|
|
504
545
|
message.initiativeBountyList = object.initiative_bounty_list?.map(e => InitiativeBounty.fromAmino(e)) || [];
|
|
546
|
+
message.tombstoneList = object.tombstone_list?.map(e => Tombstone.fromAmino(e)) || [];
|
|
547
|
+
message.memberMigrationList = object.member_migration_list?.map(e => MemberMigration.fromAmino(e)) || [];
|
|
548
|
+
if (object.member_migration_count !== undefined && object.member_migration_count !== null) {
|
|
549
|
+
message.memberMigrationCount = BigInt(object.member_migration_count);
|
|
550
|
+
}
|
|
551
|
+
message.recoveryCommitmentList = object.recovery_commitment_list?.map(e => RecoveryCommitmentEntry.fromAmino(e)) || [];
|
|
552
|
+
message.recoveryCommitList = object.recovery_commit_list?.map(e => RecoveryCommit.fromAmino(e)) || [];
|
|
505
553
|
return message;
|
|
506
554
|
},
|
|
507
555
|
toAmino(message) {
|
|
@@ -706,6 +754,31 @@ export const GenesisState = {
|
|
|
706
754
|
else {
|
|
707
755
|
obj.initiative_bounty_list = message.initiativeBountyList;
|
|
708
756
|
}
|
|
757
|
+
if (message.tombstoneList) {
|
|
758
|
+
obj.tombstone_list = message.tombstoneList.map(e => e ? Tombstone.toAmino(e) : undefined);
|
|
759
|
+
}
|
|
760
|
+
else {
|
|
761
|
+
obj.tombstone_list = message.tombstoneList;
|
|
762
|
+
}
|
|
763
|
+
if (message.memberMigrationList) {
|
|
764
|
+
obj.member_migration_list = message.memberMigrationList.map(e => e ? MemberMigration.toAmino(e) : undefined);
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
obj.member_migration_list = message.memberMigrationList;
|
|
768
|
+
}
|
|
769
|
+
obj.member_migration_count = message.memberMigrationCount !== BigInt(0) ? message.memberMigrationCount?.toString() : undefined;
|
|
770
|
+
if (message.recoveryCommitmentList) {
|
|
771
|
+
obj.recovery_commitment_list = message.recoveryCommitmentList.map(e => e ? RecoveryCommitmentEntry.toAmino(e) : undefined);
|
|
772
|
+
}
|
|
773
|
+
else {
|
|
774
|
+
obj.recovery_commitment_list = message.recoveryCommitmentList;
|
|
775
|
+
}
|
|
776
|
+
if (message.recoveryCommitList) {
|
|
777
|
+
obj.recovery_commit_list = message.recoveryCommitList.map(e => e ? RecoveryCommit.toAmino(e) : undefined);
|
|
778
|
+
}
|
|
779
|
+
else {
|
|
780
|
+
obj.recovery_commit_list = message.recoveryCommitList;
|
|
781
|
+
}
|
|
709
782
|
return obj;
|
|
710
783
|
},
|
|
711
784
|
fromAminoMsg(object) {
|