@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
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ReportStatus } from "./types";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
/**
|
|
5
|
+
* Report is a single report filed against an operator (see x-service-spec.md
|
|
6
|
+
* §3.4 and §4.1). Keyed by `report_id` (auto-incrementing uint64); secondary
|
|
7
|
+
* indexes by operator (ReportsByOperator) and by status for the PENDING /
|
|
8
|
+
* ESCALATED EndBlocker sweeps.
|
|
9
|
+
* @name Report
|
|
10
|
+
* @package sparkdream.service.v1
|
|
11
|
+
* @see proto type: sparkdream.service.v1.Report
|
|
12
|
+
*/
|
|
13
|
+
export interface Report {
|
|
14
|
+
/**
|
|
15
|
+
* report_id is the auto-incrementing primary key (NextReportID counter).
|
|
16
|
+
*/
|
|
17
|
+
reportId: bigint;
|
|
18
|
+
/**
|
|
19
|
+
* operator_address is the target operator's bech32 address.
|
|
20
|
+
*/
|
|
21
|
+
operatorAddress: string;
|
|
22
|
+
/**
|
|
23
|
+
* service_type identifies which operator record this report targets
|
|
24
|
+
* (an address may have multiple operators across service types).
|
|
25
|
+
*/
|
|
26
|
+
serviceType: string;
|
|
27
|
+
/**
|
|
28
|
+
* reporter is the bech32 address of the member who filed the report.
|
|
29
|
+
*/
|
|
30
|
+
reporter: string;
|
|
31
|
+
/**
|
|
32
|
+
* reason is free-form human-readable text, capped by `max_reason_bytes`.
|
|
33
|
+
*/
|
|
34
|
+
reason: string;
|
|
35
|
+
/**
|
|
36
|
+
* filed_at is the height the report was filed.
|
|
37
|
+
*/
|
|
38
|
+
filedAt: bigint;
|
|
39
|
+
/**
|
|
40
|
+
* escalated_at is the height the report transitioned to ESCALATED; 0
|
|
41
|
+
* otherwise. Feeds the auto-timeout sweep (§3.6 queue 3).
|
|
42
|
+
*/
|
|
43
|
+
escalatedAt: bigint;
|
|
44
|
+
/**
|
|
45
|
+
* status is the lifecycle status (§3.4.5).
|
|
46
|
+
*/
|
|
47
|
+
status: ReportStatus;
|
|
48
|
+
/**
|
|
49
|
+
* proposed_slash_bps is set when the controller escalates with a
|
|
50
|
+
* specific proposal (or carried forward on operator contest); the jury
|
|
51
|
+
* verdict is bounded by this value (§5.2).
|
|
52
|
+
*/
|
|
53
|
+
proposedSlashBps: number;
|
|
54
|
+
/**
|
|
55
|
+
* slash_amount is the SPARK amount actually slashed once the report
|
|
56
|
+
* resolves, in bond-denom micro-units. Zero for PENDING /
|
|
57
|
+
* RESOLVED_T1-with-dismiss / AUTO_*. Wrapped into sdk.Coin with the
|
|
58
|
+
* chain's bond denom at the point of use.
|
|
59
|
+
*/
|
|
60
|
+
slashAmount: string;
|
|
61
|
+
/**
|
|
62
|
+
* deposit is the SPARK the reporter escrowed at filing time
|
|
63
|
+
* (`report_deposit_amount` param), in bond-denom micro-units. Held in
|
|
64
|
+
* the report deposit pool until resolution. Wrapped into sdk.Coin with
|
|
65
|
+
* the chain's bond denom at the point of use.
|
|
66
|
+
*/
|
|
67
|
+
deposit: string;
|
|
68
|
+
/**
|
|
69
|
+
* jury_case_id is the x/rep case id opened on escalation; 0 if never
|
|
70
|
+
* escalated.
|
|
71
|
+
*/
|
|
72
|
+
juryCaseId: bigint;
|
|
73
|
+
}
|
|
74
|
+
export interface ReportProtoMsg {
|
|
75
|
+
typeUrl: "/sparkdream.service.v1.Report";
|
|
76
|
+
value: Uint8Array;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Report is a single report filed against an operator (see x-service-spec.md
|
|
80
|
+
* §3.4 and §4.1). Keyed by `report_id` (auto-incrementing uint64); secondary
|
|
81
|
+
* indexes by operator (ReportsByOperator) and by status for the PENDING /
|
|
82
|
+
* ESCALATED EndBlocker sweeps.
|
|
83
|
+
* @name ReportAmino
|
|
84
|
+
* @package sparkdream.service.v1
|
|
85
|
+
* @see proto type: sparkdream.service.v1.Report
|
|
86
|
+
*/
|
|
87
|
+
export interface ReportAmino {
|
|
88
|
+
/**
|
|
89
|
+
* report_id is the auto-incrementing primary key (NextReportID counter).
|
|
90
|
+
*/
|
|
91
|
+
report_id?: string;
|
|
92
|
+
/**
|
|
93
|
+
* operator_address is the target operator's bech32 address.
|
|
94
|
+
*/
|
|
95
|
+
operator_address?: string;
|
|
96
|
+
/**
|
|
97
|
+
* service_type identifies which operator record this report targets
|
|
98
|
+
* (an address may have multiple operators across service types).
|
|
99
|
+
*/
|
|
100
|
+
service_type?: string;
|
|
101
|
+
/**
|
|
102
|
+
* reporter is the bech32 address of the member who filed the report.
|
|
103
|
+
*/
|
|
104
|
+
reporter?: string;
|
|
105
|
+
/**
|
|
106
|
+
* reason is free-form human-readable text, capped by `max_reason_bytes`.
|
|
107
|
+
*/
|
|
108
|
+
reason?: string;
|
|
109
|
+
/**
|
|
110
|
+
* filed_at is the height the report was filed.
|
|
111
|
+
*/
|
|
112
|
+
filed_at?: string;
|
|
113
|
+
/**
|
|
114
|
+
* escalated_at is the height the report transitioned to ESCALATED; 0
|
|
115
|
+
* otherwise. Feeds the auto-timeout sweep (§3.6 queue 3).
|
|
116
|
+
*/
|
|
117
|
+
escalated_at?: string;
|
|
118
|
+
/**
|
|
119
|
+
* status is the lifecycle status (§3.4.5).
|
|
120
|
+
*/
|
|
121
|
+
status?: ReportStatus;
|
|
122
|
+
/**
|
|
123
|
+
* proposed_slash_bps is set when the controller escalates with a
|
|
124
|
+
* specific proposal (or carried forward on operator contest); the jury
|
|
125
|
+
* verdict is bounded by this value (§5.2).
|
|
126
|
+
*/
|
|
127
|
+
proposed_slash_bps?: number;
|
|
128
|
+
/**
|
|
129
|
+
* slash_amount is the SPARK amount actually slashed once the report
|
|
130
|
+
* resolves, in bond-denom micro-units. Zero for PENDING /
|
|
131
|
+
* RESOLVED_T1-with-dismiss / AUTO_*. Wrapped into sdk.Coin with the
|
|
132
|
+
* chain's bond denom at the point of use.
|
|
133
|
+
*/
|
|
134
|
+
slash_amount?: string;
|
|
135
|
+
/**
|
|
136
|
+
* deposit is the SPARK the reporter escrowed at filing time
|
|
137
|
+
* (`report_deposit_amount` param), in bond-denom micro-units. Held in
|
|
138
|
+
* the report deposit pool until resolution. Wrapped into sdk.Coin with
|
|
139
|
+
* the chain's bond denom at the point of use.
|
|
140
|
+
*/
|
|
141
|
+
deposit?: string;
|
|
142
|
+
/**
|
|
143
|
+
* jury_case_id is the x/rep case id opened on escalation; 0 if never
|
|
144
|
+
* escalated.
|
|
145
|
+
*/
|
|
146
|
+
jury_case_id?: string;
|
|
147
|
+
}
|
|
148
|
+
export interface ReportAminoMsg {
|
|
149
|
+
type: "sparkdream/x/service/Report";
|
|
150
|
+
value: ReportAmino;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Report is a single report filed against an operator (see x-service-spec.md
|
|
154
|
+
* §3.4 and §4.1). Keyed by `report_id` (auto-incrementing uint64); secondary
|
|
155
|
+
* indexes by operator (ReportsByOperator) and by status for the PENDING /
|
|
156
|
+
* ESCALATED EndBlocker sweeps.
|
|
157
|
+
* @name Report
|
|
158
|
+
* @package sparkdream.service.v1
|
|
159
|
+
* @see proto type: sparkdream.service.v1.Report
|
|
160
|
+
*/
|
|
161
|
+
export declare const Report: {
|
|
162
|
+
typeUrl: string;
|
|
163
|
+
aminoType: string;
|
|
164
|
+
encode(message: Report, writer?: BinaryWriter): BinaryWriter;
|
|
165
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Report;
|
|
166
|
+
fromPartial(object: DeepPartial<Report>): Report;
|
|
167
|
+
fromAmino(object: ReportAmino): Report;
|
|
168
|
+
toAmino(message: Report): ReportAmino;
|
|
169
|
+
fromAminoMsg(object: ReportAminoMsg): Report;
|
|
170
|
+
toAminoMsg(message: Report): ReportAminoMsg;
|
|
171
|
+
fromProtoMsg(message: ReportProtoMsg): Report;
|
|
172
|
+
toProto(message: Report): Uint8Array;
|
|
173
|
+
toProtoMsg(message: Report): ReportProtoMsg;
|
|
174
|
+
};
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Report = void 0;
|
|
4
|
+
const binary_1 = require("../../../binary");
|
|
5
|
+
function createBaseReport() {
|
|
6
|
+
return {
|
|
7
|
+
reportId: BigInt(0),
|
|
8
|
+
operatorAddress: "",
|
|
9
|
+
serviceType: "",
|
|
10
|
+
reporter: "",
|
|
11
|
+
reason: "",
|
|
12
|
+
filedAt: BigInt(0),
|
|
13
|
+
escalatedAt: BigInt(0),
|
|
14
|
+
status: 0,
|
|
15
|
+
proposedSlashBps: 0,
|
|
16
|
+
slashAmount: "",
|
|
17
|
+
deposit: "",
|
|
18
|
+
juryCaseId: BigInt(0)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Report is a single report filed against an operator (see x-service-spec.md
|
|
23
|
+
* §3.4 and §4.1). Keyed by `report_id` (auto-incrementing uint64); secondary
|
|
24
|
+
* indexes by operator (ReportsByOperator) and by status for the PENDING /
|
|
25
|
+
* ESCALATED EndBlocker sweeps.
|
|
26
|
+
* @name Report
|
|
27
|
+
* @package sparkdream.service.v1
|
|
28
|
+
* @see proto type: sparkdream.service.v1.Report
|
|
29
|
+
*/
|
|
30
|
+
exports.Report = {
|
|
31
|
+
typeUrl: "/sparkdream.service.v1.Report",
|
|
32
|
+
aminoType: "sparkdream/x/service/Report",
|
|
33
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
34
|
+
if (message.reportId !== BigInt(0)) {
|
|
35
|
+
writer.uint32(8).uint64(message.reportId);
|
|
36
|
+
}
|
|
37
|
+
if (message.operatorAddress !== "") {
|
|
38
|
+
writer.uint32(18).string(message.operatorAddress);
|
|
39
|
+
}
|
|
40
|
+
if (message.serviceType !== "") {
|
|
41
|
+
writer.uint32(26).string(message.serviceType);
|
|
42
|
+
}
|
|
43
|
+
if (message.reporter !== "") {
|
|
44
|
+
writer.uint32(34).string(message.reporter);
|
|
45
|
+
}
|
|
46
|
+
if (message.reason !== "") {
|
|
47
|
+
writer.uint32(42).string(message.reason);
|
|
48
|
+
}
|
|
49
|
+
if (message.filedAt !== BigInt(0)) {
|
|
50
|
+
writer.uint32(48).int64(message.filedAt);
|
|
51
|
+
}
|
|
52
|
+
if (message.escalatedAt !== BigInt(0)) {
|
|
53
|
+
writer.uint32(56).int64(message.escalatedAt);
|
|
54
|
+
}
|
|
55
|
+
if (message.status !== 0) {
|
|
56
|
+
writer.uint32(64).int32(message.status);
|
|
57
|
+
}
|
|
58
|
+
if (message.proposedSlashBps !== 0) {
|
|
59
|
+
writer.uint32(72).uint32(message.proposedSlashBps);
|
|
60
|
+
}
|
|
61
|
+
if (message.slashAmount !== "") {
|
|
62
|
+
writer.uint32(82).string(message.slashAmount);
|
|
63
|
+
}
|
|
64
|
+
if (message.deposit !== "") {
|
|
65
|
+
writer.uint32(90).string(message.deposit);
|
|
66
|
+
}
|
|
67
|
+
if (message.juryCaseId !== BigInt(0)) {
|
|
68
|
+
writer.uint32(96).uint64(message.juryCaseId);
|
|
69
|
+
}
|
|
70
|
+
return writer;
|
|
71
|
+
},
|
|
72
|
+
decode(input, length) {
|
|
73
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
74
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
75
|
+
const message = createBaseReport();
|
|
76
|
+
while (reader.pos < end) {
|
|
77
|
+
const tag = reader.uint32();
|
|
78
|
+
switch (tag >>> 3) {
|
|
79
|
+
case 1:
|
|
80
|
+
message.reportId = reader.uint64();
|
|
81
|
+
break;
|
|
82
|
+
case 2:
|
|
83
|
+
message.operatorAddress = reader.string();
|
|
84
|
+
break;
|
|
85
|
+
case 3:
|
|
86
|
+
message.serviceType = reader.string();
|
|
87
|
+
break;
|
|
88
|
+
case 4:
|
|
89
|
+
message.reporter = reader.string();
|
|
90
|
+
break;
|
|
91
|
+
case 5:
|
|
92
|
+
message.reason = reader.string();
|
|
93
|
+
break;
|
|
94
|
+
case 6:
|
|
95
|
+
message.filedAt = reader.int64();
|
|
96
|
+
break;
|
|
97
|
+
case 7:
|
|
98
|
+
message.escalatedAt = reader.int64();
|
|
99
|
+
break;
|
|
100
|
+
case 8:
|
|
101
|
+
message.status = reader.int32();
|
|
102
|
+
break;
|
|
103
|
+
case 9:
|
|
104
|
+
message.proposedSlashBps = reader.uint32();
|
|
105
|
+
break;
|
|
106
|
+
case 10:
|
|
107
|
+
message.slashAmount = reader.string();
|
|
108
|
+
break;
|
|
109
|
+
case 11:
|
|
110
|
+
message.deposit = reader.string();
|
|
111
|
+
break;
|
|
112
|
+
case 12:
|
|
113
|
+
message.juryCaseId = reader.uint64();
|
|
114
|
+
break;
|
|
115
|
+
default:
|
|
116
|
+
reader.skipType(tag & 7);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
fromPartial(object) {
|
|
123
|
+
const message = createBaseReport();
|
|
124
|
+
message.reportId = object.reportId !== undefined && object.reportId !== null ? BigInt(object.reportId.toString()) : BigInt(0);
|
|
125
|
+
message.operatorAddress = object.operatorAddress ?? "";
|
|
126
|
+
message.serviceType = object.serviceType ?? "";
|
|
127
|
+
message.reporter = object.reporter ?? "";
|
|
128
|
+
message.reason = object.reason ?? "";
|
|
129
|
+
message.filedAt = object.filedAt !== undefined && object.filedAt !== null ? BigInt(object.filedAt.toString()) : BigInt(0);
|
|
130
|
+
message.escalatedAt = object.escalatedAt !== undefined && object.escalatedAt !== null ? BigInt(object.escalatedAt.toString()) : BigInt(0);
|
|
131
|
+
message.status = object.status ?? 0;
|
|
132
|
+
message.proposedSlashBps = object.proposedSlashBps ?? 0;
|
|
133
|
+
message.slashAmount = object.slashAmount ?? "";
|
|
134
|
+
message.deposit = object.deposit ?? "";
|
|
135
|
+
message.juryCaseId = object.juryCaseId !== undefined && object.juryCaseId !== null ? BigInt(object.juryCaseId.toString()) : BigInt(0);
|
|
136
|
+
return message;
|
|
137
|
+
},
|
|
138
|
+
fromAmino(object) {
|
|
139
|
+
const message = createBaseReport();
|
|
140
|
+
if (object.report_id !== undefined && object.report_id !== null) {
|
|
141
|
+
message.reportId = BigInt(object.report_id);
|
|
142
|
+
}
|
|
143
|
+
if (object.operator_address !== undefined && object.operator_address !== null) {
|
|
144
|
+
message.operatorAddress = object.operator_address;
|
|
145
|
+
}
|
|
146
|
+
if (object.service_type !== undefined && object.service_type !== null) {
|
|
147
|
+
message.serviceType = object.service_type;
|
|
148
|
+
}
|
|
149
|
+
if (object.reporter !== undefined && object.reporter !== null) {
|
|
150
|
+
message.reporter = object.reporter;
|
|
151
|
+
}
|
|
152
|
+
if (object.reason !== undefined && object.reason !== null) {
|
|
153
|
+
message.reason = object.reason;
|
|
154
|
+
}
|
|
155
|
+
if (object.filed_at !== undefined && object.filed_at !== null) {
|
|
156
|
+
message.filedAt = BigInt(object.filed_at);
|
|
157
|
+
}
|
|
158
|
+
if (object.escalated_at !== undefined && object.escalated_at !== null) {
|
|
159
|
+
message.escalatedAt = BigInt(object.escalated_at);
|
|
160
|
+
}
|
|
161
|
+
if (object.status !== undefined && object.status !== null) {
|
|
162
|
+
message.status = object.status;
|
|
163
|
+
}
|
|
164
|
+
if (object.proposed_slash_bps !== undefined && object.proposed_slash_bps !== null) {
|
|
165
|
+
message.proposedSlashBps = object.proposed_slash_bps;
|
|
166
|
+
}
|
|
167
|
+
if (object.slash_amount !== undefined && object.slash_amount !== null) {
|
|
168
|
+
message.slashAmount = object.slash_amount;
|
|
169
|
+
}
|
|
170
|
+
if (object.deposit !== undefined && object.deposit !== null) {
|
|
171
|
+
message.deposit = object.deposit;
|
|
172
|
+
}
|
|
173
|
+
if (object.jury_case_id !== undefined && object.jury_case_id !== null) {
|
|
174
|
+
message.juryCaseId = BigInt(object.jury_case_id);
|
|
175
|
+
}
|
|
176
|
+
return message;
|
|
177
|
+
},
|
|
178
|
+
toAmino(message) {
|
|
179
|
+
const obj = {};
|
|
180
|
+
obj.report_id = message.reportId !== BigInt(0) ? message.reportId?.toString() : undefined;
|
|
181
|
+
obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress;
|
|
182
|
+
obj.service_type = message.serviceType === "" ? undefined : message.serviceType;
|
|
183
|
+
obj.reporter = message.reporter === "" ? undefined : message.reporter;
|
|
184
|
+
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
185
|
+
obj.filed_at = message.filedAt !== BigInt(0) ? message.filedAt?.toString() : undefined;
|
|
186
|
+
obj.escalated_at = message.escalatedAt !== BigInt(0) ? message.escalatedAt?.toString() : undefined;
|
|
187
|
+
obj.status = message.status === 0 ? undefined : message.status;
|
|
188
|
+
obj.proposed_slash_bps = message.proposedSlashBps === 0 ? undefined : message.proposedSlashBps;
|
|
189
|
+
obj.slash_amount = message.slashAmount === "" ? undefined : message.slashAmount;
|
|
190
|
+
obj.deposit = message.deposit === "" ? undefined : message.deposit;
|
|
191
|
+
obj.jury_case_id = message.juryCaseId !== BigInt(0) ? message.juryCaseId?.toString() : undefined;
|
|
192
|
+
return obj;
|
|
193
|
+
},
|
|
194
|
+
fromAminoMsg(object) {
|
|
195
|
+
return exports.Report.fromAmino(object.value);
|
|
196
|
+
},
|
|
197
|
+
toAminoMsg(message) {
|
|
198
|
+
return {
|
|
199
|
+
type: "sparkdream/x/service/Report",
|
|
200
|
+
value: exports.Report.toAmino(message)
|
|
201
|
+
};
|
|
202
|
+
},
|
|
203
|
+
fromProtoMsg(message) {
|
|
204
|
+
return exports.Report.decode(message.value);
|
|
205
|
+
},
|
|
206
|
+
toProto(message) {
|
|
207
|
+
return exports.Report.encode(message).finish();
|
|
208
|
+
},
|
|
209
|
+
toProtoMsg(message) {
|
|
210
|
+
return {
|
|
211
|
+
typeUrl: "/sparkdream.service.v1.Report",
|
|
212
|
+
value: exports.Report.encode(message).finish()
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
/**
|
|
4
|
+
* ReporterRateLimit tracks recent filing heights for a given
|
|
5
|
+
* (reporter, operator_address, service_type) tuple, implementing the
|
|
6
|
+
* sliding-window per-reporter cap from §3.4.6.
|
|
7
|
+
*
|
|
8
|
+
* The keeper admits a new filing iff fewer than
|
|
9
|
+
* `max_reports_per_reporter_per_operator_per_window` entries in
|
|
10
|
+
* `recent_filing_heights` fall within
|
|
11
|
+
* `[current_height - reporter_rate_limit_window_blocks, current_height]`.
|
|
12
|
+
*
|
|
13
|
+
* Ring-buffer semantics: when at capacity, the oldest entry is
|
|
14
|
+
* overwritten on each new filing.
|
|
15
|
+
* @name ReporterRateLimit
|
|
16
|
+
* @package sparkdream.service.v1
|
|
17
|
+
* @see proto type: sparkdream.service.v1.ReporterRateLimit
|
|
18
|
+
*/
|
|
19
|
+
export interface ReporterRateLimit {
|
|
20
|
+
/**
|
|
21
|
+
* reporter is the bech32 address whose rate is being tracked.
|
|
22
|
+
*/
|
|
23
|
+
reporter: string;
|
|
24
|
+
/**
|
|
25
|
+
* operator_address is the target operator.
|
|
26
|
+
*/
|
|
27
|
+
operatorAddress: string;
|
|
28
|
+
/**
|
|
29
|
+
* service_type is the target operator record.
|
|
30
|
+
*/
|
|
31
|
+
serviceType: string;
|
|
32
|
+
/**
|
|
33
|
+
* recent_filing_heights is the ring buffer of recent filing heights
|
|
34
|
+
* (most-recent-first or in insertion order; the keeper documents
|
|
35
|
+
* which). Length capped at max_reports + 1.
|
|
36
|
+
*/
|
|
37
|
+
recentFilingHeights: bigint[];
|
|
38
|
+
}
|
|
39
|
+
export interface ReporterRateLimitProtoMsg {
|
|
40
|
+
typeUrl: "/sparkdream.service.v1.ReporterRateLimit";
|
|
41
|
+
value: Uint8Array;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* ReporterRateLimit tracks recent filing heights for a given
|
|
45
|
+
* (reporter, operator_address, service_type) tuple, implementing the
|
|
46
|
+
* sliding-window per-reporter cap from §3.4.6.
|
|
47
|
+
*
|
|
48
|
+
* The keeper admits a new filing iff fewer than
|
|
49
|
+
* `max_reports_per_reporter_per_operator_per_window` entries in
|
|
50
|
+
* `recent_filing_heights` fall within
|
|
51
|
+
* `[current_height - reporter_rate_limit_window_blocks, current_height]`.
|
|
52
|
+
*
|
|
53
|
+
* Ring-buffer semantics: when at capacity, the oldest entry is
|
|
54
|
+
* overwritten on each new filing.
|
|
55
|
+
* @name ReporterRateLimitAmino
|
|
56
|
+
* @package sparkdream.service.v1
|
|
57
|
+
* @see proto type: sparkdream.service.v1.ReporterRateLimit
|
|
58
|
+
*/
|
|
59
|
+
export interface ReporterRateLimitAmino {
|
|
60
|
+
/**
|
|
61
|
+
* reporter is the bech32 address whose rate is being tracked.
|
|
62
|
+
*/
|
|
63
|
+
reporter?: string;
|
|
64
|
+
/**
|
|
65
|
+
* operator_address is the target operator.
|
|
66
|
+
*/
|
|
67
|
+
operator_address?: string;
|
|
68
|
+
/**
|
|
69
|
+
* service_type is the target operator record.
|
|
70
|
+
*/
|
|
71
|
+
service_type?: string;
|
|
72
|
+
/**
|
|
73
|
+
* recent_filing_heights is the ring buffer of recent filing heights
|
|
74
|
+
* (most-recent-first or in insertion order; the keeper documents
|
|
75
|
+
* which). Length capped at max_reports + 1.
|
|
76
|
+
*/
|
|
77
|
+
recent_filing_heights?: string[];
|
|
78
|
+
}
|
|
79
|
+
export interface ReporterRateLimitAminoMsg {
|
|
80
|
+
type: "sparkdream/x/service/ReporterRateLimit";
|
|
81
|
+
value: ReporterRateLimitAmino;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* ReporterRateLimit tracks recent filing heights for a given
|
|
85
|
+
* (reporter, operator_address, service_type) tuple, implementing the
|
|
86
|
+
* sliding-window per-reporter cap from §3.4.6.
|
|
87
|
+
*
|
|
88
|
+
* The keeper admits a new filing iff fewer than
|
|
89
|
+
* `max_reports_per_reporter_per_operator_per_window` entries in
|
|
90
|
+
* `recent_filing_heights` fall within
|
|
91
|
+
* `[current_height - reporter_rate_limit_window_blocks, current_height]`.
|
|
92
|
+
*
|
|
93
|
+
* Ring-buffer semantics: when at capacity, the oldest entry is
|
|
94
|
+
* overwritten on each new filing.
|
|
95
|
+
* @name ReporterRateLimit
|
|
96
|
+
* @package sparkdream.service.v1
|
|
97
|
+
* @see proto type: sparkdream.service.v1.ReporterRateLimit
|
|
98
|
+
*/
|
|
99
|
+
export declare const ReporterRateLimit: {
|
|
100
|
+
typeUrl: string;
|
|
101
|
+
aminoType: string;
|
|
102
|
+
encode(message: ReporterRateLimit, writer?: BinaryWriter): BinaryWriter;
|
|
103
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ReporterRateLimit;
|
|
104
|
+
fromPartial(object: DeepPartial<ReporterRateLimit>): ReporterRateLimit;
|
|
105
|
+
fromAmino(object: ReporterRateLimitAmino): ReporterRateLimit;
|
|
106
|
+
toAmino(message: ReporterRateLimit): ReporterRateLimitAmino;
|
|
107
|
+
fromAminoMsg(object: ReporterRateLimitAminoMsg): ReporterRateLimit;
|
|
108
|
+
toAminoMsg(message: ReporterRateLimit): ReporterRateLimitAminoMsg;
|
|
109
|
+
fromProtoMsg(message: ReporterRateLimitProtoMsg): ReporterRateLimit;
|
|
110
|
+
toProto(message: ReporterRateLimit): Uint8Array;
|
|
111
|
+
toProtoMsg(message: ReporterRateLimit): ReporterRateLimitProtoMsg;
|
|
112
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReporterRateLimit = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const binary_1 = require("../../../binary");
|
|
6
|
+
function createBaseReporterRateLimit() {
|
|
7
|
+
return {
|
|
8
|
+
reporter: "",
|
|
9
|
+
operatorAddress: "",
|
|
10
|
+
serviceType: "",
|
|
11
|
+
recentFilingHeights: []
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* ReporterRateLimit tracks recent filing heights for a given
|
|
16
|
+
* (reporter, operator_address, service_type) tuple, implementing the
|
|
17
|
+
* sliding-window per-reporter cap from §3.4.6.
|
|
18
|
+
*
|
|
19
|
+
* The keeper admits a new filing iff fewer than
|
|
20
|
+
* `max_reports_per_reporter_per_operator_per_window` entries in
|
|
21
|
+
* `recent_filing_heights` fall within
|
|
22
|
+
* `[current_height - reporter_rate_limit_window_blocks, current_height]`.
|
|
23
|
+
*
|
|
24
|
+
* Ring-buffer semantics: when at capacity, the oldest entry is
|
|
25
|
+
* overwritten on each new filing.
|
|
26
|
+
* @name ReporterRateLimit
|
|
27
|
+
* @package sparkdream.service.v1
|
|
28
|
+
* @see proto type: sparkdream.service.v1.ReporterRateLimit
|
|
29
|
+
*/
|
|
30
|
+
exports.ReporterRateLimit = {
|
|
31
|
+
typeUrl: "/sparkdream.service.v1.ReporterRateLimit",
|
|
32
|
+
aminoType: "sparkdream/x/service/ReporterRateLimit",
|
|
33
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
34
|
+
if (message.reporter !== "") {
|
|
35
|
+
writer.uint32(10).string(message.reporter);
|
|
36
|
+
}
|
|
37
|
+
if (message.operatorAddress !== "") {
|
|
38
|
+
writer.uint32(18).string(message.operatorAddress);
|
|
39
|
+
}
|
|
40
|
+
if (message.serviceType !== "") {
|
|
41
|
+
writer.uint32(26).string(message.serviceType);
|
|
42
|
+
}
|
|
43
|
+
writer.uint32(34).fork();
|
|
44
|
+
for (const v of message.recentFilingHeights) {
|
|
45
|
+
writer.int64(v);
|
|
46
|
+
}
|
|
47
|
+
writer.ldelim();
|
|
48
|
+
return writer;
|
|
49
|
+
},
|
|
50
|
+
decode(input, length) {
|
|
51
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
52
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
53
|
+
const message = createBaseReporterRateLimit();
|
|
54
|
+
while (reader.pos < end) {
|
|
55
|
+
const tag = reader.uint32();
|
|
56
|
+
switch (tag >>> 3) {
|
|
57
|
+
case 1:
|
|
58
|
+
message.reporter = reader.string();
|
|
59
|
+
break;
|
|
60
|
+
case 2:
|
|
61
|
+
message.operatorAddress = reader.string();
|
|
62
|
+
break;
|
|
63
|
+
case 3:
|
|
64
|
+
message.serviceType = reader.string();
|
|
65
|
+
break;
|
|
66
|
+
case 4:
|
|
67
|
+
if ((tag & 7) === 2) {
|
|
68
|
+
const end2 = reader.uint32() + reader.pos;
|
|
69
|
+
while (reader.pos < end2) {
|
|
70
|
+
message.recentFilingHeights.push(reader.int64());
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
message.recentFilingHeights.push(reader.int64());
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
default:
|
|
78
|
+
reader.skipType(tag & 7);
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return message;
|
|
83
|
+
},
|
|
84
|
+
fromPartial(object) {
|
|
85
|
+
const message = createBaseReporterRateLimit();
|
|
86
|
+
message.reporter = object.reporter ?? "";
|
|
87
|
+
message.operatorAddress = object.operatorAddress ?? "";
|
|
88
|
+
message.serviceType = object.serviceType ?? "";
|
|
89
|
+
message.recentFilingHeights = object.recentFilingHeights?.map(e => BigInt(e.toString())) || [];
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
fromAmino(object) {
|
|
93
|
+
const message = createBaseReporterRateLimit();
|
|
94
|
+
if (object.reporter !== undefined && object.reporter !== null) {
|
|
95
|
+
message.reporter = object.reporter;
|
|
96
|
+
}
|
|
97
|
+
if (object.operator_address !== undefined && object.operator_address !== null) {
|
|
98
|
+
message.operatorAddress = object.operator_address;
|
|
99
|
+
}
|
|
100
|
+
if (object.service_type !== undefined && object.service_type !== null) {
|
|
101
|
+
message.serviceType = object.service_type;
|
|
102
|
+
}
|
|
103
|
+
message.recentFilingHeights = object.recent_filing_heights?.map(e => BigInt(e)) || [];
|
|
104
|
+
return message;
|
|
105
|
+
},
|
|
106
|
+
toAmino(message) {
|
|
107
|
+
const obj = {};
|
|
108
|
+
obj.reporter = message.reporter === "" ? undefined : message.reporter;
|
|
109
|
+
obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress;
|
|
110
|
+
obj.service_type = message.serviceType === "" ? undefined : message.serviceType;
|
|
111
|
+
if (message.recentFilingHeights) {
|
|
112
|
+
obj.recent_filing_heights = message.recentFilingHeights.map(e => e.toString());
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
obj.recent_filing_heights = message.recentFilingHeights;
|
|
116
|
+
}
|
|
117
|
+
return obj;
|
|
118
|
+
},
|
|
119
|
+
fromAminoMsg(object) {
|
|
120
|
+
return exports.ReporterRateLimit.fromAmino(object.value);
|
|
121
|
+
},
|
|
122
|
+
toAminoMsg(message) {
|
|
123
|
+
return {
|
|
124
|
+
type: "sparkdream/x/service/ReporterRateLimit",
|
|
125
|
+
value: exports.ReporterRateLimit.toAmino(message)
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
fromProtoMsg(message) {
|
|
129
|
+
return exports.ReporterRateLimit.decode(message.value);
|
|
130
|
+
},
|
|
131
|
+
toProto(message) {
|
|
132
|
+
return exports.ReporterRateLimit.encode(message).finish();
|
|
133
|
+
},
|
|
134
|
+
toProtoMsg(message) {
|
|
135
|
+
return {
|
|
136
|
+
typeUrl: "/sparkdream.service.v1.ReporterRateLimit",
|
|
137
|
+
value: exports.ReporterRateLimit.encode(message).finish()
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
};
|