@bandprotocol/bandchain.js
Version:
TypeScript library for Cosmos SDK and BandChain
51 lines (50 loc) • 1.91 kB
JavaScript
export const createRPCMsgClient = async ({ rpc }) => ({
cosmos: {
authz: {
v1beta1: new (await import("../cosmos/authz/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
},
bank: {
v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
},
distribution: {
v1beta1: new (await import("../cosmos/distribution/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
},
feegrant: {
v1beta1: new (await import("../cosmos/feegrant/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
},
gov: {
v1: new (await import("../cosmos/gov/v1/tx.rpc.msg")).MsgClientImpl(rpc),
v1beta1: new (await import("../cosmos/gov/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
},
group: {
v1: new (await import("../cosmos/group/v1/tx.rpc.msg")).MsgClientImpl(rpc)
},
staking: {
v1beta1: new (await import("../cosmos/staking/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
},
upgrade: {
v1beta1: new (await import("../cosmos/upgrade/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
},
vesting: {
v1beta1: new (await import("../cosmos/vesting/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
}
},
ibc: {
applications: {
transfer: {
v1: new (await import("./applications/transfer/v1/tx.rpc.msg")).MsgClientImpl(rpc)
}
},
core: {
channel: {
v1: new (await import("./core/channel/v1/tx.rpc.msg")).MsgClientImpl(rpc)
},
client: {
v1: new (await import("./core/client/v1/tx.rpc.msg")).MsgClientImpl(rpc)
},
connection: {
v1: new (await import("./core/connection/v1/tx.rpc.msg")).MsgClientImpl(rpc)
}
}
}
});