@sparkdreamnft/sparkdreamjs 0.0.16 → 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/blog/v1/tx.amino.js +53 -20
- 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/tx.amino.js +138 -36
- 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.amino.js +76 -6
- 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/ecosystem/v1/tx.amino.js +18 -4
- 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/forum/v1/tx.amino.js +69 -40
- 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/rep/v1/tx.amino.js +177 -58
- package/esm/sparkdream/reveal/v1/tx.amino.js +34 -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.amino.js +17 -1
- 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/sparkdream/shield/v1/tx.amino.js +61 -8
- 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.amino.d.ts +2 -2
- package/sparkdream/blog/v1/tx.amino.js +53 -20
- package/sparkdream/blog/v1/tx.d.ts +4 -4
- package/sparkdream/bundle.d.ts +14945 -12924
- package/sparkdream/bundle.js +448 -346
- package/sparkdream/client.d.ts +125 -50
- 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/tx.amino.d.ts +7 -7
- package/sparkdream/collect/v1/tx.amino.js +138 -36
- 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.amino.d.ts +11 -6
- package/sparkdream/commons/v1/tx.amino.js +75 -5
- 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/ecosystem/v1/tx.amino.d.ts +1 -1
- package/sparkdream/ecosystem/v1/tx.amino.js +19 -5
- 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/forum/v1/tx.amino.d.ts +2 -2
- package/sparkdream/forum/v1/tx.amino.js +69 -40
- 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/rep/v1/tx.amino.d.ts +9 -9
- package/sparkdream/rep/v1/tx.amino.js +177 -58
- package/sparkdream/reveal/v1/tx.amino.d.ts +1 -1
- package/sparkdream/reveal/v1/tx.amino.js +34 -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.amino.d.ts +1 -1
- package/sparkdream/session/v1/tx.amino.js +17 -1
- 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/sparkdream/shield/v1/tx.amino.d.ts +3 -3
- package/sparkdream/shield/v1/tx.amino.js +61 -8
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createRpcQueryExtension = exports.QueryClientImpl = void 0;
|
|
4
|
+
const binary_1 = require("../../../binary");
|
|
5
|
+
const stargate_1 = require("@cosmjs/stargate");
|
|
6
|
+
const query_1 = require("./query");
|
|
7
|
+
class QueryClientImpl {
|
|
8
|
+
rpc;
|
|
9
|
+
constructor(rpc) {
|
|
10
|
+
this.rpc = rpc;
|
|
11
|
+
}
|
|
12
|
+
/* AllowedMsgs returns the list of inner msg type URLs that guardian
|
|
13
|
+
will route through MsgExec. The list is built into the binary; this
|
|
14
|
+
query exposes it for operator inspection. */
|
|
15
|
+
allowedMsgs = async (request = {}) => {
|
|
16
|
+
const data = query_1.QueryAllowedMsgsRequest.encode(request).finish();
|
|
17
|
+
const promise = this.rpc.request("sparkdream.guardian.v1.Query", "AllowedMsgs", data);
|
|
18
|
+
return promise.then(data => query_1.QueryAllowedMsgsResponse.decode(new binary_1.BinaryReader(data)));
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
exports.QueryClientImpl = QueryClientImpl;
|
|
22
|
+
const createRpcQueryExtension = (base) => {
|
|
23
|
+
const rpc = (0, stargate_1.createProtobufRpcClient)(base);
|
|
24
|
+
const queryService = new QueryClientImpl(rpc);
|
|
25
|
+
return {
|
|
26
|
+
allowedMsgs(request) {
|
|
27
|
+
return queryService.allowedMsgs(request);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
exports.createRpcQueryExtension = createRpcQueryExtension;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MsgExec } from "./tx";
|
|
2
|
+
export declare const AminoConverter: {
|
|
3
|
+
"/sparkdream.guardian.v1.MsgExec": {
|
|
4
|
+
aminoType: string;
|
|
5
|
+
toAmino: (message: MsgExec) => import("./tx").MsgExecAmino;
|
|
6
|
+
fromAmino: (object: import("./tx").MsgExecAmino) => MsgExec;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AminoConverter = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const tx_1 = require("./tx");
|
|
6
|
+
exports.AminoConverter = {
|
|
7
|
+
"/sparkdream.guardian.v1.MsgExec": {
|
|
8
|
+
aminoType: "sparkdream/x/guardian/MsgExec",
|
|
9
|
+
toAmino: tx_1.MsgExec.toAmino,
|
|
10
|
+
fromAmino: tx_1.MsgExec.fromAmino
|
|
11
|
+
}
|
|
12
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
/**
|
|
5
|
+
* MsgExec is the universal guardian wrapper. Submitted by gov (or another
|
|
6
|
+
* authorized account) to invoke a gated downstream msg through guardian's
|
|
7
|
+
* filter chain.
|
|
8
|
+
* @name MsgExec
|
|
9
|
+
* @package sparkdream.guardian.v1
|
|
10
|
+
* @see proto type: sparkdream.guardian.v1.MsgExec
|
|
11
|
+
*/
|
|
12
|
+
export interface MsgExec {
|
|
13
|
+
/**
|
|
14
|
+
* authority must equal the address gov uses for proposal execution
|
|
15
|
+
* (or, more generally, the address configured as guardian's authority
|
|
16
|
+
* at genesis).
|
|
17
|
+
*/
|
|
18
|
+
authority: string;
|
|
19
|
+
/**
|
|
20
|
+
* inner is the target msg to route. Must be one of the allowlisted
|
|
21
|
+
* msg types (see x/guardian/keeper for the registry). Inner's own
|
|
22
|
+
* Authority field is overwritten by guardian's module address before
|
|
23
|
+
* routing, so callers should leave it empty or it will be ignored.
|
|
24
|
+
*/
|
|
25
|
+
inner?: Any | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface MsgExecProtoMsg {
|
|
28
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExec";
|
|
29
|
+
value: Uint8Array;
|
|
30
|
+
}
|
|
31
|
+
export type MsgExecEncoded = Omit<MsgExec, "inner"> & {
|
|
32
|
+
/**
|
|
33
|
+
* inner is the target msg to route. Must be one of the allowlisted
|
|
34
|
+
* msg types (see x/guardian/keeper for the registry). Inner's own
|
|
35
|
+
* Authority field is overwritten by guardian's module address before
|
|
36
|
+
* routing, so callers should leave it empty or it will be ignored.
|
|
37
|
+
*/
|
|
38
|
+
inner?: AnyProtoMsg | undefined;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* MsgExec is the universal guardian wrapper. Submitted by gov (or another
|
|
42
|
+
* authorized account) to invoke a gated downstream msg through guardian's
|
|
43
|
+
* filter chain.
|
|
44
|
+
* @name MsgExecAmino
|
|
45
|
+
* @package sparkdream.guardian.v1
|
|
46
|
+
* @see proto type: sparkdream.guardian.v1.MsgExec
|
|
47
|
+
*/
|
|
48
|
+
export interface MsgExecAmino {
|
|
49
|
+
/**
|
|
50
|
+
* authority must equal the address gov uses for proposal execution
|
|
51
|
+
* (or, more generally, the address configured as guardian's authority
|
|
52
|
+
* at genesis).
|
|
53
|
+
*/
|
|
54
|
+
authority?: string;
|
|
55
|
+
/**
|
|
56
|
+
* inner is the target msg to route. Must be one of the allowlisted
|
|
57
|
+
* msg types (see x/guardian/keeper for the registry). Inner's own
|
|
58
|
+
* Authority field is overwritten by guardian's module address before
|
|
59
|
+
* routing, so callers should leave it empty or it will be ignored.
|
|
60
|
+
*/
|
|
61
|
+
inner?: AnyAmino;
|
|
62
|
+
}
|
|
63
|
+
export interface MsgExecAminoMsg {
|
|
64
|
+
type: "sparkdream/x/guardian/MsgExec";
|
|
65
|
+
value: MsgExecAmino;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @name MsgExecResponse
|
|
69
|
+
* @package sparkdream.guardian.v1
|
|
70
|
+
* @see proto type: sparkdream.guardian.v1.MsgExecResponse
|
|
71
|
+
*/
|
|
72
|
+
export interface MsgExecResponse {
|
|
73
|
+
/**
|
|
74
|
+
* inner_response is the response from the routed inner msg, packed as Any.
|
|
75
|
+
*/
|
|
76
|
+
innerResponse?: Any;
|
|
77
|
+
}
|
|
78
|
+
export interface MsgExecResponseProtoMsg {
|
|
79
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExecResponse";
|
|
80
|
+
value: Uint8Array;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @name MsgExecResponseAmino
|
|
84
|
+
* @package sparkdream.guardian.v1
|
|
85
|
+
* @see proto type: sparkdream.guardian.v1.MsgExecResponse
|
|
86
|
+
*/
|
|
87
|
+
export interface MsgExecResponseAmino {
|
|
88
|
+
/**
|
|
89
|
+
* inner_response is the response from the routed inner msg, packed as Any.
|
|
90
|
+
*/
|
|
91
|
+
inner_response?: AnyAmino;
|
|
92
|
+
}
|
|
93
|
+
export interface MsgExecResponseAminoMsg {
|
|
94
|
+
type: "/sparkdream.guardian.v1.MsgExecResponse";
|
|
95
|
+
value: MsgExecResponseAmino;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* MsgExec is the universal guardian wrapper. Submitted by gov (or another
|
|
99
|
+
* authorized account) to invoke a gated downstream msg through guardian's
|
|
100
|
+
* filter chain.
|
|
101
|
+
* @name MsgExec
|
|
102
|
+
* @package sparkdream.guardian.v1
|
|
103
|
+
* @see proto type: sparkdream.guardian.v1.MsgExec
|
|
104
|
+
*/
|
|
105
|
+
export declare const MsgExec: {
|
|
106
|
+
typeUrl: string;
|
|
107
|
+
aminoType: string;
|
|
108
|
+
encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter;
|
|
109
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgExec;
|
|
110
|
+
fromPartial(object: DeepPartial<MsgExec>): MsgExec;
|
|
111
|
+
fromAmino(object: MsgExecAmino): MsgExec;
|
|
112
|
+
toAmino(message: MsgExec): MsgExecAmino;
|
|
113
|
+
fromAminoMsg(object: MsgExecAminoMsg): MsgExec;
|
|
114
|
+
toAminoMsg(message: MsgExec): MsgExecAminoMsg;
|
|
115
|
+
fromProtoMsg(message: MsgExecProtoMsg): MsgExec;
|
|
116
|
+
toProto(message: MsgExec): Uint8Array;
|
|
117
|
+
toProtoMsg(message: MsgExec): MsgExecProtoMsg;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* @name MsgExecResponse
|
|
121
|
+
* @package sparkdream.guardian.v1
|
|
122
|
+
* @see proto type: sparkdream.guardian.v1.MsgExecResponse
|
|
123
|
+
*/
|
|
124
|
+
export declare const MsgExecResponse: {
|
|
125
|
+
typeUrl: string;
|
|
126
|
+
encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter;
|
|
127
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse;
|
|
128
|
+
fromPartial(object: DeepPartial<MsgExecResponse>): MsgExecResponse;
|
|
129
|
+
fromAmino(object: MsgExecResponseAmino): MsgExecResponse;
|
|
130
|
+
toAmino(message: MsgExecResponse): MsgExecResponseAmino;
|
|
131
|
+
fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse;
|
|
132
|
+
fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse;
|
|
133
|
+
toProto(message: MsgExecResponse): Uint8Array;
|
|
134
|
+
toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg;
|
|
135
|
+
};
|
|
136
|
+
export declare const Cosmos_basev1beta1Msg_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any;
|
|
137
|
+
export declare const Cosmos_basev1beta1Msg_FromAmino: (content: AnyAmino) => Any;
|
|
138
|
+
export declare const Cosmos_basev1beta1Msg_ToAmino: (content: Any) => AnyAmino;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Cosmos_basev1beta1Msg_ToAmino = exports.Cosmos_basev1beta1Msg_FromAmino = exports.Cosmos_basev1beta1Msg_InterfaceDecoder = exports.MsgExecResponse = exports.MsgExec = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const any_1 = require("../../../google/protobuf/any");
|
|
6
|
+
const binary_1 = require("../../../binary");
|
|
7
|
+
function createBaseMsgExec() {
|
|
8
|
+
return {
|
|
9
|
+
authority: "",
|
|
10
|
+
inner: undefined
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* MsgExec is the universal guardian wrapper. Submitted by gov (or another
|
|
15
|
+
* authorized account) to invoke a gated downstream msg through guardian's
|
|
16
|
+
* filter chain.
|
|
17
|
+
* @name MsgExec
|
|
18
|
+
* @package sparkdream.guardian.v1
|
|
19
|
+
* @see proto type: sparkdream.guardian.v1.MsgExec
|
|
20
|
+
*/
|
|
21
|
+
exports.MsgExec = {
|
|
22
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExec",
|
|
23
|
+
aminoType: "sparkdream/x/guardian/MsgExec",
|
|
24
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
25
|
+
if (message.authority !== "") {
|
|
26
|
+
writer.uint32(10).string(message.authority);
|
|
27
|
+
}
|
|
28
|
+
if (message.inner !== undefined) {
|
|
29
|
+
any_1.Any.encode(message.inner, writer.uint32(18).fork()).ldelim();
|
|
30
|
+
}
|
|
31
|
+
return writer;
|
|
32
|
+
},
|
|
33
|
+
decode(input, length) {
|
|
34
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
35
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36
|
+
const message = createBaseMsgExec();
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
const tag = reader.uint32();
|
|
39
|
+
switch (tag >>> 3) {
|
|
40
|
+
case 1:
|
|
41
|
+
message.authority = reader.string();
|
|
42
|
+
break;
|
|
43
|
+
case 2:
|
|
44
|
+
message.inner = (0, exports.Cosmos_basev1beta1Msg_InterfaceDecoder)(reader);
|
|
45
|
+
break;
|
|
46
|
+
default:
|
|
47
|
+
reader.skipType(tag & 7);
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return message;
|
|
52
|
+
},
|
|
53
|
+
fromPartial(object) {
|
|
54
|
+
const message = createBaseMsgExec();
|
|
55
|
+
message.authority = object.authority ?? "";
|
|
56
|
+
message.inner = object.inner !== undefined && object.inner !== null ? any_1.Any.fromPartial(object.inner) : undefined;
|
|
57
|
+
return message;
|
|
58
|
+
},
|
|
59
|
+
fromAmino(object) {
|
|
60
|
+
const message = createBaseMsgExec();
|
|
61
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
62
|
+
message.authority = object.authority;
|
|
63
|
+
}
|
|
64
|
+
if (object.inner !== undefined && object.inner !== null) {
|
|
65
|
+
message.inner = (0, exports.Cosmos_basev1beta1Msg_FromAmino)(object.inner);
|
|
66
|
+
}
|
|
67
|
+
return message;
|
|
68
|
+
},
|
|
69
|
+
toAmino(message) {
|
|
70
|
+
const obj = {};
|
|
71
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
72
|
+
obj.inner = message.inner ? (0, exports.Cosmos_basev1beta1Msg_ToAmino)(message.inner) : undefined;
|
|
73
|
+
return obj;
|
|
74
|
+
},
|
|
75
|
+
fromAminoMsg(object) {
|
|
76
|
+
return exports.MsgExec.fromAmino(object.value);
|
|
77
|
+
},
|
|
78
|
+
toAminoMsg(message) {
|
|
79
|
+
return {
|
|
80
|
+
type: "sparkdream/x/guardian/MsgExec",
|
|
81
|
+
value: exports.MsgExec.toAmino(message)
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
fromProtoMsg(message) {
|
|
85
|
+
return exports.MsgExec.decode(message.value);
|
|
86
|
+
},
|
|
87
|
+
toProto(message) {
|
|
88
|
+
return exports.MsgExec.encode(message).finish();
|
|
89
|
+
},
|
|
90
|
+
toProtoMsg(message) {
|
|
91
|
+
return {
|
|
92
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExec",
|
|
93
|
+
value: exports.MsgExec.encode(message).finish()
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
function createBaseMsgExecResponse() {
|
|
98
|
+
return {
|
|
99
|
+
innerResponse: undefined
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @name MsgExecResponse
|
|
104
|
+
* @package sparkdream.guardian.v1
|
|
105
|
+
* @see proto type: sparkdream.guardian.v1.MsgExecResponse
|
|
106
|
+
*/
|
|
107
|
+
exports.MsgExecResponse = {
|
|
108
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExecResponse",
|
|
109
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
110
|
+
if (message.innerResponse !== undefined) {
|
|
111
|
+
any_1.Any.encode(message.innerResponse, writer.uint32(10).fork()).ldelim();
|
|
112
|
+
}
|
|
113
|
+
return writer;
|
|
114
|
+
},
|
|
115
|
+
decode(input, length) {
|
|
116
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
117
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
118
|
+
const message = createBaseMsgExecResponse();
|
|
119
|
+
while (reader.pos < end) {
|
|
120
|
+
const tag = reader.uint32();
|
|
121
|
+
switch (tag >>> 3) {
|
|
122
|
+
case 1:
|
|
123
|
+
message.innerResponse = any_1.Any.decode(reader, reader.uint32());
|
|
124
|
+
break;
|
|
125
|
+
default:
|
|
126
|
+
reader.skipType(tag & 7);
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
fromPartial(object) {
|
|
133
|
+
const message = createBaseMsgExecResponse();
|
|
134
|
+
message.innerResponse = object.innerResponse !== undefined && object.innerResponse !== null ? any_1.Any.fromPartial(object.innerResponse) : undefined;
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
fromAmino(object) {
|
|
138
|
+
const message = createBaseMsgExecResponse();
|
|
139
|
+
if (object.inner_response !== undefined && object.inner_response !== null) {
|
|
140
|
+
message.innerResponse = any_1.Any.fromAmino(object.inner_response);
|
|
141
|
+
}
|
|
142
|
+
return message;
|
|
143
|
+
},
|
|
144
|
+
toAmino(message) {
|
|
145
|
+
const obj = {};
|
|
146
|
+
obj.inner_response = message.innerResponse ? any_1.Any.toAmino(message.innerResponse) : undefined;
|
|
147
|
+
return obj;
|
|
148
|
+
},
|
|
149
|
+
fromAminoMsg(object) {
|
|
150
|
+
return exports.MsgExecResponse.fromAmino(object.value);
|
|
151
|
+
},
|
|
152
|
+
fromProtoMsg(message) {
|
|
153
|
+
return exports.MsgExecResponse.decode(message.value);
|
|
154
|
+
},
|
|
155
|
+
toProto(message) {
|
|
156
|
+
return exports.MsgExecResponse.encode(message).finish();
|
|
157
|
+
},
|
|
158
|
+
toProtoMsg(message) {
|
|
159
|
+
return {
|
|
160
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExecResponse",
|
|
161
|
+
value: exports.MsgExecResponse.encode(message).finish()
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
const Cosmos_basev1beta1Msg_InterfaceDecoder = (input) => {
|
|
166
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
167
|
+
const data = any_1.Any.decode(reader, reader.uint32());
|
|
168
|
+
switch (data.typeUrl) {
|
|
169
|
+
default:
|
|
170
|
+
return data;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
exports.Cosmos_basev1beta1Msg_InterfaceDecoder = Cosmos_basev1beta1Msg_InterfaceDecoder;
|
|
174
|
+
const Cosmos_basev1beta1Msg_FromAmino = (content) => {
|
|
175
|
+
return any_1.Any.fromAmino(content);
|
|
176
|
+
};
|
|
177
|
+
exports.Cosmos_basev1beta1Msg_FromAmino = Cosmos_basev1beta1Msg_FromAmino;
|
|
178
|
+
const Cosmos_basev1beta1Msg_ToAmino = (content) => {
|
|
179
|
+
return any_1.Any.toAmino(content);
|
|
180
|
+
};
|
|
181
|
+
exports.Cosmos_basev1beta1Msg_ToAmino = Cosmos_basev1beta1Msg_ToAmino;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TelescopeGeneratedType } from "../../../types";
|
|
2
|
+
import { Registry } from "@cosmjs/proto-signing";
|
|
3
|
+
import { MsgExec } from "./tx";
|
|
4
|
+
export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
|
|
5
|
+
export declare const load: (protoRegistry: Registry) => void;
|
|
6
|
+
export declare const MessageComposer: {
|
|
7
|
+
encoded: {
|
|
8
|
+
exec(value: MsgExec): {
|
|
9
|
+
typeUrl: string;
|
|
10
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
withTypeUrl: {
|
|
14
|
+
exec(value: MsgExec): {
|
|
15
|
+
typeUrl: string;
|
|
16
|
+
value: MsgExec;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
fromPartial: {
|
|
20
|
+
exec(value: MsgExec): {
|
|
21
|
+
typeUrl: string;
|
|
22
|
+
value: MsgExec;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageComposer = exports.load = exports.registry = void 0;
|
|
4
|
+
const tx_1 = require("./tx");
|
|
5
|
+
exports.registry = [["/sparkdream.guardian.v1.MsgExec", tx_1.MsgExec]];
|
|
6
|
+
const load = (protoRegistry) => {
|
|
7
|
+
exports.registry.forEach(([typeUrl, mod]) => {
|
|
8
|
+
protoRegistry.register(typeUrl, mod);
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.load = load;
|
|
12
|
+
exports.MessageComposer = {
|
|
13
|
+
encoded: {
|
|
14
|
+
exec(value) {
|
|
15
|
+
return {
|
|
16
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExec",
|
|
17
|
+
value: tx_1.MsgExec.encode(value).finish()
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
withTypeUrl: {
|
|
22
|
+
exec(value) {
|
|
23
|
+
return {
|
|
24
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExec",
|
|
25
|
+
value
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
fromPartial: {
|
|
30
|
+
exec(value) {
|
|
31
|
+
return {
|
|
32
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExec",
|
|
33
|
+
value: tx_1.MsgExec.fromPartial(value)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TxRpc } from "../../../types";
|
|
2
|
+
import { MsgExec, MsgExecResponse } from "./tx";
|
|
3
|
+
/** Msg defines the guardian Msg service. */
|
|
4
|
+
export interface Msg {
|
|
5
|
+
/**
|
|
6
|
+
* Exec routes the inner msg to the appropriate target module, with the
|
|
7
|
+
* guardian's module address substituted as the inner msg's `Authority`
|
|
8
|
+
* field. Per-msg-type filters validate field constraints (e.g., reject
|
|
9
|
+
* inflation_min changes on mint.MsgUpdateParams) before routing.
|
|
10
|
+
*
|
|
11
|
+
* The outer `authority` field is the address authorized to call guardian
|
|
12
|
+
* (the gov module account in production wiring). Unknown inner msg types
|
|
13
|
+
* are rejected: guardian uses an allowlist, not a denylist.
|
|
14
|
+
*/
|
|
15
|
+
exec(request: MsgExec): Promise<MsgExecResponse>;
|
|
16
|
+
}
|
|
17
|
+
export declare class MsgClientImpl implements Msg {
|
|
18
|
+
private readonly rpc;
|
|
19
|
+
constructor(rpc: TxRpc);
|
|
20
|
+
exec: (request: MsgExec) => Promise<MsgExecResponse>;
|
|
21
|
+
}
|
|
22
|
+
export declare const createClientImpl: (rpc: TxRpc) => MsgClientImpl;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createClientImpl = exports.MsgClientImpl = void 0;
|
|
4
|
+
const binary_1 = require("../../../binary");
|
|
5
|
+
const tx_1 = require("./tx");
|
|
6
|
+
class MsgClientImpl {
|
|
7
|
+
rpc;
|
|
8
|
+
constructor(rpc) {
|
|
9
|
+
this.rpc = rpc;
|
|
10
|
+
}
|
|
11
|
+
/* Exec routes the inner msg to the appropriate target module, with the
|
|
12
|
+
guardian's module address substituted as the inner msg's `Authority`
|
|
13
|
+
field. Per-msg-type filters validate field constraints (e.g., reject
|
|
14
|
+
inflation_min changes on mint.MsgUpdateParams) before routing.
|
|
15
|
+
|
|
16
|
+
The outer `authority` field is the address authorized to call guardian
|
|
17
|
+
(the gov module account in production wiring). Unknown inner msg types
|
|
18
|
+
are rejected: guardian uses an allowlist, not a denylist. */
|
|
19
|
+
exec = async (request) => {
|
|
20
|
+
const data = tx_1.MsgExec.encode(request).finish();
|
|
21
|
+
const promise = this.rpc.request("sparkdream.guardian.v1.Msg", "Exec", data);
|
|
22
|
+
return promise.then(data => tx_1.MsgExecResponse.decode(new binary_1.BinaryReader(data)));
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
exports.MsgClientImpl = MsgClientImpl;
|
|
26
|
+
const createClientImpl = (rpc) => {
|
|
27
|
+
return new MsgClientImpl(rpc);
|
|
28
|
+
};
|
|
29
|
+
exports.createClientImpl = createClientImpl;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
/**
|
|
4
|
+
* Module is the config object for the module.
|
|
5
|
+
* @name Module
|
|
6
|
+
* @package sparkdream.identity.module.v1
|
|
7
|
+
* @see proto type: sparkdream.identity.module.v1.Module
|
|
8
|
+
*/
|
|
9
|
+
export interface Module {
|
|
10
|
+
/**
|
|
11
|
+
* authority defines the custom module authority.
|
|
12
|
+
* If not set, defaults to the governance module.
|
|
13
|
+
*/
|
|
14
|
+
authority: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ModuleProtoMsg {
|
|
17
|
+
typeUrl: "/sparkdream.identity.module.v1.Module";
|
|
18
|
+
value: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Module is the config object for the module.
|
|
22
|
+
* @name ModuleAmino
|
|
23
|
+
* @package sparkdream.identity.module.v1
|
|
24
|
+
* @see proto type: sparkdream.identity.module.v1.Module
|
|
25
|
+
*/
|
|
26
|
+
export interface ModuleAmino {
|
|
27
|
+
/**
|
|
28
|
+
* authority defines the custom module authority.
|
|
29
|
+
* If not set, defaults to the governance module.
|
|
30
|
+
*/
|
|
31
|
+
authority?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ModuleAminoMsg {
|
|
34
|
+
type: "/sparkdream.identity.module.v1.Module";
|
|
35
|
+
value: ModuleAmino;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Module is the config object for the module.
|
|
39
|
+
* @name Module
|
|
40
|
+
* @package sparkdream.identity.module.v1
|
|
41
|
+
* @see proto type: sparkdream.identity.module.v1.Module
|
|
42
|
+
*/
|
|
43
|
+
export declare const Module: {
|
|
44
|
+
typeUrl: string;
|
|
45
|
+
encode(message: Module, writer?: BinaryWriter): BinaryWriter;
|
|
46
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Module;
|
|
47
|
+
fromPartial(object: DeepPartial<Module>): Module;
|
|
48
|
+
fromAmino(object: ModuleAmino): Module;
|
|
49
|
+
toAmino(message: Module): ModuleAmino;
|
|
50
|
+
fromAminoMsg(object: ModuleAminoMsg): Module;
|
|
51
|
+
fromProtoMsg(message: ModuleProtoMsg): Module;
|
|
52
|
+
toProto(message: Module): Uint8Array;
|
|
53
|
+
toProtoMsg(message: Module): ModuleProtoMsg;
|
|
54
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Module = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const binary_1 = require("../../../../binary");
|
|
6
|
+
function createBaseModule() {
|
|
7
|
+
return {
|
|
8
|
+
authority: ""
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Module is the config object for the module.
|
|
13
|
+
* @name Module
|
|
14
|
+
* @package sparkdream.identity.module.v1
|
|
15
|
+
* @see proto type: sparkdream.identity.module.v1.Module
|
|
16
|
+
*/
|
|
17
|
+
exports.Module = {
|
|
18
|
+
typeUrl: "/sparkdream.identity.module.v1.Module",
|
|
19
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
20
|
+
if (message.authority !== "") {
|
|
21
|
+
writer.uint32(10).string(message.authority);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseModule();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
message.authority = reader.string();
|
|
34
|
+
break;
|
|
35
|
+
default:
|
|
36
|
+
reader.skipType(tag & 7);
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return message;
|
|
41
|
+
},
|
|
42
|
+
fromPartial(object) {
|
|
43
|
+
const message = createBaseModule();
|
|
44
|
+
message.authority = object.authority ?? "";
|
|
45
|
+
return message;
|
|
46
|
+
},
|
|
47
|
+
fromAmino(object) {
|
|
48
|
+
const message = createBaseModule();
|
|
49
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
50
|
+
message.authority = object.authority;
|
|
51
|
+
}
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
toAmino(message) {
|
|
55
|
+
const obj = {};
|
|
56
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
57
|
+
return obj;
|
|
58
|
+
},
|
|
59
|
+
fromAminoMsg(object) {
|
|
60
|
+
return exports.Module.fromAmino(object.value);
|
|
61
|
+
},
|
|
62
|
+
fromProtoMsg(message) {
|
|
63
|
+
return exports.Module.decode(message.value);
|
|
64
|
+
},
|
|
65
|
+
toProto(message) {
|
|
66
|
+
return exports.Module.encode(message).finish();
|
|
67
|
+
},
|
|
68
|
+
toProtoMsg(message) {
|
|
69
|
+
return {
|
|
70
|
+
typeUrl: "/sparkdream.identity.module.v1.Module",
|
|
71
|
+
value: exports.Module.encode(message).finish()
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
};
|