@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.18
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/blog/v1/params.js +51 -50
- package/esm/sparkdream/bundle.js +448 -346
- package/esm/sparkdream/client.js +7 -1
- package/esm/sparkdream/collect/v1/params.js +13 -1
- package/esm/sparkdream/collect/v1/types.js +13 -1
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +317 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
- package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
- package/esm/sparkdream/commons/v1/tx.js +693 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
- package/esm/sparkdream/federation/v1/genesis.js +10 -10
- package/esm/sparkdream/federation/v1/params.js +29 -54
- package/esm/sparkdream/federation/v1/query.js +216 -71
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
- package/esm/sparkdream/federation/v1/tx.js +1146 -1105
- package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
- package/esm/sparkdream/federation/v1/types.js +355 -99
- package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/esm/sparkdream/forum/v1/params.js +173 -148
- package/esm/sparkdream/guardian/module/v1/module.js +68 -0
- package/esm/sparkdream/guardian/v1/query.js +128 -0
- package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
- package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
- package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
- package/esm/sparkdream/guardian/v1/tx.js +175 -0
- package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
- package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
- package/esm/sparkdream/identity/module/v1/module.js +71 -0
- package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
- package/esm/sparkdream/identity/v1/genesis.js +84 -0
- package/esm/sparkdream/identity/v1/query.js +372 -0
- package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
- package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
- package/esm/sparkdream/lcd.js +15 -0
- package/esm/sparkdream/name/v1/params.js +19 -18
- package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
- package/esm/sparkdream/rep/v1/tag.js +6 -13
- package/esm/sparkdream/rpc.query.js +9 -0
- package/esm/sparkdream/rpc.tx.js +6 -0
- package/esm/sparkdream/service/module/v1/module.js +71 -0
- package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
- package/esm/sparkdream/service/v1/genesis.js +240 -0
- package/esm/sparkdream/service/v1/operator.js +250 -0
- package/esm/sparkdream/service/v1/params.js +355 -0
- package/esm/sparkdream/service/v1/query.js +1582 -0
- package/esm/sparkdream/service/v1/query.lcd.js +107 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
- package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
- package/esm/sparkdream/service/v1/report.js +212 -0
- package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
- package/esm/sparkdream/service/v1/service_type_config.js +264 -0
- package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
- package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
- package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
- package/esm/sparkdream/service/v1/tx.amino.js +69 -0
- package/esm/sparkdream/service/v1/tx.js +2124 -0
- package/esm/sparkdream/service/v1/tx.registry.js +249 -0
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
- package/esm/sparkdream/service/v1/types.js +353 -0
- package/esm/sparkdream/session/v1/genesis.js +136 -10
- package/esm/sparkdream/session/v1/grant.js +1020 -0
- package/esm/sparkdream/session/v1/params.js +543 -19
- package/esm/sparkdream/session/v1/query.js +487 -0
- package/esm/sparkdream/session/v1/query.lcd.js +41 -3
- package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
- package/esm/sparkdream/session/v1/session.js +6 -0
- package/esm/sparkdream/session/v1/tx.js +1066 -0
- package/esm/sparkdream/session/v1/tx.registry.js +110 -2
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +37 -28
- package/sparkdream/blog/v1/params.js +51 -50
- package/sparkdream/blog/v1/post.d.ts +2 -2
- package/sparkdream/blog/v1/tx.d.ts +4 -4
- package/sparkdream/bundle.d.ts +14912 -12896
- package/sparkdream/bundle.js +448 -346
- package/sparkdream/client.d.ts +90 -20
- package/sparkdream/client.js +7 -1
- package/sparkdream/collect/v1/params.d.ts +16 -0
- package/sparkdream/collect/v1/params.js +13 -1
- package/sparkdream/collect/v1/types.d.ts +2 -0
- package/sparkdream/collect/v1/types.js +13 -1
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +186 -0
- package/sparkdream/commons/v1/query.js +318 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +23 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
- package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
- package/sparkdream/commons/v1/recurring_spend.js +301 -0
- package/sparkdream/commons/v1/tx.d.ts +472 -0
- package/sparkdream/commons/v1/tx.js +694 -1
- 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 +29 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
- package/sparkdream/federation/v1/genesis.d.ts +3 -3
- package/sparkdream/federation/v1/genesis.js +9 -9
- package/sparkdream/federation/v1/params.d.ts +64 -13
- package/sparkdream/federation/v1/params.js +29 -54
- package/sparkdream/federation/v1/query.d.ts +209 -100
- package/sparkdream/federation/v1/query.js +216 -71
- package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
- package/sparkdream/federation/v1/query.lcd.js +11 -6
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
- package/sparkdream/federation/v1/tx.amino.js +20 -20
- package/sparkdream/federation/v1/tx.d.ts +479 -352
- package/sparkdream/federation/v1/tx.js +1147 -1106
- package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
- package/sparkdream/federation/v1/tx.registry.js +73 -73
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
- package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
- package/sparkdream/federation/v1/types.d.ts +307 -41
- package/sparkdream/federation/v1/types.js +360 -100
- package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
- package/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/sparkdream/forum/v1/params.d.ts +99 -62
- package/sparkdream/forum/v1/params.js +173 -148
- package/sparkdream/guardian/module/v1/module.d.ts +74 -0
- package/sparkdream/guardian/module/v1/module.js +71 -0
- package/sparkdream/guardian/v1/query.d.ts +88 -0
- package/sparkdream/guardian/v1/query.js +131 -0
- package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
- package/sparkdream/guardian/v1/query.lcd.js +17 -0
- package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
- package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
- package/sparkdream/guardian/v1/tx.amino.js +12 -0
- package/sparkdream/guardian/v1/tx.d.ts +138 -0
- package/sparkdream/guardian/v1/tx.js +181 -0
- package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
- package/sparkdream/guardian/v1/tx.registry.js +37 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/identity/module/v1/module.d.ts +54 -0
- package/sparkdream/identity/module/v1/module.js +74 -0
- package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
- package/sparkdream/identity/v1/chain_identity.js +202 -0
- package/sparkdream/identity/v1/genesis.d.ts +65 -0
- package/sparkdream/identity/v1/genesis.js +87 -0
- package/sparkdream/identity/v1/query.d.ts +243 -0
- package/sparkdream/identity/v1/query.js +375 -0
- package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
- package/sparkdream/identity/v1/query.lcd.js +25 -0
- package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
- package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
- package/sparkdream/lcd.d.ts +9 -0
- package/sparkdream/lcd.js +15 -0
- package/sparkdream/name/v1/params.d.ts +25 -8
- package/sparkdream/name/v1/params.js +19 -18
- package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
- package/sparkdream/rep/v1/bonded_role.js +48 -2
- package/sparkdream/rep/v1/tag.d.ts +15 -2
- package/sparkdream/rep/v1/tag.js +6 -13
- package/sparkdream/rpc.query.d.ts +34 -2
- package/sparkdream/rpc.query.js +9 -0
- package/sparkdream/rpc.tx.d.ts +6 -0
- package/sparkdream/rpc.tx.js +6 -0
- package/sparkdream/service/module/v1/module.d.ts +54 -0
- package/sparkdream/service/module/v1/module.js +74 -0
- package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
- package/sparkdream/service/v1/controller_transfer_case.js +158 -0
- package/sparkdream/service/v1/genesis.d.ts +172 -0
- package/sparkdream/service/v1/genesis.js +243 -0
- package/sparkdream/service/v1/operator.d.ts +215 -0
- package/sparkdream/service/v1/operator.js +253 -0
- package/sparkdream/service/v1/params.d.ts +346 -0
- package/sparkdream/service/v1/params.js +358 -0
- package/sparkdream/service/v1/query.d.ts +964 -0
- package/sparkdream/service/v1/query.js +1585 -0
- package/sparkdream/service/v1/query.lcd.d.ts +18 -0
- package/sparkdream/service/v1/query.lcd.js +111 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
- package/sparkdream/service/v1/query.rpc.Query.js +114 -0
- package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
- package/sparkdream/service/v1/refile_cooldown.js +124 -0
- package/sparkdream/service/v1/report.d.ts +174 -0
- package/sparkdream/service/v1/report.js +215 -0
- package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
- package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
- package/sparkdream/service/v1/service_type_config.d.ts +222 -0
- package/sparkdream/service/v1/service_type_config.js +269 -0
- package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
- package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
- package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
- package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
- package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
- package/sparkdream/service/v1/tier1_last_slash.js +124 -0
- package/sparkdream/service/v1/tx.amino.d.ts +68 -0
- package/sparkdream/service/v1/tx.amino.js +72 -0
- package/sparkdream/service/v1/tx.d.ts +1264 -0
- package/sparkdream/service/v1/tx.js +2127 -0
- package/sparkdream/service/v1/tx.registry.d.ts +169 -0
- package/sparkdream/service/v1/tx.registry.js +253 -0
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
- package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
- package/sparkdream/service/v1/types.d.ts +94 -0
- package/sparkdream/service/v1/types.js +370 -0
- package/sparkdream/session/v1/genesis.d.ts +93 -9
- package/sparkdream/session/v1/genesis.js +137 -11
- package/sparkdream/session/v1/grant.d.ts +517 -0
- package/sparkdream/session/v1/grant.js +1027 -0
- package/sparkdream/session/v1/params.d.ts +338 -7
- package/sparkdream/session/v1/params.js +543 -19
- package/sparkdream/session/v1/query.d.ts +265 -0
- package/sparkdream/session/v1/query.js +488 -1
- package/sparkdream/session/v1/query.lcd.d.ts +4 -1
- package/sparkdream/session/v1/query.lcd.js +41 -3
- package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
- package/sparkdream/session/v1/query.rpc.Query.js +35 -3
- package/sparkdream/session/v1/session.d.ts +18 -0
- package/sparkdream/session/v1/session.js +6 -0
- package/sparkdream/session/v1/tx.d.ts +660 -0
- package/sparkdream/session/v1/tx.js +1067 -1
- package/sparkdream/session/v1/tx.registry.d.ts +73 -1
- package/sparkdream/session/v1/tx.registry.js +109 -1
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
- package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChainIdentity, ChainIdentityAmino } from "../../identity/v1/chain_identity";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
4
|
export declare enum PeerType {
|
|
@@ -6,6 +6,23 @@ export declare enum PeerType {
|
|
|
6
6
|
PEER_TYPE_SPARK_DREAM = 1,
|
|
7
7
|
PEER_TYPE_ACTIVITYPUB = 2,
|
|
8
8
|
PEER_TYPE_ATPROTO = 3,
|
|
9
|
+
/**
|
|
10
|
+
* PEER_TYPE_NOSTR - NOSTR peers are modeled per-relay (one Peer = one relay endpoint).
|
|
11
|
+
* Uses an off-chain bridge daemon, same accountability model as
|
|
12
|
+
* ActivityPub/AT Protocol. NOSTR identity (pubkey) is global, so the
|
|
13
|
+
* same remote_identity may be linked across multiple NOSTR-relay peers.
|
|
14
|
+
*/
|
|
15
|
+
PEER_TYPE_NOSTR = 4,
|
|
16
|
+
/**
|
|
17
|
+
* PEER_TYPE_LENS - Lens peers represent a Lens Chain deployment (zkSync L2 + Avail DA).
|
|
18
|
+
* Identity is on-chain (wallet address + tokenized handle NFT); the
|
|
19
|
+
* off-chain bridge daemon is expected to query Lens Chain RPC to
|
|
20
|
+
* verify NFT ownership before attesting, raising the bar relative to
|
|
21
|
+
* pure HTTP-signature attestation used for ActivityPub. Future work
|
|
22
|
+
* (deferred): MsgLinkIdentityViaStateProof for fully on-chain
|
|
23
|
+
* verification via EVM state proofs.
|
|
24
|
+
*/
|
|
25
|
+
PEER_TYPE_LENS = 5,
|
|
9
26
|
UNRECOGNIZED = -1
|
|
10
27
|
}
|
|
11
28
|
export declare const PeerTypeAmino: typeof PeerType;
|
|
@@ -66,6 +83,37 @@ export declare enum VerificationOutcome {
|
|
|
66
83
|
export declare const VerificationOutcomeAmino: typeof VerificationOutcome;
|
|
67
84
|
export declare function verificationOutcomeFromJSON(object: any): VerificationOutcome;
|
|
68
85
|
export declare function verificationOutcomeToJSON(object: VerificationOutcome): string;
|
|
86
|
+
/**
|
|
87
|
+
* PendingVerifierVerdict captures an arbiter-quorum auto-verdict that
|
|
88
|
+
* hasn't yet been applied (escalation window still open). Drives the
|
|
89
|
+
* fee-disbursement and slash logic in EndBlocker phase
|
|
90
|
+
* finalizeAutoResolutions.
|
|
91
|
+
*/
|
|
92
|
+
export declare enum PendingVerifierVerdict {
|
|
93
|
+
PENDING_VERIFIER_VERDICT_UNSPECIFIED = 0,
|
|
94
|
+
PENDING_VERIFIER_VERDICT_VERIFIER_RIGHT = 1,
|
|
95
|
+
PENDING_VERIFIER_VERDICT_VERIFIER_WRONG = 2,
|
|
96
|
+
UNRECOGNIZED = -1
|
|
97
|
+
}
|
|
98
|
+
export declare const PendingVerifierVerdictAmino: typeof PendingVerifierVerdict;
|
|
99
|
+
export declare function pendingVerifierVerdictFromJSON(object: any): PendingVerifierVerdict;
|
|
100
|
+
export declare function pendingVerifierVerdictToJSON(object: PendingVerifierVerdict): string;
|
|
101
|
+
/**
|
|
102
|
+
* JuryVerdict is the Phase 2 (human jury) outcome for an escalated
|
|
103
|
+
* challenge. Submitted via MsgResolveEscalatedChallenge or stamped
|
|
104
|
+
* automatically on jury deadline expiry (TIMEOUT). Drives the final
|
|
105
|
+
* fee disbursement, content status, and verifier-side accounting.
|
|
106
|
+
*/
|
|
107
|
+
export declare enum JuryVerdict {
|
|
108
|
+
JURY_VERDICT_UNSPECIFIED = 0,
|
|
109
|
+
JURY_VERDICT_CHALLENGE_UPHELD = 1,
|
|
110
|
+
JURY_VERDICT_CHALLENGE_REJECTED = 2,
|
|
111
|
+
JURY_VERDICT_CHALLENGE_TIMEOUT = 3,
|
|
112
|
+
UNRECOGNIZED = -1
|
|
113
|
+
}
|
|
114
|
+
export declare const JuryVerdictAmino: typeof JuryVerdict;
|
|
115
|
+
export declare function juryVerdictFromJSON(object: any): JuryVerdict;
|
|
116
|
+
export declare function juryVerdictToJSON(object: JuryVerdict): string;
|
|
69
117
|
/**
|
|
70
118
|
* Peer represents a federation peer (another Spark Dream chain or external protocol).
|
|
71
119
|
* @name Peer
|
|
@@ -83,6 +131,25 @@ export interface Peer {
|
|
|
83
131
|
registeredBy: string;
|
|
84
132
|
metadata: string;
|
|
85
133
|
removedAt: bigint;
|
|
134
|
+
/**
|
|
135
|
+
* controller_group is the x/commons Group policy address that resolves
|
|
136
|
+
* tier-1 reports against this peer's bridge operators (federation→
|
|
137
|
+
* service migration, Decision 2). If empty, federation resolves it to
|
|
138
|
+
* the Operations Committee policy address at MsgRegisterBridge time.
|
|
139
|
+
* The resolved address is captured on the resulting service.Operator;
|
|
140
|
+
* changing it later (MsgUpdatePeerController) affects only new
|
|
141
|
+
* registrations, not existing bridges.
|
|
142
|
+
*/
|
|
143
|
+
controllerGroup: string;
|
|
144
|
+
/**
|
|
145
|
+
* peer_identity carries the chain identity (denoms, display symbols,
|
|
146
|
+
* chain human name) supplied at peer registration. Used for IBC voucher
|
|
147
|
+
* metadata pre-registration (see spec §9.2 and x-identity-spec.md) so
|
|
148
|
+
* wallets render PSPK.ibc instead of ibc/<hash>. Optional for backwards
|
|
149
|
+
* compatibility with pre-extension peers; populated for PEER_TYPE_SPARK_DREAM
|
|
150
|
+
* peers registered via MsgRegisterPeer with --peer-identity.
|
|
151
|
+
*/
|
|
152
|
+
peerIdentity?: ChainIdentity;
|
|
86
153
|
}
|
|
87
154
|
export interface PeerProtoMsg {
|
|
88
155
|
typeUrl: "/sparkdream.federation.v1.Peer";
|
|
@@ -105,6 +172,25 @@ export interface PeerAmino {
|
|
|
105
172
|
registered_by?: string;
|
|
106
173
|
metadata?: string;
|
|
107
174
|
removed_at?: string;
|
|
175
|
+
/**
|
|
176
|
+
* controller_group is the x/commons Group policy address that resolves
|
|
177
|
+
* tier-1 reports against this peer's bridge operators (federation→
|
|
178
|
+
* service migration, Decision 2). If empty, federation resolves it to
|
|
179
|
+
* the Operations Committee policy address at MsgRegisterBridge time.
|
|
180
|
+
* The resolved address is captured on the resulting service.Operator;
|
|
181
|
+
* changing it later (MsgUpdatePeerController) affects only new
|
|
182
|
+
* registrations, not existing bridges.
|
|
183
|
+
*/
|
|
184
|
+
controller_group?: string;
|
|
185
|
+
/**
|
|
186
|
+
* peer_identity carries the chain identity (denoms, display symbols,
|
|
187
|
+
* chain human name) supplied at peer registration. Used for IBC voucher
|
|
188
|
+
* metadata pre-registration (see spec §9.2 and x-identity-spec.md) so
|
|
189
|
+
* wallets render PSPK.ibc instead of ibc/<hash>. Optional for backwards
|
|
190
|
+
* compatibility with pre-extension peers; populated for PEER_TYPE_SPARK_DREAM
|
|
191
|
+
* peers registered via MsgRegisterPeer with --peer-identity.
|
|
192
|
+
*/
|
|
193
|
+
peer_identity?: ChainIdentityAmino;
|
|
108
194
|
}
|
|
109
195
|
export interface PeerAminoMsg {
|
|
110
196
|
type: "/sparkdream.federation.v1.Peer";
|
|
@@ -175,58 +261,82 @@ export interface PeerPolicyAminoMsg {
|
|
|
175
261
|
value: PeerPolicyAmino;
|
|
176
262
|
}
|
|
177
263
|
/**
|
|
178
|
-
*
|
|
179
|
-
*
|
|
264
|
+
* BridgeBinding represents the federation-owned binding between a bridge
|
|
265
|
+
* operator and a peer. Economic state (bond, status, unbonding, slashing
|
|
266
|
+
* history) lives on the corresponding x/service Operator record keyed
|
|
267
|
+
* by (address, service_type). This binding holds only federation-
|
|
268
|
+
* specific data: which peer + protocol + endpoint URL + content stats
|
|
269
|
+
* + suspended flag (toggled by underfunded/refunded hooks).
|
|
270
|
+
*
|
|
271
|
+
* Per Decision 1a of the federation→service migration, one operator
|
|
272
|
+
* address may hold multiple bindings under the same protocol (one per
|
|
273
|
+
* peer) backed by a single shared service.Operator and a single shared
|
|
274
|
+
* bond. Suspending a binding refuses new content submissions but does
|
|
275
|
+
* not delete it.
|
|
276
|
+
* @name BridgeBinding
|
|
180
277
|
* @package sparkdream.federation.v1
|
|
181
|
-
* @see proto type: sparkdream.federation.v1.
|
|
278
|
+
* @see proto type: sparkdream.federation.v1.BridgeBinding
|
|
182
279
|
*/
|
|
183
|
-
export interface
|
|
280
|
+
export interface BridgeBinding {
|
|
184
281
|
address: string;
|
|
185
282
|
peerId: string;
|
|
186
283
|
protocol: string;
|
|
187
284
|
endpoint: string;
|
|
188
|
-
stake: Coin;
|
|
189
285
|
registeredAt: bigint;
|
|
190
|
-
status: BridgeStatus;
|
|
191
286
|
contentSubmitted: bigint;
|
|
192
|
-
contentRejected: bigint;
|
|
193
|
-
slashCount: bigint;
|
|
194
|
-
revokedAt: bigint;
|
|
195
|
-
lastSubmissionAt: bigint;
|
|
196
|
-
unbondingEndTime: bigint;
|
|
197
287
|
contentVerified: bigint;
|
|
288
|
+
contentRejected: bigint;
|
|
198
289
|
contentUnverified: bigint;
|
|
290
|
+
lastSubmissionAt: bigint;
|
|
291
|
+
/**
|
|
292
|
+
* suspended is set to true by AfterOperatorUnderfunded and cleared
|
|
293
|
+
* by AfterOperatorReFunded. Federation rejects new content
|
|
294
|
+
* submissions from suspended bindings.
|
|
295
|
+
*/
|
|
296
|
+
suspended: boolean;
|
|
199
297
|
}
|
|
200
|
-
export interface
|
|
201
|
-
typeUrl: "/sparkdream.federation.v1.
|
|
298
|
+
export interface BridgeBindingProtoMsg {
|
|
299
|
+
typeUrl: "/sparkdream.federation.v1.BridgeBinding";
|
|
202
300
|
value: Uint8Array;
|
|
203
301
|
}
|
|
204
302
|
/**
|
|
205
|
-
*
|
|
206
|
-
*
|
|
303
|
+
* BridgeBinding represents the federation-owned binding between a bridge
|
|
304
|
+
* operator and a peer. Economic state (bond, status, unbonding, slashing
|
|
305
|
+
* history) lives on the corresponding x/service Operator record keyed
|
|
306
|
+
* by (address, service_type). This binding holds only federation-
|
|
307
|
+
* specific data: which peer + protocol + endpoint URL + content stats
|
|
308
|
+
* + suspended flag (toggled by underfunded/refunded hooks).
|
|
309
|
+
*
|
|
310
|
+
* Per Decision 1a of the federation→service migration, one operator
|
|
311
|
+
* address may hold multiple bindings under the same protocol (one per
|
|
312
|
+
* peer) backed by a single shared service.Operator and a single shared
|
|
313
|
+
* bond. Suspending a binding refuses new content submissions but does
|
|
314
|
+
* not delete it.
|
|
315
|
+
* @name BridgeBindingAmino
|
|
207
316
|
* @package sparkdream.federation.v1
|
|
208
|
-
* @see proto type: sparkdream.federation.v1.
|
|
317
|
+
* @see proto type: sparkdream.federation.v1.BridgeBinding
|
|
209
318
|
*/
|
|
210
|
-
export interface
|
|
319
|
+
export interface BridgeBindingAmino {
|
|
211
320
|
address?: string;
|
|
212
321
|
peer_id?: string;
|
|
213
322
|
protocol?: string;
|
|
214
323
|
endpoint?: string;
|
|
215
|
-
stake?: CoinAmino;
|
|
216
324
|
registered_at?: string;
|
|
217
|
-
status?: BridgeStatus;
|
|
218
325
|
content_submitted?: string;
|
|
219
|
-
content_rejected?: string;
|
|
220
|
-
slash_count?: string;
|
|
221
|
-
revoked_at?: string;
|
|
222
|
-
last_submission_at?: string;
|
|
223
|
-
unbonding_end_time?: string;
|
|
224
326
|
content_verified?: string;
|
|
327
|
+
content_rejected?: string;
|
|
225
328
|
content_unverified?: string;
|
|
329
|
+
last_submission_at?: string;
|
|
330
|
+
/**
|
|
331
|
+
* suspended is set to true by AfterOperatorUnderfunded and cleared
|
|
332
|
+
* by AfterOperatorReFunded. Federation rejects new content
|
|
333
|
+
* submissions from suspended bindings.
|
|
334
|
+
*/
|
|
335
|
+
suspended?: boolean;
|
|
226
336
|
}
|
|
227
|
-
export interface
|
|
228
|
-
type: "/sparkdream.federation.v1.
|
|
229
|
-
value:
|
|
337
|
+
export interface BridgeBindingAminoMsg {
|
|
338
|
+
type: "/sparkdream.federation.v1.BridgeBinding";
|
|
339
|
+
value: BridgeBindingAmino;
|
|
230
340
|
}
|
|
231
341
|
/**
|
|
232
342
|
* VerificationRecord tracks a verifier's verification of specific content.
|
|
@@ -246,6 +356,23 @@ export interface VerificationRecord {
|
|
|
246
356
|
priorRejectedChallenges: number;
|
|
247
357
|
lastChallengeResolvedAt: bigint;
|
|
248
358
|
challenger: string;
|
|
359
|
+
/**
|
|
360
|
+
* escrowed_challenge_fee is the per-challenge SPARK amount the
|
|
361
|
+
* challenger escrowed at MsgChallengeVerification time. Snapshotted
|
|
362
|
+
* because the effective fee escalates with prior_rejected_challenges
|
|
363
|
+
* (2^N multiplier) — recomputing at resolution time would be fragile.
|
|
364
|
+
* Used by the auto-resolve path to refund (UPHELD) or split
|
|
365
|
+
* (REJECTED) the escrow.
|
|
366
|
+
*/
|
|
367
|
+
escrowedChallengeFee: string;
|
|
368
|
+
/**
|
|
369
|
+
* pending_verifier_verdict snapshots the would-be auto-verdict from
|
|
370
|
+
* the arbiter-quorum branch (UNSPECIFIED until quorum lands, then
|
|
371
|
+
* VERIFIER_RIGHT or VERIFIER_WRONG). The verdict is applied by the
|
|
372
|
+
* EndBlocker when the escalation window expires; MsgEscalateChallenge
|
|
373
|
+
* clears it back to UNSPECIFIED, deferring resolution to the jury path.
|
|
374
|
+
*/
|
|
375
|
+
pendingVerifierVerdict: PendingVerifierVerdict;
|
|
249
376
|
}
|
|
250
377
|
export interface VerificationRecordProtoMsg {
|
|
251
378
|
typeUrl: "/sparkdream.federation.v1.VerificationRecord";
|
|
@@ -269,11 +396,114 @@ export interface VerificationRecordAmino {
|
|
|
269
396
|
prior_rejected_challenges?: number;
|
|
270
397
|
last_challenge_resolved_at?: string;
|
|
271
398
|
challenger?: string;
|
|
399
|
+
/**
|
|
400
|
+
* escrowed_challenge_fee is the per-challenge SPARK amount the
|
|
401
|
+
* challenger escrowed at MsgChallengeVerification time. Snapshotted
|
|
402
|
+
* because the effective fee escalates with prior_rejected_challenges
|
|
403
|
+
* (2^N multiplier) — recomputing at resolution time would be fragile.
|
|
404
|
+
* Used by the auto-resolve path to refund (UPHELD) or split
|
|
405
|
+
* (REJECTED) the escrow.
|
|
406
|
+
*/
|
|
407
|
+
escrowed_challenge_fee?: string;
|
|
408
|
+
/**
|
|
409
|
+
* pending_verifier_verdict snapshots the would-be auto-verdict from
|
|
410
|
+
* the arbiter-quorum branch (UNSPECIFIED until quorum lands, then
|
|
411
|
+
* VERIFIER_RIGHT or VERIFIER_WRONG). The verdict is applied by the
|
|
412
|
+
* EndBlocker when the escalation window expires; MsgEscalateChallenge
|
|
413
|
+
* clears it back to UNSPECIFIED, deferring resolution to the jury path.
|
|
414
|
+
*/
|
|
415
|
+
pending_verifier_verdict?: PendingVerifierVerdict;
|
|
272
416
|
}
|
|
273
417
|
export interface VerificationRecordAminoMsg {
|
|
274
418
|
type: "/sparkdream.federation.v1.VerificationRecord";
|
|
275
419
|
value: VerificationRecordAmino;
|
|
276
420
|
}
|
|
421
|
+
/**
|
|
422
|
+
* EscalatedChallenge tracks the Phase 2 (human jury) lifecycle for a
|
|
423
|
+
* challenge whose Phase 1 auto-verdict was contested via
|
|
424
|
+
* MsgEscalateChallenge. Operations Committee submits the jury verdict
|
|
425
|
+
* via MsgResolveEscalatedChallenge; the EndBlocker stamps TIMEOUT on
|
|
426
|
+
* jury_deadline expiry. Both paths feed the same applyJuryVerdict
|
|
427
|
+
* helper which disposes of the escrowed challenge_fee + escalation_fee
|
|
428
|
+
* and (on UPHELD/REJECTED) applies the same verifier-side accounting
|
|
429
|
+
* as the auto-resolution path.
|
|
430
|
+
* @name EscalatedChallenge
|
|
431
|
+
* @package sparkdream.federation.v1
|
|
432
|
+
* @see proto type: sparkdream.federation.v1.EscalatedChallenge
|
|
433
|
+
*/
|
|
434
|
+
export interface EscalatedChallenge {
|
|
435
|
+
contentId: bigint;
|
|
436
|
+
/**
|
|
437
|
+
* escalator is the address that paid the escalation_fee (challenger
|
|
438
|
+
* or verifier — either party can escalate within the window).
|
|
439
|
+
*/
|
|
440
|
+
escalator: string;
|
|
441
|
+
/**
|
|
442
|
+
* escrowed_escalation_fee snapshots the SPARK amount escrowed at
|
|
443
|
+
* escalation time. Refunded to the escalator if the jury verdict
|
|
444
|
+
* overturns the auto-verdict; burned otherwise.
|
|
445
|
+
*/
|
|
446
|
+
escrowedEscalationFee: string;
|
|
447
|
+
/**
|
|
448
|
+
* auto_verdict_before_escalation snapshots the Phase 1 verdict that
|
|
449
|
+
* was about to apply. Compared to the jury verdict to determine if
|
|
450
|
+
* the jury "overturned" the auto-verdict (escalation fee refund).
|
|
451
|
+
*/
|
|
452
|
+
autoVerdictBeforeEscalation: PendingVerifierVerdict;
|
|
453
|
+
/**
|
|
454
|
+
* jury_deadline is the unix-time block-time after which the
|
|
455
|
+
* EndBlocker stamps TIMEOUT if no MsgResolveEscalatedChallenge has
|
|
456
|
+
* landed.
|
|
457
|
+
*/
|
|
458
|
+
juryDeadline: bigint;
|
|
459
|
+
}
|
|
460
|
+
export interface EscalatedChallengeProtoMsg {
|
|
461
|
+
typeUrl: "/sparkdream.federation.v1.EscalatedChallenge";
|
|
462
|
+
value: Uint8Array;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* EscalatedChallenge tracks the Phase 2 (human jury) lifecycle for a
|
|
466
|
+
* challenge whose Phase 1 auto-verdict was contested via
|
|
467
|
+
* MsgEscalateChallenge. Operations Committee submits the jury verdict
|
|
468
|
+
* via MsgResolveEscalatedChallenge; the EndBlocker stamps TIMEOUT on
|
|
469
|
+
* jury_deadline expiry. Both paths feed the same applyJuryVerdict
|
|
470
|
+
* helper which disposes of the escrowed challenge_fee + escalation_fee
|
|
471
|
+
* and (on UPHELD/REJECTED) applies the same verifier-side accounting
|
|
472
|
+
* as the auto-resolution path.
|
|
473
|
+
* @name EscalatedChallengeAmino
|
|
474
|
+
* @package sparkdream.federation.v1
|
|
475
|
+
* @see proto type: sparkdream.federation.v1.EscalatedChallenge
|
|
476
|
+
*/
|
|
477
|
+
export interface EscalatedChallengeAmino {
|
|
478
|
+
content_id?: string;
|
|
479
|
+
/**
|
|
480
|
+
* escalator is the address that paid the escalation_fee (challenger
|
|
481
|
+
* or verifier — either party can escalate within the window).
|
|
482
|
+
*/
|
|
483
|
+
escalator?: string;
|
|
484
|
+
/**
|
|
485
|
+
* escrowed_escalation_fee snapshots the SPARK amount escrowed at
|
|
486
|
+
* escalation time. Refunded to the escalator if the jury verdict
|
|
487
|
+
* overturns the auto-verdict; burned otherwise.
|
|
488
|
+
*/
|
|
489
|
+
escrowed_escalation_fee?: string;
|
|
490
|
+
/**
|
|
491
|
+
* auto_verdict_before_escalation snapshots the Phase 1 verdict that
|
|
492
|
+
* was about to apply. Compared to the jury verdict to determine if
|
|
493
|
+
* the jury "overturned" the auto-verdict (escalation fee refund).
|
|
494
|
+
*/
|
|
495
|
+
auto_verdict_before_escalation?: PendingVerifierVerdict;
|
|
496
|
+
/**
|
|
497
|
+
* jury_deadline is the unix-time block-time after which the
|
|
498
|
+
* EndBlocker stamps TIMEOUT if no MsgResolveEscalatedChallenge has
|
|
499
|
+
* landed.
|
|
500
|
+
*/
|
|
501
|
+
jury_deadline?: string;
|
|
502
|
+
}
|
|
503
|
+
export interface EscalatedChallengeAminoMsg {
|
|
504
|
+
type: "/sparkdream.federation.v1.EscalatedChallenge";
|
|
505
|
+
value: EscalatedChallengeAmino;
|
|
506
|
+
}
|
|
277
507
|
/**
|
|
278
508
|
* ArbiterHashSubmission stores an arbiter's hash for quorum-based challenge resolution.
|
|
279
509
|
* @name ArbiterHashSubmission
|
|
@@ -629,22 +859,33 @@ export declare const PeerPolicy: {
|
|
|
629
859
|
toProtoMsg(message: PeerPolicy): PeerPolicyProtoMsg;
|
|
630
860
|
};
|
|
631
861
|
/**
|
|
632
|
-
*
|
|
633
|
-
*
|
|
862
|
+
* BridgeBinding represents the federation-owned binding between a bridge
|
|
863
|
+
* operator and a peer. Economic state (bond, status, unbonding, slashing
|
|
864
|
+
* history) lives on the corresponding x/service Operator record keyed
|
|
865
|
+
* by (address, service_type). This binding holds only federation-
|
|
866
|
+
* specific data: which peer + protocol + endpoint URL + content stats
|
|
867
|
+
* + suspended flag (toggled by underfunded/refunded hooks).
|
|
868
|
+
*
|
|
869
|
+
* Per Decision 1a of the federation→service migration, one operator
|
|
870
|
+
* address may hold multiple bindings under the same protocol (one per
|
|
871
|
+
* peer) backed by a single shared service.Operator and a single shared
|
|
872
|
+
* bond. Suspending a binding refuses new content submissions but does
|
|
873
|
+
* not delete it.
|
|
874
|
+
* @name BridgeBinding
|
|
634
875
|
* @package sparkdream.federation.v1
|
|
635
|
-
* @see proto type: sparkdream.federation.v1.
|
|
876
|
+
* @see proto type: sparkdream.federation.v1.BridgeBinding
|
|
636
877
|
*/
|
|
637
|
-
export declare const
|
|
878
|
+
export declare const BridgeBinding: {
|
|
638
879
|
typeUrl: string;
|
|
639
|
-
encode(message:
|
|
640
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
641
|
-
fromPartial(object: DeepPartial<
|
|
642
|
-
fromAmino(object:
|
|
643
|
-
toAmino(message:
|
|
644
|
-
fromAminoMsg(object:
|
|
645
|
-
fromProtoMsg(message:
|
|
646
|
-
toProto(message:
|
|
647
|
-
toProtoMsg(message:
|
|
880
|
+
encode(message: BridgeBinding, writer?: BinaryWriter): BinaryWriter;
|
|
881
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BridgeBinding;
|
|
882
|
+
fromPartial(object: DeepPartial<BridgeBinding>): BridgeBinding;
|
|
883
|
+
fromAmino(object: BridgeBindingAmino): BridgeBinding;
|
|
884
|
+
toAmino(message: BridgeBinding): BridgeBindingAmino;
|
|
885
|
+
fromAminoMsg(object: BridgeBindingAminoMsg): BridgeBinding;
|
|
886
|
+
fromProtoMsg(message: BridgeBindingProtoMsg): BridgeBinding;
|
|
887
|
+
toProto(message: BridgeBinding): Uint8Array;
|
|
888
|
+
toProtoMsg(message: BridgeBinding): BridgeBindingProtoMsg;
|
|
648
889
|
};
|
|
649
890
|
/**
|
|
650
891
|
* VerificationRecord tracks a verifier's verification of specific content.
|
|
@@ -664,6 +905,31 @@ export declare const VerificationRecord: {
|
|
|
664
905
|
toProto(message: VerificationRecord): Uint8Array;
|
|
665
906
|
toProtoMsg(message: VerificationRecord): VerificationRecordProtoMsg;
|
|
666
907
|
};
|
|
908
|
+
/**
|
|
909
|
+
* EscalatedChallenge tracks the Phase 2 (human jury) lifecycle for a
|
|
910
|
+
* challenge whose Phase 1 auto-verdict was contested via
|
|
911
|
+
* MsgEscalateChallenge. Operations Committee submits the jury verdict
|
|
912
|
+
* via MsgResolveEscalatedChallenge; the EndBlocker stamps TIMEOUT on
|
|
913
|
+
* jury_deadline expiry. Both paths feed the same applyJuryVerdict
|
|
914
|
+
* helper which disposes of the escrowed challenge_fee + escalation_fee
|
|
915
|
+
* and (on UPHELD/REJECTED) applies the same verifier-side accounting
|
|
916
|
+
* as the auto-resolution path.
|
|
917
|
+
* @name EscalatedChallenge
|
|
918
|
+
* @package sparkdream.federation.v1
|
|
919
|
+
* @see proto type: sparkdream.federation.v1.EscalatedChallenge
|
|
920
|
+
*/
|
|
921
|
+
export declare const EscalatedChallenge: {
|
|
922
|
+
typeUrl: string;
|
|
923
|
+
encode(message: EscalatedChallenge, writer?: BinaryWriter): BinaryWriter;
|
|
924
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EscalatedChallenge;
|
|
925
|
+
fromPartial(object: DeepPartial<EscalatedChallenge>): EscalatedChallenge;
|
|
926
|
+
fromAmino(object: EscalatedChallengeAmino): EscalatedChallenge;
|
|
927
|
+
toAmino(message: EscalatedChallenge): EscalatedChallengeAmino;
|
|
928
|
+
fromAminoMsg(object: EscalatedChallengeAminoMsg): EscalatedChallenge;
|
|
929
|
+
fromProtoMsg(message: EscalatedChallengeProtoMsg): EscalatedChallenge;
|
|
930
|
+
toProto(message: EscalatedChallenge): Uint8Array;
|
|
931
|
+
toProtoMsg(message: EscalatedChallenge): EscalatedChallengeProtoMsg;
|
|
932
|
+
};
|
|
667
933
|
/**
|
|
668
934
|
* ArbiterHashSubmission stores an arbiter's hash for quorum-based challenge resolution.
|
|
669
935
|
* @name ArbiterHashSubmission
|