@sparkdreamnft/sparkdreamjs 0.0.45 → 0.0.47
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/amino-schema.d.ts +5741 -0
- package/amino-schema.js +8 -0
- package/chain-amino.d.ts +61 -0
- package/chain-amino.js +670 -0
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/amino-schema.js +5 -0
- package/esm/chain-amino.js +665 -0
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/nested-amino.js +12 -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 +16 -158
- 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 +15 -115
- package/esm/sparkdream/bundle.js +329 -291
- package/esm/sparkdream/client.js +5 -2
- package/esm/sparkdream/collect/v1/tx.amino.js +15 -239
- package/esm/sparkdream/commons/v1/tx.amino.js +12 -226
- package/esm/sparkdream/commons/v1/tx.js +25 -1
- package/esm/sparkdream/ecosystem/v1/tx.amino.js +15 -26
- package/esm/sparkdream/federation/v1/tx.amino.js +16 -128
- package/esm/sparkdream/forum/v1/tx.amino.js +15 -211
- package/esm/sparkdream/futarchy/v1/tx.amino.js +16 -38
- package/esm/sparkdream/guardian/v1/tx.amino.js +17 -8
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/name/v1/tx.amino.js +16 -63
- 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 +181 -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 +12 -414
- package/esm/sparkdream/rep/v1/tx.js +1741 -1
- package/esm/sparkdream/rep/v1/tx.registry.js +200 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +67 -1
- package/esm/sparkdream/reveal/v1/tx.amino.js +15 -73
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/tx.amino.js +16 -218
- package/esm/sparkdream/service/v1/tx.amino.js +16 -78
- package/esm/sparkdream/session/v1/tx.amino.js +16 -271
- package/esm/sparkdream/session/v1/tx.js +38 -2
- package/esm/sparkdream/shield/v1/tx.amino.js +15 -80
- package/esm/sparkdream/sparkdream/v1/tx.amino.js +16 -8
- package/esm/sparkdream/split/v1/tx.amino.js +16 -8
- 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 +18 -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 +7 -2
- package/nested-amino.js +13 -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 +1 -158
- package/sparkdream/artifact/v1/tx.amino.js +49 -158
- 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 +1 -83
- package/sparkdream/blog/v1/tx.amino.js +50 -117
- package/sparkdream/bundle.d.ts +12983 -10912
- package/sparkdream/bundle.js +329 -291
- package/sparkdream/client.d.ts +1 -1629
- package/sparkdream/client.js +5 -2
- package/sparkdream/collect/v1/tx.amino.d.ts +1 -138
- package/sparkdream/collect/v1/tx.amino.js +50 -241
- package/sparkdream/commons/v1/tx.amino.d.ts +1 -103
- package/sparkdream/commons/v1/tx.amino.js +49 -230
- package/sparkdream/commons/v1/tx.d.ts +18 -0
- package/sparkdream/commons/v1/tx.js +25 -1
- package/sparkdream/ecosystem/v1/tx.amino.d.ts +1 -13
- package/sparkdream/ecosystem/v1/tx.amino.js +50 -28
- package/sparkdream/federation/v1/tx.amino.d.ts +1 -128
- package/sparkdream/federation/v1/tx.amino.js +49 -128
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -183
- package/sparkdream/forum/v1/tx.amino.js +50 -213
- package/sparkdream/futarchy/v1/tx.amino.d.ts +1 -38
- package/sparkdream/futarchy/v1/tx.amino.js +49 -38
- package/sparkdream/guardian/v1/tx.amino.d.ts +2 -8
- package/sparkdream/guardian/v1/tx.amino.js +52 -9
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/name/v1/tx.amino.d.ts +1 -63
- package/sparkdream/name/v1/tx.amino.js +49 -63
- 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 +174 -0
- package/sparkdream/rep/v1/params.js +181 -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 +1 -283
- package/sparkdream/rep/v1/tx.amino.js +47 -416
- package/sparkdream/rep/v1/tx.d.ts +1185 -0
- package/sparkdream/rep/v1/tx.js +1742 -2
- package/sparkdream/rep/v1/tx.registry.d.ts +133 -1
- package/sparkdream/rep/v1/tx.registry.js +199 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +34 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +66 -0
- package/sparkdream/reveal/v1/tx.amino.d.ts +1 -53
- package/sparkdream/reveal/v1/tx.amino.js +50 -75
- 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 +1 -218
- package/sparkdream/season/v1/tx.amino.js +49 -218
- package/sparkdream/service/v1/tx.amino.d.ts +1 -78
- package/sparkdream/service/v1/tx.amino.js +49 -78
- package/sparkdream/session/v1/tx.amino.d.ts +1 -93
- package/sparkdream/session/v1/tx.amino.js +48 -270
- package/sparkdream/session/v1/tx.d.ts +30 -0
- package/sparkdream/session/v1/tx.js +38 -2
- package/sparkdream/shield/v1/tx.amino.d.ts +1 -28
- package/sparkdream/shield/v1/tx.amino.js +50 -82
- package/sparkdream/sparkdream/v1/tx.amino.d.ts +1 -8
- package/sparkdream/sparkdream/v1/tx.amino.js +49 -8
- package/sparkdream/split/v1/tx.amino.d.ts +1 -8
- package/sparkdream/split/v1/tx.amino.js +49 -8
- 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 +2 -0
- package/sparkdream/vault/v1/tx.amino.js +55 -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/varint.d.ts +1 -1
|
@@ -1,422 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.AminoConverter = void 0;
|
|
2
37
|
//@ts-nocheck
|
|
3
38
|
// HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
|
|
4
39
|
// by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
|
|
5
40
|
//
|
|
6
|
-
// Why: Telescope's
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
// surfacing as "signature verification failed" / "unauthorized".
|
|
13
|
-
//
|
|
14
|
-
// Every rep message with a repeated field is patched here to mirror aminojson's
|
|
15
|
-
// omitempty (return `undefined` when empty). The rest of the converters pass
|
|
16
|
-
// straight through to the auto-generated toAmino/fromAmino.
|
|
41
|
+
// Why: Telescope's generated converters (and the per-message overrides that
|
|
42
|
+
// used to patch them) disagree with the chain's aminojson on empty lists,
|
|
43
|
+
// empty bytes, Dec strings, oneofs and non-nullable messages, and went stale
|
|
44
|
+
// whenever a proto changed. Every Msg of x/rep is converted by the
|
|
45
|
+
// schema-driven engine in chain-amino.ts instead, which renders amino JSON
|
|
46
|
+
// from the protobuf bytes exactly as the chain does.
|
|
17
47
|
//
|
|
18
|
-
// MAINTENANCE:
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.AminoConverter = void 0;
|
|
25
|
-
const tx_1 = require("./tx");
|
|
26
|
-
const jury_review_1 = require("./jury_review");
|
|
27
|
-
exports.AminoConverter = {
|
|
28
|
-
"/sparkdream.rep.v1.MsgUpdateParams": {
|
|
29
|
-
aminoType: "sparkdream/x/rep/MsgUpdateParams",
|
|
30
|
-
toAmino: tx_1.MsgUpdateParams.toAmino,
|
|
31
|
-
fromAmino: tx_1.MsgUpdateParams.fromAmino,
|
|
32
|
-
},
|
|
33
|
-
"/sparkdream.rep.v1.MsgUpdateOperationalParams": {
|
|
34
|
-
aminoType: "sparkdream/x/rep/MsgUpdateOperationalParams",
|
|
35
|
-
toAmino: tx_1.MsgUpdateOperationalParams.toAmino,
|
|
36
|
-
fromAmino: tx_1.MsgUpdateOperationalParams.fromAmino,
|
|
37
|
-
},
|
|
38
|
-
"/sparkdream.rep.v1.MsgInviteMember": {
|
|
39
|
-
aminoType: "sparkdream/x/rep/MsgInviteMember",
|
|
40
|
-
toAmino(message) {
|
|
41
|
-
const obj = {};
|
|
42
|
-
obj.inviter = message.inviter === "" ? undefined : message.inviter;
|
|
43
|
-
obj.invitee_address = message.inviteeAddress === "" ? undefined : message.inviteeAddress;
|
|
44
|
-
obj.staked_dream = message.stakedDream === "" ? undefined : message.stakedDream;
|
|
45
|
-
obj.vouched_tags = (message.vouchedTags?.length ?? 0) > 0
|
|
46
|
-
? message.vouchedTags.map((e) => e)
|
|
47
|
-
: undefined;
|
|
48
|
-
return obj;
|
|
49
|
-
},
|
|
50
|
-
fromAmino: tx_1.MsgInviteMember.fromAmino,
|
|
51
|
-
},
|
|
52
|
-
"/sparkdream.rep.v1.MsgAcceptInvitation": {
|
|
53
|
-
aminoType: "sparkdream/x/rep/MsgAcceptInvitation",
|
|
54
|
-
toAmino: tx_1.MsgAcceptInvitation.toAmino,
|
|
55
|
-
fromAmino: tx_1.MsgAcceptInvitation.fromAmino,
|
|
56
|
-
},
|
|
57
|
-
"/sparkdream.rep.v1.MsgTransferDream": {
|
|
58
|
-
aminoType: "sparkdream/x/rep/MsgTransferDream",
|
|
59
|
-
toAmino: tx_1.MsgTransferDream.toAmino,
|
|
60
|
-
fromAmino: tx_1.MsgTransferDream.fromAmino,
|
|
61
|
-
},
|
|
62
|
-
"/sparkdream.rep.v1.MsgCreateInterim": {
|
|
63
|
-
aminoType: "sparkdream/x/rep/MsgCreateInterim",
|
|
64
|
-
toAmino: tx_1.MsgCreateInterim.toAmino,
|
|
65
|
-
fromAmino: tx_1.MsgCreateInterim.fromAmino,
|
|
66
|
-
},
|
|
67
|
-
"/sparkdream.rep.v1.MsgAssignInterim": {
|
|
68
|
-
aminoType: "sparkdream/x/rep/MsgAssignInterim",
|
|
69
|
-
toAmino: tx_1.MsgAssignInterim.toAmino,
|
|
70
|
-
fromAmino: tx_1.MsgAssignInterim.fromAmino,
|
|
71
|
-
},
|
|
72
|
-
"/sparkdream.rep.v1.MsgSubmitInterimWork": {
|
|
73
|
-
aminoType: "sparkdream/x/rep/MsgSubmitInterimWork",
|
|
74
|
-
toAmino: tx_1.MsgSubmitInterimWork.toAmino,
|
|
75
|
-
fromAmino: tx_1.MsgSubmitInterimWork.fromAmino,
|
|
76
|
-
},
|
|
77
|
-
"/sparkdream.rep.v1.MsgApproveInterim": {
|
|
78
|
-
aminoType: "sparkdream/x/rep/MsgApproveInterim",
|
|
79
|
-
toAmino: tx_1.MsgApproveInterim.toAmino,
|
|
80
|
-
fromAmino: tx_1.MsgApproveInterim.fromAmino,
|
|
81
|
-
},
|
|
82
|
-
"/sparkdream.rep.v1.MsgAbandonInterim": {
|
|
83
|
-
aminoType: "sparkdream/x/rep/MsgAbandonInterim",
|
|
84
|
-
toAmino: tx_1.MsgAbandonInterim.toAmino,
|
|
85
|
-
fromAmino: tx_1.MsgAbandonInterim.fromAmino,
|
|
86
|
-
},
|
|
87
|
-
"/sparkdream.rep.v1.MsgCompleteInterim": {
|
|
88
|
-
aminoType: "sparkdream/x/rep/MsgCompleteInterim",
|
|
89
|
-
toAmino: tx_1.MsgCompleteInterim.toAmino,
|
|
90
|
-
fromAmino: tx_1.MsgCompleteInterim.fromAmino,
|
|
91
|
-
},
|
|
92
|
-
// The UI hardcodes `deliverables: []` and `milestones: []` on every project
|
|
93
|
-
// proposal, so without this override every submission fails sigverify.
|
|
94
|
-
"/sparkdream.rep.v1.MsgProposeProject": {
|
|
95
|
-
aminoType: "sparkdream/x/rep/MsgProposeProject",
|
|
96
|
-
toAmino(message) {
|
|
97
|
-
const obj = {};
|
|
98
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
99
|
-
obj.name = message.name === "" ? undefined : message.name;
|
|
100
|
-
obj.description = message.description === "" ? undefined : message.description;
|
|
101
|
-
obj.tags = (message.tags?.length ?? 0) > 0
|
|
102
|
-
? message.tags.map((e) => e)
|
|
103
|
-
: undefined;
|
|
104
|
-
obj.category = message.category === 0 ? undefined : message.category;
|
|
105
|
-
obj.council = message.council === "" ? undefined : message.council;
|
|
106
|
-
obj.requested_budget = message.requestedBudget === "" ? undefined : message.requestedBudget;
|
|
107
|
-
obj.requested_spark = message.requestedSpark === "" ? undefined : message.requestedSpark;
|
|
108
|
-
obj.deliverables = (message.deliverables?.length ?? 0) > 0
|
|
109
|
-
? message.deliverables.map((e) => e)
|
|
110
|
-
: undefined;
|
|
111
|
-
obj.milestones = (message.milestones?.length ?? 0) > 0
|
|
112
|
-
? message.milestones.map((e) => e)
|
|
113
|
-
: undefined;
|
|
114
|
-
return obj;
|
|
115
|
-
},
|
|
116
|
-
fromAmino: tx_1.MsgProposeProject.fromAmino,
|
|
117
|
-
},
|
|
118
|
-
"/sparkdream.rep.v1.MsgApproveProjectBudget": {
|
|
119
|
-
aminoType: "sparkdream/x/rep/MsgApproveProjectBudget",
|
|
120
|
-
toAmino: tx_1.MsgApproveProjectBudget.toAmino,
|
|
121
|
-
fromAmino: tx_1.MsgApproveProjectBudget.fromAmino,
|
|
122
|
-
},
|
|
123
|
-
"/sparkdream.rep.v1.MsgCancelProject": {
|
|
124
|
-
aminoType: "sparkdream/x/rep/MsgCancelProject",
|
|
125
|
-
toAmino: tx_1.MsgCancelProject.toAmino,
|
|
126
|
-
fromAmino: tx_1.MsgCancelProject.fromAmino,
|
|
127
|
-
},
|
|
128
|
-
"/sparkdream.rep.v1.MsgCreateInitiative": {
|
|
129
|
-
aminoType: "sparkdream/x/rep/MsgCreateInitiative",
|
|
130
|
-
toAmino(message) {
|
|
131
|
-
const obj = {};
|
|
132
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
133
|
-
obj.project_id = message.projectId !== BigInt(0) ? message.projectId?.toString() : undefined;
|
|
134
|
-
obj.title = message.title === "" ? undefined : message.title;
|
|
135
|
-
obj.description = message.description === "" ? undefined : message.description;
|
|
136
|
-
obj.tags = (message.tags?.length ?? 0) > 0
|
|
137
|
-
? message.tags.map((e) => e)
|
|
138
|
-
: undefined;
|
|
139
|
-
obj.tier = message.tier !== BigInt(0) ? message.tier?.toString() : undefined;
|
|
140
|
-
obj.category = message.category !== BigInt(0) ? message.category?.toString() : undefined;
|
|
141
|
-
obj.template_id = message.templateId === "" ? undefined : message.templateId;
|
|
142
|
-
obj.budget = message.budget === "" ? undefined : message.budget;
|
|
143
|
-
return obj;
|
|
144
|
-
},
|
|
145
|
-
fromAmino: tx_1.MsgCreateInitiative.fromAmino,
|
|
146
|
-
},
|
|
147
|
-
"/sparkdream.rep.v1.MsgAssignInitiative": {
|
|
148
|
-
aminoType: "sparkdream/x/rep/MsgAssignInitiative",
|
|
149
|
-
toAmino: tx_1.MsgAssignInitiative.toAmino,
|
|
150
|
-
fromAmino: tx_1.MsgAssignInitiative.fromAmino,
|
|
151
|
-
},
|
|
152
|
-
"/sparkdream.rep.v1.MsgSubmitInitiativeWork": {
|
|
153
|
-
aminoType: "sparkdream/x/rep/MsgSubmitInitiativeWork",
|
|
154
|
-
toAmino: tx_1.MsgSubmitInitiativeWork.toAmino,
|
|
155
|
-
fromAmino: tx_1.MsgSubmitInitiativeWork.fromAmino,
|
|
156
|
-
},
|
|
157
|
-
"/sparkdream.rep.v1.MsgApproveInitiative": {
|
|
158
|
-
aminoType: "sparkdream/x/rep/MsgApproveInitiative",
|
|
159
|
-
toAmino(message) {
|
|
160
|
-
const obj = {};
|
|
161
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
162
|
-
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
163
|
-
obj.criteria_votes = (message.criteriaVotes?.length ?? 0) > 0
|
|
164
|
-
? message.criteriaVotes.map((e) => e ? jury_review_1.CriteriaVote.toAmino(e) : undefined)
|
|
165
|
-
: undefined;
|
|
166
|
-
obj.approved = message.approved === false ? undefined : message.approved;
|
|
167
|
-
obj.comments = message.comments === "" ? undefined : message.comments;
|
|
168
|
-
return obj;
|
|
169
|
-
},
|
|
170
|
-
fromAmino: tx_1.MsgApproveInitiative.fromAmino,
|
|
171
|
-
},
|
|
172
|
-
"/sparkdream.rep.v1.MsgUnassignInitiative": {
|
|
173
|
-
aminoType: "sparkdream/x/rep/MsgUnassignInitiative",
|
|
174
|
-
toAmino: tx_1.MsgUnassignInitiative.toAmino,
|
|
175
|
-
fromAmino: tx_1.MsgUnassignInitiative.fromAmino,
|
|
176
|
-
},
|
|
177
|
-
"/sparkdream.rep.v1.MsgCompleteInitiative": {
|
|
178
|
-
aminoType: "sparkdream/x/rep/MsgCompleteInitiative",
|
|
179
|
-
toAmino: tx_1.MsgCompleteInitiative.toAmino,
|
|
180
|
-
fromAmino: tx_1.MsgCompleteInitiative.fromAmino,
|
|
181
|
-
},
|
|
182
|
-
"/sparkdream.rep.v1.MsgStake": {
|
|
183
|
-
aminoType: "sparkdream/x/rep/MsgStake",
|
|
184
|
-
toAmino: tx_1.MsgStake.toAmino,
|
|
185
|
-
fromAmino: tx_1.MsgStake.fromAmino,
|
|
186
|
-
},
|
|
187
|
-
"/sparkdream.rep.v1.MsgUnstake": {
|
|
188
|
-
aminoType: "sparkdream/x/rep/MsgUnstake",
|
|
189
|
-
toAmino: tx_1.MsgUnstake.toAmino,
|
|
190
|
-
fromAmino: tx_1.MsgUnstake.fromAmino,
|
|
191
|
-
},
|
|
192
|
-
"/sparkdream.rep.v1.MsgClaimStakingRewards": {
|
|
193
|
-
aminoType: "sparkdream/x/rep/MsgClaimStakingRewards",
|
|
194
|
-
toAmino: tx_1.MsgClaimStakingRewards.toAmino,
|
|
195
|
-
fromAmino: tx_1.MsgClaimStakingRewards.fromAmino,
|
|
196
|
-
},
|
|
197
|
-
"/sparkdream.rep.v1.MsgCompoundStakingRewards": {
|
|
198
|
-
aminoType: "sparkdream/x/rep/MsgCompoundStakingRewards",
|
|
199
|
-
toAmino: tx_1.MsgCompoundStakingRewards.toAmino,
|
|
200
|
-
fromAmino: tx_1.MsgCompoundStakingRewards.fromAmino,
|
|
201
|
-
},
|
|
202
|
-
"/sparkdream.rep.v1.MsgCreateChallenge": {
|
|
203
|
-
aminoType: "sparkdream/x/rep/MsgCreateChallenge",
|
|
204
|
-
toAmino(message) {
|
|
205
|
-
const obj = {};
|
|
206
|
-
obj.challenger = message.challenger === "" ? undefined : message.challenger;
|
|
207
|
-
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
208
|
-
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
209
|
-
obj.evidence = (message.evidence?.length ?? 0) > 0
|
|
210
|
-
? message.evidence.map((e) => e)
|
|
211
|
-
: undefined;
|
|
212
|
-
obj.staked_dream = message.stakedDream === "" ? undefined : message.stakedDream;
|
|
213
|
-
return obj;
|
|
214
|
-
},
|
|
215
|
-
fromAmino: tx_1.MsgCreateChallenge.fromAmino,
|
|
216
|
-
},
|
|
217
|
-
"/sparkdream.rep.v1.MsgRespondToChallenge": {
|
|
218
|
-
aminoType: "sparkdream/x/rep/MsgRespondToChallenge",
|
|
219
|
-
toAmino(message) {
|
|
220
|
-
const obj = {};
|
|
221
|
-
obj.assignee = message.assignee === "" ? undefined : message.assignee;
|
|
222
|
-
obj.challenge_id = message.challengeId !== BigInt(0) ? message.challengeId?.toString() : undefined;
|
|
223
|
-
obj.response = message.response === "" ? undefined : message.response;
|
|
224
|
-
obj.evidence = (message.evidence?.length ?? 0) > 0
|
|
225
|
-
? message.evidence.map((e) => e)
|
|
226
|
-
: undefined;
|
|
227
|
-
return obj;
|
|
228
|
-
},
|
|
229
|
-
fromAmino: tx_1.MsgRespondToChallenge.fromAmino,
|
|
230
|
-
},
|
|
231
|
-
"/sparkdream.rep.v1.MsgSubmitJurorVote": {
|
|
232
|
-
aminoType: "sparkdream/x/rep/MsgSubmitJurorVote",
|
|
233
|
-
toAmino(message) {
|
|
234
|
-
const obj = {};
|
|
235
|
-
obj.juror = message.juror === "" ? undefined : message.juror;
|
|
236
|
-
obj.jury_review_id = message.juryReviewId !== BigInt(0) ? message.juryReviewId?.toString() : undefined;
|
|
237
|
-
obj.criteria_votes = (message.criteriaVotes?.length ?? 0) > 0
|
|
238
|
-
? message.criteriaVotes.map((e) => e ? jury_review_1.CriteriaVote.toAmino(e) : undefined)
|
|
239
|
-
: undefined;
|
|
240
|
-
obj.verdict = message.verdict === 0 ? undefined : message.verdict;
|
|
241
|
-
obj.confidence = message.confidence === "" ? undefined : message.confidence;
|
|
242
|
-
obj.reasoning = message.reasoning === "" ? undefined : message.reasoning;
|
|
243
|
-
return obj;
|
|
244
|
-
},
|
|
245
|
-
fromAmino: tx_1.MsgSubmitJurorVote.fromAmino,
|
|
246
|
-
},
|
|
247
|
-
"/sparkdream.rep.v1.MsgAcceptJuryDuty": {
|
|
248
|
-
aminoType: "sparkdream/x/rep/MsgAcceptJuryDuty",
|
|
249
|
-
toAmino: tx_1.MsgAcceptJuryDuty.toAmino,
|
|
250
|
-
fromAmino: tx_1.MsgAcceptJuryDuty.fromAmino,
|
|
251
|
-
},
|
|
252
|
-
"/sparkdream.rep.v1.MsgSubmitInitiativeReview": {
|
|
253
|
-
aminoType: "sparkdream/x/rep/MsgSubmitInitiativeReview",
|
|
254
|
-
toAmino(message) {
|
|
255
|
-
const obj = {};
|
|
256
|
-
obj.reviewer = message.reviewer === "" ? undefined : message.reviewer;
|
|
257
|
-
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
258
|
-
obj.approved = message.approved === false ? undefined : message.approved;
|
|
259
|
-
obj.criteria_votes = (message.criteriaVotes?.length ?? 0) > 0
|
|
260
|
-
? message.criteriaVotes.map((e) => e ? jury_review_1.CriteriaVote.toAmino(e) : undefined)
|
|
261
|
-
: undefined;
|
|
262
|
-
obj.comments = message.comments === "" ? undefined : message.comments;
|
|
263
|
-
return obj;
|
|
264
|
-
},
|
|
265
|
-
fromAmino: tx_1.MsgSubmitInitiativeReview.fromAmino,
|
|
266
|
-
},
|
|
267
|
-
"/sparkdream.rep.v1.MsgSetVerificationPolicy": {
|
|
268
|
-
aminoType: "sparkdream/x/rep/MsgSetVerificationPolicy",
|
|
269
|
-
toAmino: tx_1.MsgSetVerificationPolicy.toAmino,
|
|
270
|
-
fromAmino: tx_1.MsgSetVerificationPolicy.fromAmino,
|
|
271
|
-
},
|
|
272
|
-
"/sparkdream.rep.v1.MsgResolveReviewEscalation": {
|
|
273
|
-
aminoType: "sparkdream/x/rep/MsgResolveReviewEscalation",
|
|
274
|
-
toAmino: tx_1.MsgResolveReviewEscalation.toAmino,
|
|
275
|
-
fromAmino: tx_1.MsgResolveReviewEscalation.fromAmino,
|
|
276
|
-
},
|
|
277
|
-
"/sparkdream.rep.v1.MsgDeclineJuryDuty": {
|
|
278
|
-
aminoType: "sparkdream/x/rep/MsgDeclineJuryDuty",
|
|
279
|
-
toAmino: tx_1.MsgDeclineJuryDuty.toAmino,
|
|
280
|
-
fromAmino: tx_1.MsgDeclineJuryDuty.fromAmino,
|
|
281
|
-
},
|
|
282
|
-
"/sparkdream.rep.v1.MsgFundReviewBounty": {
|
|
283
|
-
aminoType: "sparkdream/x/rep/MsgFundReviewBounty",
|
|
284
|
-
toAmino: tx_1.MsgFundReviewBounty.toAmino,
|
|
285
|
-
fromAmino: tx_1.MsgFundReviewBounty.fromAmino,
|
|
286
|
-
},
|
|
287
|
-
"/sparkdream.rep.v1.MsgReclaimReviewBounty": {
|
|
288
|
-
aminoType: "sparkdream/x/rep/MsgReclaimReviewBounty",
|
|
289
|
-
toAmino: tx_1.MsgReclaimReviewBounty.toAmino,
|
|
290
|
-
fromAmino: tx_1.MsgReclaimReviewBounty.fromAmino,
|
|
291
|
-
},
|
|
292
|
-
"/sparkdream.rep.v1.MsgSubmitExpertTestimony": {
|
|
293
|
-
aminoType: "sparkdream/x/rep/MsgSubmitExpertTestimony",
|
|
294
|
-
toAmino: tx_1.MsgSubmitExpertTestimony.toAmino,
|
|
295
|
-
fromAmino: tx_1.MsgSubmitExpertTestimony.fromAmino,
|
|
296
|
-
},
|
|
297
|
-
"/sparkdream.rep.v1.MsgChallengeContent": {
|
|
298
|
-
aminoType: "sparkdream/x/rep/MsgChallengeContent",
|
|
299
|
-
toAmino(message) {
|
|
300
|
-
const obj = {};
|
|
301
|
-
obj.challenger = message.challenger === "" ? undefined : message.challenger;
|
|
302
|
-
obj.target_type = message.targetType !== BigInt(0) ? message.targetType?.toString() : undefined;
|
|
303
|
-
obj.target_id = message.targetId !== BigInt(0) ? message.targetId?.toString() : undefined;
|
|
304
|
-
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
305
|
-
obj.evidence = (message.evidence?.length ?? 0) > 0
|
|
306
|
-
? message.evidence.map((e) => e)
|
|
307
|
-
: undefined;
|
|
308
|
-
obj.staked_dream = message.stakedDream === null ? undefined : message.stakedDream;
|
|
309
|
-
return obj;
|
|
310
|
-
},
|
|
311
|
-
fromAmino: tx_1.MsgChallengeContent.fromAmino,
|
|
312
|
-
},
|
|
313
|
-
"/sparkdream.rep.v1.MsgRespondToContentChallenge": {
|
|
314
|
-
aminoType: "sparkdream/x/rep/MsgRespondToContentChallenge",
|
|
315
|
-
toAmino(message) {
|
|
316
|
-
const obj = {};
|
|
317
|
-
obj.author = message.author === "" ? undefined : message.author;
|
|
318
|
-
obj.content_challenge_id = message.contentChallengeId !== BigInt(0) ? message.contentChallengeId?.toString() : undefined;
|
|
319
|
-
obj.response = message.response === "" ? undefined : message.response;
|
|
320
|
-
obj.evidence = (message.evidence?.length ?? 0) > 0
|
|
321
|
-
? message.evidence.map((e) => e)
|
|
322
|
-
: undefined;
|
|
323
|
-
return obj;
|
|
324
|
-
},
|
|
325
|
-
fromAmino: tx_1.MsgRespondToContentChallenge.fromAmino,
|
|
326
|
-
},
|
|
327
|
-
"/sparkdream.rep.v1.MsgRegisterZkPublicKey": {
|
|
328
|
-
aminoType: "sparkdream/x/rep/MsgRegisterZkPublicKey",
|
|
329
|
-
toAmino: tx_1.MsgRegisterZkPublicKey.toAmino,
|
|
330
|
-
fromAmino: tx_1.MsgRegisterZkPublicKey.fromAmino,
|
|
331
|
-
},
|
|
332
|
-
"/sparkdream.rep.v1.MsgCreateTag": {
|
|
333
|
-
aminoType: "sparkdream/x/rep/MsgCreateTag",
|
|
334
|
-
toAmino: tx_1.MsgCreateTag.toAmino,
|
|
335
|
-
fromAmino: tx_1.MsgCreateTag.fromAmino,
|
|
336
|
-
},
|
|
337
|
-
"/sparkdream.rep.v1.MsgReportTag": {
|
|
338
|
-
aminoType: "sparkdream/x/rep/MsgReportTag",
|
|
339
|
-
toAmino: tx_1.MsgReportTag.toAmino,
|
|
340
|
-
fromAmino: tx_1.MsgReportTag.fromAmino,
|
|
341
|
-
},
|
|
342
|
-
"/sparkdream.rep.v1.MsgResolveTagReport": {
|
|
343
|
-
aminoType: "sparkdream/x/rep/MsgResolveTagReport",
|
|
344
|
-
toAmino: tx_1.MsgResolveTagReport.toAmino,
|
|
345
|
-
fromAmino: tx_1.MsgResolveTagReport.fromAmino,
|
|
346
|
-
},
|
|
347
|
-
"/sparkdream.rep.v1.MsgCreateTagBudget": {
|
|
348
|
-
aminoType: "sparkdream/x/rep/MsgCreateTagBudget",
|
|
349
|
-
toAmino: tx_1.MsgCreateTagBudget.toAmino,
|
|
350
|
-
fromAmino: tx_1.MsgCreateTagBudget.fromAmino,
|
|
351
|
-
},
|
|
352
|
-
"/sparkdream.rep.v1.MsgAwardFromTagBudget": {
|
|
353
|
-
aminoType: "sparkdream/x/rep/MsgAwardFromTagBudget",
|
|
354
|
-
toAmino: tx_1.MsgAwardFromTagBudget.toAmino,
|
|
355
|
-
fromAmino: tx_1.MsgAwardFromTagBudget.fromAmino,
|
|
356
|
-
},
|
|
357
|
-
"/sparkdream.rep.v1.MsgTopUpTagBudget": {
|
|
358
|
-
aminoType: "sparkdream/x/rep/MsgTopUpTagBudget",
|
|
359
|
-
toAmino: tx_1.MsgTopUpTagBudget.toAmino,
|
|
360
|
-
fromAmino: tx_1.MsgTopUpTagBudget.fromAmino,
|
|
361
|
-
},
|
|
362
|
-
"/sparkdream.rep.v1.MsgToggleTagBudget": {
|
|
363
|
-
aminoType: "sparkdream/x/rep/MsgToggleTagBudget",
|
|
364
|
-
toAmino: tx_1.MsgToggleTagBudget.toAmino,
|
|
365
|
-
fromAmino: tx_1.MsgToggleTagBudget.fromAmino,
|
|
366
|
-
},
|
|
367
|
-
"/sparkdream.rep.v1.MsgWithdrawTagBudget": {
|
|
368
|
-
aminoType: "sparkdream/x/rep/MsgWithdrawTagBudget",
|
|
369
|
-
toAmino: tx_1.MsgWithdrawTagBudget.toAmino,
|
|
370
|
-
fromAmino: tx_1.MsgWithdrawTagBudget.fromAmino,
|
|
371
|
-
},
|
|
372
|
-
"/sparkdream.rep.v1.MsgBondRole": {
|
|
373
|
-
aminoType: "sparkdream/x/rep/MsgBondRole",
|
|
374
|
-
toAmino: tx_1.MsgBondRole.toAmino,
|
|
375
|
-
fromAmino: tx_1.MsgBondRole.fromAmino,
|
|
376
|
-
},
|
|
377
|
-
"/sparkdream.rep.v1.MsgUnbondRole": {
|
|
378
|
-
aminoType: "sparkdream/x/rep/MsgUnbondRole",
|
|
379
|
-
toAmino: tx_1.MsgUnbondRole.toAmino,
|
|
380
|
-
fromAmino: tx_1.MsgUnbondRole.fromAmino,
|
|
381
|
-
},
|
|
382
|
-
"/sparkdream.rep.v1.MsgCancelUnbondRole": {
|
|
383
|
-
aminoType: "sparkdream/x/rep/MsgCancelUnbondRole",
|
|
384
|
-
toAmino: tx_1.MsgCancelUnbondRole.toAmino,
|
|
385
|
-
fromAmino: tx_1.MsgCancelUnbondRole.fromAmino,
|
|
386
|
-
},
|
|
387
|
-
"/sparkdream.rep.v1.MsgReportMember": {
|
|
388
|
-
aminoType: "sparkdream/x/rep/MsgReportMember",
|
|
389
|
-
toAmino: tx_1.MsgReportMember.toAmino,
|
|
390
|
-
fromAmino: tx_1.MsgReportMember.fromAmino,
|
|
391
|
-
},
|
|
392
|
-
"/sparkdream.rep.v1.MsgCosignMemberReport": {
|
|
393
|
-
aminoType: "sparkdream/x/rep/MsgCosignMemberReport",
|
|
394
|
-
toAmino: tx_1.MsgCosignMemberReport.toAmino,
|
|
395
|
-
fromAmino: tx_1.MsgCosignMemberReport.fromAmino,
|
|
396
|
-
},
|
|
397
|
-
"/sparkdream.rep.v1.MsgResolveMemberReport": {
|
|
398
|
-
aminoType: "sparkdream/x/rep/MsgResolveMemberReport",
|
|
399
|
-
toAmino: tx_1.MsgResolveMemberReport.toAmino,
|
|
400
|
-
fromAmino: tx_1.MsgResolveMemberReport.fromAmino,
|
|
401
|
-
},
|
|
402
|
-
"/sparkdream.rep.v1.MsgDefendMemberReport": {
|
|
403
|
-
aminoType: "sparkdream/x/rep/MsgDefendMemberReport",
|
|
404
|
-
toAmino: tx_1.MsgDefendMemberReport.toAmino,
|
|
405
|
-
fromAmino: tx_1.MsgDefendMemberReport.fromAmino,
|
|
406
|
-
},
|
|
407
|
-
"/sparkdream.rep.v1.MsgAppealGovAction": {
|
|
408
|
-
aminoType: "sparkdream/x/rep/MsgAppealGovAction",
|
|
409
|
-
toAmino: tx_1.MsgAppealGovAction.toAmino,
|
|
410
|
-
fromAmino: tx_1.MsgAppealGovAction.fromAmino,
|
|
411
|
-
},
|
|
412
|
-
"/sparkdream.rep.v1.MsgResolveGovActionAppeal": {
|
|
413
|
-
aminoType: "sparkdream/x/rep/MsgResolveGovActionAppeal",
|
|
414
|
-
toAmino: tx_1.MsgResolveGovActionAppeal.toAmino,
|
|
415
|
-
fromAmino: tx_1.MsgResolveGovActionAppeal.fromAmino,
|
|
416
|
-
},
|
|
417
|
-
"/sparkdream.rep.v1.MsgCloseInitiative": {
|
|
418
|
-
aminoType: "sparkdream/x/rep/MsgCloseInitiative",
|
|
419
|
-
toAmino: tx_1.MsgCloseInitiative.toAmino,
|
|
420
|
-
fromAmino: tx_1.MsgCloseInitiative.fromAmino,
|
|
421
|
-
},
|
|
422
|
-
};
|
|
48
|
+
// MAINTENANCE: none per message. The schema (amino-schema.ts, regenerated from
|
|
49
|
+
// the chain on every proto sync) lists every Msg; __tests__/amino-golden.test.ts
|
|
50
|
+
// checks them all against the chain's encoder.
|
|
51
|
+
const tx = __importStar(require("./tx"));
|
|
52
|
+
const chain_amino_1 = require("../../../chain-amino");
|
|
53
|
+
exports.AminoConverter = (0, chain_amino_1.chainAminoConverters)("sparkdream.rep.v1", tx);
|