@sparkdreamnft/sparkdreamjs 0.0.8 → 0.0.10
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 +76 -76
- package/esm/sparkdream/blog/v1/params.js +25 -1
- package/esm/sparkdream/blog/v1/post.js +16 -1
- package/esm/sparkdream/blog/v1/query.js +165 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +11 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +10 -1
- package/esm/sparkdream/blog/v1/tx.js +32 -2
- package/esm/sparkdream/bundle.js +367 -327
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/curator_activity.js +158 -0
- package/esm/sparkdream/collect/v1/genesis.js +12 -11
- package/esm/sparkdream/collect/v1/params.js +37 -1
- package/esm/sparkdream/collect/v1/query.js +201 -186
- package/esm/sparkdream/collect/v1/query.lcd.js +16 -16
- package/esm/sparkdream/collect/v1/query.rpc.Query.js +19 -19
- package/esm/sparkdream/collect/v1/tx.amino.js +1 -11
- package/esm/sparkdream/collect/v1/tx.js +0 -258
- package/esm/sparkdream/collect/v1/tx.registry.js +2 -38
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +3 -14
- package/esm/sparkdream/collect/v1/types.js +50 -143
- package/esm/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +292 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +18 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +6 -1
- package/esm/sparkdream/commons/v1/tx.js +193 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/federation/module/v1/module.js +71 -0
- package/esm/sparkdream/federation/v1/genesis.js +245 -0
- package/esm/sparkdream/federation/v1/packet.js +810 -0
- package/esm/sparkdream/federation/v1/params.js +789 -0
- package/esm/sparkdream/federation/v1/query.js +2479 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +142 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +181 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +129 -0
- package/esm/sparkdream/federation/v1/tx.js +3929 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +465 -0
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +163 -0
- package/esm/sparkdream/federation/v1/types.js +2266 -0
- package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
- package/esm/sparkdream/forum/v1/genesis.js +26 -250
- package/esm/sparkdream/forum/v1/params.js +146 -2
- package/esm/sparkdream/forum/v1/query.js +2084 -7387
- package/esm/sparkdream/forum/v1/query.lcd.js +0 -310
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +1 -339
- package/esm/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/esm/sparkdream/forum/v1/tx.amino.js +1 -76
- package/esm/sparkdream/forum/v1/tx.js +333 -2628
- package/esm/sparkdream/forum/v1/tx.registry.js +2 -272
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +1 -91
- package/esm/sparkdream/forum/v1/types.js +0 -216
- package/esm/sparkdream/futarchy/v1/market.js +13 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +172 -0
- package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
- package/esm/sparkdream/rep/v1/genesis.js +224 -1
- package/esm/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/{forum → rep}/v1/member_report.js +102 -5
- package/esm/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/esm/sparkdream/rep/v1/params.js +782 -254
- package/esm/sparkdream/rep/v1/project.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +5251 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +293 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +334 -1
- package/esm/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/esm/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/esm/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/esm/sparkdream/rep/v1/tx.amino.js +81 -1
- package/esm/sparkdream/rep/v1/tx.js +2467 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +290 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +104 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/enums.js +10 -0
- package/esm/sparkdream/season/v1/params.js +94 -46
- package/esm/sparkdream/shield/v1/types.js +47 -5
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +76 -76
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +16 -0
- package/sparkdream/blog/v1/params.js +25 -1
- package/sparkdream/blog/v1/post.d.ts +8 -0
- package/sparkdream/blog/v1/post.js +16 -1
- package/sparkdream/blog/v1/query.d.ts +92 -0
- package/sparkdream/blog/v1/query.js +166 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +2 -1
- package/sparkdream/blog/v1/query.lcd.js +11 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +5 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +9 -0
- package/sparkdream/blog/v1/tx.d.ts +16 -0
- package/sparkdream/blog/v1/tx.js +32 -2
- package/sparkdream/bundle.d.ts +14529 -12577
- package/sparkdream/bundle.js +367 -327
- package/sparkdream/client.d.ts +192 -67
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/curator_activity.d.ts +123 -0
- package/sparkdream/collect/v1/curator_activity.js +161 -0
- package/sparkdream/collect/v1/genesis.d.ts +4 -3
- package/sparkdream/collect/v1/genesis.js +11 -10
- package/sparkdream/collect/v1/params.d.ts +32 -0
- package/sparkdream/collect/v1/params.js +37 -1
- package/sparkdream/collect/v1/query.d.ts +142 -133
- package/sparkdream/collect/v1/query.js +201 -186
- package/sparkdream/collect/v1/query.lcd.d.ts +3 -3
- package/sparkdream/collect/v1/query.lcd.js +16 -16
- package/sparkdream/collect/v1/query.rpc.Query.d.ts +13 -7
- package/sparkdream/collect/v1/query.rpc.Query.js +18 -18
- package/sparkdream/collect/v1/tx.amino.d.ts +1 -11
- package/sparkdream/collect/v1/tx.amino.js +0 -10
- package/sparkdream/collect/v1/tx.d.ts +0 -162
- package/sparkdream/collect/v1/tx.js +2 -260
- package/sparkdream/collect/v1/tx.registry.d.ts +1 -25
- package/sparkdream/collect/v1/tx.registry.js +1 -37
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +5 -5
- package/sparkdream/collect/v1/tx.rpc.msg.js +2 -13
- package/sparkdream/collect/v1/types.d.ts +26 -56
- package/sparkdream/collect/v1/types.js +51 -144
- package/sparkdream/{forum → commons}/v1/category.d.ts +17 -11
- package/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +179 -0
- package/sparkdream/commons/v1/query.js +293 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +18 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +20 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -1
- package/sparkdream/commons/v1/tx.amino.js +5 -0
- package/sparkdream/commons/v1/tx.d.ts +98 -0
- package/sparkdream/commons/v1/tx.js +194 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/federation/module/v1/module.d.ts +54 -0
- package/sparkdream/federation/module/v1/module.js +74 -0
- package/sparkdream/federation/v1/genesis.d.ts +79 -0
- package/sparkdream/federation/v1/genesis.js +248 -0
- package/sparkdream/federation/v1/packet.d.ts +397 -0
- package/sparkdream/federation/v1/packet.js +813 -0
- package/sparkdream/federation/v1/params.d.ts +272 -0
- package/sparkdream/federation/v1/params.js +792 -0
- package/sparkdream/federation/v1/query.d.ts +1458 -0
- package/sparkdream/federation/v1/query.js +2482 -0
- package/sparkdream/federation/v1/query.lcd.d.ts +25 -0
- package/sparkdream/federation/v1/query.lcd.js +146 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +69 -0
- package/sparkdream/federation/v1/query.rpc.Query.js +186 -0
- package/sparkdream/federation/v1/tx.amino.d.ts +128 -0
- package/sparkdream/federation/v1/tx.amino.js +132 -0
- package/sparkdream/federation/v1/tx.d.ts +2147 -0
- package/sparkdream/federation/v1/tx.js +3932 -0
- package/sparkdream/federation/v1/tx.registry.d.ts +313 -0
- package/sparkdream/federation/v1/tx.registry.js +469 -0
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +65 -0
- package/sparkdream/federation/v1/tx.rpc.msg.js +168 -0
- package/sparkdream/federation/v1/types.d.ts +810 -0
- package/sparkdream/federation/v1/types.js +2281 -0
- package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
- package/sparkdream/federation/v1/verifier_activity.js +197 -0
- package/sparkdream/forum/v1/genesis.d.ts +0 -41
- package/sparkdream/forum/v1/genesis.js +26 -250
- package/sparkdream/forum/v1/params.d.ts +112 -0
- package/sparkdream/forum/v1/params.js +146 -2
- package/sparkdream/forum/v1/query.d.ts +65 -3164
- package/sparkdream/forum/v1/query.js +2086 -7391
- package/sparkdream/forum/v1/query.lcd.d.ts +1 -35
- package/sparkdream/forum/v1/query.lcd.js +0 -310
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +1 -137
- package/sparkdream/forum/v1/query.rpc.Query.js +0 -338
- package/sparkdream/forum/v1/sentinel_activity.d.ts +9 -20
- package/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -76
- package/sparkdream/forum/v1/tx.amino.js +0 -75
- package/sparkdream/forum/v1/tx.d.ts +85 -1445
- package/sparkdream/forum/v1/tx.js +335 -2630
- package/sparkdream/forum/v1/tx.registry.d.ts +1 -181
- package/sparkdream/forum/v1/tx.registry.js +1 -271
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +1 -46
- package/sparkdream/forum/v1/tx.rpc.msg.js +0 -90
- package/sparkdream/forum/v1/types.d.ts +0 -50
- package/sparkdream/forum/v1/types.js +1 -225
- package/sparkdream/futarchy/v1/market.d.ts +14 -0
- package/sparkdream/futarchy/v1/market.js +13 -1
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +39 -0
- package/sparkdream/rep/v1/accountability.js +181 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
- package/sparkdream/rep/v1/bonded_role.js +453 -0
- package/sparkdream/rep/v1/genesis.d.ts +70 -0
- package/sparkdream/rep/v1/genesis.js +224 -1
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/sparkdream/{forum → rep}/v1/jury_participation.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/sparkdream/rep/v1/member.d.ts +16 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +128 -0
- package/sparkdream/{forum → rep}/v1/member_report.js +103 -6
- package/sparkdream/{forum → rep}/v1/member_warning.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/sparkdream/rep/v1/params.d.ts +352 -8
- package/sparkdream/rep/v1/params.js +782 -254
- package/sparkdream/rep/v1/project.d.ts +10 -0
- package/sparkdream/rep/v1/project.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +4222 -1156
- package/sparkdream/rep/v1/query.js +5254 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +35 -1
- package/sparkdream/rep/v1/query.lcd.js +293 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +140 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +333 -0
- package/sparkdream/{common → rep}/v1/reserved_tag.d.ts +11 -11
- package/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/sparkdream/{common → rep}/v1/tag.d.ts +14 -14
- package/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/sparkdream/{forum → rep}/v1/tag_budget.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_budget_award.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_report.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/sparkdream/rep/v1/tx.amino.d.ts +81 -1
- package/sparkdream/rep/v1/tx.amino.js +80 -0
- package/sparkdream/rep/v1/tx.d.ts +1484 -0
- package/sparkdream/rep/v1/tx.js +2468 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +193 -1
- package/sparkdream/rep/v1/tx.registry.js +289 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +64 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +103 -0
- package/sparkdream/rpc.query.d.ts +60 -36
- 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/enums.d.ts +5 -0
- package/sparkdream/season/v1/enums.js +10 -0
- package/sparkdream/season/v1/params.d.ts +36 -4
- package/sparkdream/season/v1/params.js +94 -46
- package/sparkdream/shield/v1/types.d.ts +28 -0
- package/sparkdream/shield/v1/types.js +47 -5
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
- package/esm/sparkdream/forum/v1/member_salvation_status.js +0 -119
- package/sparkdream/forum/v1/member_report.d.ts +0 -67
- package/sparkdream/forum/v1/member_salvation_status.d.ts +0 -54
- package/sparkdream/forum/v1/member_salvation_status.js +0 -122
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Params, ParamsAmino } from "./params";
|
|
2
|
+
import { Peer, PeerAmino, PeerPolicy, PeerPolicyAmino, BridgeOperator, BridgeOperatorAmino, FederatedContent, FederatedContentAmino, IdentityLink, IdentityLinkAmino, ReputationAttestation, ReputationAttestationAmino, OutboundAttestation, OutboundAttestationAmino, VerificationRecord, VerificationRecordAmino } from "./types";
|
|
3
|
+
import { VerifierActivity, VerifierActivityAmino } from "./verifier_activity";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
import { DeepPartial } from "../../../helpers";
|
|
6
|
+
/**
|
|
7
|
+
* GenesisState defines the federation module's genesis state.
|
|
8
|
+
* @name GenesisState
|
|
9
|
+
* @package sparkdream.federation.v1
|
|
10
|
+
* @see proto type: sparkdream.federation.v1.GenesisState
|
|
11
|
+
*/
|
|
12
|
+
export interface GenesisState {
|
|
13
|
+
/**
|
|
14
|
+
* params defines all the parameters of the module.
|
|
15
|
+
*/
|
|
16
|
+
params: Params;
|
|
17
|
+
portId: string;
|
|
18
|
+
peers: Peer[];
|
|
19
|
+
peerPolicies: PeerPolicy[];
|
|
20
|
+
bridgeOperators: BridgeOperator[];
|
|
21
|
+
federatedContent: FederatedContent[];
|
|
22
|
+
identityLinks: IdentityLink[];
|
|
23
|
+
reputationAttestations: ReputationAttestation[];
|
|
24
|
+
outboundAttestations: OutboundAttestation[];
|
|
25
|
+
verifierActivities: VerifierActivity[];
|
|
26
|
+
verificationRecords: VerificationRecord[];
|
|
27
|
+
nextContentId: bigint;
|
|
28
|
+
nextOutboundAttestationId: bigint;
|
|
29
|
+
}
|
|
30
|
+
export interface GenesisStateProtoMsg {
|
|
31
|
+
typeUrl: "/sparkdream.federation.v1.GenesisState";
|
|
32
|
+
value: Uint8Array;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* GenesisState defines the federation module's genesis state.
|
|
36
|
+
* @name GenesisStateAmino
|
|
37
|
+
* @package sparkdream.federation.v1
|
|
38
|
+
* @see proto type: sparkdream.federation.v1.GenesisState
|
|
39
|
+
*/
|
|
40
|
+
export interface GenesisStateAmino {
|
|
41
|
+
/**
|
|
42
|
+
* params defines all the parameters of the module.
|
|
43
|
+
*/
|
|
44
|
+
params: ParamsAmino;
|
|
45
|
+
port_id?: string;
|
|
46
|
+
peers?: PeerAmino[];
|
|
47
|
+
peer_policies?: PeerPolicyAmino[];
|
|
48
|
+
bridge_operators?: BridgeOperatorAmino[];
|
|
49
|
+
federated_content?: FederatedContentAmino[];
|
|
50
|
+
identity_links?: IdentityLinkAmino[];
|
|
51
|
+
reputation_attestations?: ReputationAttestationAmino[];
|
|
52
|
+
outbound_attestations?: OutboundAttestationAmino[];
|
|
53
|
+
verifier_activities?: VerifierActivityAmino[];
|
|
54
|
+
verification_records?: VerificationRecordAmino[];
|
|
55
|
+
next_content_id?: string;
|
|
56
|
+
next_outbound_attestation_id?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface GenesisStateAminoMsg {
|
|
59
|
+
type: "/sparkdream.federation.v1.GenesisState";
|
|
60
|
+
value: GenesisStateAmino;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* GenesisState defines the federation module's genesis state.
|
|
64
|
+
* @name GenesisState
|
|
65
|
+
* @package sparkdream.federation.v1
|
|
66
|
+
* @see proto type: sparkdream.federation.v1.GenesisState
|
|
67
|
+
*/
|
|
68
|
+
export declare const GenesisState: {
|
|
69
|
+
typeUrl: string;
|
|
70
|
+
encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter;
|
|
71
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState;
|
|
72
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
|
73
|
+
fromAmino(object: GenesisStateAmino): GenesisState;
|
|
74
|
+
toAmino(message: GenesisState): GenesisStateAmino;
|
|
75
|
+
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState;
|
|
76
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState;
|
|
77
|
+
toProto(message: GenesisState): Uint8Array;
|
|
78
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
79
|
+
};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenesisState = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const params_1 = require("./params");
|
|
6
|
+
const types_1 = require("./types");
|
|
7
|
+
const verifier_activity_1 = require("./verifier_activity");
|
|
8
|
+
const binary_1 = require("../../../binary");
|
|
9
|
+
function createBaseGenesisState() {
|
|
10
|
+
return {
|
|
11
|
+
params: params_1.Params.fromPartial({}),
|
|
12
|
+
portId: "",
|
|
13
|
+
peers: [],
|
|
14
|
+
peerPolicies: [],
|
|
15
|
+
bridgeOperators: [],
|
|
16
|
+
federatedContent: [],
|
|
17
|
+
identityLinks: [],
|
|
18
|
+
reputationAttestations: [],
|
|
19
|
+
outboundAttestations: [],
|
|
20
|
+
verifierActivities: [],
|
|
21
|
+
verificationRecords: [],
|
|
22
|
+
nextContentId: BigInt(0),
|
|
23
|
+
nextOutboundAttestationId: BigInt(0)
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* GenesisState defines the federation module's genesis state.
|
|
28
|
+
* @name GenesisState
|
|
29
|
+
* @package sparkdream.federation.v1
|
|
30
|
+
* @see proto type: sparkdream.federation.v1.GenesisState
|
|
31
|
+
*/
|
|
32
|
+
exports.GenesisState = {
|
|
33
|
+
typeUrl: "/sparkdream.federation.v1.GenesisState",
|
|
34
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
35
|
+
if (message.params !== undefined) {
|
|
36
|
+
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
37
|
+
}
|
|
38
|
+
if (message.portId !== "") {
|
|
39
|
+
writer.uint32(18).string(message.portId);
|
|
40
|
+
}
|
|
41
|
+
for (const v of message.peers) {
|
|
42
|
+
types_1.Peer.encode(v, writer.uint32(26).fork()).ldelim();
|
|
43
|
+
}
|
|
44
|
+
for (const v of message.peerPolicies) {
|
|
45
|
+
types_1.PeerPolicy.encode(v, writer.uint32(34).fork()).ldelim();
|
|
46
|
+
}
|
|
47
|
+
for (const v of message.bridgeOperators) {
|
|
48
|
+
types_1.BridgeOperator.encode(v, writer.uint32(42).fork()).ldelim();
|
|
49
|
+
}
|
|
50
|
+
for (const v of message.federatedContent) {
|
|
51
|
+
types_1.FederatedContent.encode(v, writer.uint32(50).fork()).ldelim();
|
|
52
|
+
}
|
|
53
|
+
for (const v of message.identityLinks) {
|
|
54
|
+
types_1.IdentityLink.encode(v, writer.uint32(58).fork()).ldelim();
|
|
55
|
+
}
|
|
56
|
+
for (const v of message.reputationAttestations) {
|
|
57
|
+
types_1.ReputationAttestation.encode(v, writer.uint32(66).fork()).ldelim();
|
|
58
|
+
}
|
|
59
|
+
for (const v of message.outboundAttestations) {
|
|
60
|
+
types_1.OutboundAttestation.encode(v, writer.uint32(74).fork()).ldelim();
|
|
61
|
+
}
|
|
62
|
+
for (const v of message.verifierActivities) {
|
|
63
|
+
verifier_activity_1.VerifierActivity.encode(v, writer.uint32(114).fork()).ldelim();
|
|
64
|
+
}
|
|
65
|
+
for (const v of message.verificationRecords) {
|
|
66
|
+
types_1.VerificationRecord.encode(v, writer.uint32(90).fork()).ldelim();
|
|
67
|
+
}
|
|
68
|
+
if (message.nextContentId !== BigInt(0)) {
|
|
69
|
+
writer.uint32(96).uint64(message.nextContentId);
|
|
70
|
+
}
|
|
71
|
+
if (message.nextOutboundAttestationId !== BigInt(0)) {
|
|
72
|
+
writer.uint32(104).uint64(message.nextOutboundAttestationId);
|
|
73
|
+
}
|
|
74
|
+
return writer;
|
|
75
|
+
},
|
|
76
|
+
decode(input, length) {
|
|
77
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
78
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
79
|
+
const message = createBaseGenesisState();
|
|
80
|
+
while (reader.pos < end) {
|
|
81
|
+
const tag = reader.uint32();
|
|
82
|
+
switch (tag >>> 3) {
|
|
83
|
+
case 1:
|
|
84
|
+
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
85
|
+
break;
|
|
86
|
+
case 2:
|
|
87
|
+
message.portId = reader.string();
|
|
88
|
+
break;
|
|
89
|
+
case 3:
|
|
90
|
+
message.peers.push(types_1.Peer.decode(reader, reader.uint32()));
|
|
91
|
+
break;
|
|
92
|
+
case 4:
|
|
93
|
+
message.peerPolicies.push(types_1.PeerPolicy.decode(reader, reader.uint32()));
|
|
94
|
+
break;
|
|
95
|
+
case 5:
|
|
96
|
+
message.bridgeOperators.push(types_1.BridgeOperator.decode(reader, reader.uint32()));
|
|
97
|
+
break;
|
|
98
|
+
case 6:
|
|
99
|
+
message.federatedContent.push(types_1.FederatedContent.decode(reader, reader.uint32()));
|
|
100
|
+
break;
|
|
101
|
+
case 7:
|
|
102
|
+
message.identityLinks.push(types_1.IdentityLink.decode(reader, reader.uint32()));
|
|
103
|
+
break;
|
|
104
|
+
case 8:
|
|
105
|
+
message.reputationAttestations.push(types_1.ReputationAttestation.decode(reader, reader.uint32()));
|
|
106
|
+
break;
|
|
107
|
+
case 9:
|
|
108
|
+
message.outboundAttestations.push(types_1.OutboundAttestation.decode(reader, reader.uint32()));
|
|
109
|
+
break;
|
|
110
|
+
case 14:
|
|
111
|
+
message.verifierActivities.push(verifier_activity_1.VerifierActivity.decode(reader, reader.uint32()));
|
|
112
|
+
break;
|
|
113
|
+
case 11:
|
|
114
|
+
message.verificationRecords.push(types_1.VerificationRecord.decode(reader, reader.uint32()));
|
|
115
|
+
break;
|
|
116
|
+
case 12:
|
|
117
|
+
message.nextContentId = reader.uint64();
|
|
118
|
+
break;
|
|
119
|
+
case 13:
|
|
120
|
+
message.nextOutboundAttestationId = reader.uint64();
|
|
121
|
+
break;
|
|
122
|
+
default:
|
|
123
|
+
reader.skipType(tag & 7);
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return message;
|
|
128
|
+
},
|
|
129
|
+
fromPartial(object) {
|
|
130
|
+
const message = createBaseGenesisState();
|
|
131
|
+
message.params = object.params !== undefined && object.params !== null ? params_1.Params.fromPartial(object.params) : undefined;
|
|
132
|
+
message.portId = object.portId ?? "";
|
|
133
|
+
message.peers = object.peers?.map(e => types_1.Peer.fromPartial(e)) || [];
|
|
134
|
+
message.peerPolicies = object.peerPolicies?.map(e => types_1.PeerPolicy.fromPartial(e)) || [];
|
|
135
|
+
message.bridgeOperators = object.bridgeOperators?.map(e => types_1.BridgeOperator.fromPartial(e)) || [];
|
|
136
|
+
message.federatedContent = object.federatedContent?.map(e => types_1.FederatedContent.fromPartial(e)) || [];
|
|
137
|
+
message.identityLinks = object.identityLinks?.map(e => types_1.IdentityLink.fromPartial(e)) || [];
|
|
138
|
+
message.reputationAttestations = object.reputationAttestations?.map(e => types_1.ReputationAttestation.fromPartial(e)) || [];
|
|
139
|
+
message.outboundAttestations = object.outboundAttestations?.map(e => types_1.OutboundAttestation.fromPartial(e)) || [];
|
|
140
|
+
message.verifierActivities = object.verifierActivities?.map(e => verifier_activity_1.VerifierActivity.fromPartial(e)) || [];
|
|
141
|
+
message.verificationRecords = object.verificationRecords?.map(e => types_1.VerificationRecord.fromPartial(e)) || [];
|
|
142
|
+
message.nextContentId = object.nextContentId !== undefined && object.nextContentId !== null ? BigInt(object.nextContentId.toString()) : BigInt(0);
|
|
143
|
+
message.nextOutboundAttestationId = object.nextOutboundAttestationId !== undefined && object.nextOutboundAttestationId !== null ? BigInt(object.nextOutboundAttestationId.toString()) : BigInt(0);
|
|
144
|
+
return message;
|
|
145
|
+
},
|
|
146
|
+
fromAmino(object) {
|
|
147
|
+
const message = createBaseGenesisState();
|
|
148
|
+
if (object.params !== undefined && object.params !== null) {
|
|
149
|
+
message.params = params_1.Params.fromAmino(object.params);
|
|
150
|
+
}
|
|
151
|
+
if (object.port_id !== undefined && object.port_id !== null) {
|
|
152
|
+
message.portId = object.port_id;
|
|
153
|
+
}
|
|
154
|
+
message.peers = object.peers?.map(e => types_1.Peer.fromAmino(e)) || [];
|
|
155
|
+
message.peerPolicies = object.peer_policies?.map(e => types_1.PeerPolicy.fromAmino(e)) || [];
|
|
156
|
+
message.bridgeOperators = object.bridge_operators?.map(e => types_1.BridgeOperator.fromAmino(e)) || [];
|
|
157
|
+
message.federatedContent = object.federated_content?.map(e => types_1.FederatedContent.fromAmino(e)) || [];
|
|
158
|
+
message.identityLinks = object.identity_links?.map(e => types_1.IdentityLink.fromAmino(e)) || [];
|
|
159
|
+
message.reputationAttestations = object.reputation_attestations?.map(e => types_1.ReputationAttestation.fromAmino(e)) || [];
|
|
160
|
+
message.outboundAttestations = object.outbound_attestations?.map(e => types_1.OutboundAttestation.fromAmino(e)) || [];
|
|
161
|
+
message.verifierActivities = object.verifier_activities?.map(e => verifier_activity_1.VerifierActivity.fromAmino(e)) || [];
|
|
162
|
+
message.verificationRecords = object.verification_records?.map(e => types_1.VerificationRecord.fromAmino(e)) || [];
|
|
163
|
+
if (object.next_content_id !== undefined && object.next_content_id !== null) {
|
|
164
|
+
message.nextContentId = BigInt(object.next_content_id);
|
|
165
|
+
}
|
|
166
|
+
if (object.next_outbound_attestation_id !== undefined && object.next_outbound_attestation_id !== null) {
|
|
167
|
+
message.nextOutboundAttestationId = BigInt(object.next_outbound_attestation_id);
|
|
168
|
+
}
|
|
169
|
+
return message;
|
|
170
|
+
},
|
|
171
|
+
toAmino(message) {
|
|
172
|
+
const obj = {};
|
|
173
|
+
obj.params = message.params ? params_1.Params.toAmino(message.params) : params_1.Params.toAmino(params_1.Params.fromPartial({}));
|
|
174
|
+
obj.port_id = message.portId === "" ? undefined : message.portId;
|
|
175
|
+
if (message.peers) {
|
|
176
|
+
obj.peers = message.peers.map(e => e ? types_1.Peer.toAmino(e) : undefined);
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
obj.peers = message.peers;
|
|
180
|
+
}
|
|
181
|
+
if (message.peerPolicies) {
|
|
182
|
+
obj.peer_policies = message.peerPolicies.map(e => e ? types_1.PeerPolicy.toAmino(e) : undefined);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
obj.peer_policies = message.peerPolicies;
|
|
186
|
+
}
|
|
187
|
+
if (message.bridgeOperators) {
|
|
188
|
+
obj.bridge_operators = message.bridgeOperators.map(e => e ? types_1.BridgeOperator.toAmino(e) : undefined);
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
obj.bridge_operators = message.bridgeOperators;
|
|
192
|
+
}
|
|
193
|
+
if (message.federatedContent) {
|
|
194
|
+
obj.federated_content = message.federatedContent.map(e => e ? types_1.FederatedContent.toAmino(e) : undefined);
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
obj.federated_content = message.federatedContent;
|
|
198
|
+
}
|
|
199
|
+
if (message.identityLinks) {
|
|
200
|
+
obj.identity_links = message.identityLinks.map(e => e ? types_1.IdentityLink.toAmino(e) : undefined);
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
obj.identity_links = message.identityLinks;
|
|
204
|
+
}
|
|
205
|
+
if (message.reputationAttestations) {
|
|
206
|
+
obj.reputation_attestations = message.reputationAttestations.map(e => e ? types_1.ReputationAttestation.toAmino(e) : undefined);
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
obj.reputation_attestations = message.reputationAttestations;
|
|
210
|
+
}
|
|
211
|
+
if (message.outboundAttestations) {
|
|
212
|
+
obj.outbound_attestations = message.outboundAttestations.map(e => e ? types_1.OutboundAttestation.toAmino(e) : undefined);
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
obj.outbound_attestations = message.outboundAttestations;
|
|
216
|
+
}
|
|
217
|
+
if (message.verifierActivities) {
|
|
218
|
+
obj.verifier_activities = message.verifierActivities.map(e => e ? verifier_activity_1.VerifierActivity.toAmino(e) : undefined);
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
obj.verifier_activities = message.verifierActivities;
|
|
222
|
+
}
|
|
223
|
+
if (message.verificationRecords) {
|
|
224
|
+
obj.verification_records = message.verificationRecords.map(e => e ? types_1.VerificationRecord.toAmino(e) : undefined);
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
obj.verification_records = message.verificationRecords;
|
|
228
|
+
}
|
|
229
|
+
obj.next_content_id = message.nextContentId !== BigInt(0) ? message.nextContentId?.toString() : undefined;
|
|
230
|
+
obj.next_outbound_attestation_id = message.nextOutboundAttestationId !== BigInt(0) ? message.nextOutboundAttestationId?.toString() : undefined;
|
|
231
|
+
return obj;
|
|
232
|
+
},
|
|
233
|
+
fromAminoMsg(object) {
|
|
234
|
+
return exports.GenesisState.fromAmino(object.value);
|
|
235
|
+
},
|
|
236
|
+
fromProtoMsg(message) {
|
|
237
|
+
return exports.GenesisState.decode(message.value);
|
|
238
|
+
},
|
|
239
|
+
toProto(message) {
|
|
240
|
+
return exports.GenesisState.encode(message).finish();
|
|
241
|
+
},
|
|
242
|
+
toProtoMsg(message) {
|
|
243
|
+
return {
|
|
244
|
+
typeUrl: "/sparkdream.federation.v1.GenesisState",
|
|
245
|
+
value: exports.GenesisState.encode(message).finish()
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
};
|