1.1.27 • Published 2 years ago
@gotabit/proto v1.1.27
Gotabit Proto
usage
npm install @gotabit/proto
Send token
import { cosmos } from '@gotabit/proto'
const { send } = cosmos.bank.v1beta1.MessageComposer.fromPartial
const msg = send({
fromAddress: 'from address',
toAddress: 'receiver address',
amount: [
{
amount: '3',
denom: 'ugtb',
},
],
})
IBC Messages
import { ibc } from '@gotabit/proto'
const { transfer } = ibc.applications.transfer.v1.MessageComposer.withTypeUrl
Cosmos Messages
import { cosmos } from '@gotabit/proto'
const {
fundCommunityPool,
setWithdrawAddress,
withdrawDelegatorReward,
withdrawValidatorCommission,
} = cosmos.distribution.v1beta1.MessageComposer.fromPartial
const { multiSend, send } = cosmos.bank.v1beta1.MessageComposer.fromPartial
const {
beginRedelegate,
createValidator,
delegate,
editValidator,
undelegate,
} = cosmos.staking.v1beta1.MessageComposer.fromPartial
const { deposit, submitProposal, vote, voteWeighted } =
cosmos.gov.v1beta1.MessageComposer.fromPartial
CosmWasm Messages
import { cosmwasm } from '@gotabit/proto'
const {
clearAdmin,
executeContract,
instantiateContract,
migrateContract,
storeCode,
updateAdmin,
} = cosmwasm.wasm.v1.MessageComposer.withTypeUrl
Credits
Code built with the help of these related projects:
- @osmonauts/telescope a "babel for the Cosmos", Telescope is a TypeScript Transpiler for Cosmos Protobufs.
- osmojs makes it easy to compose and broadcast Osmosis and Cosmos messages, with all of the proto and amino encoding handled for you.
1.1.27
2 years ago
1.1.1
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.12
3 years ago
1.1.11
3 years ago
1.1.10
3 years ago
1.1.16
3 years ago
1.1.15
3 years ago
1.1.14
3 years ago
1.1.13
3 years ago
1.1.19
3 years ago
1.1.18
3 years ago
1.1.17
3 years ago
1.1.20
3 years ago
0.1.0
3 years ago
1.1.0
3 years ago
0.1.19
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago