@sparkdreamnft/sparkdreamjs 0.0.43 → 0.0.45
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/sparkdream/artifact/module/v1/module.js +71 -0
- package/esm/sparkdream/artifact/v1/genesis.js +279 -0
- package/esm/sparkdream/artifact/v1/params.js +645 -0
- package/esm/sparkdream/artifact/v1/query.js +3415 -0
- package/esm/sparkdream/artifact/v1/query.lcd.js +159 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +188 -0
- package/esm/sparkdream/artifact/v1/tx.amino.js +159 -0
- package/esm/sparkdream/artifact/v1/tx.js +5751 -0
- package/esm/sparkdream/artifact/v1/tx.registry.js +573 -0
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +199 -0
- package/esm/sparkdream/artifact/v1/types.js +2603 -0
- package/esm/sparkdream/blog/v1/params.js +37 -1
- package/esm/sparkdream/blog/v1/post.js +38 -1
- package/esm/sparkdream/blog/v1/query.js +351 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +12 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/blog/v1/types.js +38 -1
- package/esm/sparkdream/bundle.js +521 -483
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/params.js +102 -126
- package/esm/sparkdream/collect/v1/types.js +207 -123
- package/esm/sparkdream/common/v1/media_flag.js +63 -0
- package/esm/sparkdream/common/v1/moderation_reason.js +1 -1
- package/esm/sparkdream/commons/v1/query.js +27 -3
- package/esm/sparkdream/federation/v1/packet.js +13 -1
- package/esm/sparkdream/federation/v1/query.js +163 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +7 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/federation/v1/tx.js +13 -1
- package/esm/sparkdream/federation/v1/types.js +37 -1
- package/esm/sparkdream/forum/v1/params.js +37 -1
- package/esm/sparkdream/forum/v1/post.js +38 -1
- package/esm/sparkdream/forum/v1/query.js +176 -0
- package/esm/sparkdream/forum/v1/query.lcd.js +7 -0
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/name/v1/genesis.js +32 -2
- package/esm/sparkdream/rep/v1/accountability.js +22 -0
- package/esm/sparkdream/rep/v1/genesis.js +18 -2
- package/esm/sparkdream/rep/v1/initiative_bounty.js +200 -0
- package/esm/sparkdream/rep/v1/member.js +97 -35
- package/esm/sparkdream/rep/v1/params.js +198 -66
- package/esm/sparkdream/rep/v1/query.js +530 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +26 -1
- package/esm/sparkdream/rep/v1/tx.js +499 -7
- package/esm/sparkdream/rep/v1/tx.registry.js +56 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +21 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/tx.js +33 -2
- package/esm/sparkdream/service/v1/checkpoint.js +125 -0
- package/esm/sparkdream/service/v1/genesis.js +17 -1
- package/esm/sparkdream/service/v1/operator.js +25 -1
- package/esm/sparkdream/service/v1/query.js +317 -0
- package/esm/sparkdream/service/v1/query.lcd.js +18 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/service/v1/service_type_config.js +37 -1
- package/esm/sparkdream/service/v1/tx.amino.js +11 -1
- package/esm/sparkdream/service/v1/tx.js +332 -0
- package/esm/sparkdream/service/v1/tx.registry.js +38 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +20 -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 +15 -3
- 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 +25 -1
- package/esm/sparkdream/shield/v1/query.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +480 -16
- package/esm/sparkdream/sparkdream/v1/query.js +176 -0
- package/esm/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/esm/sparkdream/sparkdream/v1/query.rpc.Query.js +14 -1
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/module/v1/module.d.ts +54 -0
- package/sparkdream/artifact/module/v1/module.js +74 -0
- package/sparkdream/artifact/v1/genesis.d.ts +88 -0
- package/sparkdream/artifact/v1/genesis.js +282 -0
- package/sparkdream/artifact/v1/params.d.ts +251 -0
- package/sparkdream/artifact/v1/params.js +648 -0
- package/sparkdream/artifact/v1/query.d.ts +1986 -0
- package/sparkdream/artifact/v1/query.js +3418 -0
- package/sparkdream/artifact/v1/query.lcd.d.ts +27 -0
- package/sparkdream/artifact/v1/query.lcd.js +163 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +88 -0
- package/sparkdream/artifact/v1/query.rpc.Query.js +193 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +158 -0
- package/sparkdream/artifact/v1/tx.amino.js +162 -0
- package/sparkdream/artifact/v1/tx.d.ts +3268 -0
- package/sparkdream/artifact/v1/tx.js +5755 -0
- package/sparkdream/artifact/v1/tx.registry.d.ts +385 -0
- package/sparkdream/artifact/v1/tx.registry.js +577 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +109 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.js +204 -0
- package/sparkdream/artifact/v1/types.d.ts +1157 -0
- package/sparkdream/artifact/v1/types.js +2620 -0
- package/sparkdream/blog/v1/params.d.ts +46 -0
- package/sparkdream/blog/v1/params.js +37 -1
- package/sparkdream/blog/v1/post.d.ts +24 -0
- package/sparkdream/blog/v1/post.js +38 -1
- package/sparkdream/blog/v1/query.d.ts +195 -0
- package/sparkdream/blog/v1/query.js +352 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +3 -1
- package/sparkdream/blog/v1/query.lcd.js +12 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +20 -0
- package/sparkdream/blog/v1/types.d.ts +24 -0
- package/sparkdream/blog/v1/types.js +38 -1
- package/sparkdream/bundle.d.ts +20666 -17863
- package/sparkdream/bundle.js +521 -483
- package/sparkdream/client.d.ts +165 -0
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/params.d.ts +0 -4
- package/sparkdream/collect/v1/params.js +102 -126
- package/sparkdream/collect/v1/types.d.ts +80 -4
- package/sparkdream/collect/v1/types.js +207 -123
- package/sparkdream/common/v1/media_flag.d.ts +23 -0
- package/sparkdream/common/v1/media_flag.js +68 -0
- package/sparkdream/common/v1/moderation_reason.d.ts +1 -1
- package/sparkdream/common/v1/moderation_reason.js +1 -1
- package/sparkdream/commons/v1/query.d.ts +19 -1
- package/sparkdream/commons/v1/query.js +26 -2
- package/sparkdream/federation/v1/packet.d.ts +14 -0
- package/sparkdream/federation/v1/packet.js +13 -1
- package/sparkdream/federation/v1/query.d.ts +92 -0
- package/sparkdream/federation/v1/query.js +164 -1
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +7 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/federation/v1/query.rpc.Query.js +11 -0
- package/sparkdream/federation/v1/tx.d.ts +18 -0
- package/sparkdream/federation/v1/tx.js +13 -1
- package/sparkdream/federation/v1/types.d.ts +34 -0
- package/sparkdream/federation/v1/types.js +37 -1
- package/sparkdream/forum/v1/params.d.ts +46 -0
- package/sparkdream/forum/v1/params.js +37 -1
- package/sparkdream/forum/v1/post.d.ts +30 -0
- package/sparkdream/forum/v1/post.js +38 -1
- package/sparkdream/forum/v1/query.d.ts +98 -0
- package/sparkdream/forum/v1/query.js +177 -1
- package/sparkdream/forum/v1/query.lcd.d.ts +2 -1
- package/sparkdream/forum/v1/query.lcd.js +7 -0
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/forum/v1/query.rpc.Query.js +11 -0
- 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/accountability.d.ts +12 -0
- package/sparkdream/rep/v1/accountability.js +22 -0
- package/sparkdream/rep/v1/genesis.d.ts +18 -7
- package/sparkdream/rep/v1/genesis.js +18 -2
- package/sparkdream/rep/v1/initiative_bounty.d.ts +143 -0
- package/sparkdream/rep/v1/initiative_bounty.js +203 -0
- package/sparkdream/rep/v1/member.d.ts +82 -28
- package/sparkdream/rep/v1/member.js +97 -35
- package/sparkdream/rep/v1/params.d.ts +144 -28
- package/sparkdream/rep/v1/params.js +198 -66
- package/sparkdream/rep/v1/query.d.ts +315 -10
- package/sparkdream/rep/v1/query.js +531 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +23 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +18 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +25 -0
- package/sparkdream/rep/v1/tx.d.ts +338 -1
- package/sparkdream/rep/v1/tx.js +500 -8
- package/sparkdream/rep/v1/tx.registry.d.ts +37 -1
- package/sparkdream/rep/v1/tx.registry.js +55 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +14 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +20 -0
- package/sparkdream/rpc.query.d.ts +32 -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.d.ts +19 -0
- package/sparkdream/season/v1/tx.js +33 -2
- package/sparkdream/service/v1/checkpoint.d.ts +93 -0
- package/sparkdream/service/v1/checkpoint.js +128 -0
- package/sparkdream/service/v1/genesis.d.ts +15 -0
- package/sparkdream/service/v1/genesis.js +17 -1
- package/sparkdream/service/v1/operator.d.ts +30 -0
- package/sparkdream/service/v1/operator.js +25 -1
- package/sparkdream/service/v1/query.d.ts +186 -0
- package/sparkdream/service/v1/query.js +318 -1
- package/sparkdream/service/v1/query.lcd.d.ts +3 -1
- package/sparkdream/service/v1/query.lcd.js +18 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/service/v1/query.rpc.Query.js +20 -0
- package/sparkdream/service/v1/service_type_config.d.ts +48 -0
- package/sparkdream/service/v1/service_type_config.js +37 -1
- package/sparkdream/service/v1/tx.amino.d.ts +11 -1
- package/sparkdream/service/v1/tx.amino.js +10 -0
- package/sparkdream/service/v1/tx.d.ts +216 -0
- package/sparkdream/service/v1/tx.js +333 -1
- package/sparkdream/service/v1/tx.registry.d.ts +25 -1
- package/sparkdream/service/v1/tx.registry.js +37 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +18 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +19 -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 +6 -4
- package/sparkdream/session/v1/tx.js +14 -2
- 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 +32 -4
- package/sparkdream/shield/v1/params.js +25 -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 +337 -13
- package/sparkdream/shield/v1/types.js +483 -17
- package/sparkdream/sparkdream/v1/query.d.ts +132 -0
- package/sparkdream/sparkdream/v1/query.js +177 -1
- package/sparkdream/sparkdream/v1/query.lcd.d.ts +2 -1
- package/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/sparkdream/sparkdream/v1/query.rpc.Query.d.ts +11 -1
- package/sparkdream/sparkdream/v1/query.rpc.Query.js +13 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -21,6 +21,7 @@ import { BondedRole, BondedRoleAmino, BondedRoleConfig, BondedRoleConfigAmino }
|
|
|
21
21
|
import { RoleActivity, RoleActivityAmino } from "./role_activity";
|
|
22
22
|
import { InitiativeReview, InitiativeReviewAmino } from "./initiative_review";
|
|
23
23
|
import { ReviewBounty, ReviewBountyAmino } from "./review_bounty";
|
|
24
|
+
import { InitiativeBounty, InitiativeBountyAmino } from "./initiative_bounty";
|
|
24
25
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
25
26
|
import { DeepPartial } from "../../../helpers";
|
|
26
27
|
/**
|
|
@@ -129,10 +130,15 @@ export interface GenesisState {
|
|
|
129
130
|
*/
|
|
130
131
|
economicState?: EconomicState;
|
|
131
132
|
/**
|
|
132
|
-
* Per-
|
|
133
|
-
* re-
|
|
133
|
+
* Per-(sender, invitee) lifetime gift ledgers. Not exporting them would
|
|
134
|
+
* re-open every invitee's lifetime gift allowance across a restart.
|
|
134
135
|
*/
|
|
135
136
|
giftRecordList: GiftRecordEntry[];
|
|
137
|
+
/**
|
|
138
|
+
* Initiative bounties are a lock on each funder's DREAM; dropping them on
|
|
139
|
+
* import would strand the escrow with nothing able to pay or refund it.
|
|
140
|
+
*/
|
|
141
|
+
initiativeBountyList: InitiativeBounty[];
|
|
136
142
|
}
|
|
137
143
|
export interface GenesisStateProtoMsg {
|
|
138
144
|
typeUrl: "/sparkdream.rep.v1.GenesisState";
|
|
@@ -244,10 +250,15 @@ export interface GenesisStateAmino {
|
|
|
244
250
|
*/
|
|
245
251
|
economic_state?: EconomicStateAmino;
|
|
246
252
|
/**
|
|
247
|
-
* Per-
|
|
248
|
-
* re-
|
|
253
|
+
* Per-(sender, invitee) lifetime gift ledgers. Not exporting them would
|
|
254
|
+
* re-open every invitee's lifetime gift allowance across a restart.
|
|
249
255
|
*/
|
|
250
256
|
gift_record_list?: GiftRecordEntryAmino[];
|
|
257
|
+
/**
|
|
258
|
+
* Initiative bounties are a lock on each funder's DREAM; dropping them on
|
|
259
|
+
* import would strand the escrow with nothing able to pay or refund it.
|
|
260
|
+
*/
|
|
261
|
+
initiative_bounty_list?: InitiativeBountyAmino[];
|
|
251
262
|
}
|
|
252
263
|
export interface GenesisStateAminoMsg {
|
|
253
264
|
type: "/sparkdream.rep.v1.GenesisState";
|
|
@@ -322,7 +333,7 @@ export interface EconomicStateAminoMsg {
|
|
|
322
333
|
value: EconomicStateAmino;
|
|
323
334
|
}
|
|
324
335
|
/**
|
|
325
|
-
* GiftRecordEntry is one (sender, recipient) gift
|
|
336
|
+
* GiftRecordEntry is one (sender, recipient) lifetime gift ledger, flattened
|
|
326
337
|
* for genesis because the live collection is keyed by the pair.
|
|
327
338
|
* @name GiftRecordEntry
|
|
328
339
|
* @package sparkdream.rep.v1
|
|
@@ -338,7 +349,7 @@ export interface GiftRecordEntryProtoMsg {
|
|
|
338
349
|
value: Uint8Array;
|
|
339
350
|
}
|
|
340
351
|
/**
|
|
341
|
-
* GiftRecordEntry is one (sender, recipient) gift
|
|
352
|
+
* GiftRecordEntry is one (sender, recipient) lifetime gift ledger, flattened
|
|
342
353
|
* for genesis because the live collection is keyed by the pair.
|
|
343
354
|
* @name GiftRecordEntryAmino
|
|
344
355
|
* @package sparkdream.rep.v1
|
|
@@ -466,7 +477,7 @@ export declare const EconomicState: {
|
|
|
466
477
|
toProtoMsg(message: EconomicState): EconomicStateProtoMsg;
|
|
467
478
|
};
|
|
468
479
|
/**
|
|
469
|
-
* GiftRecordEntry is one (sender, recipient) gift
|
|
480
|
+
* GiftRecordEntry is one (sender, recipient) lifetime gift ledger, flattened
|
|
470
481
|
* for genesis because the live collection is keyed by the pair.
|
|
471
482
|
* @name GiftRecordEntry
|
|
472
483
|
* @package sparkdream.rep.v1
|
|
@@ -25,6 +25,7 @@ const bonded_role_1 = require("./bonded_role");
|
|
|
25
25
|
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
|
+
const initiative_bounty_1 = require("./initiative_bounty");
|
|
28
29
|
const binary_1 = require("../../../binary");
|
|
29
30
|
function createBaseGenesisState() {
|
|
30
31
|
return {
|
|
@@ -71,7 +72,8 @@ function createBaseGenesisState() {
|
|
|
71
72
|
roleRewardDayFundingList: [],
|
|
72
73
|
reviewBountyList: [],
|
|
73
74
|
economicState: undefined,
|
|
74
|
-
giftRecordList: []
|
|
75
|
+
giftRecordList: [],
|
|
76
|
+
initiativeBountyList: []
|
|
75
77
|
};
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
@@ -217,6 +219,9 @@ exports.GenesisState = {
|
|
|
217
219
|
for (const v of message.giftRecordList) {
|
|
218
220
|
exports.GiftRecordEntry.encode(v, writer.uint32(354).fork()).ldelim();
|
|
219
221
|
}
|
|
222
|
+
for (const v of message.initiativeBountyList) {
|
|
223
|
+
initiative_bounty_1.InitiativeBounty.encode(v, writer.uint32(362).fork()).ldelim();
|
|
224
|
+
}
|
|
220
225
|
return writer;
|
|
221
226
|
},
|
|
222
227
|
decode(input, length) {
|
|
@@ -366,6 +371,9 @@ exports.GenesisState = {
|
|
|
366
371
|
case 44:
|
|
367
372
|
message.giftRecordList.push(exports.GiftRecordEntry.decode(reader, reader.uint32()));
|
|
368
373
|
break;
|
|
374
|
+
case 45:
|
|
375
|
+
message.initiativeBountyList.push(initiative_bounty_1.InitiativeBounty.decode(reader, reader.uint32()));
|
|
376
|
+
break;
|
|
369
377
|
default:
|
|
370
378
|
reader.skipType(tag & 7);
|
|
371
379
|
break;
|
|
@@ -419,6 +427,7 @@ exports.GenesisState = {
|
|
|
419
427
|
message.reviewBountyList = object.reviewBountyList?.map(e => review_bounty_1.ReviewBounty.fromPartial(e)) || [];
|
|
420
428
|
message.economicState = object.economicState !== undefined && object.economicState !== null ? exports.EconomicState.fromPartial(object.economicState) : undefined;
|
|
421
429
|
message.giftRecordList = object.giftRecordList?.map(e => exports.GiftRecordEntry.fromPartial(e)) || [];
|
|
430
|
+
message.initiativeBountyList = object.initiativeBountyList?.map(e => initiative_bounty_1.InitiativeBounty.fromPartial(e)) || [];
|
|
422
431
|
return message;
|
|
423
432
|
},
|
|
424
433
|
fromAmino(object) {
|
|
@@ -495,6 +504,7 @@ exports.GenesisState = {
|
|
|
495
504
|
message.economicState = exports.EconomicState.fromAmino(object.economic_state);
|
|
496
505
|
}
|
|
497
506
|
message.giftRecordList = object.gift_record_list?.map(e => exports.GiftRecordEntry.fromAmino(e)) || [];
|
|
507
|
+
message.initiativeBountyList = object.initiative_bounty_list?.map(e => initiative_bounty_1.InitiativeBounty.fromAmino(e)) || [];
|
|
498
508
|
return message;
|
|
499
509
|
},
|
|
500
510
|
toAmino(message) {
|
|
@@ -693,6 +703,12 @@ exports.GenesisState = {
|
|
|
693
703
|
else {
|
|
694
704
|
obj.gift_record_list = message.giftRecordList;
|
|
695
705
|
}
|
|
706
|
+
if (message.initiativeBountyList) {
|
|
707
|
+
obj.initiative_bounty_list = message.initiativeBountyList.map(e => e ? initiative_bounty_1.InitiativeBounty.toAmino(e) : undefined);
|
|
708
|
+
}
|
|
709
|
+
else {
|
|
710
|
+
obj.initiative_bounty_list = message.initiativeBountyList;
|
|
711
|
+
}
|
|
696
712
|
return obj;
|
|
697
713
|
},
|
|
698
714
|
fromAminoMsg(object) {
|
|
@@ -958,7 +974,7 @@ function createBaseGiftRecordEntry() {
|
|
|
958
974
|
};
|
|
959
975
|
}
|
|
960
976
|
/**
|
|
961
|
-
* GiftRecordEntry is one (sender, recipient) gift
|
|
977
|
+
* GiftRecordEntry is one (sender, recipient) lifetime gift ledger, flattened
|
|
962
978
|
* for genesis because the live collection is keyed by the pair.
|
|
963
979
|
* @name GiftRecordEntry
|
|
964
980
|
* @package sparkdream.rep.v1
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
/**
|
|
4
|
+
* InitiativeBounty is DREAM escrowed against one initiative by members who
|
|
5
|
+
* want the work done, paid to the assignee only if the initiative completes.
|
|
6
|
+
*
|
|
7
|
+
* The budget is minted; a bounty moves DREAM that already exists, so it is the
|
|
8
|
+
* non-inflationary way to signal demand. Because it is contingent on completion
|
|
9
|
+
* it is also a route for DREAM between members, which is why it is capped
|
|
10
|
+
* against the budget and per funder, barred to anyone affiliated with the work,
|
|
11
|
+
* taxed on release, and counted against the assignee's recipient-side transfer
|
|
12
|
+
* limits. Distinct from ReviewBounty, which pays reviewers per verdict filed
|
|
13
|
+
* and is never contingent on approval.
|
|
14
|
+
* @name InitiativeBounty
|
|
15
|
+
* @package sparkdream.rep.v1
|
|
16
|
+
* @see proto type: sparkdream.rep.v1.InitiativeBounty
|
|
17
|
+
*/
|
|
18
|
+
export interface InitiativeBounty {
|
|
19
|
+
initiativeId: bigint;
|
|
20
|
+
/**
|
|
21
|
+
* Total DREAM currently escrowed and unpaid.
|
|
22
|
+
*/
|
|
23
|
+
amount: string;
|
|
24
|
+
/**
|
|
25
|
+
* Per-funder contributions, so refunds return each funder's own DREAM.
|
|
26
|
+
*/
|
|
27
|
+
contributions: InitiativeBountyContribution[];
|
|
28
|
+
}
|
|
29
|
+
export interface InitiativeBountyProtoMsg {
|
|
30
|
+
typeUrl: "/sparkdream.rep.v1.InitiativeBounty";
|
|
31
|
+
value: Uint8Array;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* InitiativeBounty is DREAM escrowed against one initiative by members who
|
|
35
|
+
* want the work done, paid to the assignee only if the initiative completes.
|
|
36
|
+
*
|
|
37
|
+
* The budget is minted; a bounty moves DREAM that already exists, so it is the
|
|
38
|
+
* non-inflationary way to signal demand. Because it is contingent on completion
|
|
39
|
+
* it is also a route for DREAM between members, which is why it is capped
|
|
40
|
+
* against the budget and per funder, barred to anyone affiliated with the work,
|
|
41
|
+
* taxed on release, and counted against the assignee's recipient-side transfer
|
|
42
|
+
* limits. Distinct from ReviewBounty, which pays reviewers per verdict filed
|
|
43
|
+
* and is never contingent on approval.
|
|
44
|
+
* @name InitiativeBountyAmino
|
|
45
|
+
* @package sparkdream.rep.v1
|
|
46
|
+
* @see proto type: sparkdream.rep.v1.InitiativeBounty
|
|
47
|
+
*/
|
|
48
|
+
export interface InitiativeBountyAmino {
|
|
49
|
+
initiative_id?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Total DREAM currently escrowed and unpaid.
|
|
52
|
+
*/
|
|
53
|
+
amount?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Per-funder contributions, so refunds return each funder's own DREAM.
|
|
56
|
+
*/
|
|
57
|
+
contributions?: InitiativeBountyContributionAmino[];
|
|
58
|
+
}
|
|
59
|
+
export interface InitiativeBountyAminoMsg {
|
|
60
|
+
type: "/sparkdream.rep.v1.InitiativeBounty";
|
|
61
|
+
value: InitiativeBountyAmino;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* InitiativeBountyContribution is one funder's stake in an initiative bounty.
|
|
65
|
+
* @name InitiativeBountyContribution
|
|
66
|
+
* @package sparkdream.rep.v1
|
|
67
|
+
* @see proto type: sparkdream.rep.v1.InitiativeBountyContribution
|
|
68
|
+
*/
|
|
69
|
+
export interface InitiativeBountyContribution {
|
|
70
|
+
funder: string;
|
|
71
|
+
amount: string;
|
|
72
|
+
/**
|
|
73
|
+
* Block height, for initiative_bounty_reclaim_delay.
|
|
74
|
+
*/
|
|
75
|
+
fundedAt: bigint;
|
|
76
|
+
}
|
|
77
|
+
export interface InitiativeBountyContributionProtoMsg {
|
|
78
|
+
typeUrl: "/sparkdream.rep.v1.InitiativeBountyContribution";
|
|
79
|
+
value: Uint8Array;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* InitiativeBountyContribution is one funder's stake in an initiative bounty.
|
|
83
|
+
* @name InitiativeBountyContributionAmino
|
|
84
|
+
* @package sparkdream.rep.v1
|
|
85
|
+
* @see proto type: sparkdream.rep.v1.InitiativeBountyContribution
|
|
86
|
+
*/
|
|
87
|
+
export interface InitiativeBountyContributionAmino {
|
|
88
|
+
funder?: string;
|
|
89
|
+
amount?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Block height, for initiative_bounty_reclaim_delay.
|
|
92
|
+
*/
|
|
93
|
+
funded_at?: string;
|
|
94
|
+
}
|
|
95
|
+
export interface InitiativeBountyContributionAminoMsg {
|
|
96
|
+
type: "/sparkdream.rep.v1.InitiativeBountyContribution";
|
|
97
|
+
value: InitiativeBountyContributionAmino;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* InitiativeBounty is DREAM escrowed against one initiative by members who
|
|
101
|
+
* want the work done, paid to the assignee only if the initiative completes.
|
|
102
|
+
*
|
|
103
|
+
* The budget is minted; a bounty moves DREAM that already exists, so it is the
|
|
104
|
+
* non-inflationary way to signal demand. Because it is contingent on completion
|
|
105
|
+
* it is also a route for DREAM between members, which is why it is capped
|
|
106
|
+
* against the budget and per funder, barred to anyone affiliated with the work,
|
|
107
|
+
* taxed on release, and counted against the assignee's recipient-side transfer
|
|
108
|
+
* limits. Distinct from ReviewBounty, which pays reviewers per verdict filed
|
|
109
|
+
* and is never contingent on approval.
|
|
110
|
+
* @name InitiativeBounty
|
|
111
|
+
* @package sparkdream.rep.v1
|
|
112
|
+
* @see proto type: sparkdream.rep.v1.InitiativeBounty
|
|
113
|
+
*/
|
|
114
|
+
export declare const InitiativeBounty: {
|
|
115
|
+
typeUrl: string;
|
|
116
|
+
encode(message: InitiativeBounty, writer?: BinaryWriter): BinaryWriter;
|
|
117
|
+
decode(input: BinaryReader | Uint8Array, length?: number): InitiativeBounty;
|
|
118
|
+
fromPartial(object: DeepPartial<InitiativeBounty>): InitiativeBounty;
|
|
119
|
+
fromAmino(object: InitiativeBountyAmino): InitiativeBounty;
|
|
120
|
+
toAmino(message: InitiativeBounty): InitiativeBountyAmino;
|
|
121
|
+
fromAminoMsg(object: InitiativeBountyAminoMsg): InitiativeBounty;
|
|
122
|
+
fromProtoMsg(message: InitiativeBountyProtoMsg): InitiativeBounty;
|
|
123
|
+
toProto(message: InitiativeBounty): Uint8Array;
|
|
124
|
+
toProtoMsg(message: InitiativeBounty): InitiativeBountyProtoMsg;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* InitiativeBountyContribution is one funder's stake in an initiative bounty.
|
|
128
|
+
* @name InitiativeBountyContribution
|
|
129
|
+
* @package sparkdream.rep.v1
|
|
130
|
+
* @see proto type: sparkdream.rep.v1.InitiativeBountyContribution
|
|
131
|
+
*/
|
|
132
|
+
export declare const InitiativeBountyContribution: {
|
|
133
|
+
typeUrl: string;
|
|
134
|
+
encode(message: InitiativeBountyContribution, writer?: BinaryWriter): BinaryWriter;
|
|
135
|
+
decode(input: BinaryReader | Uint8Array, length?: number): InitiativeBountyContribution;
|
|
136
|
+
fromPartial(object: DeepPartial<InitiativeBountyContribution>): InitiativeBountyContribution;
|
|
137
|
+
fromAmino(object: InitiativeBountyContributionAmino): InitiativeBountyContribution;
|
|
138
|
+
toAmino(message: InitiativeBountyContribution): InitiativeBountyContributionAmino;
|
|
139
|
+
fromAminoMsg(object: InitiativeBountyContributionAminoMsg): InitiativeBountyContribution;
|
|
140
|
+
fromProtoMsg(message: InitiativeBountyContributionProtoMsg): InitiativeBountyContribution;
|
|
141
|
+
toProto(message: InitiativeBountyContribution): Uint8Array;
|
|
142
|
+
toProtoMsg(message: InitiativeBountyContribution): InitiativeBountyContributionProtoMsg;
|
|
143
|
+
};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitiativeBountyContribution = exports.InitiativeBounty = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const binary_1 = require("../../../binary");
|
|
6
|
+
function createBaseInitiativeBounty() {
|
|
7
|
+
return {
|
|
8
|
+
initiativeId: BigInt(0),
|
|
9
|
+
amount: "",
|
|
10
|
+
contributions: []
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* InitiativeBounty is DREAM escrowed against one initiative by members who
|
|
15
|
+
* want the work done, paid to the assignee only if the initiative completes.
|
|
16
|
+
*
|
|
17
|
+
* The budget is minted; a bounty moves DREAM that already exists, so it is the
|
|
18
|
+
* non-inflationary way to signal demand. Because it is contingent on completion
|
|
19
|
+
* it is also a route for DREAM between members, which is why it is capped
|
|
20
|
+
* against the budget and per funder, barred to anyone affiliated with the work,
|
|
21
|
+
* taxed on release, and counted against the assignee's recipient-side transfer
|
|
22
|
+
* limits. Distinct from ReviewBounty, which pays reviewers per verdict filed
|
|
23
|
+
* and is never contingent on approval.
|
|
24
|
+
* @name InitiativeBounty
|
|
25
|
+
* @package sparkdream.rep.v1
|
|
26
|
+
* @see proto type: sparkdream.rep.v1.InitiativeBounty
|
|
27
|
+
*/
|
|
28
|
+
exports.InitiativeBounty = {
|
|
29
|
+
typeUrl: "/sparkdream.rep.v1.InitiativeBounty",
|
|
30
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
31
|
+
if (message.initiativeId !== BigInt(0)) {
|
|
32
|
+
writer.uint32(8).uint64(message.initiativeId);
|
|
33
|
+
}
|
|
34
|
+
if (message.amount !== "") {
|
|
35
|
+
writer.uint32(18).string(message.amount);
|
|
36
|
+
}
|
|
37
|
+
for (const v of message.contributions) {
|
|
38
|
+
exports.InitiativeBountyContribution.encode(v, writer.uint32(26).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
return writer;
|
|
41
|
+
},
|
|
42
|
+
decode(input, length) {
|
|
43
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
44
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
45
|
+
const message = createBaseInitiativeBounty();
|
|
46
|
+
while (reader.pos < end) {
|
|
47
|
+
const tag = reader.uint32();
|
|
48
|
+
switch (tag >>> 3) {
|
|
49
|
+
case 1:
|
|
50
|
+
message.initiativeId = reader.uint64();
|
|
51
|
+
break;
|
|
52
|
+
case 2:
|
|
53
|
+
message.amount = reader.string();
|
|
54
|
+
break;
|
|
55
|
+
case 3:
|
|
56
|
+
message.contributions.push(exports.InitiativeBountyContribution.decode(reader, reader.uint32()));
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
reader.skipType(tag & 7);
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
fromPartial(object) {
|
|
66
|
+
const message = createBaseInitiativeBounty();
|
|
67
|
+
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
68
|
+
message.amount = object.amount ?? "";
|
|
69
|
+
message.contributions = object.contributions?.map(e => exports.InitiativeBountyContribution.fromPartial(e)) || [];
|
|
70
|
+
return message;
|
|
71
|
+
},
|
|
72
|
+
fromAmino(object) {
|
|
73
|
+
const message = createBaseInitiativeBounty();
|
|
74
|
+
if (object.initiative_id !== undefined && object.initiative_id !== null) {
|
|
75
|
+
message.initiativeId = BigInt(object.initiative_id);
|
|
76
|
+
}
|
|
77
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
78
|
+
message.amount = object.amount;
|
|
79
|
+
}
|
|
80
|
+
message.contributions = object.contributions?.map(e => exports.InitiativeBountyContribution.fromAmino(e)) || [];
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
toAmino(message) {
|
|
84
|
+
const obj = {};
|
|
85
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
86
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
87
|
+
if (message.contributions) {
|
|
88
|
+
obj.contributions = message.contributions.map(e => e ? exports.InitiativeBountyContribution.toAmino(e) : undefined);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
obj.contributions = message.contributions;
|
|
92
|
+
}
|
|
93
|
+
return obj;
|
|
94
|
+
},
|
|
95
|
+
fromAminoMsg(object) {
|
|
96
|
+
return exports.InitiativeBounty.fromAmino(object.value);
|
|
97
|
+
},
|
|
98
|
+
fromProtoMsg(message) {
|
|
99
|
+
return exports.InitiativeBounty.decode(message.value);
|
|
100
|
+
},
|
|
101
|
+
toProto(message) {
|
|
102
|
+
return exports.InitiativeBounty.encode(message).finish();
|
|
103
|
+
},
|
|
104
|
+
toProtoMsg(message) {
|
|
105
|
+
return {
|
|
106
|
+
typeUrl: "/sparkdream.rep.v1.InitiativeBounty",
|
|
107
|
+
value: exports.InitiativeBounty.encode(message).finish()
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
function createBaseInitiativeBountyContribution() {
|
|
112
|
+
return {
|
|
113
|
+
funder: "",
|
|
114
|
+
amount: "",
|
|
115
|
+
fundedAt: BigInt(0)
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* InitiativeBountyContribution is one funder's stake in an initiative bounty.
|
|
120
|
+
* @name InitiativeBountyContribution
|
|
121
|
+
* @package sparkdream.rep.v1
|
|
122
|
+
* @see proto type: sparkdream.rep.v1.InitiativeBountyContribution
|
|
123
|
+
*/
|
|
124
|
+
exports.InitiativeBountyContribution = {
|
|
125
|
+
typeUrl: "/sparkdream.rep.v1.InitiativeBountyContribution",
|
|
126
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
127
|
+
if (message.funder !== "") {
|
|
128
|
+
writer.uint32(10).string(message.funder);
|
|
129
|
+
}
|
|
130
|
+
if (message.amount !== "") {
|
|
131
|
+
writer.uint32(18).string(message.amount);
|
|
132
|
+
}
|
|
133
|
+
if (message.fundedAt !== BigInt(0)) {
|
|
134
|
+
writer.uint32(24).int64(message.fundedAt);
|
|
135
|
+
}
|
|
136
|
+
return writer;
|
|
137
|
+
},
|
|
138
|
+
decode(input, length) {
|
|
139
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
140
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
141
|
+
const message = createBaseInitiativeBountyContribution();
|
|
142
|
+
while (reader.pos < end) {
|
|
143
|
+
const tag = reader.uint32();
|
|
144
|
+
switch (tag >>> 3) {
|
|
145
|
+
case 1:
|
|
146
|
+
message.funder = reader.string();
|
|
147
|
+
break;
|
|
148
|
+
case 2:
|
|
149
|
+
message.amount = reader.string();
|
|
150
|
+
break;
|
|
151
|
+
case 3:
|
|
152
|
+
message.fundedAt = reader.int64();
|
|
153
|
+
break;
|
|
154
|
+
default:
|
|
155
|
+
reader.skipType(tag & 7);
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return message;
|
|
160
|
+
},
|
|
161
|
+
fromPartial(object) {
|
|
162
|
+
const message = createBaseInitiativeBountyContribution();
|
|
163
|
+
message.funder = object.funder ?? "";
|
|
164
|
+
message.amount = object.amount ?? "";
|
|
165
|
+
message.fundedAt = object.fundedAt !== undefined && object.fundedAt !== null ? BigInt(object.fundedAt.toString()) : BigInt(0);
|
|
166
|
+
return message;
|
|
167
|
+
},
|
|
168
|
+
fromAmino(object) {
|
|
169
|
+
const message = createBaseInitiativeBountyContribution();
|
|
170
|
+
if (object.funder !== undefined && object.funder !== null) {
|
|
171
|
+
message.funder = object.funder;
|
|
172
|
+
}
|
|
173
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
174
|
+
message.amount = object.amount;
|
|
175
|
+
}
|
|
176
|
+
if (object.funded_at !== undefined && object.funded_at !== null) {
|
|
177
|
+
message.fundedAt = BigInt(object.funded_at);
|
|
178
|
+
}
|
|
179
|
+
return message;
|
|
180
|
+
},
|
|
181
|
+
toAmino(message) {
|
|
182
|
+
const obj = {};
|
|
183
|
+
obj.funder = message.funder === "" ? undefined : message.funder;
|
|
184
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
185
|
+
obj.funded_at = message.fundedAt !== BigInt(0) ? message.fundedAt?.toString() : undefined;
|
|
186
|
+
return obj;
|
|
187
|
+
},
|
|
188
|
+
fromAminoMsg(object) {
|
|
189
|
+
return exports.InitiativeBountyContribution.fromAmino(object.value);
|
|
190
|
+
},
|
|
191
|
+
fromProtoMsg(message) {
|
|
192
|
+
return exports.InitiativeBountyContribution.decode(message.value);
|
|
193
|
+
},
|
|
194
|
+
toProto(message) {
|
|
195
|
+
return exports.InitiativeBountyContribution.encode(message).finish();
|
|
196
|
+
},
|
|
197
|
+
toProtoMsg(message) {
|
|
198
|
+
return {
|
|
199
|
+
typeUrl: "/sparkdream.rep.v1.InitiativeBountyContribution",
|
|
200
|
+
value: exports.InitiativeBountyContribution.encode(message).finish()
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
};
|
|
@@ -200,7 +200,11 @@ export interface Member {
|
|
|
200
200
|
zeroedAt: bigint;
|
|
201
201
|
zeroedCount: number;
|
|
202
202
|
lastDecayEpoch: bigint;
|
|
203
|
-
|
|
203
|
+
/**
|
|
204
|
+
* DREAM tipped this epoch (amount, not count), reset lazily when
|
|
205
|
+
* last_tip_epoch falls behind. Nil on records written before it existed.
|
|
206
|
+
*/
|
|
207
|
+
tipsSentThisEpoch: string;
|
|
204
208
|
lastTipEpoch: bigint;
|
|
205
209
|
/**
|
|
206
210
|
* Cached counts for performance (avoid full table scans)
|
|
@@ -211,13 +215,14 @@ export interface Member {
|
|
|
211
215
|
*/
|
|
212
216
|
completedInitiativesCount: number;
|
|
213
217
|
/**
|
|
214
|
-
*
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
*
|
|
218
|
+
* DREAM received through member-to-member transfers (tips and initiative
|
|
219
|
+
* bounty payouts) in the current epoch, bounded by
|
|
220
|
+
* max_transfer_received_per_epoch. The binding transfer limit sits on the
|
|
221
|
+
* recipient: a buyer can collect from any number of senders, so only a cap
|
|
222
|
+
* on what one account takes in bounds how fast a position can be bought.
|
|
219
223
|
*/
|
|
220
|
-
|
|
224
|
+
transferReceivedThisEpoch: string;
|
|
225
|
+
lastTransferReceivedEpoch: bigint;
|
|
221
226
|
/**
|
|
222
227
|
* Invitation credit tracking for lazy seasonal reset
|
|
223
228
|
*/
|
|
@@ -300,6 +305,28 @@ export interface Member {
|
|
|
300
305
|
* readers must treat nil as zero.
|
|
301
306
|
*/
|
|
302
307
|
contentStakedDream: string;
|
|
308
|
+
/**
|
|
309
|
+
* Season-scale counterpart of transfer_received_this_epoch, bounded by
|
|
310
|
+
* max_transfer_received_per_season.
|
|
311
|
+
*/
|
|
312
|
+
transferReceivedThisSeason: string;
|
|
313
|
+
lastTransferReceivedSeason: bigint;
|
|
314
|
+
/**
|
|
315
|
+
* DREAM this member escrowed into initiative bounties this epoch, bounded by
|
|
316
|
+
* max_initiative_bounty_per_funder_epoch.
|
|
317
|
+
*/
|
|
318
|
+
initiativeBountyFundedThisEpoch: string;
|
|
319
|
+
lastInitiativeBountyEpoch: bigint;
|
|
320
|
+
/**
|
|
321
|
+
* The content license this member agreed to publish under
|
|
322
|
+
* (docs/content-license.md). Set from MsgAcceptInvitation's signed
|
|
323
|
+
* accepted_content_license, or for genesis members from the genesis file,
|
|
324
|
+
* where GenesisState.Validate requires it. Never changed afterwards: a CC0
|
|
325
|
+
* dedication cannot be revoked, so zeroing and status changes leave it
|
|
326
|
+
* alone. An address joins only once, so the agreement was made at
|
|
327
|
+
* joined_at / joined_at_height.
|
|
328
|
+
*/
|
|
329
|
+
contentLicense: string;
|
|
303
330
|
}
|
|
304
331
|
export interface MemberProtoMsg {
|
|
305
332
|
typeUrl: "/sparkdream.rep.v1.Member";
|
|
@@ -355,7 +382,11 @@ export interface MemberAmino {
|
|
|
355
382
|
zeroed_at?: string;
|
|
356
383
|
zeroed_count?: number;
|
|
357
384
|
last_decay_epoch?: string;
|
|
358
|
-
|
|
385
|
+
/**
|
|
386
|
+
* DREAM tipped this epoch (amount, not count), reset lazily when
|
|
387
|
+
* last_tip_epoch falls behind. Nil on records written before it existed.
|
|
388
|
+
*/
|
|
389
|
+
tips_sent_this_epoch?: string;
|
|
359
390
|
last_tip_epoch?: string;
|
|
360
391
|
/**
|
|
361
392
|
* Cached counts for performance (avoid full table scans)
|
|
@@ -366,13 +397,14 @@ export interface MemberAmino {
|
|
|
366
397
|
*/
|
|
367
398
|
completed_initiatives_count?: number;
|
|
368
399
|
/**
|
|
369
|
-
*
|
|
400
|
+
* DREAM received through member-to-member transfers (tips and initiative
|
|
401
|
+
* bounty payouts) in the current epoch, bounded by
|
|
402
|
+
* max_transfer_received_per_epoch. The binding transfer limit sits on the
|
|
403
|
+
* recipient: a buyer can collect from any number of senders, so only a cap
|
|
404
|
+
* on what one account takes in bounds how fast a position can be bought.
|
|
370
405
|
*/
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
* Epoch when gift counter was last reset
|
|
374
|
-
*/
|
|
375
|
-
last_gift_epoch?: string;
|
|
406
|
+
transfer_received_this_epoch?: string;
|
|
407
|
+
last_transfer_received_epoch?: string;
|
|
376
408
|
/**
|
|
377
409
|
* Invitation credit tracking for lazy seasonal reset
|
|
378
410
|
*/
|
|
@@ -455,14 +487,38 @@ export interface MemberAmino {
|
|
|
455
487
|
* readers must treat nil as zero.
|
|
456
488
|
*/
|
|
457
489
|
content_staked_dream?: string;
|
|
490
|
+
/**
|
|
491
|
+
* Season-scale counterpart of transfer_received_this_epoch, bounded by
|
|
492
|
+
* max_transfer_received_per_season.
|
|
493
|
+
*/
|
|
494
|
+
transfer_received_this_season?: string;
|
|
495
|
+
last_transfer_received_season?: string;
|
|
496
|
+
/**
|
|
497
|
+
* DREAM this member escrowed into initiative bounties this epoch, bounded by
|
|
498
|
+
* max_initiative_bounty_per_funder_epoch.
|
|
499
|
+
*/
|
|
500
|
+
initiative_bounty_funded_this_epoch?: string;
|
|
501
|
+
last_initiative_bounty_epoch?: string;
|
|
502
|
+
/**
|
|
503
|
+
* The content license this member agreed to publish under
|
|
504
|
+
* (docs/content-license.md). Set from MsgAcceptInvitation's signed
|
|
505
|
+
* accepted_content_license, or for genesis members from the genesis file,
|
|
506
|
+
* where GenesisState.Validate requires it. Never changed afterwards: a CC0
|
|
507
|
+
* dedication cannot be revoked, so zeroing and status changes leave it
|
|
508
|
+
* alone. An address joins only once, so the agreement was made at
|
|
509
|
+
* joined_at / joined_at_height.
|
|
510
|
+
*/
|
|
511
|
+
content_license?: string;
|
|
458
512
|
}
|
|
459
513
|
export interface MemberAminoMsg {
|
|
460
514
|
type: "/sparkdream.rep.v1.Member";
|
|
461
515
|
value: MemberAmino;
|
|
462
516
|
}
|
|
463
517
|
/**
|
|
464
|
-
* GiftRecord
|
|
465
|
-
*
|
|
518
|
+
* GiftRecord is the lifetime ledger of what a sender has gifted one of their
|
|
519
|
+
* invitees, bounded by max_gift_per_invitee. A gift is a one-time seed to help
|
|
520
|
+
* an invitee get started, so the cap is per invitee for life rather than per
|
|
521
|
+
* epoch.
|
|
466
522
|
* @name GiftRecord
|
|
467
523
|
* @package sparkdream.rep.v1
|
|
468
524
|
* @see proto type: sparkdream.rep.v1.GiftRecord
|
|
@@ -470,18 +526,17 @@ export interface MemberAminoMsg {
|
|
|
470
526
|
export interface GiftRecord {
|
|
471
527
|
sender: string;
|
|
472
528
|
recipient: string;
|
|
473
|
-
|
|
474
|
-
* Block height when last gift was sent
|
|
475
|
-
*/
|
|
476
|
-
lastGiftBlock: bigint;
|
|
529
|
+
totalGifted: string;
|
|
477
530
|
}
|
|
478
531
|
export interface GiftRecordProtoMsg {
|
|
479
532
|
typeUrl: "/sparkdream.rep.v1.GiftRecord";
|
|
480
533
|
value: Uint8Array;
|
|
481
534
|
}
|
|
482
535
|
/**
|
|
483
|
-
* GiftRecord
|
|
484
|
-
*
|
|
536
|
+
* GiftRecord is the lifetime ledger of what a sender has gifted one of their
|
|
537
|
+
* invitees, bounded by max_gift_per_invitee. A gift is a one-time seed to help
|
|
538
|
+
* an invitee get started, so the cap is per invitee for life rather than per
|
|
539
|
+
* epoch.
|
|
485
540
|
* @name GiftRecordAmino
|
|
486
541
|
* @package sparkdream.rep.v1
|
|
487
542
|
* @see proto type: sparkdream.rep.v1.GiftRecord
|
|
@@ -489,10 +544,7 @@ export interface GiftRecordProtoMsg {
|
|
|
489
544
|
export interface GiftRecordAmino {
|
|
490
545
|
sender?: string;
|
|
491
546
|
recipient?: string;
|
|
492
|
-
|
|
493
|
-
* Block height when last gift was sent
|
|
494
|
-
*/
|
|
495
|
-
last_gift_block?: string;
|
|
547
|
+
total_gifted?: string;
|
|
496
548
|
}
|
|
497
549
|
export interface GiftRecordAminoMsg {
|
|
498
550
|
type: "/sparkdream.rep.v1.GiftRecord";
|
|
@@ -592,8 +644,10 @@ export declare const Member: {
|
|
|
592
644
|
toProtoMsg(message: Member): MemberProtoMsg;
|
|
593
645
|
};
|
|
594
646
|
/**
|
|
595
|
-
* GiftRecord
|
|
596
|
-
*
|
|
647
|
+
* GiftRecord is the lifetime ledger of what a sender has gifted one of their
|
|
648
|
+
* invitees, bounded by max_gift_per_invitee. A gift is a one-time seed to help
|
|
649
|
+
* an invitee get started, so the cap is per invitee for life rather than per
|
|
650
|
+
* epoch.
|
|
597
651
|
* @name GiftRecord
|
|
598
652
|
* @package sparkdream.rep.v1
|
|
599
653
|
* @see proto type: sparkdream.rep.v1.GiftRecord
|