- Upload cw20-ics20 contract - cw0_ics20.wasm(v0.13.4)
TX_FLAGS="--gas auto --gas-adjustment 1.3 --gas-prices 0.025ujunox"
junod tx wasm store cw20_ics20.wasm --from user $TX_FLAGS
GET Code ID.
- Instantiate Contract:
| function isAminoConverter( | |
| converter, | |
| ) { | |
| return typeof converter[1] !== "string"; | |
| } | |
| /** | |
| * A map from Stargate message types as used in the messages's `Any` type | |
| * to Amino types. | |
| */ |
TX_FLAGS="--gas auto --gas-adjustment 1.3 --gas-prices 0.025ujunox"
junod tx wasm store cw20_ics20.wasm --from user $TX_FLAGS
GET Code ID.
| // Download and install keplr: https://github.com/chainapsis/keplr-wallet/releases/tag/v0.9.13 | |
| // Use developer console (Browser) | |
| let chainInfo = { | |
| "chainId": "evmos_9000-4", | |
| "chainName": "Evmos Testnet", | |
| "rpc": "https://tendermint.bd.evmos.dev:26657", | |
| "rest": "https://rest.bd.evmos.dev:1317", | |
| "stakeCurrency": { | |
| "coinDenom": "EVMOS", |
| const fs = require('fs'); | |
| // state.json -> GET /cosmwasm/wasm/v1/contract/{contract}/state | |
| function main() { | |
| const data = fs.readFileSync('cw721-state.json', 'utf8'); | |
| const state = JSON.parse(data); | |
| const items = []; | |
| state.models.forEach(m => { | |
| items.push({ |
# args(2): name, symbol.
./build/gnokey maketx call test1 --pkgpath "gno.land/r/legend" --func CreateCollection \
--args "Disperze NFTs" \
--args "DNFT" \
--gas-fee 1gnot --gas-wanted 2000000 > create.unsigned.txt
./build/gnokey sign test1 --txpath create.unsigned.txt --chainid "testchain" --number $ACC_NUMBER --sequence $SEQUENCE > create.signed.txt
./build/gnokey broadcast create.signed.txt --remote gno.land:36657
| import { SigningStargateClient } from '@cosmjs/stargate' | |
| import { fromBase64 } from "@cosmjs/encoding"; | |
| import { | |
| makeAuthInfoBytes, | |
| makeSignDoc, | |
| } from '@cosmjs/proto-signing' | |
| import { Int53, Uint53 } from "@cosmjs/math"; | |
| import { Any } from "cosmjs-types/google/protobuf/any"; | |
| import { PubKey } from "cosmjs-types/cosmos/crypto/secp256k1/keys"; | |
| import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx"; |
| var Web3 = require('web3'); | |
| var web3 = new Web3(window.web3.currentProvider); | |
| var accountToSignWith = '0xbedcf417ff2752d996d2ade98b97a6f0bef4beb9'; | |
| var message = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Tubulum fuisse, qua illum, cuius is condemnatus est rogatione, P. Eaedem res maneant alio modo.' | |
| function signHandler(err, signature) { | |
| if (!err) { | |
| console.log('Signature:', signature); | |
| signature = signature.substr(2); |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "time" | |
| rpchttp "github.com/tendermint/tendermint/rpc/client/http" | |
| ) |