@sparkdreamnft/sparkdreamjs 0.0.4 → 0.0.6
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/auth/v1beta1/tx.registry.d.ts +23 -0
- package/cosmos/auth/v1beta1/tx.registry.js +33 -1
- package/cosmos/authz/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/authz/v1beta1/tx.registry.js +69 -1
- package/cosmos/bank/v1beta1/tx.registry.d.ts +59 -0
- package/cosmos/bank/v1beta1/tx.registry.js +87 -1
- package/cosmos/benchmark/v1/tx.registry.d.ts +23 -0
- package/cosmos/benchmark/v1/tx.registry.js +33 -1
- package/cosmos/bundle.d.ts +1138 -181
- package/cosmos/bundle.js +184 -184
- package/cosmos/circuit/v1/tx.registry.d.ts +47 -0
- package/cosmos/circuit/v1/tx.registry.js +69 -1
- package/cosmos/consensus/v1/tx.registry.d.ts +23 -0
- package/cosmos/consensus/v1/tx.registry.js +33 -1
- package/cosmos/counter/v1/tx.registry.d.ts +23 -0
- package/cosmos/counter/v1/tx.registry.js +33 -1
- package/cosmos/distribution/v1beta1/tx.registry.d.ts +95 -0
- package/cosmos/distribution/v1beta1/tx.registry.js +141 -1
- package/cosmos/feegrant/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/feegrant/v1beta1/tx.registry.js +69 -1
- package/cosmos/gov/v1/tx.registry.d.ts +95 -0
- package/cosmos/gov/v1/tx.registry.js +141 -1
- package/cosmos/gov/v1beta1/tx.registry.d.ts +59 -0
- package/cosmos/gov/v1beta1/tx.registry.js +87 -1
- package/cosmos/group/v1/tx.registry.d.ts +179 -0
- package/cosmos/group/v1/tx.registry.js +267 -1
- package/cosmos/mint/v1beta1/tx.registry.d.ts +23 -0
- package/cosmos/mint/v1beta1/tx.registry.js +33 -1
- package/cosmos/protocolpool/v1/tx.registry.d.ts +71 -0
- package/cosmos/protocolpool/v1/tx.registry.js +105 -1
- package/cosmos/staking/v1beta1/tx.registry.d.ts +95 -0
- package/cosmos/staking/v1beta1/tx.registry.js +141 -1
- package/cosmos/upgrade/v1beta1/tx.registry.d.ts +35 -0
- package/cosmos/upgrade/v1beta1/tx.registry.js +51 -1
- package/cosmos/vesting/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/vesting/v1beta1/tx.registry.js +69 -1
- package/esm/cosmos/auth/v1beta1/tx.registry.js +31 -0
- package/esm/cosmos/authz/v1beta1/tx.registry.js +67 -0
- package/esm/cosmos/bank/v1beta1/tx.registry.js +85 -0
- package/esm/cosmos/benchmark/v1/tx.registry.js +31 -0
- package/esm/cosmos/bundle.js +184 -184
- package/esm/cosmos/circuit/v1/tx.registry.js +67 -0
- package/esm/cosmos/consensus/v1/tx.registry.js +31 -0
- package/esm/cosmos/counter/v1/tx.registry.js +31 -0
- package/esm/cosmos/distribution/v1beta1/tx.registry.js +139 -0
- package/esm/cosmos/feegrant/v1beta1/tx.registry.js +67 -0
- package/esm/cosmos/gov/v1/tx.registry.js +139 -0
- package/esm/cosmos/gov/v1beta1/tx.registry.js +85 -0
- package/esm/cosmos/group/v1/tx.registry.js +265 -0
- package/esm/cosmos/mint/v1beta1/tx.registry.js +31 -0
- package/esm/cosmos/protocolpool/v1/tx.registry.js +103 -0
- package/esm/cosmos/staking/v1beta1/tx.registry.js +139 -0
- package/esm/cosmos/upgrade/v1beta1/tx.registry.js +49 -0
- package/esm/cosmos/vesting/v1beta1/tx.registry.js +67 -0
- package/esm/ibc/applications/interchain_accounts/controller/v1/tx.registry.js +67 -0
- package/esm/ibc/applications/interchain_accounts/host/v1/tx.registry.js +49 -0
- package/esm/ibc/applications/transfer/v1/tx.registry.js +49 -0
- package/esm/ibc/bundle.js +96 -96
- package/esm/ibc/core/channel/v1/tx.registry.js +193 -0
- package/esm/ibc/core/channel/v2/tx.registry.js +85 -0
- package/esm/ibc/core/client/v1/tx.registry.js +157 -0
- package/esm/ibc/core/client/v2/tx.registry.js +49 -0
- package/esm/ibc/core/connection/v1/tx.registry.js +103 -0
- package/esm/ibc/lightclients/wasm/v1/tx.registry.js +67 -0
- package/esm/sparkdream/blog/module/{module.js → v1/module.js} +3 -3
- package/esm/sparkdream/blog/{genesis.js → v1/genesis.js} +3 -3
- package/esm/sparkdream/blog/{params.js → v1/params.js} +3 -3
- package/esm/sparkdream/blog/{post.js → v1/post.js} +3 -3
- package/esm/sparkdream/blog/{query.js → v1/query.js} +14 -14
- package/esm/sparkdream/blog/{query.lcd.js → v1/query.lcd.js} +6 -6
- package/esm/sparkdream/blog/{query.rpc.Query.js → v1/query.rpc.Query.js} +6 -6
- package/esm/sparkdream/blog/{tx.amino.js → v1/tx.amino.js} +7 -7
- package/esm/sparkdream/blog/{tx.js → v1/tx.js} +17 -17
- package/esm/sparkdream/blog/v1/tx.registry.js +87 -0
- package/esm/sparkdream/blog/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +8 -8
- package/esm/sparkdream/bundle.js +68 -48
- package/esm/sparkdream/client.js +7 -7
- package/esm/sparkdream/lcd.js +10 -6
- package/esm/sparkdream/rpc.query.js +6 -2
- package/esm/sparkdream/rpc.tx.js +6 -2
- package/esm/sparkdream/sparkdream/module/{module.js → v1/module.js} +3 -3
- package/esm/sparkdream/sparkdream/{genesis.js → v1/genesis.js} +3 -3
- package/esm/sparkdream/sparkdream/{params.js → v1/params.js} +3 -3
- package/esm/sparkdream/sparkdream/{query.js → v1/query.js} +5 -5
- package/esm/sparkdream/sparkdream/{query.lcd.js → v1/query.lcd.js} +1 -1
- package/esm/sparkdream/sparkdream/{query.rpc.Query.js → v1/query.rpc.Query.js} +2 -2
- package/esm/sparkdream/sparkdream/{tx.amino.js → v1/tx.amino.js} +1 -1
- package/esm/sparkdream/sparkdream/{tx.js → v1/tx.js} +5 -5
- package/esm/sparkdream/sparkdream/v1/tx.registry.js +33 -0
- package/esm/sparkdream/sparkdream/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +2 -2
- package/esm/tendermint/bundle.js +18 -18
- package/ibc/applications/interchain_accounts/controller/v1/tx.registry.d.ts +47 -0
- package/ibc/applications/interchain_accounts/controller/v1/tx.registry.js +69 -1
- package/ibc/applications/interchain_accounts/host/v1/tx.registry.d.ts +35 -0
- package/ibc/applications/interchain_accounts/host/v1/tx.registry.js +51 -1
- package/ibc/applications/transfer/v1/tx.registry.d.ts +35 -0
- package/ibc/applications/transfer/v1/tx.registry.js +51 -1
- package/ibc/bundle.d.ts +630 -81
- package/ibc/bundle.js +96 -96
- package/ibc/core/channel/v1/tx.registry.d.ts +131 -0
- package/ibc/core/channel/v1/tx.registry.js +195 -1
- package/ibc/core/channel/v2/tx.registry.d.ts +59 -0
- package/ibc/core/channel/v2/tx.registry.js +87 -1
- package/ibc/core/client/v1/tx.registry.d.ts +107 -0
- package/ibc/core/client/v1/tx.registry.js +159 -1
- package/ibc/core/client/v2/tx.registry.d.ts +35 -0
- package/ibc/core/client/v2/tx.registry.js +51 -1
- package/ibc/core/connection/v1/tx.registry.d.ts +71 -0
- package/ibc/core/connection/v1/tx.registry.js +105 -1
- package/ibc/lightclients/wasm/v1/tx.registry.d.ts +47 -0
- package/ibc/lightclients/wasm/v1/tx.registry.js +69 -1
- package/package.json +1 -1
- package/sparkdream/{sparkdream/module → blog/module/v1}/module.d.ts +12 -6
- package/sparkdream/blog/module/{module.js → v1/module.js} +3 -3
- package/sparkdream/blog/{genesis.d.ts → v1/genesis.d.ts} +4 -4
- package/sparkdream/blog/{genesis.js → v1/genesis.js} +3 -3
- package/sparkdream/blog/{params.d.ts → v1/params.d.ts} +3 -3
- package/sparkdream/blog/{params.js → v1/params.js} +3 -3
- package/sparkdream/blog/{post.d.ts → v1/post.d.ts} +6 -4
- package/sparkdream/blog/{post.js → v1/post.js} +3 -3
- package/sparkdream/blog/{query.d.ts → v1/query.d.ts} +23 -15
- package/sparkdream/blog/{query.js → v1/query.js} +14 -14
- package/sparkdream/blog/{query.lcd.js → v1/query.lcd.js} +6 -6
- package/sparkdream/blog/{query.rpc.Query.d.ts → v1/query.rpc.Query.d.ts} +3 -3
- package/sparkdream/blog/{query.rpc.Query.js → v1/query.rpc.Query.js} +6 -6
- package/sparkdream/blog/{tx.amino.d.ts → v1/tx.amino.d.ts} +4 -4
- package/sparkdream/blog/{tx.amino.js → v1/tx.amino.js} +7 -7
- package/sparkdream/blog/{tx.d.ts → v1/tx.d.ts} +29 -17
- package/sparkdream/blog/{tx.js → v1/tx.js} +17 -17
- package/sparkdream/blog/v1/tx.registry.d.ts +61 -0
- package/sparkdream/blog/v1/tx.registry.js +91 -0
- package/sparkdream/blog/{tx.rpc.msg.d.ts → v1/tx.rpc.msg.d.ts} +4 -1
- package/sparkdream/blog/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +8 -8
- package/sparkdream/bundle.d.ts +476 -348
- package/sparkdream/bundle.js +68 -48
- package/sparkdream/client.d.ts +15 -15
- package/sparkdream/client.js +7 -7
- package/sparkdream/lcd.d.ts +6 -2
- package/sparkdream/lcd.js +10 -6
- package/sparkdream/rpc.query.d.ts +8 -4
- package/sparkdream/rpc.query.js +6 -2
- package/sparkdream/rpc.tx.d.ts +6 -2
- package/sparkdream/rpc.tx.js +6 -2
- package/sparkdream/{blog/module → sparkdream/module/v1}/module.d.ts +12 -6
- package/sparkdream/sparkdream/module/{module.js → v1/module.js} +3 -3
- package/sparkdream/sparkdream/{genesis.d.ts → v1/genesis.d.ts} +4 -4
- package/sparkdream/sparkdream/{genesis.js → v1/genesis.js} +3 -3
- package/sparkdream/sparkdream/{params.d.ts → v1/params.d.ts} +3 -3
- package/sparkdream/sparkdream/{params.js → v1/params.js} +3 -3
- package/sparkdream/sparkdream/{query.d.ts → v1/query.d.ts} +6 -6
- package/sparkdream/sparkdream/{query.js → v1/query.js} +5 -5
- package/sparkdream/sparkdream/{query.lcd.js → v1/query.lcd.js} +1 -1
- package/sparkdream/sparkdream/{query.rpc.Query.d.ts → v1/query.rpc.Query.d.ts} +1 -1
- package/sparkdream/sparkdream/{query.rpc.Query.js → v1/query.rpc.Query.js} +2 -2
- package/sparkdream/sparkdream/{tx.amino.d.ts → v1/tx.amino.d.ts} +1 -1
- package/sparkdream/sparkdream/{tx.amino.js → v1/tx.amino.js} +1 -1
- package/sparkdream/sparkdream/{tx.d.ts → v1/tx.d.ts} +5 -5
- package/sparkdream/sparkdream/{tx.js → v1/tx.js} +5 -5
- package/sparkdream/sparkdream/v1/tx.registry.d.ts +25 -0
- package/sparkdream/sparkdream/v1/tx.registry.js +37 -0
- package/sparkdream/sparkdream/{tx.rpc.msg.d.ts → v1/tx.rpc.msg.d.ts} +1 -1
- package/sparkdream/sparkdream/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +2 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +18 -18
- package/esm/sparkdream/blog/tx.registry.js +0 -2
- package/esm/sparkdream/sparkdream/tx.registry.js +0 -2
- package/sparkdream/blog/tx.registry.d.ts +0 -2
- package/sparkdream/blog/tx.registry.js +0 -5
- package/sparkdream/sparkdream/tx.registry.d.ts +0 -2
- package/sparkdream/sparkdream/tx.registry.js +0 -5
- /package/sparkdream/blog/{query.lcd.d.ts → v1/query.lcd.d.ts} +0 -0
- /package/sparkdream/sparkdream/{query.lcd.d.ts → v1/query.lcd.d.ts} +0 -0
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registry = void 0;
|
|
3
|
+
exports.MessageComposer = exports.load = exports.registry = void 0;
|
|
4
4
|
const tx_1 = require("./tx");
|
|
5
5
|
exports.registry = [["/ibc.lightclients.wasm.v1.MsgStoreCode", tx_1.MsgStoreCode], ["/ibc.lightclients.wasm.v1.MsgRemoveChecksum", tx_1.MsgRemoveChecksum], ["/ibc.lightclients.wasm.v1.MsgMigrateContract", tx_1.MsgMigrateContract]];
|
|
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
|
+
storeCode(value) {
|
|
15
|
+
return {
|
|
16
|
+
typeUrl: "/ibc.lightclients.wasm.v1.MsgStoreCode",
|
|
17
|
+
value: tx_1.MsgStoreCode.encode(value).finish()
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
removeChecksum(value) {
|
|
21
|
+
return {
|
|
22
|
+
typeUrl: "/ibc.lightclients.wasm.v1.MsgRemoveChecksum",
|
|
23
|
+
value: tx_1.MsgRemoveChecksum.encode(value).finish()
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
migrateContract(value) {
|
|
27
|
+
return {
|
|
28
|
+
typeUrl: "/ibc.lightclients.wasm.v1.MsgMigrateContract",
|
|
29
|
+
value: tx_1.MsgMigrateContract.encode(value).finish()
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
withTypeUrl: {
|
|
34
|
+
storeCode(value) {
|
|
35
|
+
return {
|
|
36
|
+
typeUrl: "/ibc.lightclients.wasm.v1.MsgStoreCode",
|
|
37
|
+
value
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
removeChecksum(value) {
|
|
41
|
+
return {
|
|
42
|
+
typeUrl: "/ibc.lightclients.wasm.v1.MsgRemoveChecksum",
|
|
43
|
+
value
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
migrateContract(value) {
|
|
47
|
+
return {
|
|
48
|
+
typeUrl: "/ibc.lightclients.wasm.v1.MsgMigrateContract",
|
|
49
|
+
value
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
fromPartial: {
|
|
54
|
+
storeCode(value) {
|
|
55
|
+
return {
|
|
56
|
+
typeUrl: "/ibc.lightclients.wasm.v1.MsgStoreCode",
|
|
57
|
+
value: tx_1.MsgStoreCode.fromPartial(value)
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
removeChecksum(value) {
|
|
61
|
+
return {
|
|
62
|
+
typeUrl: "/ibc.lightclients.wasm.v1.MsgRemoveChecksum",
|
|
63
|
+
value: tx_1.MsgRemoveChecksum.fromPartial(value)
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
migrateContract(value) {
|
|
67
|
+
return {
|
|
68
|
+
typeUrl: "/ibc.lightclients.wasm.v1.MsgMigrateContract",
|
|
69
|
+
value: tx_1.MsgMigrateContract.fromPartial(value)
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
package/package.json
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "
|
|
2
|
-
import { DeepPartial } from "
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
3
|
/** Module is the config object for the module. */
|
|
4
4
|
export interface Module {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* authority defines the custom module authority.
|
|
7
|
+
* If not set, defaults to the governance module.
|
|
8
|
+
*/
|
|
6
9
|
authority: string;
|
|
7
10
|
}
|
|
8
11
|
export interface ModuleProtoMsg {
|
|
9
|
-
typeUrl: "/sparkdream.
|
|
12
|
+
typeUrl: "/sparkdream.blog.module.v1.Module";
|
|
10
13
|
value: Uint8Array;
|
|
11
14
|
}
|
|
12
15
|
/** Module is the config object for the module. */
|
|
13
16
|
export interface ModuleAmino {
|
|
14
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* authority defines the custom module authority.
|
|
19
|
+
* If not set, defaults to the governance module.
|
|
20
|
+
*/
|
|
15
21
|
authority?: string;
|
|
16
22
|
}
|
|
17
23
|
export interface ModuleAminoMsg {
|
|
18
|
-
type: "/sparkdream.
|
|
24
|
+
type: "/sparkdream.blog.module.v1.Module";
|
|
19
25
|
value: ModuleAmino;
|
|
20
26
|
}
|
|
21
27
|
export declare const Module: {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Module = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
|
-
const binary_1 = require("
|
|
5
|
+
const binary_1 = require("../../../../binary");
|
|
6
6
|
function createBaseModule() {
|
|
7
7
|
return {
|
|
8
8
|
authority: ""
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
exports.Module = {
|
|
12
|
-
typeUrl: "/sparkdream.blog.module.Module",
|
|
12
|
+
typeUrl: "/sparkdream.blog.module.v1.Module",
|
|
13
13
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
14
14
|
if (message.authority !== "") {
|
|
15
15
|
writer.uint32(10).string(message.authority);
|
|
@@ -61,7 +61,7 @@ exports.Module = {
|
|
|
61
61
|
},
|
|
62
62
|
toProtoMsg(message) {
|
|
63
63
|
return {
|
|
64
|
-
typeUrl: "/sparkdream.blog.module.Module",
|
|
64
|
+
typeUrl: "/sparkdream.blog.module.v1.Module",
|
|
65
65
|
value: exports.Module.encode(message).finish()
|
|
66
66
|
};
|
|
67
67
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Params, ParamsAmino } from "./params";
|
|
2
|
-
import { BinaryReader, BinaryWriter } from "
|
|
3
|
-
import { DeepPartial } from "
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
4
|
/** GenesisState defines the blog module's genesis state. */
|
|
5
5
|
export interface GenesisState {
|
|
6
6
|
/** params defines all the parameters of the module. */
|
|
7
7
|
params: Params;
|
|
8
8
|
}
|
|
9
9
|
export interface GenesisStateProtoMsg {
|
|
10
|
-
typeUrl: "/sparkdream.blog.GenesisState";
|
|
10
|
+
typeUrl: "/sparkdream.blog.v1.GenesisState";
|
|
11
11
|
value: Uint8Array;
|
|
12
12
|
}
|
|
13
13
|
/** GenesisState defines the blog module's genesis state. */
|
|
@@ -16,7 +16,7 @@ export interface GenesisStateAmino {
|
|
|
16
16
|
params: ParamsAmino;
|
|
17
17
|
}
|
|
18
18
|
export interface GenesisStateAminoMsg {
|
|
19
|
-
type: "/sparkdream.blog.GenesisState";
|
|
19
|
+
type: "/sparkdream.blog.v1.GenesisState";
|
|
20
20
|
value: GenesisStateAmino;
|
|
21
21
|
}
|
|
22
22
|
export declare const GenesisState: {
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GenesisState = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const params_1 = require("./params");
|
|
6
|
-
const binary_1 = require("
|
|
6
|
+
const binary_1 = require("../../../binary");
|
|
7
7
|
function createBaseGenesisState() {
|
|
8
8
|
return {
|
|
9
9
|
params: params_1.Params.fromPartial({})
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
exports.GenesisState = {
|
|
13
|
-
typeUrl: "/sparkdream.blog.GenesisState",
|
|
13
|
+
typeUrl: "/sparkdream.blog.v1.GenesisState",
|
|
14
14
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
15
15
|
if (message.params !== undefined) {
|
|
16
16
|
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
@@ -62,7 +62,7 @@ exports.GenesisState = {
|
|
|
62
62
|
},
|
|
63
63
|
toProtoMsg(message) {
|
|
64
64
|
return {
|
|
65
|
-
typeUrl: "/sparkdream.blog.GenesisState",
|
|
65
|
+
typeUrl: "/sparkdream.blog.v1.GenesisState",
|
|
66
66
|
value: exports.GenesisState.encode(message).finish()
|
|
67
67
|
};
|
|
68
68
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "
|
|
2
|
-
import { DeepPartial } from "
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
3
|
/** Params defines the parameters for the module. */
|
|
4
4
|
export interface Params {
|
|
5
5
|
}
|
|
6
6
|
export interface ParamsProtoMsg {
|
|
7
|
-
typeUrl: "/sparkdream.blog.Params";
|
|
7
|
+
typeUrl: "/sparkdream.blog.v1.Params";
|
|
8
8
|
value: Uint8Array;
|
|
9
9
|
}
|
|
10
10
|
/** Params defines the parameters for the module. */
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Params = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
|
-
const binary_1 = require("
|
|
5
|
+
const binary_1 = require("../../../binary");
|
|
6
6
|
function createBaseParams() {
|
|
7
7
|
return {};
|
|
8
8
|
}
|
|
9
9
|
exports.Params = {
|
|
10
|
-
typeUrl: "/sparkdream.blog.Params",
|
|
10
|
+
typeUrl: "/sparkdream.blog.v1.Params",
|
|
11
11
|
aminoType: "sparkdream/x/blog/Params",
|
|
12
12
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
13
13
|
return writer;
|
|
@@ -55,7 +55,7 @@ exports.Params = {
|
|
|
55
55
|
},
|
|
56
56
|
toProtoMsg(message) {
|
|
57
57
|
return {
|
|
58
|
-
typeUrl: "/sparkdream.blog.Params",
|
|
58
|
+
typeUrl: "/sparkdream.blog.v1.Params",
|
|
59
59
|
value: exports.Params.encode(message).finish()
|
|
60
60
|
};
|
|
61
61
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "
|
|
2
|
-
import { DeepPartial } from "
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
/** Post defines the Post message. */
|
|
3
4
|
export interface Post {
|
|
4
5
|
title: string;
|
|
5
6
|
body: string;
|
|
@@ -7,9 +8,10 @@ export interface Post {
|
|
|
7
8
|
id: bigint;
|
|
8
9
|
}
|
|
9
10
|
export interface PostProtoMsg {
|
|
10
|
-
typeUrl: "/sparkdream.blog.Post";
|
|
11
|
+
typeUrl: "/sparkdream.blog.v1.Post";
|
|
11
12
|
value: Uint8Array;
|
|
12
13
|
}
|
|
14
|
+
/** Post defines the Post message. */
|
|
13
15
|
export interface PostAmino {
|
|
14
16
|
title?: string;
|
|
15
17
|
body?: string;
|
|
@@ -17,7 +19,7 @@ export interface PostAmino {
|
|
|
17
19
|
id?: string;
|
|
18
20
|
}
|
|
19
21
|
export interface PostAminoMsg {
|
|
20
|
-
type: "/sparkdream.blog.Post";
|
|
22
|
+
type: "/sparkdream.blog.v1.Post";
|
|
21
23
|
value: PostAmino;
|
|
22
24
|
}
|
|
23
25
|
export declare const Post: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Post = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
|
-
const binary_1 = require("
|
|
5
|
+
const binary_1 = require("../../../binary");
|
|
6
6
|
function createBasePost() {
|
|
7
7
|
return {
|
|
8
8
|
title: "",
|
|
@@ -12,7 +12,7 @@ function createBasePost() {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
exports.Post = {
|
|
15
|
-
typeUrl: "/sparkdream.blog.Post",
|
|
15
|
+
typeUrl: "/sparkdream.blog.v1.Post",
|
|
16
16
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
17
17
|
if (message.title !== "") {
|
|
18
18
|
writer.uint32(10).string(message.title);
|
|
@@ -97,7 +97,7 @@ exports.Post = {
|
|
|
97
97
|
},
|
|
98
98
|
toProtoMsg(message) {
|
|
99
99
|
return {
|
|
100
|
-
typeUrl: "/sparkdream.blog.Post",
|
|
100
|
+
typeUrl: "/sparkdream.blog.v1.Post",
|
|
101
101
|
value: exports.Post.encode(message).finish()
|
|
102
102
|
};
|
|
103
103
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "
|
|
1
|
+
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
2
2
|
import { Params, ParamsAmino } from "./params";
|
|
3
3
|
import { Post, PostAmino } from "./post";
|
|
4
|
-
import { BinaryReader, BinaryWriter } from "
|
|
5
|
-
import { DeepPartial } from "
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
import { DeepPartial } from "../../../helpers";
|
|
6
6
|
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
7
7
|
export interface QueryParamsRequest {
|
|
8
8
|
}
|
|
9
9
|
export interface QueryParamsRequestProtoMsg {
|
|
10
|
-
typeUrl: "/sparkdream.blog.QueryParamsRequest";
|
|
10
|
+
typeUrl: "/sparkdream.blog.v1.QueryParamsRequest";
|
|
11
11
|
value: Uint8Array;
|
|
12
12
|
}
|
|
13
13
|
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
14
14
|
export interface QueryParamsRequestAmino {
|
|
15
15
|
}
|
|
16
16
|
export interface QueryParamsRequestAminoMsg {
|
|
17
|
-
type: "/sparkdream.blog.QueryParamsRequest";
|
|
17
|
+
type: "/sparkdream.blog.v1.QueryParamsRequest";
|
|
18
18
|
value: QueryParamsRequestAmino;
|
|
19
19
|
}
|
|
20
20
|
/** QueryParamsResponse is response type for the Query/Params RPC method. */
|
|
@@ -23,7 +23,7 @@ export interface QueryParamsResponse {
|
|
|
23
23
|
params: Params;
|
|
24
24
|
}
|
|
25
25
|
export interface QueryParamsResponseProtoMsg {
|
|
26
|
-
typeUrl: "/sparkdream.blog.QueryParamsResponse";
|
|
26
|
+
typeUrl: "/sparkdream.blog.v1.QueryParamsResponse";
|
|
27
27
|
value: Uint8Array;
|
|
28
28
|
}
|
|
29
29
|
/** QueryParamsResponse is response type for the Query/Params RPC method. */
|
|
@@ -32,65 +32,73 @@ export interface QueryParamsResponseAmino {
|
|
|
32
32
|
params: ParamsAmino;
|
|
33
33
|
}
|
|
34
34
|
export interface QueryParamsResponseAminoMsg {
|
|
35
|
-
type: "/sparkdream.blog.QueryParamsResponse";
|
|
35
|
+
type: "/sparkdream.blog.v1.QueryParamsResponse";
|
|
36
36
|
value: QueryParamsResponseAmino;
|
|
37
37
|
}
|
|
38
|
+
/** QueryShowPostRequest defines the QueryShowPostRequest message. */
|
|
38
39
|
export interface QueryShowPostRequest {
|
|
39
40
|
id: bigint;
|
|
40
41
|
}
|
|
41
42
|
export interface QueryShowPostRequestProtoMsg {
|
|
42
|
-
typeUrl: "/sparkdream.blog.QueryShowPostRequest";
|
|
43
|
+
typeUrl: "/sparkdream.blog.v1.QueryShowPostRequest";
|
|
43
44
|
value: Uint8Array;
|
|
44
45
|
}
|
|
46
|
+
/** QueryShowPostRequest defines the QueryShowPostRequest message. */
|
|
45
47
|
export interface QueryShowPostRequestAmino {
|
|
46
48
|
id?: string;
|
|
47
49
|
}
|
|
48
50
|
export interface QueryShowPostRequestAminoMsg {
|
|
49
|
-
type: "/sparkdream.blog.QueryShowPostRequest";
|
|
51
|
+
type: "/sparkdream.blog.v1.QueryShowPostRequest";
|
|
50
52
|
value: QueryShowPostRequestAmino;
|
|
51
53
|
}
|
|
54
|
+
/** QueryShowPostResponse defines the QueryShowPostResponse message. */
|
|
52
55
|
export interface QueryShowPostResponse {
|
|
53
56
|
post: Post;
|
|
54
57
|
}
|
|
55
58
|
export interface QueryShowPostResponseProtoMsg {
|
|
56
|
-
typeUrl: "/sparkdream.blog.QueryShowPostResponse";
|
|
59
|
+
typeUrl: "/sparkdream.blog.v1.QueryShowPostResponse";
|
|
57
60
|
value: Uint8Array;
|
|
58
61
|
}
|
|
62
|
+
/** QueryShowPostResponse defines the QueryShowPostResponse message. */
|
|
59
63
|
export interface QueryShowPostResponseAmino {
|
|
60
64
|
post?: PostAmino;
|
|
61
65
|
}
|
|
62
66
|
export interface QueryShowPostResponseAminoMsg {
|
|
63
|
-
type: "/sparkdream.blog.QueryShowPostResponse";
|
|
67
|
+
type: "/sparkdream.blog.v1.QueryShowPostResponse";
|
|
64
68
|
value: QueryShowPostResponseAmino;
|
|
65
69
|
}
|
|
70
|
+
/** QueryListPostRequest defines the QueryListPostRequest message. */
|
|
66
71
|
export interface QueryListPostRequest {
|
|
67
72
|
pagination?: PageRequest;
|
|
68
73
|
}
|
|
69
74
|
export interface QueryListPostRequestProtoMsg {
|
|
70
|
-
typeUrl: "/sparkdream.blog.QueryListPostRequest";
|
|
75
|
+
typeUrl: "/sparkdream.blog.v1.QueryListPostRequest";
|
|
71
76
|
value: Uint8Array;
|
|
72
77
|
}
|
|
78
|
+
/** QueryListPostRequest defines the QueryListPostRequest message. */
|
|
73
79
|
export interface QueryListPostRequestAmino {
|
|
74
80
|
pagination?: PageRequestAmino;
|
|
75
81
|
}
|
|
76
82
|
export interface QueryListPostRequestAminoMsg {
|
|
77
|
-
type: "/sparkdream.blog.QueryListPostRequest";
|
|
83
|
+
type: "/sparkdream.blog.v1.QueryListPostRequest";
|
|
78
84
|
value: QueryListPostRequestAmino;
|
|
79
85
|
}
|
|
86
|
+
/** QueryListPostResponse defines the QueryListPostResponse message. */
|
|
80
87
|
export interface QueryListPostResponse {
|
|
81
88
|
post: Post[];
|
|
82
89
|
pagination?: PageResponse;
|
|
83
90
|
}
|
|
84
91
|
export interface QueryListPostResponseProtoMsg {
|
|
85
|
-
typeUrl: "/sparkdream.blog.QueryListPostResponse";
|
|
92
|
+
typeUrl: "/sparkdream.blog.v1.QueryListPostResponse";
|
|
86
93
|
value: Uint8Array;
|
|
87
94
|
}
|
|
95
|
+
/** QueryListPostResponse defines the QueryListPostResponse message. */
|
|
88
96
|
export interface QueryListPostResponseAmino {
|
|
89
97
|
post?: PostAmino[];
|
|
90
98
|
pagination?: PageResponseAmino;
|
|
91
99
|
}
|
|
92
100
|
export interface QueryListPostResponseAminoMsg {
|
|
93
|
-
type: "/sparkdream.blog.QueryListPostResponse";
|
|
101
|
+
type: "/sparkdream.blog.v1.QueryListPostResponse";
|
|
94
102
|
value: QueryListPostResponseAmino;
|
|
95
103
|
}
|
|
96
104
|
export declare const QueryParamsRequest: {
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QueryListPostResponse = exports.QueryListPostRequest = exports.QueryShowPostResponse = exports.QueryShowPostRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
|
-
const pagination_1 = require("
|
|
5
|
+
const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
|
|
6
6
|
const params_1 = require("./params");
|
|
7
7
|
const post_1 = require("./post");
|
|
8
|
-
const binary_1 = require("
|
|
8
|
+
const binary_1 = require("../../../binary");
|
|
9
9
|
function createBaseQueryParamsRequest() {
|
|
10
10
|
return {};
|
|
11
11
|
}
|
|
12
12
|
exports.QueryParamsRequest = {
|
|
13
|
-
typeUrl: "/sparkdream.blog.QueryParamsRequest",
|
|
13
|
+
typeUrl: "/sparkdream.blog.v1.QueryParamsRequest",
|
|
14
14
|
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
15
15
|
return writer;
|
|
16
16
|
},
|
|
@@ -51,7 +51,7 @@ exports.QueryParamsRequest = {
|
|
|
51
51
|
},
|
|
52
52
|
toProtoMsg(message) {
|
|
53
53
|
return {
|
|
54
|
-
typeUrl: "/sparkdream.blog.QueryParamsRequest",
|
|
54
|
+
typeUrl: "/sparkdream.blog.v1.QueryParamsRequest",
|
|
55
55
|
value: exports.QueryParamsRequest.encode(message).finish()
|
|
56
56
|
};
|
|
57
57
|
}
|
|
@@ -62,7 +62,7 @@ function createBaseQueryParamsResponse() {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
exports.QueryParamsResponse = {
|
|
65
|
-
typeUrl: "/sparkdream.blog.QueryParamsResponse",
|
|
65
|
+
typeUrl: "/sparkdream.blog.v1.QueryParamsResponse",
|
|
66
66
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
67
67
|
if (message.params !== undefined) {
|
|
68
68
|
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
@@ -114,7 +114,7 @@ exports.QueryParamsResponse = {
|
|
|
114
114
|
},
|
|
115
115
|
toProtoMsg(message) {
|
|
116
116
|
return {
|
|
117
|
-
typeUrl: "/sparkdream.blog.QueryParamsResponse",
|
|
117
|
+
typeUrl: "/sparkdream.blog.v1.QueryParamsResponse",
|
|
118
118
|
value: exports.QueryParamsResponse.encode(message).finish()
|
|
119
119
|
};
|
|
120
120
|
}
|
|
@@ -125,7 +125,7 @@ function createBaseQueryShowPostRequest() {
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
exports.QueryShowPostRequest = {
|
|
128
|
-
typeUrl: "/sparkdream.blog.QueryShowPostRequest",
|
|
128
|
+
typeUrl: "/sparkdream.blog.v1.QueryShowPostRequest",
|
|
129
129
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
130
130
|
if (message.id !== BigInt(0)) {
|
|
131
131
|
writer.uint32(8).uint64(message.id);
|
|
@@ -177,7 +177,7 @@ exports.QueryShowPostRequest = {
|
|
|
177
177
|
},
|
|
178
178
|
toProtoMsg(message) {
|
|
179
179
|
return {
|
|
180
|
-
typeUrl: "/sparkdream.blog.QueryShowPostRequest",
|
|
180
|
+
typeUrl: "/sparkdream.blog.v1.QueryShowPostRequest",
|
|
181
181
|
value: exports.QueryShowPostRequest.encode(message).finish()
|
|
182
182
|
};
|
|
183
183
|
}
|
|
@@ -188,7 +188,7 @@ function createBaseQueryShowPostResponse() {
|
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
exports.QueryShowPostResponse = {
|
|
191
|
-
typeUrl: "/sparkdream.blog.QueryShowPostResponse",
|
|
191
|
+
typeUrl: "/sparkdream.blog.v1.QueryShowPostResponse",
|
|
192
192
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
193
193
|
if (message.post !== undefined) {
|
|
194
194
|
post_1.Post.encode(message.post, writer.uint32(10).fork()).ldelim();
|
|
@@ -240,7 +240,7 @@ exports.QueryShowPostResponse = {
|
|
|
240
240
|
},
|
|
241
241
|
toProtoMsg(message) {
|
|
242
242
|
return {
|
|
243
|
-
typeUrl: "/sparkdream.blog.QueryShowPostResponse",
|
|
243
|
+
typeUrl: "/sparkdream.blog.v1.QueryShowPostResponse",
|
|
244
244
|
value: exports.QueryShowPostResponse.encode(message).finish()
|
|
245
245
|
};
|
|
246
246
|
}
|
|
@@ -251,7 +251,7 @@ function createBaseQueryListPostRequest() {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
exports.QueryListPostRequest = {
|
|
254
|
-
typeUrl: "/sparkdream.blog.QueryListPostRequest",
|
|
254
|
+
typeUrl: "/sparkdream.blog.v1.QueryListPostRequest",
|
|
255
255
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
256
256
|
if (message.pagination !== undefined) {
|
|
257
257
|
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
@@ -303,7 +303,7 @@ exports.QueryListPostRequest = {
|
|
|
303
303
|
},
|
|
304
304
|
toProtoMsg(message) {
|
|
305
305
|
return {
|
|
306
|
-
typeUrl: "/sparkdream.blog.QueryListPostRequest",
|
|
306
|
+
typeUrl: "/sparkdream.blog.v1.QueryListPostRequest",
|
|
307
307
|
value: exports.QueryListPostRequest.encode(message).finish()
|
|
308
308
|
};
|
|
309
309
|
}
|
|
@@ -315,7 +315,7 @@ function createBaseQueryListPostResponse() {
|
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
exports.QueryListPostResponse = {
|
|
318
|
-
typeUrl: "/sparkdream.blog.QueryListPostResponse",
|
|
318
|
+
typeUrl: "/sparkdream.blog.v1.QueryListPostResponse",
|
|
319
319
|
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
320
320
|
for (const v of message.post) {
|
|
321
321
|
post_1.Post.encode(v, writer.uint32(10).fork()).ldelim();
|
|
@@ -381,7 +381,7 @@ exports.QueryListPostResponse = {
|
|
|
381
381
|
},
|
|
382
382
|
toProtoMsg(message) {
|
|
383
383
|
return {
|
|
384
|
-
typeUrl: "/sparkdream.blog.QueryListPostResponse",
|
|
384
|
+
typeUrl: "/sparkdream.blog.v1.QueryListPostResponse",
|
|
385
385
|
value: exports.QueryListPostResponse.encode(message).finish()
|
|
386
386
|
};
|
|
387
387
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LCDQueryClient = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
|
-
const helpers_1 = require("
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
6
|
class LCDQueryClient {
|
|
7
7
|
req;
|
|
8
8
|
constructor({ requestClient }) {
|
|
@@ -10,15 +10,15 @@ class LCDQueryClient {
|
|
|
10
10
|
}
|
|
11
11
|
/* Parameters queries the parameters of the module. */
|
|
12
12
|
params = async (_params = {}) => {
|
|
13
|
-
const endpoint = `sparkdream/blog/params`;
|
|
13
|
+
const endpoint = `sparkdream/blog/v1/params`;
|
|
14
14
|
return await this.req.get(endpoint);
|
|
15
15
|
};
|
|
16
|
-
/* Queries a list of ShowPost items. */
|
|
16
|
+
/* ShowPost Queries a list of ShowPost items. */
|
|
17
17
|
showPost = async (params) => {
|
|
18
|
-
const endpoint = `sparkdream/blog/show_post/${params.id}`;
|
|
18
|
+
const endpoint = `sparkdream/blog/v1/show_post/${params.id}`;
|
|
19
19
|
return await this.req.get(endpoint);
|
|
20
20
|
};
|
|
21
|
-
/* Queries a list of ListPost items. */
|
|
21
|
+
/* ListPost Queries a list of ListPost items. */
|
|
22
22
|
listPost = async (params = {
|
|
23
23
|
pagination: undefined
|
|
24
24
|
}) => {
|
|
@@ -28,7 +28,7 @@ class LCDQueryClient {
|
|
|
28
28
|
if (typeof params?.pagination !== "undefined") {
|
|
29
29
|
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
30
30
|
}
|
|
31
|
-
const endpoint = `sparkdream/blog/list_post`;
|
|
31
|
+
const endpoint = `sparkdream/blog/v1/list_post`;
|
|
32
32
|
return await this.req.get(endpoint, options);
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TxRpc } from "
|
|
1
|
+
import { TxRpc } from "../../../types";
|
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
|
3
3
|
import { QueryParamsRequest, QueryParamsResponse, QueryShowPostRequest, QueryShowPostResponse, QueryListPostRequest, QueryListPostResponse } from "./query";
|
|
4
4
|
/** Query defines the gRPC querier service. */
|
|
5
5
|
export interface Query {
|
|
6
6
|
/** Parameters queries the parameters of the module. */
|
|
7
7
|
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
8
|
-
/** Queries a list of ShowPost items. */
|
|
8
|
+
/** ShowPost Queries a list of ShowPost items. */
|
|
9
9
|
showPost(request: QueryShowPostRequest): Promise<QueryShowPostResponse>;
|
|
10
|
-
/** Queries a list of ListPost items. */
|
|
10
|
+
/** ListPost Queries a list of ListPost items. */
|
|
11
11
|
listPost(request?: QueryListPostRequest): Promise<QueryListPostResponse>;
|
|
12
12
|
}
|
|
13
13
|
export declare class QueryClientImpl implements Query {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createRpcQueryExtension = exports.QueryClientImpl = void 0;
|
|
4
|
-
const binary_1 = require("
|
|
4
|
+
const binary_1 = require("../../../binary");
|
|
5
5
|
const stargate_1 = require("@cosmjs/stargate");
|
|
6
6
|
const query_1 = require("./query");
|
|
7
7
|
class QueryClientImpl {
|
|
@@ -12,21 +12,21 @@ class QueryClientImpl {
|
|
|
12
12
|
/* Parameters queries the parameters of the module. */
|
|
13
13
|
params = async (request = {}) => {
|
|
14
14
|
const data = query_1.QueryParamsRequest.encode(request).finish();
|
|
15
|
-
const promise = this.rpc.request("sparkdream.blog.Query", "Params", data);
|
|
15
|
+
const promise = this.rpc.request("sparkdream.blog.v1.Query", "Params", data);
|
|
16
16
|
return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data)));
|
|
17
17
|
};
|
|
18
|
-
/* Queries a list of ShowPost items. */
|
|
18
|
+
/* ShowPost Queries a list of ShowPost items. */
|
|
19
19
|
showPost = async (request) => {
|
|
20
20
|
const data = query_1.QueryShowPostRequest.encode(request).finish();
|
|
21
|
-
const promise = this.rpc.request("sparkdream.blog.Query", "ShowPost", data);
|
|
21
|
+
const promise = this.rpc.request("sparkdream.blog.v1.Query", "ShowPost", data);
|
|
22
22
|
return promise.then(data => query_1.QueryShowPostResponse.decode(new binary_1.BinaryReader(data)));
|
|
23
23
|
};
|
|
24
|
-
/* Queries a list of ListPost items. */
|
|
24
|
+
/* ListPost Queries a list of ListPost items. */
|
|
25
25
|
listPost = async (request = {
|
|
26
26
|
pagination: undefined
|
|
27
27
|
}) => {
|
|
28
28
|
const data = query_1.QueryListPostRequest.encode(request).finish();
|
|
29
|
-
const promise = this.rpc.request("sparkdream.blog.Query", "ListPost", data);
|
|
29
|
+
const promise = this.rpc.request("sparkdream.blog.v1.Query", "ListPost", data);
|
|
30
30
|
return promise.then(data => query_1.QueryListPostResponse.decode(new binary_1.BinaryReader(data)));
|
|
31
31
|
};
|
|
32
32
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { MsgUpdateParams, MsgCreatePost, MsgUpdatePost, MsgDeletePost } from "./tx";
|
|
2
2
|
export declare const AminoConverter: {
|
|
3
|
-
"/sparkdream.blog.MsgUpdateParams": {
|
|
3
|
+
"/sparkdream.blog.v1.MsgUpdateParams": {
|
|
4
4
|
aminoType: string;
|
|
5
5
|
toAmino: (message: MsgUpdateParams) => import("./tx").MsgUpdateParamsAmino;
|
|
6
6
|
fromAmino: (object: import("./tx").MsgUpdateParamsAmino) => MsgUpdateParams;
|
|
7
7
|
};
|
|
8
|
-
"/sparkdream.blog.MsgCreatePost": {
|
|
8
|
+
"/sparkdream.blog.v1.MsgCreatePost": {
|
|
9
9
|
aminoType: string;
|
|
10
10
|
toAmino: (message: MsgCreatePost) => import("./tx").MsgCreatePostAmino;
|
|
11
11
|
fromAmino: (object: import("./tx").MsgCreatePostAmino) => MsgCreatePost;
|
|
12
12
|
};
|
|
13
|
-
"/sparkdream.blog.MsgUpdatePost": {
|
|
13
|
+
"/sparkdream.blog.v1.MsgUpdatePost": {
|
|
14
14
|
aminoType: string;
|
|
15
15
|
toAmino: (message: MsgUpdatePost) => import("./tx").MsgUpdatePostAmino;
|
|
16
16
|
fromAmino: (object: import("./tx").MsgUpdatePostAmino) => MsgUpdatePost;
|
|
17
17
|
};
|
|
18
|
-
"/sparkdream.blog.MsgDeletePost": {
|
|
18
|
+
"/sparkdream.blog.v1.MsgDeletePost": {
|
|
19
19
|
aminoType: string;
|
|
20
20
|
toAmino: (message: MsgDeletePost) => import("./tx").MsgDeletePostAmino;
|
|
21
21
|
fromAmino: (object: import("./tx").MsgDeletePostAmino) => MsgDeletePost;
|