@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,42 @@
|
|
|
1
|
+
import { BinaryReader } from "../../../binary";
|
|
2
|
+
import { createProtobufRpcClient } from "@cosmjs/stargate";
|
|
3
|
+
import { QueryChainIdentityRequest, QueryChainIdentityResponse, QueryBondDenomRequest, QueryBondDenomResponse, QueryDreamDenomRequest, QueryDreamDenomResponse } from "./query";
|
|
4
|
+
export class QueryClientImpl {
|
|
5
|
+
rpc;
|
|
6
|
+
constructor(rpc) {
|
|
7
|
+
this.rpc = rpc;
|
|
8
|
+
}
|
|
9
|
+
/* ChainIdentity returns the chain's immutable identity record. */
|
|
10
|
+
chainIdentity = async (request = {}) => {
|
|
11
|
+
const data = QueryChainIdentityRequest.encode(request).finish();
|
|
12
|
+
const promise = this.rpc.request("sparkdream.identity.v1.Query", "ChainIdentity", data);
|
|
13
|
+
return promise.then(data => QueryChainIdentityResponse.decode(new BinaryReader(data)));
|
|
14
|
+
};
|
|
15
|
+
/* BondDenom is a convenience wrapper returning the native gas/staking denom. */
|
|
16
|
+
bondDenom = async (request = {}) => {
|
|
17
|
+
const data = QueryBondDenomRequest.encode(request).finish();
|
|
18
|
+
const promise = this.rpc.request("sparkdream.identity.v1.Query", "BondDenom", data);
|
|
19
|
+
return promise.then(data => QueryBondDenomResponse.decode(new BinaryReader(data)));
|
|
20
|
+
};
|
|
21
|
+
/* DreamDenom is a convenience wrapper returning the native DREAM denom. */
|
|
22
|
+
dreamDenom = async (request = {}) => {
|
|
23
|
+
const data = QueryDreamDenomRequest.encode(request).finish();
|
|
24
|
+
const promise = this.rpc.request("sparkdream.identity.v1.Query", "DreamDenom", data);
|
|
25
|
+
return promise.then(data => QueryDreamDenomResponse.decode(new BinaryReader(data)));
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export const createRpcQueryExtension = (base) => {
|
|
29
|
+
const rpc = createProtobufRpcClient(base);
|
|
30
|
+
const queryService = new QueryClientImpl(rpc);
|
|
31
|
+
return {
|
|
32
|
+
chainIdentity(request) {
|
|
33
|
+
return queryService.chainIdentity(request);
|
|
34
|
+
},
|
|
35
|
+
bondDenom(request) {
|
|
36
|
+
return queryService.bondDenom(request);
|
|
37
|
+
},
|
|
38
|
+
dreamDenom(request) {
|
|
39
|
+
return queryService.dreamDenom(request);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
};
|
package/esm/sparkdream/lcd.js
CHANGED
|
@@ -133,6 +133,16 @@ export const createLCDClient = async ({ restEndpoint }) => {
|
|
|
133
133
|
requestClient
|
|
134
134
|
})
|
|
135
135
|
},
|
|
136
|
+
guardian: {
|
|
137
|
+
v1: new (await import("./guardian/v1/query.lcd")).LCDQueryClient({
|
|
138
|
+
requestClient
|
|
139
|
+
})
|
|
140
|
+
},
|
|
141
|
+
identity: {
|
|
142
|
+
v1: new (await import("./identity/v1/query.lcd")).LCDQueryClient({
|
|
143
|
+
requestClient
|
|
144
|
+
})
|
|
145
|
+
},
|
|
136
146
|
name: {
|
|
137
147
|
v1: new (await import("./name/v1/query.lcd")).LCDQueryClient({
|
|
138
148
|
requestClient
|
|
@@ -153,6 +163,11 @@ export const createLCDClient = async ({ restEndpoint }) => {
|
|
|
153
163
|
requestClient
|
|
154
164
|
})
|
|
155
165
|
},
|
|
166
|
+
service: {
|
|
167
|
+
v1: new (await import("./service/v1/query.lcd")).LCDQueryClient({
|
|
168
|
+
requestClient
|
|
169
|
+
})
|
|
170
|
+
},
|
|
156
171
|
session: {
|
|
157
172
|
v1: new (await import("./session/v1/query.lcd")).LCDQueryClient({
|
|
158
173
|
requestClient
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Duration } from "../../../google/protobuf/duration";
|
|
3
|
-
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
4
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
4
|
function createBaseParams() {
|
|
6
5
|
return {
|
|
@@ -9,14 +8,16 @@ function createBaseParams() {
|
|
|
9
8
|
maxNameLength: BigInt(0),
|
|
10
9
|
maxNamesPerAddress: BigInt(0),
|
|
11
10
|
expirationDuration: Duration.fromPartial({}),
|
|
12
|
-
|
|
11
|
+
registrationFeeAmount: "",
|
|
13
12
|
disputeStakeDream: "",
|
|
14
13
|
disputeTimeoutBlocks: BigInt(0),
|
|
15
14
|
contestStakeDream: ""
|
|
16
15
|
};
|
|
17
16
|
}
|
|
18
17
|
/**
|
|
19
|
-
* Params defines the parameters for the module.
|
|
18
|
+
* Params defines the parameters for the module. Fee amounts are bare
|
|
19
|
+
* math.Int values in the chain's bond/dream denom — wrapped into sdk.Coin
|
|
20
|
+
* at the point of use via the identity keeper.
|
|
20
21
|
* @name Params
|
|
21
22
|
* @package sparkdream.name.v1
|
|
22
23
|
* @see proto type: sparkdream.name.v1.Params
|
|
@@ -40,8 +41,8 @@ export const Params = {
|
|
|
40
41
|
if (message.expirationDuration !== undefined) {
|
|
41
42
|
Duration.encode(message.expirationDuration, writer.uint32(42).fork()).ldelim();
|
|
42
43
|
}
|
|
43
|
-
if (message.
|
|
44
|
-
|
|
44
|
+
if (message.registrationFeeAmount !== "") {
|
|
45
|
+
writer.uint32(50).string(message.registrationFeeAmount);
|
|
45
46
|
}
|
|
46
47
|
if (message.disputeStakeDream !== "") {
|
|
47
48
|
writer.uint32(58).string(message.disputeStakeDream);
|
|
@@ -77,7 +78,7 @@ export const Params = {
|
|
|
77
78
|
message.expirationDuration = Duration.decode(reader, reader.uint32());
|
|
78
79
|
break;
|
|
79
80
|
case 6:
|
|
80
|
-
message.
|
|
81
|
+
message.registrationFeeAmount = reader.string();
|
|
81
82
|
break;
|
|
82
83
|
case 7:
|
|
83
84
|
message.disputeStakeDream = reader.string();
|
|
@@ -102,7 +103,7 @@ export const Params = {
|
|
|
102
103
|
message.maxNameLength = object.maxNameLength !== undefined && object.maxNameLength !== null ? BigInt(object.maxNameLength.toString()) : BigInt(0);
|
|
103
104
|
message.maxNamesPerAddress = object.maxNamesPerAddress !== undefined && object.maxNamesPerAddress !== null ? BigInt(object.maxNamesPerAddress.toString()) : BigInt(0);
|
|
104
105
|
message.expirationDuration = object.expirationDuration !== undefined && object.expirationDuration !== null ? Duration.fromPartial(object.expirationDuration) : undefined;
|
|
105
|
-
message.
|
|
106
|
+
message.registrationFeeAmount = object.registrationFeeAmount ?? "";
|
|
106
107
|
message.disputeStakeDream = object.disputeStakeDream ?? "";
|
|
107
108
|
message.disputeTimeoutBlocks = object.disputeTimeoutBlocks !== undefined && object.disputeTimeoutBlocks !== null ? BigInt(object.disputeTimeoutBlocks.toString()) : BigInt(0);
|
|
108
109
|
message.contestStakeDream = object.contestStakeDream ?? "";
|
|
@@ -123,8 +124,8 @@ export const Params = {
|
|
|
123
124
|
if (object.expiration_duration !== undefined && object.expiration_duration !== null) {
|
|
124
125
|
message.expirationDuration = Duration.fromAmino(object.expiration_duration);
|
|
125
126
|
}
|
|
126
|
-
if (object.
|
|
127
|
-
message.
|
|
127
|
+
if (object.registration_fee_amount !== undefined && object.registration_fee_amount !== null) {
|
|
128
|
+
message.registrationFeeAmount = object.registration_fee_amount;
|
|
128
129
|
}
|
|
129
130
|
if (object.dispute_stake_dream !== undefined && object.dispute_stake_dream !== null) {
|
|
130
131
|
message.disputeStakeDream = object.dispute_stake_dream;
|
|
@@ -149,7 +150,7 @@ export const Params = {
|
|
|
149
150
|
obj.max_name_length = message.maxNameLength !== BigInt(0) ? message.maxNameLength?.toString() : undefined;
|
|
150
151
|
obj.max_names_per_address = message.maxNamesPerAddress !== BigInt(0) ? message.maxNamesPerAddress?.toString() : undefined;
|
|
151
152
|
obj.expiration_duration = message.expirationDuration ? Duration.toAmino(message.expirationDuration) : undefined;
|
|
152
|
-
obj.
|
|
153
|
+
obj.registration_fee_amount = message.registrationFeeAmount === "" ? undefined : message.registrationFeeAmount;
|
|
153
154
|
obj.dispute_stake_dream = message.disputeStakeDream === "" ? undefined : message.disputeStakeDream;
|
|
154
155
|
obj.dispute_timeout_blocks = message.disputeTimeoutBlocks !== BigInt(0) ? message.disputeTimeoutBlocks?.toString() : undefined;
|
|
155
156
|
obj.contest_stake_dream = message.contestStakeDream === "" ? undefined : message.contestStakeDream;
|
|
@@ -180,7 +181,7 @@ export const Params = {
|
|
|
180
181
|
function createBaseNameOperationalParams() {
|
|
181
182
|
return {
|
|
182
183
|
expirationDuration: Duration.fromPartial({}),
|
|
183
|
-
|
|
184
|
+
registrationFeeAmount: "",
|
|
184
185
|
disputeStakeDream: "",
|
|
185
186
|
disputeTimeoutBlocks: BigInt(0),
|
|
186
187
|
contestStakeDream: ""
|
|
@@ -202,8 +203,8 @@ export const NameOperationalParams = {
|
|
|
202
203
|
if (message.expirationDuration !== undefined) {
|
|
203
204
|
Duration.encode(message.expirationDuration, writer.uint32(10).fork()).ldelim();
|
|
204
205
|
}
|
|
205
|
-
if (message.
|
|
206
|
-
|
|
206
|
+
if (message.registrationFeeAmount !== "") {
|
|
207
|
+
writer.uint32(18).string(message.registrationFeeAmount);
|
|
207
208
|
}
|
|
208
209
|
if (message.disputeStakeDream !== "") {
|
|
209
210
|
writer.uint32(26).string(message.disputeStakeDream);
|
|
@@ -227,7 +228,7 @@ export const NameOperationalParams = {
|
|
|
227
228
|
message.expirationDuration = Duration.decode(reader, reader.uint32());
|
|
228
229
|
break;
|
|
229
230
|
case 2:
|
|
230
|
-
message.
|
|
231
|
+
message.registrationFeeAmount = reader.string();
|
|
231
232
|
break;
|
|
232
233
|
case 3:
|
|
233
234
|
message.disputeStakeDream = reader.string();
|
|
@@ -248,7 +249,7 @@ export const NameOperationalParams = {
|
|
|
248
249
|
fromPartial(object) {
|
|
249
250
|
const message = createBaseNameOperationalParams();
|
|
250
251
|
message.expirationDuration = object.expirationDuration !== undefined && object.expirationDuration !== null ? Duration.fromPartial(object.expirationDuration) : undefined;
|
|
251
|
-
message.
|
|
252
|
+
message.registrationFeeAmount = object.registrationFeeAmount ?? "";
|
|
252
253
|
message.disputeStakeDream = object.disputeStakeDream ?? "";
|
|
253
254
|
message.disputeTimeoutBlocks = object.disputeTimeoutBlocks !== undefined && object.disputeTimeoutBlocks !== null ? BigInt(object.disputeTimeoutBlocks.toString()) : BigInt(0);
|
|
254
255
|
message.contestStakeDream = object.contestStakeDream ?? "";
|
|
@@ -259,8 +260,8 @@ export const NameOperationalParams = {
|
|
|
259
260
|
if (object.expiration_duration !== undefined && object.expiration_duration !== null) {
|
|
260
261
|
message.expirationDuration = Duration.fromAmino(object.expiration_duration);
|
|
261
262
|
}
|
|
262
|
-
if (object.
|
|
263
|
-
message.
|
|
263
|
+
if (object.registration_fee_amount !== undefined && object.registration_fee_amount !== null) {
|
|
264
|
+
message.registrationFeeAmount = object.registration_fee_amount;
|
|
264
265
|
}
|
|
265
266
|
if (object.dispute_stake_dream !== undefined && object.dispute_stake_dream !== null) {
|
|
266
267
|
message.disputeStakeDream = object.dispute_stake_dream;
|
|
@@ -276,7 +277,7 @@ export const NameOperationalParams = {
|
|
|
276
277
|
toAmino(message) {
|
|
277
278
|
const obj = {};
|
|
278
279
|
obj.expiration_duration = message.expirationDuration ? Duration.toAmino(message.expirationDuration) : undefined;
|
|
279
|
-
obj.
|
|
280
|
+
obj.registration_fee_amount = message.registrationFeeAmount === "" ? undefined : message.registrationFeeAmount;
|
|
280
281
|
obj.dispute_stake_dream = message.disputeStakeDream === "" ? undefined : message.disputeStakeDream;
|
|
281
282
|
obj.dispute_timeout_blocks = message.disputeTimeoutBlocks !== BigInt(0) ? message.disputeTimeoutBlocks?.toString() : undefined;
|
|
282
283
|
obj.contest_stake_dream = message.contestStakeDream === "" ? undefined : message.contestStakeDream;
|
|
@@ -59,6 +59,10 @@ export function roleTypeToJSON(object) {
|
|
|
59
59
|
* reduced privileges depending on role, rewards may auto-bond.
|
|
60
60
|
* DEMOTED: bond below demotion_threshold; privileges revoked; cooldown
|
|
61
61
|
* enforced before re-bonding.
|
|
62
|
+
* UNBONDING: role-holder called MsgUnbondRole. DREAM remains locked and the
|
|
63
|
+
* bond remains slashable until unbond_completion_time. Action-time gates in
|
|
64
|
+
* owning modules must refuse on this status to contain new liability while
|
|
65
|
+
* the bond drains.
|
|
62
66
|
*/
|
|
63
67
|
export var BondedRoleStatus;
|
|
64
68
|
(function (BondedRoleStatus) {
|
|
@@ -66,6 +70,7 @@ export var BondedRoleStatus;
|
|
|
66
70
|
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_NORMAL"] = 1] = "BONDED_ROLE_STATUS_NORMAL";
|
|
67
71
|
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_RECOVERY"] = 2] = "BONDED_ROLE_STATUS_RECOVERY";
|
|
68
72
|
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_DEMOTED"] = 3] = "BONDED_ROLE_STATUS_DEMOTED";
|
|
73
|
+
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_UNBONDING"] = 4] = "BONDED_ROLE_STATUS_UNBONDING";
|
|
69
74
|
BondedRoleStatus[BondedRoleStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
70
75
|
})(BondedRoleStatus || (BondedRoleStatus = {}));
|
|
71
76
|
export const BondedRoleStatusAmino = BondedRoleStatus;
|
|
@@ -83,6 +88,9 @@ export function bondedRoleStatusFromJSON(object) {
|
|
|
83
88
|
case 3:
|
|
84
89
|
case "BONDED_ROLE_STATUS_DEMOTED":
|
|
85
90
|
return BondedRoleStatus.BONDED_ROLE_STATUS_DEMOTED;
|
|
91
|
+
case 4:
|
|
92
|
+
case "BONDED_ROLE_STATUS_UNBONDING":
|
|
93
|
+
return BondedRoleStatus.BONDED_ROLE_STATUS_UNBONDING;
|
|
86
94
|
case -1:
|
|
87
95
|
case "UNRECOGNIZED":
|
|
88
96
|
default:
|
|
@@ -99,6 +107,8 @@ export function bondedRoleStatusToJSON(object) {
|
|
|
99
107
|
return "BONDED_ROLE_STATUS_RECOVERY";
|
|
100
108
|
case BondedRoleStatus.BONDED_ROLE_STATUS_DEMOTED:
|
|
101
109
|
return "BONDED_ROLE_STATUS_DEMOTED";
|
|
110
|
+
case BondedRoleStatus.BONDED_ROLE_STATUS_UNBONDING:
|
|
111
|
+
return "BONDED_ROLE_STATUS_UNBONDING";
|
|
102
112
|
case BondedRoleStatus.UNRECOGNIZED:
|
|
103
113
|
default:
|
|
104
114
|
return "UNRECOGNIZED";
|
|
@@ -116,7 +126,9 @@ function createBaseBondedRole() {
|
|
|
116
126
|
consecutiveInactiveEpochs: BigInt(0),
|
|
117
127
|
demotionCooldownUntil: BigInt(0),
|
|
118
128
|
cumulativeRewards: "",
|
|
119
|
-
lastRewardEpoch: BigInt(0)
|
|
129
|
+
lastRewardEpoch: BigInt(0),
|
|
130
|
+
pendingUnbondAmount: "",
|
|
131
|
+
unbondCompletionTime: BigInt(0)
|
|
120
132
|
};
|
|
121
133
|
}
|
|
122
134
|
/**
|
|
@@ -164,6 +176,12 @@ export const BondedRole = {
|
|
|
164
176
|
if (message.lastRewardEpoch !== BigInt(0)) {
|
|
165
177
|
writer.uint32(88).int64(message.lastRewardEpoch);
|
|
166
178
|
}
|
|
179
|
+
if (message.pendingUnbondAmount !== "") {
|
|
180
|
+
writer.uint32(98).string(message.pendingUnbondAmount);
|
|
181
|
+
}
|
|
182
|
+
if (message.unbondCompletionTime !== BigInt(0)) {
|
|
183
|
+
writer.uint32(104).int64(message.unbondCompletionTime);
|
|
184
|
+
}
|
|
167
185
|
return writer;
|
|
168
186
|
},
|
|
169
187
|
decode(input, length) {
|
|
@@ -206,6 +224,12 @@ export const BondedRole = {
|
|
|
206
224
|
case 11:
|
|
207
225
|
message.lastRewardEpoch = reader.int64();
|
|
208
226
|
break;
|
|
227
|
+
case 12:
|
|
228
|
+
message.pendingUnbondAmount = reader.string();
|
|
229
|
+
break;
|
|
230
|
+
case 13:
|
|
231
|
+
message.unbondCompletionTime = reader.int64();
|
|
232
|
+
break;
|
|
209
233
|
default:
|
|
210
234
|
reader.skipType(tag & 7);
|
|
211
235
|
break;
|
|
@@ -226,6 +250,8 @@ export const BondedRole = {
|
|
|
226
250
|
message.demotionCooldownUntil = object.demotionCooldownUntil !== undefined && object.demotionCooldownUntil !== null ? BigInt(object.demotionCooldownUntil.toString()) : BigInt(0);
|
|
227
251
|
message.cumulativeRewards = object.cumulativeRewards ?? "";
|
|
228
252
|
message.lastRewardEpoch = object.lastRewardEpoch !== undefined && object.lastRewardEpoch !== null ? BigInt(object.lastRewardEpoch.toString()) : BigInt(0);
|
|
253
|
+
message.pendingUnbondAmount = object.pendingUnbondAmount ?? "";
|
|
254
|
+
message.unbondCompletionTime = object.unbondCompletionTime !== undefined && object.unbondCompletionTime !== null ? BigInt(object.unbondCompletionTime.toString()) : BigInt(0);
|
|
229
255
|
return message;
|
|
230
256
|
},
|
|
231
257
|
fromAmino(object) {
|
|
@@ -263,6 +289,12 @@ export const BondedRole = {
|
|
|
263
289
|
if (object.last_reward_epoch !== undefined && object.last_reward_epoch !== null) {
|
|
264
290
|
message.lastRewardEpoch = BigInt(object.last_reward_epoch);
|
|
265
291
|
}
|
|
292
|
+
if (object.pending_unbond_amount !== undefined && object.pending_unbond_amount !== null) {
|
|
293
|
+
message.pendingUnbondAmount = object.pending_unbond_amount;
|
|
294
|
+
}
|
|
295
|
+
if (object.unbond_completion_time !== undefined && object.unbond_completion_time !== null) {
|
|
296
|
+
message.unbondCompletionTime = BigInt(object.unbond_completion_time);
|
|
297
|
+
}
|
|
266
298
|
return message;
|
|
267
299
|
},
|
|
268
300
|
toAmino(message) {
|
|
@@ -278,6 +310,8 @@ export const BondedRole = {
|
|
|
278
310
|
obj.demotion_cooldown_until = message.demotionCooldownUntil !== BigInt(0) ? message.demotionCooldownUntil?.toString() : undefined;
|
|
279
311
|
obj.cumulative_rewards = message.cumulativeRewards === "" ? undefined : message.cumulativeRewards;
|
|
280
312
|
obj.last_reward_epoch = message.lastRewardEpoch !== BigInt(0) ? message.lastRewardEpoch?.toString() : undefined;
|
|
313
|
+
obj.pending_unbond_amount = message.pendingUnbondAmount === "" ? undefined : message.pendingUnbondAmount;
|
|
314
|
+
obj.unbond_completion_time = message.unbondCompletionTime !== BigInt(0) ? message.unbondCompletionTime?.toString() : undefined;
|
|
281
315
|
return obj;
|
|
282
316
|
},
|
|
283
317
|
fromAminoMsg(object) {
|
|
@@ -304,7 +338,8 @@ function createBaseBondedRoleConfig() {
|
|
|
304
338
|
minTrustLevel: "",
|
|
305
339
|
minAgeBlocks: BigInt(0),
|
|
306
340
|
demotionCooldown: BigInt(0),
|
|
307
|
-
demotionThreshold: ""
|
|
341
|
+
demotionThreshold: "",
|
|
342
|
+
unbondCooldown: BigInt(0)
|
|
308
343
|
};
|
|
309
344
|
}
|
|
310
345
|
/**
|
|
@@ -344,6 +379,9 @@ export const BondedRoleConfig = {
|
|
|
344
379
|
if (message.demotionThreshold !== "") {
|
|
345
380
|
writer.uint32(58).string(message.demotionThreshold);
|
|
346
381
|
}
|
|
382
|
+
if (message.unbondCooldown !== BigInt(0)) {
|
|
383
|
+
writer.uint32(64).int64(message.unbondCooldown);
|
|
384
|
+
}
|
|
347
385
|
return writer;
|
|
348
386
|
},
|
|
349
387
|
decode(input, length) {
|
|
@@ -374,6 +412,9 @@ export const BondedRoleConfig = {
|
|
|
374
412
|
case 7:
|
|
375
413
|
message.demotionThreshold = reader.string();
|
|
376
414
|
break;
|
|
415
|
+
case 8:
|
|
416
|
+
message.unbondCooldown = reader.int64();
|
|
417
|
+
break;
|
|
377
418
|
default:
|
|
378
419
|
reader.skipType(tag & 7);
|
|
379
420
|
break;
|
|
@@ -390,6 +431,7 @@ export const BondedRoleConfig = {
|
|
|
390
431
|
message.minAgeBlocks = object.minAgeBlocks !== undefined && object.minAgeBlocks !== null ? BigInt(object.minAgeBlocks.toString()) : BigInt(0);
|
|
391
432
|
message.demotionCooldown = object.demotionCooldown !== undefined && object.demotionCooldown !== null ? BigInt(object.demotionCooldown.toString()) : BigInt(0);
|
|
392
433
|
message.demotionThreshold = object.demotionThreshold ?? "";
|
|
434
|
+
message.unbondCooldown = object.unbondCooldown !== undefined && object.unbondCooldown !== null ? BigInt(object.unbondCooldown.toString()) : BigInt(0);
|
|
393
435
|
return message;
|
|
394
436
|
},
|
|
395
437
|
fromAmino(object) {
|
|
@@ -415,6 +457,9 @@ export const BondedRoleConfig = {
|
|
|
415
457
|
if (object.demotion_threshold !== undefined && object.demotion_threshold !== null) {
|
|
416
458
|
message.demotionThreshold = object.demotion_threshold;
|
|
417
459
|
}
|
|
460
|
+
if (object.unbond_cooldown !== undefined && object.unbond_cooldown !== null) {
|
|
461
|
+
message.unbondCooldown = BigInt(object.unbond_cooldown);
|
|
462
|
+
}
|
|
418
463
|
return message;
|
|
419
464
|
},
|
|
420
465
|
toAmino(message) {
|
|
@@ -426,6 +471,7 @@ export const BondedRoleConfig = {
|
|
|
426
471
|
obj.min_age_blocks = message.minAgeBlocks !== BigInt(0) ? message.minAgeBlocks?.toString() : undefined;
|
|
427
472
|
obj.demotion_cooldown = message.demotionCooldown !== BigInt(0) ? message.demotionCooldown?.toString() : undefined;
|
|
428
473
|
obj.demotion_threshold = message.demotionThreshold === "" ? undefined : message.demotionThreshold;
|
|
474
|
+
obj.unbond_cooldown = message.unbondCooldown !== BigInt(0) ? message.unbondCooldown?.toString() : undefined;
|
|
429
475
|
return obj;
|
|
430
476
|
},
|
|
431
477
|
fromAminoMsg(object) {
|
|
@@ -5,13 +5,17 @@ function createBaseTag() {
|
|
|
5
5
|
name: "",
|
|
6
6
|
usageCount: BigInt(0),
|
|
7
7
|
createdAt: BigInt(0),
|
|
8
|
-
lastUsedAt: BigInt(0)
|
|
9
|
-
expirationIndex: BigInt(0)
|
|
8
|
+
lastUsedAt: BigInt(0)
|
|
10
9
|
};
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
12
|
* Tag defines a content-tagging label. Owned by x/rep.
|
|
14
13
|
* Consumed by x/forum, x/collect, and x/rep's own initiative/reputation systems.
|
|
14
|
+
*
|
|
15
|
+
* GC is driven by `last_used_at + DefaultTagExpiration` (see x/rep ExpireTags
|
|
16
|
+
* in abci.go). IncrementTagUsage refreshes last_used_at on every reference,
|
|
17
|
+
* so actively used tags roll their deadline forward; stale tags hit their
|
|
18
|
+
* deadline and get reclaimed. Tags with last_used_at == 0 are permanent.
|
|
15
19
|
* @name Tag
|
|
16
20
|
* @package sparkdream.rep.v1
|
|
17
21
|
* @see proto type: sparkdream.rep.v1.Tag
|
|
@@ -31,9 +35,6 @@ export const Tag = {
|
|
|
31
35
|
if (message.lastUsedAt !== BigInt(0)) {
|
|
32
36
|
writer.uint32(32).int64(message.lastUsedAt);
|
|
33
37
|
}
|
|
34
|
-
if (message.expirationIndex !== BigInt(0)) {
|
|
35
|
-
writer.uint32(40).int64(message.expirationIndex);
|
|
36
|
-
}
|
|
37
38
|
return writer;
|
|
38
39
|
},
|
|
39
40
|
decode(input, length) {
|
|
@@ -55,9 +56,6 @@ export const Tag = {
|
|
|
55
56
|
case 4:
|
|
56
57
|
message.lastUsedAt = reader.int64();
|
|
57
58
|
break;
|
|
58
|
-
case 5:
|
|
59
|
-
message.expirationIndex = reader.int64();
|
|
60
|
-
break;
|
|
61
59
|
default:
|
|
62
60
|
reader.skipType(tag & 7);
|
|
63
61
|
break;
|
|
@@ -71,7 +69,6 @@ export const Tag = {
|
|
|
71
69
|
message.usageCount = object.usageCount !== undefined && object.usageCount !== null ? BigInt(object.usageCount.toString()) : BigInt(0);
|
|
72
70
|
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
73
71
|
message.lastUsedAt = object.lastUsedAt !== undefined && object.lastUsedAt !== null ? BigInt(object.lastUsedAt.toString()) : BigInt(0);
|
|
74
|
-
message.expirationIndex = object.expirationIndex !== undefined && object.expirationIndex !== null ? BigInt(object.expirationIndex.toString()) : BigInt(0);
|
|
75
72
|
return message;
|
|
76
73
|
},
|
|
77
74
|
fromAmino(object) {
|
|
@@ -88,9 +85,6 @@ export const Tag = {
|
|
|
88
85
|
if (object.last_used_at !== undefined && object.last_used_at !== null) {
|
|
89
86
|
message.lastUsedAt = BigInt(object.last_used_at);
|
|
90
87
|
}
|
|
91
|
-
if (object.expiration_index !== undefined && object.expiration_index !== null) {
|
|
92
|
-
message.expirationIndex = BigInt(object.expiration_index);
|
|
93
|
-
}
|
|
94
88
|
return message;
|
|
95
89
|
},
|
|
96
90
|
toAmino(message) {
|
|
@@ -99,7 +93,6 @@ export const Tag = {
|
|
|
99
93
|
obj.usage_count = message.usageCount !== BigInt(0) ? message.usageCount?.toString() : undefined;
|
|
100
94
|
obj.created_at = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
101
95
|
obj.last_used_at = message.lastUsedAt !== BigInt(0) ? message.lastUsedAt?.toString() : undefined;
|
|
102
|
-
obj.expiration_index = message.expirationIndex !== BigInt(0) ? message.expirationIndex?.toString() : undefined;
|
|
103
96
|
return obj;
|
|
104
97
|
},
|
|
105
98
|
fromAminoMsg(object) {
|
|
@@ -86,6 +86,12 @@ export const createRPCQueryClient = async ({ rpcEndpoint }) => {
|
|
|
86
86
|
futarchy: {
|
|
87
87
|
v1: (await import("./futarchy/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
88
88
|
},
|
|
89
|
+
guardian: {
|
|
90
|
+
v1: (await import("./guardian/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
91
|
+
},
|
|
92
|
+
identity: {
|
|
93
|
+
v1: (await import("./identity/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
94
|
+
},
|
|
89
95
|
name: {
|
|
90
96
|
v1: (await import("./name/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
91
97
|
},
|
|
@@ -98,6 +104,9 @@ export const createRPCQueryClient = async ({ rpcEndpoint }) => {
|
|
|
98
104
|
season: {
|
|
99
105
|
v1: (await import("./season/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
100
106
|
},
|
|
107
|
+
service: {
|
|
108
|
+
v1: (await import("./service/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
109
|
+
},
|
|
101
110
|
session: {
|
|
102
111
|
v1: (await import("./session/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
103
112
|
},
|
package/esm/sparkdream/rpc.tx.js
CHANGED
|
@@ -72,6 +72,9 @@ export const createRPCMsgClient = async ({ rpc }) => ({
|
|
|
72
72
|
futarchy: {
|
|
73
73
|
v1: new (await import("./futarchy/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
74
74
|
},
|
|
75
|
+
guardian: {
|
|
76
|
+
v1: new (await import("./guardian/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
77
|
+
},
|
|
75
78
|
name: {
|
|
76
79
|
v1: new (await import("./name/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
77
80
|
},
|
|
@@ -84,6 +87,9 @@ export const createRPCMsgClient = async ({ rpc }) => ({
|
|
|
84
87
|
season: {
|
|
85
88
|
v1: new (await import("./season/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
86
89
|
},
|
|
90
|
+
service: {
|
|
91
|
+
v1: new (await import("./service/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
92
|
+
},
|
|
87
93
|
session: {
|
|
88
94
|
v1: new (await import("./session/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
89
95
|
},
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
3
|
+
function createBaseModule() {
|
|
4
|
+
return {
|
|
5
|
+
authority: ""
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Module is the config object for the module.
|
|
10
|
+
* @name Module
|
|
11
|
+
* @package sparkdream.service.module.v1
|
|
12
|
+
* @see proto type: sparkdream.service.module.v1.Module
|
|
13
|
+
*/
|
|
14
|
+
export const Module = {
|
|
15
|
+
typeUrl: "/sparkdream.service.module.v1.Module",
|
|
16
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
17
|
+
if (message.authority !== "") {
|
|
18
|
+
writer.uint32(10).string(message.authority);
|
|
19
|
+
}
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBaseModule();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
case 1:
|
|
30
|
+
message.authority = reader.string();
|
|
31
|
+
break;
|
|
32
|
+
default:
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return message;
|
|
38
|
+
},
|
|
39
|
+
fromPartial(object) {
|
|
40
|
+
const message = createBaseModule();
|
|
41
|
+
message.authority = object.authority ?? "";
|
|
42
|
+
return message;
|
|
43
|
+
},
|
|
44
|
+
fromAmino(object) {
|
|
45
|
+
const message = createBaseModule();
|
|
46
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
47
|
+
message.authority = object.authority;
|
|
48
|
+
}
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
toAmino(message) {
|
|
52
|
+
const obj = {};
|
|
53
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
fromAminoMsg(object) {
|
|
57
|
+
return Module.fromAmino(object.value);
|
|
58
|
+
},
|
|
59
|
+
fromProtoMsg(message) {
|
|
60
|
+
return Module.decode(message.value);
|
|
61
|
+
},
|
|
62
|
+
toProto(message) {
|
|
63
|
+
return Module.encode(message).finish();
|
|
64
|
+
},
|
|
65
|
+
toProtoMsg(message) {
|
|
66
|
+
return {
|
|
67
|
+
typeUrl: "/sparkdream.service.module.v1.Module",
|
|
68
|
+
value: Module.encode(message).finish()
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|