@sparkdreamnft/sparkdreamjs 0.0.48 → 0.0.50
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 +94 -0
- package/amino-schema.js +1 -1
- 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 +1 -1
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/v1/types.js +25 -1
- package/esm/sparkdream/blog/v1/genesis.js +97 -1
- package/esm/sparkdream/bundle.js +447 -439
- package/esm/sparkdream/collect/v1/genesis.js +308 -3
- package/esm/sparkdream/collect/v1/tx.js +170 -0
- package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/collect/v1/types.js +51 -3
- package/esm/sparkdream/commons/v1/genesis.js +756 -27
- package/esm/sparkdream/commons/v1/group.js +130 -2
- package/esm/sparkdream/commons/v1/poll.js +281 -0
- package/esm/sparkdream/commons/v1/poll_vote.js +107 -0
- package/esm/sparkdream/commons/v1/query.js +759 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +46 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +49 -1
- package/esm/sparkdream/commons/v1/tx.js +730 -4
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +25 -1
- package/esm/sparkdream/commons/v1/voter_tree.js +208 -0
- package/esm/sparkdream/federation/v1/genesis.js +212 -2
- package/esm/sparkdream/federation/v1/tx.js +365 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +38 -2
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +14 -1
- package/esm/sparkdream/federation/v1/types.js +194 -2
- package/esm/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/esm/sparkdream/forum/v1/genesis.js +428 -1
- package/esm/sparkdream/forum/v1/params.js +182 -254
- package/esm/sparkdream/forum/v1/query.js +112 -7
- package/esm/sparkdream/forum/v1/user_reaction_limit.js +62 -1
- package/esm/sparkdream/futarchy/v1/market.js +37 -1
- package/esm/sparkdream/futarchy/v1/tx.js +13 -1
- package/esm/sparkdream/name/v1/dispute.js +13 -1
- package/esm/sparkdream/rep/v1/genesis.js +272 -2
- package/esm/sparkdream/rep/v1/initiative_review.js +13 -1
- package/esm/sparkdream/rep/v1/invitation.js +25 -1
- package/esm/sparkdream/rep/v1/member_report.js +335 -1
- package/esm/sparkdream/rep/v1/migration.js +27 -2
- package/esm/sparkdream/rep/v1/params.js +13 -1
- package/esm/sparkdream/rep/v1/stake.js +10 -0
- package/esm/sparkdream/rep/v1/tx.js +372 -14
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -2
- package/esm/sparkdream/reveal/v1/types.js +9 -21
- package/esm/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/esm/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/esm/sparkdream/season/v1/genesis.js +125 -1
- package/esm/sparkdream/season/v1/guild_invite.js +13 -1
- package/esm/sparkdream/season/v1/guild_membership.js +13 -1
- package/esm/sparkdream/season/v1/member_profile.js +13 -1
- package/esm/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/esm/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/esm/sparkdream/season/v1/nomination.js +37 -1
- package/esm/sparkdream/season/v1/query.js +26 -35
- package/esm/sparkdream/season/v1/query.lcd.js +1 -1
- package/esm/sparkdream/season/v1/quest.js +13 -1
- package/esm/sparkdream/season/v1/season.js +13 -1
- package/esm/sparkdream/season/v1/season_stats_counters.js +121 -0
- package/esm/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/esm/sparkdream/service/v1/genesis.js +126 -1
- package/esm/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/esm/sparkdream/session/v1/genesis.js +303 -1
- package/esm/sparkdream/session/v1/params.js +24 -0
- package/esm/sparkdream/shield/v1/genesis.js +56 -2
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +202 -1
- package/esm/sparkdream/vault/v1/genesis.js +25 -1
- package/esm/sparkdream/vault/v1/query.js +15 -2
- package/esm/sparkdream/vault/v1/query.lcd.js +3 -0
- package/esm/sparkdream/vault/v1/tx.js +301 -0
- package/esm/sparkdream/vault/v1/tx.registry.js +38 -2
- package/esm/sparkdream/vault/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/vault/v1/vault_signer.js +15 -2
- 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/v1/types.d.ts +14 -0
- package/sparkdream/artifact/v1/types.js +25 -1
- package/sparkdream/blog/v1/genesis.d.ts +60 -0
- package/sparkdream/blog/v1/genesis.js +98 -2
- package/sparkdream/bundle.d.ts +17133 -16171
- package/sparkdream/bundle.js +447 -439
- package/sparkdream/collect/v1/genesis.d.ts +186 -0
- package/sparkdream/collect/v1/genesis.js +309 -4
- package/sparkdream/collect/v1/tx.d.ts +100 -0
- package/sparkdream/collect/v1/tx.js +171 -1
- package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
- package/sparkdream/collect/v1/tx.registry.js +19 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/collect/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/collect/v1/types.d.ts +52 -0
- package/sparkdream/collect/v1/types.js +51 -3
- package/sparkdream/commons/v1/genesis.d.ts +443 -22
- package/sparkdream/commons/v1/genesis.js +756 -27
- package/sparkdream/commons/v1/group.d.ts +75 -0
- package/sparkdream/commons/v1/group.js +133 -3
- package/sparkdream/commons/v1/poll.d.ts +135 -0
- package/sparkdream/commons/v1/poll.js +286 -0
- package/sparkdream/commons/v1/poll_vote.d.ts +58 -0
- package/sparkdream/commons/v1/poll_vote.js +110 -0
- package/sparkdream/commons/v1/query.d.ts +465 -0
- package/sparkdream/commons/v1/query.js +760 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +6 -1
- package/sparkdream/commons/v1/query.lcd.js +46 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +30 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +48 -0
- package/sparkdream/commons/v1/tx.d.ts +475 -1
- package/sparkdream/commons/v1/tx.js +731 -4
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +13 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +24 -0
- package/sparkdream/commons/v1/voter_tree.d.ts +132 -0
- package/sparkdream/commons/v1/voter_tree.js +211 -0
- package/sparkdream/federation/v1/genesis.d.ts +136 -1
- package/sparkdream/federation/v1/genesis.js +212 -2
- package/sparkdream/federation/v1/tx.d.ts +235 -0
- package/sparkdream/federation/v1/tx.js +367 -1
- package/sparkdream/federation/v1/tx.registry.d.ts +25 -1
- package/sparkdream/federation/v1/tx.registry.js +37 -1
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/federation/v1/tx.rpc.msg.js +13 -0
- package/sparkdream/federation/v1/types.d.ts +166 -0
- package/sparkdream/federation/v1/types.js +197 -3
- package/sparkdream/forum/v1/archive_metadata.d.ts +12 -0
- package/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/sparkdream/forum/v1/genesis.d.ts +256 -0
- package/sparkdream/forum/v1/genesis.js +429 -2
- package/sparkdream/forum/v1/params.d.ts +0 -30
- package/sparkdream/forum/v1/params.js +182 -254
- package/sparkdream/forum/v1/query.d.ts +70 -0
- package/sparkdream/forum/v1/query.js +112 -7
- package/sparkdream/forum/v1/user_reaction_limit.d.ts +25 -0
- package/sparkdream/forum/v1/user_reaction_limit.js +65 -2
- package/sparkdream/futarchy/v1/market.d.ts +32 -0
- package/sparkdream/futarchy/v1/market.js +37 -1
- package/sparkdream/futarchy/v1/tx.d.ts +10 -0
- package/sparkdream/futarchy/v1/tx.js +13 -1
- package/sparkdream/name/v1/dispute.d.ts +14 -0
- package/sparkdream/name/v1/dispute.js +13 -1
- package/sparkdream/rep/v1/genesis.d.ts +151 -1
- package/sparkdream/rep/v1/genesis.js +272 -2
- package/sparkdream/rep/v1/initiative_review.d.ts +14 -0
- package/sparkdream/rep/v1/initiative_review.js +13 -1
- package/sparkdream/rep/v1/invitation.d.ts +32 -0
- package/sparkdream/rep/v1/invitation.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +215 -0
- package/sparkdream/rep/v1/member_report.js +336 -2
- package/sparkdream/rep/v1/migration.d.ts +34 -1
- package/sparkdream/rep/v1/migration.js +27 -2
- package/sparkdream/rep/v1/params.d.ts +18 -0
- package/sparkdream/rep/v1/params.js +13 -1
- package/sparkdream/rep/v1/stake.d.ts +5 -0
- package/sparkdream/rep/v1/stake.js +10 -0
- package/sparkdream/rep/v1/tx.d.ts +340 -39
- package/sparkdream/rep/v1/tx.js +375 -17
- package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
- package/sparkdream/rep/v1/tx.registry.js +37 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +12 -2
- package/sparkdream/rep/v1/tx.rpc.msg.js +15 -1
- package/sparkdream/reveal/v1/types.d.ts +0 -8
- package/sparkdream/reveal/v1/types.js +9 -21
- package/sparkdream/rpc.query.d.ts +5 -0
- package/sparkdream/season/v1/display_name_moderation.d.ts +28 -0
- package/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/sparkdream/season/v1/epoch_xp_tracker.d.ts +10 -0
- package/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/sparkdream/season/v1/genesis.d.ts +75 -0
- package/sparkdream/season/v1/genesis.js +126 -2
- package/sparkdream/season/v1/guild_invite.d.ts +10 -0
- package/sparkdream/season/v1/guild_invite.js +13 -1
- package/sparkdream/season/v1/guild_membership.d.ts +12 -0
- package/sparkdream/season/v1/guild_membership.js +13 -1
- package/sparkdream/season/v1/member_profile.d.ts +12 -0
- package/sparkdream/season/v1/member_profile.js +13 -1
- package/sparkdream/season/v1/member_quest_progress.d.ts +8 -0
- package/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/sparkdream/season/v1/member_season_snapshot.d.ts +14 -0
- package/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/sparkdream/season/v1/nomination.d.ts +32 -0
- package/sparkdream/season/v1/nomination.js +37 -1
- package/sparkdream/season/v1/query.d.ts +10 -6
- package/sparkdream/season/v1/query.js +26 -35
- package/sparkdream/season/v1/query.lcd.js +1 -1
- package/sparkdream/season/v1/quest.d.ts +12 -0
- package/sparkdream/season/v1/quest.js +13 -1
- package/sparkdream/season/v1/season.d.ts +12 -0
- package/sparkdream/season/v1/season.js +13 -1
- package/sparkdream/season/v1/season_stats_counters.d.ts +86 -0
- package/sparkdream/season/v1/season_stats_counters.js +124 -0
- package/sparkdream/season/v1/season_title_eligibility.d.ts +12 -3
- package/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/sparkdream/service/v1/genesis.d.ts +71 -0
- package/sparkdream/service/v1/genesis.js +127 -2
- package/sparkdream/service/v1/refile_cooldown.d.ts +35 -22
- package/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/sparkdream/session/v1/genesis.d.ts +190 -0
- package/sparkdream/session/v1/genesis.js +304 -2
- package/sparkdream/session/v1/params.d.ts +18 -0
- package/sparkdream/session/v1/params.js +24 -0
- package/sparkdream/shield/v1/genesis.d.ts +37 -1
- package/sparkdream/shield/v1/genesis.js +55 -1
- package/sparkdream/shield/v1/params.d.ts +26 -2
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/types.d.ts +122 -0
- package/sparkdream/shield/v1/types.js +203 -2
- package/sparkdream/vault/v1/genesis.d.ts +14 -0
- package/sparkdream/vault/v1/genesis.js +25 -1
- package/sparkdream/vault/v1/query.d.ts +16 -3
- package/sparkdream/vault/v1/query.js +15 -2
- package/sparkdream/vault/v1/query.lcd.js +3 -0
- package/sparkdream/vault/v1/tx.d.ts +219 -0
- package/sparkdream/vault/v1/tx.js +302 -1
- package/sparkdream/vault/v1/tx.registry.d.ts +25 -1
- package/sparkdream/vault/v1/tx.registry.js +37 -1
- package/sparkdream/vault/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/vault/v1/tx.rpc.msg.js +12 -0
- package/sparkdream/vault/v1/vault_signer.d.ts +22 -3
- package/sparkdream/vault/v1/vault_signer.js +15 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -107,6 +107,20 @@ export declare enum VerificationOutcome {
|
|
|
107
107
|
export declare const VerificationOutcomeAmino: typeof VerificationOutcome;
|
|
108
108
|
export declare function verificationOutcomeFromJSON(object: any): VerificationOutcome;
|
|
109
109
|
export declare function verificationOutcomeToJSON(object: VerificationOutcome): string;
|
|
110
|
+
/** SettlementKind names an EndBlocker settlement that failed and is retried. */
|
|
111
|
+
export declare enum SettlementKind {
|
|
112
|
+
SETTLEMENT_KIND_UNSPECIFIED = 0,
|
|
113
|
+
/** SETTLEMENT_KIND_NO_QUORUM - The arbiter resolution window closed without a quorum. */
|
|
114
|
+
SETTLEMENT_KIND_NO_QUORUM = 1,
|
|
115
|
+
/** SETTLEMENT_KIND_AUTO_VERDICT - The escalation window of a stashed arbiter verdict closed. */
|
|
116
|
+
SETTLEMENT_KIND_AUTO_VERDICT = 2,
|
|
117
|
+
/** SETTLEMENT_KIND_JURY_TIMEOUT - The jury deadline of an escalated challenge passed (TIMEOUT). */
|
|
118
|
+
SETTLEMENT_KIND_JURY_TIMEOUT = 3,
|
|
119
|
+
UNRECOGNIZED = -1
|
|
120
|
+
}
|
|
121
|
+
export declare const SettlementKindAmino: typeof SettlementKind;
|
|
122
|
+
export declare function settlementKindFromJSON(object: any): SettlementKind;
|
|
123
|
+
export declare function settlementKindToJSON(object: SettlementKind): string;
|
|
110
124
|
/**
|
|
111
125
|
* PendingVerifierVerdict captures an arbiter-quorum auto-verdict that
|
|
112
126
|
* hasn't yet been applied (escalation window still open). Drives the
|
|
@@ -560,6 +574,58 @@ export interface VerificationRecord {
|
|
|
560
574
|
* by SlashBond on the upheld path.
|
|
561
575
|
*/
|
|
562
576
|
commitmentReleased: boolean;
|
|
577
|
+
/**
|
|
578
|
+
* arbiter_escalation_deadline is the unix time until which the
|
|
579
|
+
* challenger or verifier may escalate the stashed arbiter-quorum
|
|
580
|
+
* auto-verdict (quorum time + arbiter_escalation_window). Zero until a
|
|
581
|
+
* quorum lands; MsgEscalateChallenge refuses once it has passed.
|
|
582
|
+
*/
|
|
583
|
+
arbiterEscalationDeadline: bigint;
|
|
584
|
+
/**
|
|
585
|
+
* arbiter_resolution_deadline is the unix time until which arbiters may
|
|
586
|
+
* submit hashes for the current dispute round (round start +
|
|
587
|
+
* arbiter_resolution_window). MsgSubmitArbiterHash refuses after it, and
|
|
588
|
+
* the Phase 7 EndBlocker acts only on the resolution-queue entry keyed
|
|
589
|
+
* on exactly this deadline, so an entry left over from an earlier round
|
|
590
|
+
* of the same content never settles the current one.
|
|
591
|
+
*/
|
|
592
|
+
arbiterResolutionDeadline: bigint;
|
|
593
|
+
/**
|
|
594
|
+
* challenge_report_id is the x/service report id returned when
|
|
595
|
+
* federation filed a system report against the submitting bridge
|
|
596
|
+
* operator for this content. Zero when no report was filed.
|
|
597
|
+
*/
|
|
598
|
+
challengeReportId: bigint;
|
|
599
|
+
/**
|
|
600
|
+
* pending_challenge_report holds the evidence URI of an operator report
|
|
601
|
+
* that is owed but could not be filed yet (x/service refused it, e.g.
|
|
602
|
+
* under its per-caller system-report rate limit). The EndBlocker retries
|
|
603
|
+
* it with the same dedupe key until it is filed; empty when nothing is
|
|
604
|
+
* owed.
|
|
605
|
+
*/
|
|
606
|
+
pendingChallengeReport: string;
|
|
607
|
+
/**
|
|
608
|
+
* quorum_falsified_content records, when the arbiter quorum lands, that
|
|
609
|
+
* the quorum hash differs from the operator's content hash. The stashed
|
|
610
|
+
* verdict only says whether the verifier was right; for DISPUTED content
|
|
611
|
+
* whose quorum hash matches neither the verifier nor the operator, this is
|
|
612
|
+
* what tells the auto-verdict that the content is REJECTED rather than
|
|
613
|
+
* VERIFIED.
|
|
614
|
+
*/
|
|
615
|
+
quorumFalsifiedContent: boolean;
|
|
616
|
+
/**
|
|
617
|
+
* EndBlocker settlement retry (FED-29). A settlement the EndBlocker runs
|
|
618
|
+
* (no-quorum expiry, automatic verdict, jury TIMEOUT) executes in a cache
|
|
619
|
+
* context; when a bank or x/rep side effect fails, nothing of it commits
|
|
620
|
+
* (the escrow stays on this record) and the settlement is retried at
|
|
621
|
+
* settlement_retry_at with backoff. settlement_retry_kind says which
|
|
622
|
+
* settlement is owed; settlement_attempts counts failed attempts. After
|
|
623
|
+
* the last attempt settlement_retry_at is cleared and the record keeps its
|
|
624
|
+
* escrow until peer removal or a committee verdict settles it.
|
|
625
|
+
*/
|
|
626
|
+
settlementRetryKind: SettlementKind;
|
|
627
|
+
settlementAttempts: number;
|
|
628
|
+
settlementRetryAt: bigint;
|
|
563
629
|
}
|
|
564
630
|
export interface VerificationRecordProtoMsg {
|
|
565
631
|
typeUrl: "/sparkdream.federation.v1.VerificationRecord";
|
|
@@ -613,6 +679,58 @@ export interface VerificationRecordAmino {
|
|
|
613
679
|
* by SlashBond on the upheld path.
|
|
614
680
|
*/
|
|
615
681
|
commitment_released?: boolean;
|
|
682
|
+
/**
|
|
683
|
+
* arbiter_escalation_deadline is the unix time until which the
|
|
684
|
+
* challenger or verifier may escalate the stashed arbiter-quorum
|
|
685
|
+
* auto-verdict (quorum time + arbiter_escalation_window). Zero until a
|
|
686
|
+
* quorum lands; MsgEscalateChallenge refuses once it has passed.
|
|
687
|
+
*/
|
|
688
|
+
arbiter_escalation_deadline?: string;
|
|
689
|
+
/**
|
|
690
|
+
* arbiter_resolution_deadline is the unix time until which arbiters may
|
|
691
|
+
* submit hashes for the current dispute round (round start +
|
|
692
|
+
* arbiter_resolution_window). MsgSubmitArbiterHash refuses after it, and
|
|
693
|
+
* the Phase 7 EndBlocker acts only on the resolution-queue entry keyed
|
|
694
|
+
* on exactly this deadline, so an entry left over from an earlier round
|
|
695
|
+
* of the same content never settles the current one.
|
|
696
|
+
*/
|
|
697
|
+
arbiter_resolution_deadline?: string;
|
|
698
|
+
/**
|
|
699
|
+
* challenge_report_id is the x/service report id returned when
|
|
700
|
+
* federation filed a system report against the submitting bridge
|
|
701
|
+
* operator for this content. Zero when no report was filed.
|
|
702
|
+
*/
|
|
703
|
+
challenge_report_id?: string;
|
|
704
|
+
/**
|
|
705
|
+
* pending_challenge_report holds the evidence URI of an operator report
|
|
706
|
+
* that is owed but could not be filed yet (x/service refused it, e.g.
|
|
707
|
+
* under its per-caller system-report rate limit). The EndBlocker retries
|
|
708
|
+
* it with the same dedupe key until it is filed; empty when nothing is
|
|
709
|
+
* owed.
|
|
710
|
+
*/
|
|
711
|
+
pending_challenge_report?: string;
|
|
712
|
+
/**
|
|
713
|
+
* quorum_falsified_content records, when the arbiter quorum lands, that
|
|
714
|
+
* the quorum hash differs from the operator's content hash. The stashed
|
|
715
|
+
* verdict only says whether the verifier was right; for DISPUTED content
|
|
716
|
+
* whose quorum hash matches neither the verifier nor the operator, this is
|
|
717
|
+
* what tells the auto-verdict that the content is REJECTED rather than
|
|
718
|
+
* VERIFIED.
|
|
719
|
+
*/
|
|
720
|
+
quorum_falsified_content?: boolean;
|
|
721
|
+
/**
|
|
722
|
+
* EndBlocker settlement retry (FED-29). A settlement the EndBlocker runs
|
|
723
|
+
* (no-quorum expiry, automatic verdict, jury TIMEOUT) executes in a cache
|
|
724
|
+
* context; when a bank or x/rep side effect fails, nothing of it commits
|
|
725
|
+
* (the escrow stays on this record) and the settlement is retried at
|
|
726
|
+
* settlement_retry_at with backoff. settlement_retry_kind says which
|
|
727
|
+
* settlement is owed; settlement_attempts counts failed attempts. After
|
|
728
|
+
* the last attempt settlement_retry_at is cleared and the record keeps its
|
|
729
|
+
* escrow until peer removal or a committee verdict settles it.
|
|
730
|
+
*/
|
|
731
|
+
settlement_retry_kind?: SettlementKind;
|
|
732
|
+
settlement_attempts?: number;
|
|
733
|
+
settlement_retry_at?: string;
|
|
616
734
|
}
|
|
617
735
|
export interface VerificationRecordAminoMsg {
|
|
618
736
|
type: "/sparkdream.federation.v1.VerificationRecord";
|
|
@@ -898,6 +1016,30 @@ export interface IdentityLink {
|
|
|
898
1016
|
* confirmation packet returns from the remote peer (FEDERATION-S2-1).
|
|
899
1017
|
*/
|
|
900
1018
|
challenge: Uint8Array;
|
|
1019
|
+
/**
|
|
1020
|
+
* verification_attempts counts Phase 1 challenge deliveries sent for this
|
|
1021
|
+
* link. A timed-out delivery is re-sent automatically until it reaches
|
|
1022
|
+
* three attempts.
|
|
1023
|
+
*/
|
|
1024
|
+
verificationAttempts: number;
|
|
1025
|
+
/**
|
|
1026
|
+
* unverified_expires_at is the UnverifiedLinkExp queue key the link was
|
|
1027
|
+
* written with (linked_at + unverified_link_ttl at link time). The
|
|
1028
|
+
* expiry sweep only prunes the link when the queue entry it walks
|
|
1029
|
+
* carries this exact time, so a stale entry left by an earlier link of
|
|
1030
|
+
* the same (local_address, peer_id) can never prune a re-created one.
|
|
1031
|
+
*/
|
|
1032
|
+
unverifiedExpiresAt: bigint;
|
|
1033
|
+
/**
|
|
1034
|
+
* attested_by is the bridge operator whose MsgAttestIdentityLink verified
|
|
1035
|
+
* this link (empty for links verified over IBC). A false attestation is
|
|
1036
|
+
* reported against this operator's x/service bond.
|
|
1037
|
+
*/
|
|
1038
|
+
attestedBy: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* attestation_evidence is the evidence_uri the operator attested with.
|
|
1041
|
+
*/
|
|
1042
|
+
attestationEvidence: string;
|
|
901
1043
|
}
|
|
902
1044
|
export interface IdentityLinkProtoMsg {
|
|
903
1045
|
typeUrl: "/sparkdream.federation.v1.IdentityLink";
|
|
@@ -921,6 +1063,30 @@ export interface IdentityLinkAmino {
|
|
|
921
1063
|
* confirmation packet returns from the remote peer (FEDERATION-S2-1).
|
|
922
1064
|
*/
|
|
923
1065
|
challenge?: string;
|
|
1066
|
+
/**
|
|
1067
|
+
* verification_attempts counts Phase 1 challenge deliveries sent for this
|
|
1068
|
+
* link. A timed-out delivery is re-sent automatically until it reaches
|
|
1069
|
+
* three attempts.
|
|
1070
|
+
*/
|
|
1071
|
+
verification_attempts?: number;
|
|
1072
|
+
/**
|
|
1073
|
+
* unverified_expires_at is the UnverifiedLinkExp queue key the link was
|
|
1074
|
+
* written with (linked_at + unverified_link_ttl at link time). The
|
|
1075
|
+
* expiry sweep only prunes the link when the queue entry it walks
|
|
1076
|
+
* carries this exact time, so a stale entry left by an earlier link of
|
|
1077
|
+
* the same (local_address, peer_id) can never prune a re-created one.
|
|
1078
|
+
*/
|
|
1079
|
+
unverified_expires_at?: string;
|
|
1080
|
+
/**
|
|
1081
|
+
* attested_by is the bridge operator whose MsgAttestIdentityLink verified
|
|
1082
|
+
* this link (empty for links verified over IBC). A false attestation is
|
|
1083
|
+
* reported against this operator's x/service bond.
|
|
1084
|
+
*/
|
|
1085
|
+
attested_by?: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* attestation_evidence is the evidence_uri the operator attested with.
|
|
1088
|
+
*/
|
|
1089
|
+
attestation_evidence?: string;
|
|
924
1090
|
}
|
|
925
1091
|
export interface IdentityLinkAminoMsg {
|
|
926
1092
|
type: "/sparkdream.federation.v1.IdentityLink";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PeerRemovalState = exports.OutboundAttestation = exports.TagReputation = exports.ReputationAttestation = exports.PendingIdentityChallenge = exports.IdentityLink = exports.ContentRef = exports.FederatedContent = exports.ArbiterHashSubmission = exports.EscalatedChallenge = exports.VerificationRecord = exports.BridgeBinding = exports.IdentityCuration = exports.PeerPolicy = exports.Peer = exports.JuryVerdictAmino = exports.JuryVerdict = exports.PendingVerifierVerdictAmino = exports.PendingVerifierVerdict = exports.VerificationOutcomeAmino = exports.VerificationOutcome = exports.IdentityLinkStatusAmino = exports.IdentityLinkStatus = exports.FederatedContentStatusAmino = exports.FederatedContentStatus = exports.BridgeStatusAmino = exports.BridgeStatus = exports.PeerStatusAmino = exports.PeerStatus = exports.PeerTypeAmino = exports.PeerType = void 0;
|
|
3
|
+
exports.PeerRemovalState = exports.OutboundAttestation = exports.TagReputation = exports.ReputationAttestation = exports.PendingIdentityChallenge = exports.IdentityLink = exports.ContentRef = exports.FederatedContent = exports.ArbiterHashSubmission = exports.EscalatedChallenge = exports.VerificationRecord = exports.BridgeBinding = exports.IdentityCuration = exports.PeerPolicy = exports.Peer = exports.JuryVerdictAmino = exports.JuryVerdict = exports.PendingVerifierVerdictAmino = exports.PendingVerifierVerdict = exports.SettlementKindAmino = exports.SettlementKind = exports.VerificationOutcomeAmino = exports.VerificationOutcome = exports.IdentityLinkStatusAmino = exports.IdentityLinkStatus = exports.FederatedContentStatusAmino = exports.FederatedContentStatus = exports.BridgeStatusAmino = exports.BridgeStatus = exports.PeerStatusAmino = exports.PeerStatus = exports.PeerTypeAmino = exports.PeerType = void 0;
|
|
4
4
|
exports.peerTypeFromJSON = peerTypeFromJSON;
|
|
5
5
|
exports.peerTypeToJSON = peerTypeToJSON;
|
|
6
6
|
exports.peerStatusFromJSON = peerStatusFromJSON;
|
|
@@ -13,6 +13,8 @@ exports.identityLinkStatusFromJSON = identityLinkStatusFromJSON;
|
|
|
13
13
|
exports.identityLinkStatusToJSON = identityLinkStatusToJSON;
|
|
14
14
|
exports.verificationOutcomeFromJSON = verificationOutcomeFromJSON;
|
|
15
15
|
exports.verificationOutcomeToJSON = verificationOutcomeToJSON;
|
|
16
|
+
exports.settlementKindFromJSON = settlementKindFromJSON;
|
|
17
|
+
exports.settlementKindToJSON = settlementKindToJSON;
|
|
16
18
|
exports.pendingVerifierVerdictFromJSON = pendingVerifierVerdictFromJSON;
|
|
17
19
|
exports.pendingVerifierVerdictToJSON = pendingVerifierVerdictToJSON;
|
|
18
20
|
exports.juryVerdictFromJSON = juryVerdictFromJSON;
|
|
@@ -376,6 +378,54 @@ function verificationOutcomeToJSON(object) {
|
|
|
376
378
|
return "UNRECOGNIZED";
|
|
377
379
|
}
|
|
378
380
|
}
|
|
381
|
+
/** SettlementKind names an EndBlocker settlement that failed and is retried. */
|
|
382
|
+
var SettlementKind;
|
|
383
|
+
(function (SettlementKind) {
|
|
384
|
+
SettlementKind[SettlementKind["SETTLEMENT_KIND_UNSPECIFIED"] = 0] = "SETTLEMENT_KIND_UNSPECIFIED";
|
|
385
|
+
/** SETTLEMENT_KIND_NO_QUORUM - The arbiter resolution window closed without a quorum. */
|
|
386
|
+
SettlementKind[SettlementKind["SETTLEMENT_KIND_NO_QUORUM"] = 1] = "SETTLEMENT_KIND_NO_QUORUM";
|
|
387
|
+
/** SETTLEMENT_KIND_AUTO_VERDICT - The escalation window of a stashed arbiter verdict closed. */
|
|
388
|
+
SettlementKind[SettlementKind["SETTLEMENT_KIND_AUTO_VERDICT"] = 2] = "SETTLEMENT_KIND_AUTO_VERDICT";
|
|
389
|
+
/** SETTLEMENT_KIND_JURY_TIMEOUT - The jury deadline of an escalated challenge passed (TIMEOUT). */
|
|
390
|
+
SettlementKind[SettlementKind["SETTLEMENT_KIND_JURY_TIMEOUT"] = 3] = "SETTLEMENT_KIND_JURY_TIMEOUT";
|
|
391
|
+
SettlementKind[SettlementKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
392
|
+
})(SettlementKind || (exports.SettlementKind = SettlementKind = {}));
|
|
393
|
+
exports.SettlementKindAmino = SettlementKind;
|
|
394
|
+
function settlementKindFromJSON(object) {
|
|
395
|
+
switch (object) {
|
|
396
|
+
case 0:
|
|
397
|
+
case "SETTLEMENT_KIND_UNSPECIFIED":
|
|
398
|
+
return SettlementKind.SETTLEMENT_KIND_UNSPECIFIED;
|
|
399
|
+
case 1:
|
|
400
|
+
case "SETTLEMENT_KIND_NO_QUORUM":
|
|
401
|
+
return SettlementKind.SETTLEMENT_KIND_NO_QUORUM;
|
|
402
|
+
case 2:
|
|
403
|
+
case "SETTLEMENT_KIND_AUTO_VERDICT":
|
|
404
|
+
return SettlementKind.SETTLEMENT_KIND_AUTO_VERDICT;
|
|
405
|
+
case 3:
|
|
406
|
+
case "SETTLEMENT_KIND_JURY_TIMEOUT":
|
|
407
|
+
return SettlementKind.SETTLEMENT_KIND_JURY_TIMEOUT;
|
|
408
|
+
case -1:
|
|
409
|
+
case "UNRECOGNIZED":
|
|
410
|
+
default:
|
|
411
|
+
return SettlementKind.UNRECOGNIZED;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
function settlementKindToJSON(object) {
|
|
415
|
+
switch (object) {
|
|
416
|
+
case SettlementKind.SETTLEMENT_KIND_UNSPECIFIED:
|
|
417
|
+
return "SETTLEMENT_KIND_UNSPECIFIED";
|
|
418
|
+
case SettlementKind.SETTLEMENT_KIND_NO_QUORUM:
|
|
419
|
+
return "SETTLEMENT_KIND_NO_QUORUM";
|
|
420
|
+
case SettlementKind.SETTLEMENT_KIND_AUTO_VERDICT:
|
|
421
|
+
return "SETTLEMENT_KIND_AUTO_VERDICT";
|
|
422
|
+
case SettlementKind.SETTLEMENT_KIND_JURY_TIMEOUT:
|
|
423
|
+
return "SETTLEMENT_KIND_JURY_TIMEOUT";
|
|
424
|
+
case SettlementKind.UNRECOGNIZED:
|
|
425
|
+
default:
|
|
426
|
+
return "UNRECOGNIZED";
|
|
427
|
+
}
|
|
428
|
+
}
|
|
379
429
|
/**
|
|
380
430
|
* PendingVerifierVerdict captures an arbiter-quorum auto-verdict that
|
|
381
431
|
* hasn't yet been applied (escalation window still open). Drives the
|
|
@@ -1267,7 +1317,15 @@ function createBaseVerificationRecord() {
|
|
|
1267
1317
|
challenger: "",
|
|
1268
1318
|
escrowedChallengeFee: "",
|
|
1269
1319
|
pendingVerifierVerdict: 0,
|
|
1270
|
-
commitmentReleased: false
|
|
1320
|
+
commitmentReleased: false,
|
|
1321
|
+
arbiterEscalationDeadline: BigInt(0),
|
|
1322
|
+
arbiterResolutionDeadline: BigInt(0),
|
|
1323
|
+
challengeReportId: BigInt(0),
|
|
1324
|
+
pendingChallengeReport: "",
|
|
1325
|
+
quorumFalsifiedContent: false,
|
|
1326
|
+
settlementRetryKind: 0,
|
|
1327
|
+
settlementAttempts: 0,
|
|
1328
|
+
settlementRetryAt: BigInt(0)
|
|
1271
1329
|
};
|
|
1272
1330
|
}
|
|
1273
1331
|
/**
|
|
@@ -1321,6 +1379,30 @@ exports.VerificationRecord = {
|
|
|
1321
1379
|
if (message.commitmentReleased === true) {
|
|
1322
1380
|
writer.uint32(112).bool(message.commitmentReleased);
|
|
1323
1381
|
}
|
|
1382
|
+
if (message.arbiterEscalationDeadline !== BigInt(0)) {
|
|
1383
|
+
writer.uint32(120).int64(message.arbiterEscalationDeadline);
|
|
1384
|
+
}
|
|
1385
|
+
if (message.arbiterResolutionDeadline !== BigInt(0)) {
|
|
1386
|
+
writer.uint32(128).int64(message.arbiterResolutionDeadline);
|
|
1387
|
+
}
|
|
1388
|
+
if (message.challengeReportId !== BigInt(0)) {
|
|
1389
|
+
writer.uint32(136).uint64(message.challengeReportId);
|
|
1390
|
+
}
|
|
1391
|
+
if (message.pendingChallengeReport !== "") {
|
|
1392
|
+
writer.uint32(146).string(message.pendingChallengeReport);
|
|
1393
|
+
}
|
|
1394
|
+
if (message.quorumFalsifiedContent === true) {
|
|
1395
|
+
writer.uint32(152).bool(message.quorumFalsifiedContent);
|
|
1396
|
+
}
|
|
1397
|
+
if (message.settlementRetryKind !== 0) {
|
|
1398
|
+
writer.uint32(160).int32(message.settlementRetryKind);
|
|
1399
|
+
}
|
|
1400
|
+
if (message.settlementAttempts !== 0) {
|
|
1401
|
+
writer.uint32(168).uint32(message.settlementAttempts);
|
|
1402
|
+
}
|
|
1403
|
+
if (message.settlementRetryAt !== BigInt(0)) {
|
|
1404
|
+
writer.uint32(176).int64(message.settlementRetryAt);
|
|
1405
|
+
}
|
|
1324
1406
|
return writer;
|
|
1325
1407
|
},
|
|
1326
1408
|
decode(input, length) {
|
|
@@ -1372,6 +1454,30 @@ exports.VerificationRecord = {
|
|
|
1372
1454
|
case 14:
|
|
1373
1455
|
message.commitmentReleased = reader.bool();
|
|
1374
1456
|
break;
|
|
1457
|
+
case 15:
|
|
1458
|
+
message.arbiterEscalationDeadline = reader.int64();
|
|
1459
|
+
break;
|
|
1460
|
+
case 16:
|
|
1461
|
+
message.arbiterResolutionDeadline = reader.int64();
|
|
1462
|
+
break;
|
|
1463
|
+
case 17:
|
|
1464
|
+
message.challengeReportId = reader.uint64();
|
|
1465
|
+
break;
|
|
1466
|
+
case 18:
|
|
1467
|
+
message.pendingChallengeReport = reader.string();
|
|
1468
|
+
break;
|
|
1469
|
+
case 19:
|
|
1470
|
+
message.quorumFalsifiedContent = reader.bool();
|
|
1471
|
+
break;
|
|
1472
|
+
case 20:
|
|
1473
|
+
message.settlementRetryKind = reader.int32();
|
|
1474
|
+
break;
|
|
1475
|
+
case 21:
|
|
1476
|
+
message.settlementAttempts = reader.uint32();
|
|
1477
|
+
break;
|
|
1478
|
+
case 22:
|
|
1479
|
+
message.settlementRetryAt = reader.int64();
|
|
1480
|
+
break;
|
|
1375
1481
|
default:
|
|
1376
1482
|
reader.skipType(tag & 7);
|
|
1377
1483
|
break;
|
|
@@ -1395,6 +1501,14 @@ exports.VerificationRecord = {
|
|
|
1395
1501
|
message.escrowedChallengeFee = object.escrowedChallengeFee ?? "";
|
|
1396
1502
|
message.pendingVerifierVerdict = object.pendingVerifierVerdict ?? 0;
|
|
1397
1503
|
message.commitmentReleased = object.commitmentReleased ?? false;
|
|
1504
|
+
message.arbiterEscalationDeadline = object.arbiterEscalationDeadline !== undefined && object.arbiterEscalationDeadline !== null ? BigInt(object.arbiterEscalationDeadline.toString()) : BigInt(0);
|
|
1505
|
+
message.arbiterResolutionDeadline = object.arbiterResolutionDeadline !== undefined && object.arbiterResolutionDeadline !== null ? BigInt(object.arbiterResolutionDeadline.toString()) : BigInt(0);
|
|
1506
|
+
message.challengeReportId = object.challengeReportId !== undefined && object.challengeReportId !== null ? BigInt(object.challengeReportId.toString()) : BigInt(0);
|
|
1507
|
+
message.pendingChallengeReport = object.pendingChallengeReport ?? "";
|
|
1508
|
+
message.quorumFalsifiedContent = object.quorumFalsifiedContent ?? false;
|
|
1509
|
+
message.settlementRetryKind = object.settlementRetryKind ?? 0;
|
|
1510
|
+
message.settlementAttempts = object.settlementAttempts ?? 0;
|
|
1511
|
+
message.settlementRetryAt = object.settlementRetryAt !== undefined && object.settlementRetryAt !== null ? BigInt(object.settlementRetryAt.toString()) : BigInt(0);
|
|
1398
1512
|
return message;
|
|
1399
1513
|
},
|
|
1400
1514
|
fromAmino(object) {
|
|
@@ -1441,6 +1555,30 @@ exports.VerificationRecord = {
|
|
|
1441
1555
|
if (object.commitment_released !== undefined && object.commitment_released !== null) {
|
|
1442
1556
|
message.commitmentReleased = object.commitment_released;
|
|
1443
1557
|
}
|
|
1558
|
+
if (object.arbiter_escalation_deadline !== undefined && object.arbiter_escalation_deadline !== null) {
|
|
1559
|
+
message.arbiterEscalationDeadline = BigInt(object.arbiter_escalation_deadline);
|
|
1560
|
+
}
|
|
1561
|
+
if (object.arbiter_resolution_deadline !== undefined && object.arbiter_resolution_deadline !== null) {
|
|
1562
|
+
message.arbiterResolutionDeadline = BigInt(object.arbiter_resolution_deadline);
|
|
1563
|
+
}
|
|
1564
|
+
if (object.challenge_report_id !== undefined && object.challenge_report_id !== null) {
|
|
1565
|
+
message.challengeReportId = BigInt(object.challenge_report_id);
|
|
1566
|
+
}
|
|
1567
|
+
if (object.pending_challenge_report !== undefined && object.pending_challenge_report !== null) {
|
|
1568
|
+
message.pendingChallengeReport = object.pending_challenge_report;
|
|
1569
|
+
}
|
|
1570
|
+
if (object.quorum_falsified_content !== undefined && object.quorum_falsified_content !== null) {
|
|
1571
|
+
message.quorumFalsifiedContent = object.quorum_falsified_content;
|
|
1572
|
+
}
|
|
1573
|
+
if (object.settlement_retry_kind !== undefined && object.settlement_retry_kind !== null) {
|
|
1574
|
+
message.settlementRetryKind = object.settlement_retry_kind;
|
|
1575
|
+
}
|
|
1576
|
+
if (object.settlement_attempts !== undefined && object.settlement_attempts !== null) {
|
|
1577
|
+
message.settlementAttempts = object.settlement_attempts;
|
|
1578
|
+
}
|
|
1579
|
+
if (object.settlement_retry_at !== undefined && object.settlement_retry_at !== null) {
|
|
1580
|
+
message.settlementRetryAt = BigInt(object.settlement_retry_at);
|
|
1581
|
+
}
|
|
1444
1582
|
return message;
|
|
1445
1583
|
},
|
|
1446
1584
|
toAmino(message) {
|
|
@@ -1459,6 +1597,14 @@ exports.VerificationRecord = {
|
|
|
1459
1597
|
obj.escrowed_challenge_fee = message.escrowedChallengeFee === "" ? undefined : message.escrowedChallengeFee;
|
|
1460
1598
|
obj.pending_verifier_verdict = message.pendingVerifierVerdict === 0 ? undefined : message.pendingVerifierVerdict;
|
|
1461
1599
|
obj.commitment_released = message.commitmentReleased === false ? undefined : message.commitmentReleased;
|
|
1600
|
+
obj.arbiter_escalation_deadline = message.arbiterEscalationDeadline !== BigInt(0) ? message.arbiterEscalationDeadline?.toString() : undefined;
|
|
1601
|
+
obj.arbiter_resolution_deadline = message.arbiterResolutionDeadline !== BigInt(0) ? message.arbiterResolutionDeadline?.toString() : undefined;
|
|
1602
|
+
obj.challenge_report_id = message.challengeReportId !== BigInt(0) ? message.challengeReportId?.toString() : undefined;
|
|
1603
|
+
obj.pending_challenge_report = message.pendingChallengeReport === "" ? undefined : message.pendingChallengeReport;
|
|
1604
|
+
obj.quorum_falsified_content = message.quorumFalsifiedContent === false ? undefined : message.quorumFalsifiedContent;
|
|
1605
|
+
obj.settlement_retry_kind = message.settlementRetryKind === 0 ? undefined : message.settlementRetryKind;
|
|
1606
|
+
obj.settlement_attempts = message.settlementAttempts === 0 ? undefined : message.settlementAttempts;
|
|
1607
|
+
obj.settlement_retry_at = message.settlementRetryAt !== BigInt(0) ? message.settlementRetryAt?.toString() : undefined;
|
|
1462
1608
|
return obj;
|
|
1463
1609
|
},
|
|
1464
1610
|
fromAminoMsg(object) {
|
|
@@ -2106,7 +2252,11 @@ function createBaseIdentityLink() {
|
|
|
2106
2252
|
status: 0,
|
|
2107
2253
|
linkedAt: BigInt(0),
|
|
2108
2254
|
verifiedAt: BigInt(0),
|
|
2109
|
-
challenge: new Uint8Array()
|
|
2255
|
+
challenge: new Uint8Array(),
|
|
2256
|
+
verificationAttempts: 0,
|
|
2257
|
+
unverifiedExpiresAt: BigInt(0),
|
|
2258
|
+
attestedBy: "",
|
|
2259
|
+
attestationEvidence: ""
|
|
2110
2260
|
};
|
|
2111
2261
|
}
|
|
2112
2262
|
/**
|
|
@@ -2139,6 +2289,18 @@ exports.IdentityLink = {
|
|
|
2139
2289
|
if (message.challenge.length !== 0) {
|
|
2140
2290
|
writer.uint32(58).bytes(message.challenge);
|
|
2141
2291
|
}
|
|
2292
|
+
if (message.verificationAttempts !== 0) {
|
|
2293
|
+
writer.uint32(64).uint32(message.verificationAttempts);
|
|
2294
|
+
}
|
|
2295
|
+
if (message.unverifiedExpiresAt !== BigInt(0)) {
|
|
2296
|
+
writer.uint32(72).int64(message.unverifiedExpiresAt);
|
|
2297
|
+
}
|
|
2298
|
+
if (message.attestedBy !== "") {
|
|
2299
|
+
writer.uint32(82).string(message.attestedBy);
|
|
2300
|
+
}
|
|
2301
|
+
if (message.attestationEvidence !== "") {
|
|
2302
|
+
writer.uint32(90).string(message.attestationEvidence);
|
|
2303
|
+
}
|
|
2142
2304
|
return writer;
|
|
2143
2305
|
},
|
|
2144
2306
|
decode(input, length) {
|
|
@@ -2169,6 +2331,18 @@ exports.IdentityLink = {
|
|
|
2169
2331
|
case 7:
|
|
2170
2332
|
message.challenge = reader.bytes();
|
|
2171
2333
|
break;
|
|
2334
|
+
case 8:
|
|
2335
|
+
message.verificationAttempts = reader.uint32();
|
|
2336
|
+
break;
|
|
2337
|
+
case 9:
|
|
2338
|
+
message.unverifiedExpiresAt = reader.int64();
|
|
2339
|
+
break;
|
|
2340
|
+
case 10:
|
|
2341
|
+
message.attestedBy = reader.string();
|
|
2342
|
+
break;
|
|
2343
|
+
case 11:
|
|
2344
|
+
message.attestationEvidence = reader.string();
|
|
2345
|
+
break;
|
|
2172
2346
|
default:
|
|
2173
2347
|
reader.skipType(tag & 7);
|
|
2174
2348
|
break;
|
|
@@ -2185,6 +2359,10 @@ exports.IdentityLink = {
|
|
|
2185
2359
|
message.linkedAt = object.linkedAt !== undefined && object.linkedAt !== null ? BigInt(object.linkedAt.toString()) : BigInt(0);
|
|
2186
2360
|
message.verifiedAt = object.verifiedAt !== undefined && object.verifiedAt !== null ? BigInt(object.verifiedAt.toString()) : BigInt(0);
|
|
2187
2361
|
message.challenge = object.challenge ?? new Uint8Array();
|
|
2362
|
+
message.verificationAttempts = object.verificationAttempts ?? 0;
|
|
2363
|
+
message.unverifiedExpiresAt = object.unverifiedExpiresAt !== undefined && object.unverifiedExpiresAt !== null ? BigInt(object.unverifiedExpiresAt.toString()) : BigInt(0);
|
|
2364
|
+
message.attestedBy = object.attestedBy ?? "";
|
|
2365
|
+
message.attestationEvidence = object.attestationEvidence ?? "";
|
|
2188
2366
|
return message;
|
|
2189
2367
|
},
|
|
2190
2368
|
fromAmino(object) {
|
|
@@ -2210,6 +2388,18 @@ exports.IdentityLink = {
|
|
|
2210
2388
|
if (object.challenge !== undefined && object.challenge !== null) {
|
|
2211
2389
|
message.challenge = (0, helpers_1.bytesFromBase64)(object.challenge);
|
|
2212
2390
|
}
|
|
2391
|
+
if (object.verification_attempts !== undefined && object.verification_attempts !== null) {
|
|
2392
|
+
message.verificationAttempts = object.verification_attempts;
|
|
2393
|
+
}
|
|
2394
|
+
if (object.unverified_expires_at !== undefined && object.unverified_expires_at !== null) {
|
|
2395
|
+
message.unverifiedExpiresAt = BigInt(object.unverified_expires_at);
|
|
2396
|
+
}
|
|
2397
|
+
if (object.attested_by !== undefined && object.attested_by !== null) {
|
|
2398
|
+
message.attestedBy = object.attested_by;
|
|
2399
|
+
}
|
|
2400
|
+
if (object.attestation_evidence !== undefined && object.attestation_evidence !== null) {
|
|
2401
|
+
message.attestationEvidence = object.attestation_evidence;
|
|
2402
|
+
}
|
|
2213
2403
|
return message;
|
|
2214
2404
|
},
|
|
2215
2405
|
toAmino(message) {
|
|
@@ -2221,6 +2411,10 @@ exports.IdentityLink = {
|
|
|
2221
2411
|
obj.linked_at = message.linkedAt !== BigInt(0) ? message.linkedAt?.toString() : undefined;
|
|
2222
2412
|
obj.verified_at = message.verifiedAt !== BigInt(0) ? message.verifiedAt?.toString() : undefined;
|
|
2223
2413
|
obj.challenge = message.challenge ? (0, helpers_1.base64FromBytes)(message.challenge) : undefined;
|
|
2414
|
+
obj.verification_attempts = message.verificationAttempts === 0 ? undefined : message.verificationAttempts;
|
|
2415
|
+
obj.unverified_expires_at = message.unverifiedExpiresAt !== BigInt(0) ? message.unverifiedExpiresAt?.toString() : undefined;
|
|
2416
|
+
obj.attested_by = message.attestedBy === "" ? undefined : message.attestedBy;
|
|
2417
|
+
obj.attestation_evidence = message.attestationEvidence === "" ? undefined : message.attestationEvidence;
|
|
2224
2418
|
return obj;
|
|
2225
2419
|
},
|
|
2226
2420
|
fromAminoMsg(object) {
|
|
@@ -12,6 +12,12 @@ export interface ArchiveMetadata {
|
|
|
12
12
|
firstArchivedAt: bigint;
|
|
13
13
|
lastArchivedAt: bigint;
|
|
14
14
|
hrOverrideRequired: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* last_unarchived_at is the block time of the most recent MsgUnarchiveThread.
|
|
17
|
+
* MsgFreezeThread refuses to re-archive until last_unarchived_at +
|
|
18
|
+
* archive_cooldown has passed. 0 when the thread was never unarchived.
|
|
19
|
+
*/
|
|
20
|
+
lastUnarchivedAt: bigint;
|
|
15
21
|
}
|
|
16
22
|
export interface ArchiveMetadataProtoMsg {
|
|
17
23
|
typeUrl: "/sparkdream.forum.v1.ArchiveMetadata";
|
|
@@ -29,6 +35,12 @@ export interface ArchiveMetadataAmino {
|
|
|
29
35
|
first_archived_at?: string;
|
|
30
36
|
last_archived_at?: string;
|
|
31
37
|
hr_override_required?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* last_unarchived_at is the block time of the most recent MsgUnarchiveThread.
|
|
40
|
+
* MsgFreezeThread refuses to re-archive until last_unarchived_at +
|
|
41
|
+
* archive_cooldown has passed. 0 when the thread was never unarchived.
|
|
42
|
+
*/
|
|
43
|
+
last_unarchived_at?: string;
|
|
32
44
|
}
|
|
33
45
|
export interface ArchiveMetadataAminoMsg {
|
|
34
46
|
type: "/sparkdream.forum.v1.ArchiveMetadata";
|
|
@@ -9,7 +9,8 @@ function createBaseArchiveMetadata() {
|
|
|
9
9
|
archiveCount: BigInt(0),
|
|
10
10
|
firstArchivedAt: BigInt(0),
|
|
11
11
|
lastArchivedAt: BigInt(0),
|
|
12
|
-
hrOverrideRequired: false
|
|
12
|
+
hrOverrideRequired: false,
|
|
13
|
+
lastUnarchivedAt: BigInt(0)
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
@@ -36,6 +37,9 @@ exports.ArchiveMetadata = {
|
|
|
36
37
|
if (message.hrOverrideRequired === true) {
|
|
37
38
|
writer.uint32(40).bool(message.hrOverrideRequired);
|
|
38
39
|
}
|
|
40
|
+
if (message.lastUnarchivedAt !== BigInt(0)) {
|
|
41
|
+
writer.uint32(48).int64(message.lastUnarchivedAt);
|
|
42
|
+
}
|
|
39
43
|
return writer;
|
|
40
44
|
},
|
|
41
45
|
decode(input, length) {
|
|
@@ -60,6 +64,9 @@ exports.ArchiveMetadata = {
|
|
|
60
64
|
case 5:
|
|
61
65
|
message.hrOverrideRequired = reader.bool();
|
|
62
66
|
break;
|
|
67
|
+
case 6:
|
|
68
|
+
message.lastUnarchivedAt = reader.int64();
|
|
69
|
+
break;
|
|
63
70
|
default:
|
|
64
71
|
reader.skipType(tag & 7);
|
|
65
72
|
break;
|
|
@@ -74,6 +81,7 @@ exports.ArchiveMetadata = {
|
|
|
74
81
|
message.firstArchivedAt = object.firstArchivedAt !== undefined && object.firstArchivedAt !== null ? BigInt(object.firstArchivedAt.toString()) : BigInt(0);
|
|
75
82
|
message.lastArchivedAt = object.lastArchivedAt !== undefined && object.lastArchivedAt !== null ? BigInt(object.lastArchivedAt.toString()) : BigInt(0);
|
|
76
83
|
message.hrOverrideRequired = object.hrOverrideRequired ?? false;
|
|
84
|
+
message.lastUnarchivedAt = object.lastUnarchivedAt !== undefined && object.lastUnarchivedAt !== null ? BigInt(object.lastUnarchivedAt.toString()) : BigInt(0);
|
|
77
85
|
return message;
|
|
78
86
|
},
|
|
79
87
|
fromAmino(object) {
|
|
@@ -93,6 +101,9 @@ exports.ArchiveMetadata = {
|
|
|
93
101
|
if (object.hr_override_required !== undefined && object.hr_override_required !== null) {
|
|
94
102
|
message.hrOverrideRequired = object.hr_override_required;
|
|
95
103
|
}
|
|
104
|
+
if (object.last_unarchived_at !== undefined && object.last_unarchived_at !== null) {
|
|
105
|
+
message.lastUnarchivedAt = BigInt(object.last_unarchived_at);
|
|
106
|
+
}
|
|
96
107
|
return message;
|
|
97
108
|
},
|
|
98
109
|
toAmino(message) {
|
|
@@ -102,6 +113,7 @@ exports.ArchiveMetadata = {
|
|
|
102
113
|
obj.first_archived_at = message.firstArchivedAt !== BigInt(0) ? message.firstArchivedAt?.toString() : undefined;
|
|
103
114
|
obj.last_archived_at = message.lastArchivedAt !== BigInt(0) ? message.lastArchivedAt?.toString() : undefined;
|
|
104
115
|
obj.hr_override_required = message.hrOverrideRequired === false ? undefined : message.hrOverrideRequired;
|
|
116
|
+
obj.last_unarchived_at = message.lastUnarchivedAt !== BigInt(0) ? message.lastUnarchivedAt?.toString() : undefined;
|
|
105
117
|
return obj;
|
|
106
118
|
},
|
|
107
119
|
fromAminoMsg(object) {
|