@sparkdreamnft/sparkdreamjs 0.0.45 → 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/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 +71 -1
- 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/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/session/v1/tx.js +38 -2
- 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 +13605 -9506
- package/sparkdream/bundle.js +329 -291
- package/sparkdream/client.d.ts +389 -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/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 +71 -1
- package/sparkdream/rep/v1/tx.amino.js +70 -0
- 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/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/session/v1/tx.d.ts +30 -0
- package/sparkdream/session/v1/tx.js +38 -2
- 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
|
@@ -233,4 +233,36 @@ exports.AminoConverter = {
|
|
|
233
233
|
toAmino: tx_1.MsgDeleteCategory.toAmino,
|
|
234
234
|
fromAmino: tx_1.MsgDeleteCategory.fromAmino,
|
|
235
235
|
},
|
|
236
|
+
"/sparkdream.commons.v1.MsgScheduleRecurringSpend": {
|
|
237
|
+
aminoType: "sparkdream/x/commons/MsgScheduleRecurringSpend",
|
|
238
|
+
toAmino(message) {
|
|
239
|
+
const obj = {};
|
|
240
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
241
|
+
obj.recipient = message.recipient === "" ? undefined : message.recipient;
|
|
242
|
+
obj.amount_per_period = (message.amountPerPeriod?.length ?? 0) > 0
|
|
243
|
+
? message.amountPerPeriod.map((e) => e ? coin_1.Coin.toAmino(e) : undefined)
|
|
244
|
+
: undefined;
|
|
245
|
+
obj.period_seconds = message.periodSeconds !== BigInt(0) ? message.periodSeconds?.toString() : undefined;
|
|
246
|
+
obj.start_time = message.startTime !== BigInt(0) ? message.startTime?.toString() : undefined;
|
|
247
|
+
obj.end_time = message.endTime !== BigInt(0) ? message.endTime?.toString() : undefined;
|
|
248
|
+
obj.note = message.note === "" ? undefined : message.note;
|
|
249
|
+
return obj;
|
|
250
|
+
},
|
|
251
|
+
fromAmino: tx_1.MsgScheduleRecurringSpend.fromAmino,
|
|
252
|
+
},
|
|
253
|
+
"/sparkdream.commons.v1.MsgClaimRecurringSpend": {
|
|
254
|
+
aminoType: "sparkdream/x/commons/MsgClaimRecurringSpend",
|
|
255
|
+
toAmino: tx_1.MsgClaimRecurringSpend.toAmino,
|
|
256
|
+
fromAmino: tx_1.MsgClaimRecurringSpend.fromAmino,
|
|
257
|
+
},
|
|
258
|
+
"/sparkdream.commons.v1.MsgCancelRecurringSpend": {
|
|
259
|
+
aminoType: "sparkdream/x/commons/MsgCancelRecurringSpend",
|
|
260
|
+
toAmino: tx_1.MsgCancelRecurringSpend.toAmino,
|
|
261
|
+
fromAmino: tx_1.MsgCancelRecurringSpend.fromAmino,
|
|
262
|
+
},
|
|
263
|
+
"/sparkdream.commons.v1.MsgDeclineRecurringSpend": {
|
|
264
|
+
aminoType: "sparkdream/x/commons/MsgDeclineRecurringSpend",
|
|
265
|
+
toAmino: tx_1.MsgDeclineRecurringSpend.toAmino,
|
|
266
|
+
fromAmino: tx_1.MsgDeclineRecurringSpend.fromAmino,
|
|
267
|
+
},
|
|
236
268
|
};
|
|
@@ -1571,6 +1571,15 @@ export interface MsgClaimRecurringSpendAminoMsg {
|
|
|
1571
1571
|
export interface MsgClaimRecurringSpendResponse {
|
|
1572
1572
|
claimNumber: bigint;
|
|
1573
1573
|
nextClaimTime: bigint;
|
|
1574
|
+
/**
|
|
1575
|
+
* The council could not cover the period: nothing moved and the schedule
|
|
1576
|
+
* is paused until a later claim succeeds.
|
|
1577
|
+
*/
|
|
1578
|
+
paused: boolean;
|
|
1579
|
+
/**
|
|
1580
|
+
* The schedule's window had closed: nothing moved and it is complete.
|
|
1581
|
+
*/
|
|
1582
|
+
completed: boolean;
|
|
1574
1583
|
}
|
|
1575
1584
|
export interface MsgClaimRecurringSpendResponseProtoMsg {
|
|
1576
1585
|
typeUrl: "/sparkdream.commons.v1.MsgClaimRecurringSpendResponse";
|
|
@@ -1587,6 +1596,15 @@ export interface MsgClaimRecurringSpendResponseProtoMsg {
|
|
|
1587
1596
|
export interface MsgClaimRecurringSpendResponseAmino {
|
|
1588
1597
|
claim_number?: string;
|
|
1589
1598
|
next_claim_time?: string;
|
|
1599
|
+
/**
|
|
1600
|
+
* The council could not cover the period: nothing moved and the schedule
|
|
1601
|
+
* is paused until a later claim succeeds.
|
|
1602
|
+
*/
|
|
1603
|
+
paused?: boolean;
|
|
1604
|
+
/**
|
|
1605
|
+
* The schedule's window had closed: nothing moved and it is complete.
|
|
1606
|
+
*/
|
|
1607
|
+
completed?: boolean;
|
|
1590
1608
|
}
|
|
1591
1609
|
export interface MsgClaimRecurringSpendResponseAminoMsg {
|
|
1592
1610
|
type: "/sparkdream.commons.v1.MsgClaimRecurringSpendResponse";
|
|
@@ -4181,7 +4181,9 @@ exports.MsgClaimRecurringSpend = {
|
|
|
4181
4181
|
function createBaseMsgClaimRecurringSpendResponse() {
|
|
4182
4182
|
return {
|
|
4183
4183
|
claimNumber: BigInt(0),
|
|
4184
|
-
nextClaimTime: BigInt(0)
|
|
4184
|
+
nextClaimTime: BigInt(0),
|
|
4185
|
+
paused: false,
|
|
4186
|
+
completed: false
|
|
4185
4187
|
};
|
|
4186
4188
|
}
|
|
4187
4189
|
/**
|
|
@@ -4201,6 +4203,12 @@ exports.MsgClaimRecurringSpendResponse = {
|
|
|
4201
4203
|
if (message.nextClaimTime !== BigInt(0)) {
|
|
4202
4204
|
writer.uint32(16).int64(message.nextClaimTime);
|
|
4203
4205
|
}
|
|
4206
|
+
if (message.paused === true) {
|
|
4207
|
+
writer.uint32(24).bool(message.paused);
|
|
4208
|
+
}
|
|
4209
|
+
if (message.completed === true) {
|
|
4210
|
+
writer.uint32(32).bool(message.completed);
|
|
4211
|
+
}
|
|
4204
4212
|
return writer;
|
|
4205
4213
|
},
|
|
4206
4214
|
decode(input, length) {
|
|
@@ -4216,6 +4224,12 @@ exports.MsgClaimRecurringSpendResponse = {
|
|
|
4216
4224
|
case 2:
|
|
4217
4225
|
message.nextClaimTime = reader.int64();
|
|
4218
4226
|
break;
|
|
4227
|
+
case 3:
|
|
4228
|
+
message.paused = reader.bool();
|
|
4229
|
+
break;
|
|
4230
|
+
case 4:
|
|
4231
|
+
message.completed = reader.bool();
|
|
4232
|
+
break;
|
|
4219
4233
|
default:
|
|
4220
4234
|
reader.skipType(tag & 7);
|
|
4221
4235
|
break;
|
|
@@ -4227,6 +4241,8 @@ exports.MsgClaimRecurringSpendResponse = {
|
|
|
4227
4241
|
const message = createBaseMsgClaimRecurringSpendResponse();
|
|
4228
4242
|
message.claimNumber = object.claimNumber !== undefined && object.claimNumber !== null ? BigInt(object.claimNumber.toString()) : BigInt(0);
|
|
4229
4243
|
message.nextClaimTime = object.nextClaimTime !== undefined && object.nextClaimTime !== null ? BigInt(object.nextClaimTime.toString()) : BigInt(0);
|
|
4244
|
+
message.paused = object.paused ?? false;
|
|
4245
|
+
message.completed = object.completed ?? false;
|
|
4230
4246
|
return message;
|
|
4231
4247
|
},
|
|
4232
4248
|
fromAmino(object) {
|
|
@@ -4237,12 +4253,20 @@ exports.MsgClaimRecurringSpendResponse = {
|
|
|
4237
4253
|
if (object.next_claim_time !== undefined && object.next_claim_time !== null) {
|
|
4238
4254
|
message.nextClaimTime = BigInt(object.next_claim_time);
|
|
4239
4255
|
}
|
|
4256
|
+
if (object.paused !== undefined && object.paused !== null) {
|
|
4257
|
+
message.paused = object.paused;
|
|
4258
|
+
}
|
|
4259
|
+
if (object.completed !== undefined && object.completed !== null) {
|
|
4260
|
+
message.completed = object.completed;
|
|
4261
|
+
}
|
|
4240
4262
|
return message;
|
|
4241
4263
|
},
|
|
4242
4264
|
toAmino(message) {
|
|
4243
4265
|
const obj = {};
|
|
4244
4266
|
obj.claim_number = message.claimNumber !== BigInt(0) ? message.claimNumber?.toString() : undefined;
|
|
4245
4267
|
obj.next_claim_time = message.nextClaimTime !== BigInt(0) ? message.nextClaimTime?.toString() : undefined;
|
|
4268
|
+
obj.paused = message.paused === false ? undefined : message.paused;
|
|
4269
|
+
obj.completed = message.completed === false ? undefined : message.completed;
|
|
4246
4270
|
return obj;
|
|
4247
4271
|
},
|
|
4248
4272
|
fromAminoMsg(object) {
|
|
@@ -27,7 +27,7 @@ export declare const AminoConverter: {
|
|
|
27
27
|
};
|
|
28
28
|
"/sparkdream.federation.v1.MsgUpdatePeerPolicy": {
|
|
29
29
|
aminoType: string;
|
|
30
|
-
toAmino
|
|
30
|
+
toAmino(message: any): any;
|
|
31
31
|
fromAmino: (object: import("./tx").MsgUpdatePeerPolicyAmino) => MsgUpdatePeerPolicy;
|
|
32
32
|
};
|
|
33
33
|
"/sparkdream.federation.v1.MsgRegisterBridge": {
|
|
@@ -1,8 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
//@ts-nocheck
|
|
3
|
+
// HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
|
|
4
|
+
// by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
|
|
5
|
+
//
|
|
6
|
+
// Why: Telescope's auto-generated toAmino emits `[]` for empty repeated fields
|
|
7
|
+
// (the `if (message.field)` check is truthy for `[]` in JS), but
|
|
8
|
+
// cosmossdk.io/x/tx/signing/aminojson on the chain side omits them per
|
|
9
|
+
// `omitempty`. Whenever a repeated field happens to be empty, the JS side signs
|
|
10
|
+
// `"field":[]` and the chain reconstructs without the key — sign bytes differ,
|
|
11
|
+
// surfacing as "signature verification failed" / "unauthorized".
|
|
12
|
+
//
|
|
13
|
+
// Every federation message with a repeated field not marked
|
|
14
|
+
// `(amino.dont_omitempty) = true` is patched here to mirror aminojson's
|
|
15
|
+
// omitempty (return `undefined` when empty). MsgUpdatePeerPolicy's repeated
|
|
16
|
+
// fields sit inside the nested PeerPolicy, whose generated toAmino has the same
|
|
17
|
+
// bug, so it goes through peerPolicyToAmino below. The rest of the converters
|
|
18
|
+
// pass straight through to the auto-generated toAmino/fromAmino.
|
|
19
|
+
//
|
|
20
|
+
// MAINTENANCE: this map REPLACES the generated one wholesale, so it must list
|
|
21
|
+
// every message in tx.proto. A message added to the proto but not added here
|
|
22
|
+
// ends up with no amino converter at all, and amino (Ledger) signing for it
|
|
23
|
+
// fails at runtime. When syncing protos, diff the message list in
|
|
24
|
+
// protos/sparkdream/federation/v1/tx.proto against the keys below.
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.AminoConverter = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
27
|
const tx_1 = require("./tx");
|
|
28
|
+
const types_1 = require("./types");
|
|
29
|
+
// Repeated string fields mirror aminojson's omitempty: omit when empty.
|
|
30
|
+
function omitEmptyStrings(list) {
|
|
31
|
+
return (list?.length ?? 0) > 0 ? list.map((e) => e) : undefined;
|
|
32
|
+
}
|
|
33
|
+
function peerPolicyToAmino(message) {
|
|
34
|
+
const obj = {};
|
|
35
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
36
|
+
obj.outbound_content_types = omitEmptyStrings(message.outboundContentTypes);
|
|
37
|
+
obj.inbound_content_types = omitEmptyStrings(message.inboundContentTypes);
|
|
38
|
+
obj.min_outbound_trust_level = message.minOutboundTrustLevel === 0 ? undefined : message.minOutboundTrustLevel;
|
|
39
|
+
obj.inbound_rate_limit_per_epoch = message.inboundRateLimitPerEpoch !== BigInt(0) ? message.inboundRateLimitPerEpoch?.toString() : undefined;
|
|
40
|
+
obj.outbound_rate_limit_per_epoch = message.outboundRateLimitPerEpoch !== BigInt(0) ? message.outboundRateLimitPerEpoch?.toString() : undefined;
|
|
41
|
+
obj.allow_reputation_queries = message.allowReputationQueries === false ? undefined : message.allowReputationQueries;
|
|
42
|
+
obj.accept_reputation_attestations = message.acceptReputationAttestations === false ? undefined : message.acceptReputationAttestations;
|
|
43
|
+
obj.require_review = message.requireReview === false ? undefined : message.requireReview;
|
|
44
|
+
obj.blocked_identities = omitEmptyStrings(message.blockedIdentities);
|
|
45
|
+
obj.content_hosts = omitEmptyStrings(message.contentHosts);
|
|
46
|
+
obj.allowed_identities = omitEmptyStrings(message.allowedIdentities);
|
|
47
|
+
obj.curation = message.curation ? types_1.IdentityCuration.toAmino(message.curation) : undefined;
|
|
48
|
+
return obj;
|
|
49
|
+
}
|
|
6
50
|
exports.AminoConverter = {
|
|
7
51
|
"/sparkdream.federation.v1.MsgUpdateParams": {
|
|
8
52
|
aminoType: "sparkdream/x/federation/MsgUpdateParams",
|
|
@@ -31,7 +75,13 @@ exports.AminoConverter = {
|
|
|
31
75
|
},
|
|
32
76
|
"/sparkdream.federation.v1.MsgUpdatePeerPolicy": {
|
|
33
77
|
aminoType: "sparkdream/x/federation/MsgUpdatePeerPolicy",
|
|
34
|
-
toAmino
|
|
78
|
+
toAmino(message) {
|
|
79
|
+
const obj = {};
|
|
80
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
81
|
+
obj.peer_id = message.peerId === "" ? undefined : message.peerId;
|
|
82
|
+
obj.policy = message.policy ? peerPolicyToAmino(message.policy) : undefined;
|
|
83
|
+
return obj;
|
|
84
|
+
},
|
|
35
85
|
fromAmino: tx_1.MsgUpdatePeerPolicy.fromAmino
|
|
36
86
|
},
|
|
37
87
|
"/sparkdream.federation.v1.MsgRegisterBridge": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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";
|
|
1
|
+
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";
|
|
2
2
|
export declare const AminoConverter: {
|
|
3
3
|
"/sparkdream.forum.v1.MsgUpdateParams": {
|
|
4
4
|
aminoType: string;
|
|
@@ -180,4 +180,24 @@ export declare const AminoConverter: {
|
|
|
180
180
|
toAmino: (message: MsgSetModerationPaused) => import("./tx").MsgSetModerationPausedAmino;
|
|
181
181
|
fromAmino: (object: import("./tx").MsgSetModerationPausedAmino) => MsgSetModerationPaused;
|
|
182
182
|
};
|
|
183
|
+
"/sparkdream.forum.v1.MsgMakePostPermanent": {
|
|
184
|
+
aminoType: string;
|
|
185
|
+
toAmino: (message: MsgMakePostPermanent) => import("./tx").MsgMakePostPermanentAmino;
|
|
186
|
+
fromAmino: (object: import("./tx").MsgMakePostPermanentAmino) => MsgMakePostPermanent;
|
|
187
|
+
};
|
|
188
|
+
"/sparkdream.forum.v1.MsgStakePostConviction": {
|
|
189
|
+
aminoType: string;
|
|
190
|
+
toAmino: (message: MsgStakePostConviction) => import("./tx").MsgStakePostConvictionAmino;
|
|
191
|
+
fromAmino: (object: import("./tx").MsgStakePostConvictionAmino) => MsgStakePostConviction;
|
|
192
|
+
};
|
|
193
|
+
"/sparkdream.forum.v1.MsgReleasePostConviction": {
|
|
194
|
+
aminoType: string;
|
|
195
|
+
toAmino: (message: MsgReleasePostConviction) => import("./tx").MsgReleasePostConvictionAmino;
|
|
196
|
+
fromAmino: (object: import("./tx").MsgReleasePostConvictionAmino) => MsgReleasePostConviction;
|
|
197
|
+
};
|
|
198
|
+
"/sparkdream.forum.v1.MsgSetThreadProposalsLock": {
|
|
199
|
+
aminoType: string;
|
|
200
|
+
toAmino: (message: MsgSetThreadProposalsLock) => import("./tx").MsgSetThreadProposalsLockAmino;
|
|
201
|
+
fromAmino: (object: import("./tx").MsgSetThreadProposalsLockAmino) => MsgSetThreadProposalsLock;
|
|
202
|
+
};
|
|
183
203
|
};
|
|
@@ -213,4 +213,24 @@ exports.AminoConverter = {
|
|
|
213
213
|
toAmino: tx_1.MsgSetModerationPaused.toAmino,
|
|
214
214
|
fromAmino: tx_1.MsgSetModerationPaused.fromAmino,
|
|
215
215
|
},
|
|
216
|
+
"/sparkdream.forum.v1.MsgMakePostPermanent": {
|
|
217
|
+
aminoType: "sparkdream/x/forum/MsgMakePostPermanent",
|
|
218
|
+
toAmino: tx_1.MsgMakePostPermanent.toAmino,
|
|
219
|
+
fromAmino: tx_1.MsgMakePostPermanent.fromAmino,
|
|
220
|
+
},
|
|
221
|
+
"/sparkdream.forum.v1.MsgStakePostConviction": {
|
|
222
|
+
aminoType: "sparkdream/x/forum/MsgStakePostConviction",
|
|
223
|
+
toAmino: tx_1.MsgStakePostConviction.toAmino,
|
|
224
|
+
fromAmino: tx_1.MsgStakePostConviction.fromAmino,
|
|
225
|
+
},
|
|
226
|
+
"/sparkdream.forum.v1.MsgReleasePostConviction": {
|
|
227
|
+
aminoType: "sparkdream/x/forum/MsgReleasePostConviction",
|
|
228
|
+
toAmino: tx_1.MsgReleasePostConviction.toAmino,
|
|
229
|
+
fromAmino: tx_1.MsgReleasePostConviction.fromAmino,
|
|
230
|
+
},
|
|
231
|
+
"/sparkdream.forum.v1.MsgSetThreadProposalsLock": {
|
|
232
|
+
aminoType: "sparkdream/x/forum/MsgSetThreadProposalsLock",
|
|
233
|
+
toAmino: tx_1.MsgSetThreadProposalsLock.toAmino,
|
|
234
|
+
fromAmino: tx_1.MsgSetThreadProposalsLock.fromAmino,
|
|
235
|
+
},
|
|
216
236
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
export { configureNestedAminoConverter } from "../../../nested-amino";
|
|
2
2
|
export declare const AminoConverter: {
|
|
3
3
|
"/sparkdream.guardian.v1.MsgExec": {
|
|
4
4
|
aminoType: string;
|
|
5
|
-
toAmino
|
|
6
|
-
fromAmino
|
|
5
|
+
toAmino(message: any): any;
|
|
6
|
+
fromAmino(object: any): any;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
@@ -1,12 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AminoConverter = void 0;
|
|
4
2
|
//@ts-nocheck
|
|
5
|
-
|
|
3
|
+
// HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
|
|
4
|
+
// by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
|
|
5
|
+
//
|
|
6
|
+
// Why: Telescope emits a flat AminoConverter that hands each entry's toAmino
|
|
7
|
+
// straight through to the message's auto-generated toAmino. For
|
|
8
|
+
// MsgExec (`google.protobuf.Any inner`), the auto-generated toAmino calls
|
|
9
|
+
// Any.toAmino, which just attaches the raw Uint8Array bytes — Ledger rejects
|
|
10
|
+
// the resulting JSON ("Dictionaries are not sorted") and the chain produces
|
|
11
|
+
// different sign bytes ("signature verification failed").
|
|
12
|
+
//
|
|
13
|
+
// This override delegates the inner Any conversion to a consumer-supplied
|
|
14
|
+
// proto registry + AminoTypes via `configureNestedAminoConverter`.
|
|
15
|
+
// The rest of the converters are unchanged.
|
|
16
|
+
//
|
|
17
|
+
// MAINTENANCE: this map REPLACES the generated one wholesale, so it must list
|
|
18
|
+
// every message in tx.proto. A message added to the proto but not added here
|
|
19
|
+
// ends up with no amino converter at all, and amino (Ledger) signing for it
|
|
20
|
+
// fails at runtime. When syncing protos, diff the message list in
|
|
21
|
+
// protos/sparkdream/guardian/v1/tx.proto against the keys below.
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.AminoConverter = exports.configureNestedAminoConverter = void 0;
|
|
24
|
+
const nested_amino_1 = require("../../../nested-amino");
|
|
25
|
+
var nested_amino_2 = require("../../../nested-amino");
|
|
26
|
+
Object.defineProperty(exports, "configureNestedAminoConverter", { enumerable: true, get: function () { return nested_amino_2.configureNestedAminoConverter; } });
|
|
6
27
|
exports.AminoConverter = {
|
|
7
28
|
"/sparkdream.guardian.v1.MsgExec": {
|
|
8
29
|
aminoType: "sparkdream/x/guardian/MsgExec",
|
|
9
|
-
toAmino
|
|
10
|
-
|
|
30
|
+
toAmino(message) {
|
|
31
|
+
const obj = {};
|
|
32
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
33
|
+
obj.inner = message.inner ? (0, nested_amino_1.anyToAmino)(message.inner) : undefined;
|
|
34
|
+
return obj;
|
|
35
|
+
},
|
|
36
|
+
fromAmino(object) {
|
|
37
|
+
return {
|
|
38
|
+
authority: object.authority ?? "",
|
|
39
|
+
inner: object.inner ? (0, nested_amino_1.aminoToAny)(object.inner) : undefined,
|
|
40
|
+
};
|
|
41
|
+
},
|
|
11
42
|
}
|
|
12
43
|
};
|
package/sparkdream/lcd.d.ts
CHANGED
package/sparkdream/lcd.js
CHANGED
|
@@ -228,6 +228,11 @@ const createLCDClient = async ({ restEndpoint }) => {
|
|
|
228
228
|
v1: new (await Promise.resolve().then(() => __importStar(require("./split/v1/query.lcd")))).LCDQueryClient({
|
|
229
229
|
requestClient
|
|
230
230
|
})
|
|
231
|
+
},
|
|
232
|
+
vault: {
|
|
233
|
+
v1: new (await Promise.resolve().then(() => __importStar(require("./vault/v1/query.lcd")))).LCDQueryClient({
|
|
234
|
+
requestClient
|
|
235
|
+
})
|
|
231
236
|
}
|
|
232
237
|
}
|
|
233
238
|
};
|
|
@@ -22,6 +22,7 @@ import { RoleActivity, RoleActivityAmino } from "./role_activity";
|
|
|
22
22
|
import { InitiativeReview, InitiativeReviewAmino } from "./initiative_review";
|
|
23
23
|
import { ReviewBounty, ReviewBountyAmino } from "./review_bounty";
|
|
24
24
|
import { InitiativeBounty, InitiativeBountyAmino } from "./initiative_bounty";
|
|
25
|
+
import { Tombstone, TombstoneAmino, MemberMigration, MemberMigrationAmino, RecoveryCommitmentEntry, RecoveryCommitmentEntryAmino, RecoveryCommit, RecoveryCommitAmino } from "./migration";
|
|
25
26
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
26
27
|
import { DeepPartial } from "../../../helpers";
|
|
27
28
|
/**
|
|
@@ -139,6 +140,15 @@ export interface GenesisState {
|
|
|
139
140
|
* import would strand the escrow with nothing able to pay or refund it.
|
|
140
141
|
*/
|
|
141
142
|
initiativeBountyList: InitiativeBounty[];
|
|
143
|
+
/**
|
|
144
|
+
* Member key migration. The queue, the per-member pending pointer and the
|
|
145
|
+
* reverse alias index are derived from these lists at InitGenesis.
|
|
146
|
+
*/
|
|
147
|
+
tombstoneList: Tombstone[];
|
|
148
|
+
memberMigrationList: MemberMigration[];
|
|
149
|
+
memberMigrationCount: bigint;
|
|
150
|
+
recoveryCommitmentList: RecoveryCommitmentEntry[];
|
|
151
|
+
recoveryCommitList: RecoveryCommit[];
|
|
142
152
|
}
|
|
143
153
|
export interface GenesisStateProtoMsg {
|
|
144
154
|
typeUrl: "/sparkdream.rep.v1.GenesisState";
|
|
@@ -259,6 +269,15 @@ export interface GenesisStateAmino {
|
|
|
259
269
|
* import would strand the escrow with nothing able to pay or refund it.
|
|
260
270
|
*/
|
|
261
271
|
initiative_bounty_list?: InitiativeBountyAmino[];
|
|
272
|
+
/**
|
|
273
|
+
* Member key migration. The queue, the per-member pending pointer and the
|
|
274
|
+
* reverse alias index are derived from these lists at InitGenesis.
|
|
275
|
+
*/
|
|
276
|
+
tombstone_list?: TombstoneAmino[];
|
|
277
|
+
member_migration_list?: MemberMigrationAmino[];
|
|
278
|
+
member_migration_count?: string;
|
|
279
|
+
recovery_commitment_list?: RecoveryCommitmentEntryAmino[];
|
|
280
|
+
recovery_commit_list?: RecoveryCommitAmino[];
|
|
262
281
|
}
|
|
263
282
|
export interface GenesisStateAminoMsg {
|
|
264
283
|
type: "/sparkdream.rep.v1.GenesisState";
|
|
@@ -26,6 +26,7 @@ const role_activity_1 = require("./role_activity");
|
|
|
26
26
|
const initiative_review_1 = require("./initiative_review");
|
|
27
27
|
const review_bounty_1 = require("./review_bounty");
|
|
28
28
|
const initiative_bounty_1 = require("./initiative_bounty");
|
|
29
|
+
const migration_1 = require("./migration");
|
|
29
30
|
const binary_1 = require("../../../binary");
|
|
30
31
|
function createBaseGenesisState() {
|
|
31
32
|
return {
|
|
@@ -73,7 +74,12 @@ function createBaseGenesisState() {
|
|
|
73
74
|
reviewBountyList: [],
|
|
74
75
|
economicState: undefined,
|
|
75
76
|
giftRecordList: [],
|
|
76
|
-
initiativeBountyList: []
|
|
77
|
+
initiativeBountyList: [],
|
|
78
|
+
tombstoneList: [],
|
|
79
|
+
memberMigrationList: [],
|
|
80
|
+
memberMigrationCount: BigInt(0),
|
|
81
|
+
recoveryCommitmentList: [],
|
|
82
|
+
recoveryCommitList: []
|
|
77
83
|
};
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
@@ -222,6 +228,21 @@ exports.GenesisState = {
|
|
|
222
228
|
for (const v of message.initiativeBountyList) {
|
|
223
229
|
initiative_bounty_1.InitiativeBounty.encode(v, writer.uint32(362).fork()).ldelim();
|
|
224
230
|
}
|
|
231
|
+
for (const v of message.tombstoneList) {
|
|
232
|
+
migration_1.Tombstone.encode(v, writer.uint32(370).fork()).ldelim();
|
|
233
|
+
}
|
|
234
|
+
for (const v of message.memberMigrationList) {
|
|
235
|
+
migration_1.MemberMigration.encode(v, writer.uint32(378).fork()).ldelim();
|
|
236
|
+
}
|
|
237
|
+
if (message.memberMigrationCount !== BigInt(0)) {
|
|
238
|
+
writer.uint32(384).uint64(message.memberMigrationCount);
|
|
239
|
+
}
|
|
240
|
+
for (const v of message.recoveryCommitmentList) {
|
|
241
|
+
migration_1.RecoveryCommitmentEntry.encode(v, writer.uint32(394).fork()).ldelim();
|
|
242
|
+
}
|
|
243
|
+
for (const v of message.recoveryCommitList) {
|
|
244
|
+
migration_1.RecoveryCommit.encode(v, writer.uint32(402).fork()).ldelim();
|
|
245
|
+
}
|
|
225
246
|
return writer;
|
|
226
247
|
},
|
|
227
248
|
decode(input, length) {
|
|
@@ -374,6 +395,21 @@ exports.GenesisState = {
|
|
|
374
395
|
case 45:
|
|
375
396
|
message.initiativeBountyList.push(initiative_bounty_1.InitiativeBounty.decode(reader, reader.uint32()));
|
|
376
397
|
break;
|
|
398
|
+
case 46:
|
|
399
|
+
message.tombstoneList.push(migration_1.Tombstone.decode(reader, reader.uint32()));
|
|
400
|
+
break;
|
|
401
|
+
case 47:
|
|
402
|
+
message.memberMigrationList.push(migration_1.MemberMigration.decode(reader, reader.uint32()));
|
|
403
|
+
break;
|
|
404
|
+
case 48:
|
|
405
|
+
message.memberMigrationCount = reader.uint64();
|
|
406
|
+
break;
|
|
407
|
+
case 49:
|
|
408
|
+
message.recoveryCommitmentList.push(migration_1.RecoveryCommitmentEntry.decode(reader, reader.uint32()));
|
|
409
|
+
break;
|
|
410
|
+
case 50:
|
|
411
|
+
message.recoveryCommitList.push(migration_1.RecoveryCommit.decode(reader, reader.uint32()));
|
|
412
|
+
break;
|
|
377
413
|
default:
|
|
378
414
|
reader.skipType(tag & 7);
|
|
379
415
|
break;
|
|
@@ -428,6 +464,11 @@ exports.GenesisState = {
|
|
|
428
464
|
message.economicState = object.economicState !== undefined && object.economicState !== null ? exports.EconomicState.fromPartial(object.economicState) : undefined;
|
|
429
465
|
message.giftRecordList = object.giftRecordList?.map(e => exports.GiftRecordEntry.fromPartial(e)) || [];
|
|
430
466
|
message.initiativeBountyList = object.initiativeBountyList?.map(e => initiative_bounty_1.InitiativeBounty.fromPartial(e)) || [];
|
|
467
|
+
message.tombstoneList = object.tombstoneList?.map(e => migration_1.Tombstone.fromPartial(e)) || [];
|
|
468
|
+
message.memberMigrationList = object.memberMigrationList?.map(e => migration_1.MemberMigration.fromPartial(e)) || [];
|
|
469
|
+
message.memberMigrationCount = object.memberMigrationCount !== undefined && object.memberMigrationCount !== null ? BigInt(object.memberMigrationCount.toString()) : BigInt(0);
|
|
470
|
+
message.recoveryCommitmentList = object.recoveryCommitmentList?.map(e => migration_1.RecoveryCommitmentEntry.fromPartial(e)) || [];
|
|
471
|
+
message.recoveryCommitList = object.recoveryCommitList?.map(e => migration_1.RecoveryCommit.fromPartial(e)) || [];
|
|
431
472
|
return message;
|
|
432
473
|
},
|
|
433
474
|
fromAmino(object) {
|
|
@@ -505,6 +546,13 @@ exports.GenesisState = {
|
|
|
505
546
|
}
|
|
506
547
|
message.giftRecordList = object.gift_record_list?.map(e => exports.GiftRecordEntry.fromAmino(e)) || [];
|
|
507
548
|
message.initiativeBountyList = object.initiative_bounty_list?.map(e => initiative_bounty_1.InitiativeBounty.fromAmino(e)) || [];
|
|
549
|
+
message.tombstoneList = object.tombstone_list?.map(e => migration_1.Tombstone.fromAmino(e)) || [];
|
|
550
|
+
message.memberMigrationList = object.member_migration_list?.map(e => migration_1.MemberMigration.fromAmino(e)) || [];
|
|
551
|
+
if (object.member_migration_count !== undefined && object.member_migration_count !== null) {
|
|
552
|
+
message.memberMigrationCount = BigInt(object.member_migration_count);
|
|
553
|
+
}
|
|
554
|
+
message.recoveryCommitmentList = object.recovery_commitment_list?.map(e => migration_1.RecoveryCommitmentEntry.fromAmino(e)) || [];
|
|
555
|
+
message.recoveryCommitList = object.recovery_commit_list?.map(e => migration_1.RecoveryCommit.fromAmino(e)) || [];
|
|
508
556
|
return message;
|
|
509
557
|
},
|
|
510
558
|
toAmino(message) {
|
|
@@ -709,6 +757,31 @@ exports.GenesisState = {
|
|
|
709
757
|
else {
|
|
710
758
|
obj.initiative_bounty_list = message.initiativeBountyList;
|
|
711
759
|
}
|
|
760
|
+
if (message.tombstoneList) {
|
|
761
|
+
obj.tombstone_list = message.tombstoneList.map(e => e ? migration_1.Tombstone.toAmino(e) : undefined);
|
|
762
|
+
}
|
|
763
|
+
else {
|
|
764
|
+
obj.tombstone_list = message.tombstoneList;
|
|
765
|
+
}
|
|
766
|
+
if (message.memberMigrationList) {
|
|
767
|
+
obj.member_migration_list = message.memberMigrationList.map(e => e ? migration_1.MemberMigration.toAmino(e) : undefined);
|
|
768
|
+
}
|
|
769
|
+
else {
|
|
770
|
+
obj.member_migration_list = message.memberMigrationList;
|
|
771
|
+
}
|
|
772
|
+
obj.member_migration_count = message.memberMigrationCount !== BigInt(0) ? message.memberMigrationCount?.toString() : undefined;
|
|
773
|
+
if (message.recoveryCommitmentList) {
|
|
774
|
+
obj.recovery_commitment_list = message.recoveryCommitmentList.map(e => e ? migration_1.RecoveryCommitmentEntry.toAmino(e) : undefined);
|
|
775
|
+
}
|
|
776
|
+
else {
|
|
777
|
+
obj.recovery_commitment_list = message.recoveryCommitmentList;
|
|
778
|
+
}
|
|
779
|
+
if (message.recoveryCommitList) {
|
|
780
|
+
obj.recovery_commit_list = message.recoveryCommitList.map(e => e ? migration_1.RecoveryCommit.toAmino(e) : undefined);
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
obj.recovery_commit_list = message.recoveryCommitList;
|
|
784
|
+
}
|
|
712
785
|
return obj;
|
|
713
786
|
},
|
|
714
787
|
fromAminoMsg(object) {
|
|
@@ -327,6 +327,52 @@ export interface Member {
|
|
|
327
327
|
* joined_at / joined_at_height.
|
|
328
328
|
*/
|
|
329
329
|
contentLicense: string;
|
|
330
|
+
/**
|
|
331
|
+
* key_migration_times are the finalization times of the KEY-path
|
|
332
|
+
* migrations still inside key_migration_window, oldest first. At most
|
|
333
|
+
* max_key_migrations_per_window entries; older ones are dropped when the
|
|
334
|
+
* next is recorded. Travels with the record, so a migration cannot reset
|
|
335
|
+
* the rolling-window cap.
|
|
336
|
+
*/
|
|
337
|
+
keyMigrationTimes: bigint[];
|
|
338
|
+
/**
|
|
339
|
+
* last_migrated_at is the finalization time of the most recent migration
|
|
340
|
+
* into this address, on any path. The KEY-path cooldown counts from it.
|
|
341
|
+
*/
|
|
342
|
+
lastMigratedAt: bigint;
|
|
343
|
+
/**
|
|
344
|
+
* ZK key change discipline (member-key-migration plan, section 9). A
|
|
345
|
+
* change of an existing zk_public_key does not take effect at once: the
|
|
346
|
+
* old leaf is zeroed immediately and the new key waits in
|
|
347
|
+
* pending_zk_public_key until zk_key_activates_at_epoch, so an old-key
|
|
348
|
+
* action and a new-key action can never land on the same target. First
|
|
349
|
+
* registration is immediate.
|
|
350
|
+
*/
|
|
351
|
+
pendingZkPublicKey: Uint8Array;
|
|
352
|
+
zkKeyActivatesAtEpoch: bigint;
|
|
353
|
+
/**
|
|
354
|
+
* last_zk_key_change_season / zk_key_changed implement the once-per-season
|
|
355
|
+
* change cooldown: a change is refused while zk_key_changed is true and
|
|
356
|
+
* last_zk_key_change_season equals the current season.
|
|
357
|
+
*/
|
|
358
|
+
lastZkKeyChangeSeason: bigint;
|
|
359
|
+
zkKeyChanged: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* zk_key_cooldown_exempt is set when a RECOVERY or COUNCIL migration
|
|
362
|
+
* cleared the key at finalization. The next registration still waits out
|
|
363
|
+
* the activation delay but is exempt from the season cooldown, so a
|
|
364
|
+
* recovery never leaves a member without anonymous access for the rest of
|
|
365
|
+
* the season. Consumed by that registration.
|
|
366
|
+
*/
|
|
367
|
+
zkKeyCooldownExempt: boolean;
|
|
368
|
+
/**
|
|
369
|
+
* zk_key_cleared is set by MsgClearZkPublicKey (leaked shield secret). While
|
|
370
|
+
* set, MsgRegisterZkPublicKey never takes the immediate first-registration
|
|
371
|
+
* path: the new key waits out zk_key_activation_delay and the once-per-season
|
|
372
|
+
* change cap still applies, so clear-then-register cannot become a free key
|
|
373
|
+
* swap. Cleared when a key activates.
|
|
374
|
+
*/
|
|
375
|
+
zkKeyCleared: boolean;
|
|
330
376
|
}
|
|
331
377
|
export interface MemberProtoMsg {
|
|
332
378
|
typeUrl: "/sparkdream.rep.v1.Member";
|
|
@@ -509,6 +555,52 @@ export interface MemberAmino {
|
|
|
509
555
|
* joined_at / joined_at_height.
|
|
510
556
|
*/
|
|
511
557
|
content_license?: string;
|
|
558
|
+
/**
|
|
559
|
+
* key_migration_times are the finalization times of the KEY-path
|
|
560
|
+
* migrations still inside key_migration_window, oldest first. At most
|
|
561
|
+
* max_key_migrations_per_window entries; older ones are dropped when the
|
|
562
|
+
* next is recorded. Travels with the record, so a migration cannot reset
|
|
563
|
+
* the rolling-window cap.
|
|
564
|
+
*/
|
|
565
|
+
key_migration_times?: string[];
|
|
566
|
+
/**
|
|
567
|
+
* last_migrated_at is the finalization time of the most recent migration
|
|
568
|
+
* into this address, on any path. The KEY-path cooldown counts from it.
|
|
569
|
+
*/
|
|
570
|
+
last_migrated_at?: string;
|
|
571
|
+
/**
|
|
572
|
+
* ZK key change discipline (member-key-migration plan, section 9). A
|
|
573
|
+
* change of an existing zk_public_key does not take effect at once: the
|
|
574
|
+
* old leaf is zeroed immediately and the new key waits in
|
|
575
|
+
* pending_zk_public_key until zk_key_activates_at_epoch, so an old-key
|
|
576
|
+
* action and a new-key action can never land on the same target. First
|
|
577
|
+
* registration is immediate.
|
|
578
|
+
*/
|
|
579
|
+
pending_zk_public_key?: string;
|
|
580
|
+
zk_key_activates_at_epoch?: string;
|
|
581
|
+
/**
|
|
582
|
+
* last_zk_key_change_season / zk_key_changed implement the once-per-season
|
|
583
|
+
* change cooldown: a change is refused while zk_key_changed is true and
|
|
584
|
+
* last_zk_key_change_season equals the current season.
|
|
585
|
+
*/
|
|
586
|
+
last_zk_key_change_season?: string;
|
|
587
|
+
zk_key_changed?: boolean;
|
|
588
|
+
/**
|
|
589
|
+
* zk_key_cooldown_exempt is set when a RECOVERY or COUNCIL migration
|
|
590
|
+
* cleared the key at finalization. The next registration still waits out
|
|
591
|
+
* the activation delay but is exempt from the season cooldown, so a
|
|
592
|
+
* recovery never leaves a member without anonymous access for the rest of
|
|
593
|
+
* the season. Consumed by that registration.
|
|
594
|
+
*/
|
|
595
|
+
zk_key_cooldown_exempt?: boolean;
|
|
596
|
+
/**
|
|
597
|
+
* zk_key_cleared is set by MsgClearZkPublicKey (leaked shield secret). While
|
|
598
|
+
* set, MsgRegisterZkPublicKey never takes the immediate first-registration
|
|
599
|
+
* path: the new key waits out zk_key_activation_delay and the once-per-season
|
|
600
|
+
* change cap still applies, so clear-then-register cannot become a free key
|
|
601
|
+
* swap. Cleared when a key activates.
|
|
602
|
+
*/
|
|
603
|
+
zk_key_cleared?: boolean;
|
|
512
604
|
}
|
|
513
605
|
export interface MemberAminoMsg {
|
|
514
606
|
type: "/sparkdream.rep.v1.Member";
|