juno-network 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -2
- package/main/codegen/JunoSwap.client.js +44 -42
- package/module/codegen/JunoSwap.client.js +180 -0
- package/module/codegen/JunoSwap.types.js +1 -0
- package/module/codegen/confio/proofs.js +1152 -0
- package/module/codegen/contracts.js +18 -0
- package/module/codegen/cosmos/app/v1alpha1/config.js +148 -0
- package/module/codegen/cosmos/app/v1alpha1/module.js +227 -0
- package/module/codegen/cosmos/app/v1alpha1/query.js +104 -0
- package/module/codegen/cosmos/app/v1alpha1/query.rpc.query.js +20 -0
- package/module/codegen/cosmos/auth/v1beta1/auth.js +297 -0
- package/module/codegen/cosmos/auth/v1beta1/genesis.js +82 -0
- package/module/codegen/cosmos/auth/v1beta1/query.js +806 -0
- package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +73 -0
- package/module/codegen/cosmos/auth/v1beta1/query.rpc.query.js +62 -0
- package/module/codegen/cosmos/authz/v1beta1/authz.js +236 -0
- package/module/codegen/cosmos/authz/v1beta1/event.js +135 -0
- package/module/codegen/cosmos/authz/v1beta1/genesis.js +49 -0
- package/module/codegen/cosmos/authz/v1beta1/query.js +365 -0
- package/module/codegen/cosmos/authz/v1beta1/query.lcd.js +76 -0
- package/module/codegen/cosmos/authz/v1beta1/query.rpc.query.js +53 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +91 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.js +309 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.registry.js +124 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +34 -0
- package/module/codegen/cosmos/bank/v1beta1/authz.js +49 -0
- package/module/codegen/cosmos/bank/v1beta1/bank.js +461 -0
- package/module/codegen/cosmos/bank/v1beta1/genesis.js +137 -0
- package/module/codegen/cosmos/bank/v1beta1/query.js +972 -0
- package/module/codegen/cosmos/bank/v1beta1/query.lcd.js +147 -0
- package/module/codegen/cosmos/bank/v1beta1/query.rpc.query.js +123 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.amino.js +78 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.js +195 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.registry.js +57 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +754 -0
- package/module/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +155 -0
- package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +235 -0
- package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1281 -0
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +712 -0
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +225 -0
- package/module/codegen/cosmos/base/store/v1beta1/listening.js +104 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +1091 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.lcd.js +72 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.js +55 -0
- package/module/codegen/cosmos/base/v1beta1/coin.js +209 -0
- package/module/codegen/cosmos/bundle.js +190 -0
- package/module/codegen/cosmos/capability/v1beta1/capability.js +199 -0
- package/module/codegen/cosmos/capability/v1beta1/genesis.js +150 -0
- package/module/codegen/cosmos/client.js +44 -0
- package/module/codegen/cosmos/crisis/v1beta1/genesis.js +61 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.amino.js +27 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.js +129 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/crypto/ed25519/keys.js +95 -0
- package/module/codegen/cosmos/crypto/hd/v1/hd.js +88 -0
- package/module/codegen/cosmos/crypto/keyring/v1/record.js +270 -0
- package/module/codegen/cosmos/crypto/multisig/keys.js +59 -0
- package/module/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +105 -0
- package/module/codegen/cosmos/crypto/secp256k1/keys.js +95 -0
- package/module/codegen/cosmos/crypto/secp256r1/keys.js +95 -0
- package/module/codegen/cosmos/distribution/v1beta1/distribution.js +728 -0
- package/module/codegen/cosmos/distribution/v1beta1/genesis.js +585 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.js +880 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +101 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.rpc.query.js +119 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.amino.js +88 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.js +382 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.registry.js +99 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.js +41 -0
- package/module/codegen/cosmos/evidence/v1beta1/evidence.js +102 -0
- package/module/codegen/cosmos/evidence/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.js +255 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +36 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.rpc.query.js +27 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.amino.js +29 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.js +137 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +365 -0
- package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.js +429 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.lcd.js +50 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.amino.js +54 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.js +247 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.registry.js +89 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/genutil/v1beta1/genesis.js +68 -0
- package/module/codegen/cosmos/gov/v1/genesis.js +111 -0
- package/module/codegen/cosmos/gov/v1/gov.js +750 -0
- package/module/codegen/cosmos/gov/v1/query.js +859 -0
- package/module/codegen/cosmos/gov/v1/query.lcd.js +112 -0
- package/module/codegen/cosmos/gov/v1/query.rpc.query.js +108 -0
- package/module/codegen/cosmos/gov/v1/tx.amino.js +167 -0
- package/module/codegen/cosmos/gov/v1/tx.js +545 -0
- package/module/codegen/cosmos/gov/v1/tx.registry.js +120 -0
- package/module/codegen/cosmos/gov/v1/tx.rpc.msg.js +48 -0
- package/module/codegen/cosmos/gov/v1beta1/genesis.js +111 -0
- package/module/codegen/cosmos/gov/v1beta1/gov.js +801 -0
- package/module/codegen/cosmos/gov/v1beta1/query.js +859 -0
- package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +112 -0
- package/module/codegen/cosmos/gov/v1beta1/query.rpc.query.js +108 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.amino.js +128 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.js +424 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.registry.js +99 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.rpc.msg.js +41 -0
- package/module/codegen/cosmos/group/v1/events.js +549 -0
- package/module/codegen/cosmos/group/v1/genesis.js +175 -0
- package/module/codegen/cosmos/group/v1/query.js +1769 -0
- package/module/codegen/cosmos/group/v1/query.lcd.js +167 -0
- package/module/codegen/cosmos/group/v1/query.rpc.query.js +104 -0
- package/module/codegen/cosmos/group/v1/tx.amino.js +429 -0
- package/module/codegen/cosmos/group/v1/tx.js +1969 -0
- package/module/codegen/cosmos/group/v1/tx.registry.js +509 -0
- package/module/codegen/cosmos/group/v1/tx.rpc.msg.js +111 -0
- package/module/codegen/cosmos/group/v1/types.js +1350 -0
- package/module/codegen/cosmos/lcd.js +50 -0
- package/module/codegen/cosmos/mint/v1beta1/genesis.js +73 -0
- package/module/codegen/cosmos/mint/v1beta1/mint.js +193 -0
- package/module/codegen/cosmos/mint/v1beta1/query.js +308 -0
- package/module/codegen/cosmos/mint/v1beta1/query.lcd.js +32 -0
- package/module/codegen/cosmos/mint/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/msg/v1/msg.js +1 -0
- package/module/codegen/cosmos/nft/v1beta1/event.js +264 -0
- package/module/codegen/cosmos/nft/v1beta1/genesis.js +163 -0
- package/module/codegen/cosmos/nft/v1beta1/nft.js +242 -0
- package/module/codegen/cosmos/nft/v1beta1/query.js +917 -0
- package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +88 -0
- package/module/codegen/cosmos/nft/v1beta1/query.rpc.query.js +62 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.amino.js +31 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.js +141 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/orm/v1/orm.js +305 -0
- package/module/codegen/cosmos/orm/v1alpha1/schema.js +225 -0
- package/module/codegen/cosmos/params/v1beta1/params.js +175 -0
- package/module/codegen/cosmos/params/v1beta1/query.js +317 -0
- package/module/codegen/cosmos/params/v1beta1/query.lcd.js +38 -0
- package/module/codegen/cosmos/params/v1beta1/query.rpc.query.js +27 -0
- package/module/codegen/cosmos/rpc.query.js +34 -0
- package/module/codegen/cosmos/rpc.tx.js +25 -0
- package/module/codegen/cosmos/slashing/v1beta1/genesis.js +317 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.js +355 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +43 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/slashing/v1beta1/slashing.js +234 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.amino.js +19 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.js +105 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/staking/v1beta1/authz.js +204 -0
- package/module/codegen/cosmos/staking/v1beta1/genesis.js +178 -0
- package/module/codegen/cosmos/staking/v1beta1/query.js +1469 -0
- package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +196 -0
- package/module/codegen/cosmos/staking/v1beta1/query.rpc.query.js +174 -0
- package/module/codegen/cosmos/staking/v1beta1/staking.js +1446 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +216 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.js +598 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.registry.js +120 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.rpc.msg.js +48 -0
- package/module/codegen/cosmos/tx/signing/v1beta1/signing.js +378 -0
- package/module/codegen/cosmos/tx/v1beta1/service.js +714 -0
- package/module/codegen/cosmos/tx/v1beta1/service.lcd.js +62 -0
- package/module/codegen/cosmos/tx/v1beta1/service.rpc.svc.js +75 -0
- package/module/codegen/cosmos/tx/v1beta1/tx.js +903 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.js +445 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +66 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +75 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.amino.js +59 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.js +174 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.registry.js +57 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +273 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.amino.js +114 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.js +440 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.registry.js +124 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +34 -0
- package/module/codegen/cosmos/vesting/v1beta1/vesting.js +480 -0
- package/module/codegen/cosmos_proto/bundle.js +8 -0
- package/module/codegen/cosmos_proto/cosmos.js +194 -0
- package/module/codegen/cosmwasm/bundle.js +31 -0
- package/module/codegen/cosmwasm/client.js +39 -0
- package/module/codegen/cosmwasm/lcd.js +57 -0
- package/module/codegen/cosmwasm/rpc.query.js +39 -0
- package/module/codegen/cosmwasm/rpc.tx.js +30 -0
- package/module/codegen/cosmwasm/wasm/v1/genesis.js +358 -0
- package/module/codegen/cosmwasm/wasm/v1/ibc.js +127 -0
- package/module/codegen/cosmwasm/wasm/v1/proposal.js +772 -0
- package/module/codegen/cosmwasm/wasm/v1/query.js +1046 -0
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +128 -0
- package/module/codegen/cosmwasm/wasm/v1/query.rpc.query.js +123 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.amino.js +189 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.js +711 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.registry.js +141 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.rpc.msg.js +55 -0
- package/module/codegen/cosmwasm/wasm/v1/types.js +668 -0
- package/module/codegen/gogoproto/bundle.js +8 -0
- package/module/codegen/gogoproto/gogo.js +1 -0
- package/module/codegen/google/api/annotations.js +1 -0
- package/module/codegen/google/api/http.js +328 -0
- package/module/codegen/google/bundle.js +19 -0
- package/module/codegen/google/protobuf/any.js +58 -0
- package/module/codegen/google/protobuf/descriptor.js +2775 -0
- package/module/codegen/google/protobuf/duration.js +119 -0
- package/module/codegen/google/protobuf/empty.js +35 -0
- package/module/codegen/google/protobuf/field_mask.js +48 -0
- package/module/codegen/google/protobuf/struct.js +310 -0
- package/module/codegen/google/protobuf/timestamp.js +143 -0
- package/module/codegen/google/protobuf/wrappers.js +426 -0
- package/module/codegen/ibc/applications/transfer/v1/genesis.js +69 -0
- package/module/codegen/ibc/applications/transfer/v1/query.js +276 -0
- package/module/codegen/ibc/applications/transfer/v1/query.lcd.js +46 -0
- package/module/codegen/ibc/applications/transfer/v1/query.rpc.query.js +55 -0
- package/module/codegen/ibc/applications/transfer/v1/transfer.js +115 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.amino.js +58 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.js +150 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.registry.js +36 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.rpc.msg.js +20 -0
- package/module/codegen/ibc/applications/transfer/v2/packet.js +78 -0
- package/module/codegen/ibc/bundle.js +120 -0
- package/module/codegen/ibc/client.js +45 -0
- package/module/codegen/ibc/core/channel/v1/channel.js +646 -0
- package/module/codegen/ibc/core/channel/v1/genesis.js +188 -0
- package/module/codegen/ibc/core/channel/v1/query.js +1759 -0
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +162 -0
- package/module/codegen/ibc/core/channel/v1/query.rpc.query.js +165 -0
- package/module/codegen/ibc/core/channel/v1/tx.amino.js +530 -0
- package/module/codegen/ibc/core/channel/v1/tx.js +1218 -0
- package/module/codegen/ibc/core/channel/v1/tx.registry.js +225 -0
- package/module/codegen/ibc/core/channel/v1/tx.rpc.msg.js +83 -0
- package/module/codegen/ibc/core/client/v1/client.js +433 -0
- package/module/codegen/ibc/core/client/v1/genesis.js +215 -0
- package/module/codegen/ibc/core/client/v1/query.js +814 -0
- package/module/codegen/ibc/core/client/v1/query.lcd.js +104 -0
- package/module/codegen/ibc/core/client/v1/query.rpc.query.js +110 -0
- package/module/codegen/ibc/core/client/v1/tx.amino.js +150 -0
- package/module/codegen/ibc/core/client/v1/tx.js +436 -0
- package/module/codegen/ibc/core/client/v1/tx.registry.js +99 -0
- package/module/codegen/ibc/core/client/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/core/commitment/v1/commitment.js +190 -0
- package/module/codegen/ibc/core/connection/v1/connection.js +537 -0
- package/module/codegen/ibc/core/connection/v1/genesis.js +81 -0
- package/module/codegen/ibc/core/connection/v1/query.js +608 -0
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +65 -0
- package/module/codegen/ibc/core/connection/v1/query.rpc.query.js +77 -0
- package/module/codegen/ibc/core/connection/v1/tx.amino.js +269 -0
- package/module/codegen/ibc/core/connection/v1/tx.js +603 -0
- package/module/codegen/ibc/core/connection/v1/tx.registry.js +99 -0
- package/module/codegen/ibc/core/connection/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/core/port/v1/query.js +182 -0
- package/module/codegen/ibc/core/port/v1/query.rpc.query.js +20 -0
- package/module/codegen/ibc/core/types/v1/genesis.js +87 -0
- package/module/codegen/ibc/lcd.js +76 -0
- package/module/codegen/ibc/lightclients/localhost/v1/localhost.js +59 -0
- package/module/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1166 -0
- package/module/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1166 -0
- package/module/codegen/ibc/lightclients/tendermint/v1/tendermint.js +424 -0
- package/module/codegen/ibc/rpc.query.js +52 -0
- package/module/codegen/ibc/rpc.tx.js +43 -0
- package/module/codegen/ics23/bundle.js +8 -0
- package/module/codegen/index.js +18 -0
- package/module/codegen/juno/bundle.js +20 -0
- package/module/codegen/juno/lcd.js +55 -0
- package/module/codegen/juno/mint/genesis.js +57 -0
- package/module/codegen/juno/mint/mint.js +137 -0
- package/module/codegen/juno/mint/query.js +243 -0
- package/module/codegen/juno/mint/query.lcd.js +35 -0
- package/module/codegen/juno/mint/query.rpc.query.js +53 -0
- package/module/codegen/juno/rpc.query.js +37 -0
- package/module/codegen/tendermint/abci/types.js +3341 -0
- package/module/codegen/tendermint/bundle.js +36 -0
- package/module/codegen/tendermint/crypto/keys.js +58 -0
- package/module/codegen/tendermint/crypto/proof.js +317 -0
- package/module/codegen/tendermint/libs/bits/types.js +71 -0
- package/module/codegen/tendermint/p2p/types.js +386 -0
- package/module/codegen/tendermint/types/block.js +78 -0
- package/module/codegen/tendermint/types/evidence.js +281 -0
- package/module/codegen/tendermint/types/params.js +361 -0
- package/module/codegen/tendermint/types/types.js +1172 -0
- package/module/codegen/tendermint/types/validator.js +202 -0
- package/module/codegen/tendermint/version/types.js +119 -0
- package/module/index.js +1 -0
- package/package.json +8 -3
- package/src/codegen/JunoSwap.client.ts +299 -0
- package/src/codegen/JunoSwap.types.ts +143 -0
- package/src/codegen/confio/proofs.ts +1521 -0
- package/src/codegen/contracts.ts +13 -0
- package/src/codegen/cosmos/app/v1alpha1/config.ts +172 -0
- package/src/codegen/cosmos/app/v1alpha1/module.ts +308 -0
- package/src/codegen/cosmos/app/v1alpha1/query.rpc.query.ts +26 -0
- package/src/codegen/cosmos/app/v1alpha1/query.ts +112 -0
- package/src/codegen/cosmos/auth/v1beta1/auth.ts +316 -0
- package/src/codegen/cosmos/auth/v1beta1/genesis.ts +88 -0
- package/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +72 -0
- package/src/codegen/cosmos/auth/v1beta1/query.rpc.query.ts +90 -0
- package/src/codegen/cosmos/auth/v1beta1/query.ts +865 -0
- package/src/codegen/cosmos/authz/v1beta1/authz.ts +306 -0
- package/src/codegen/cosmos/authz/v1beta1/event.ts +180 -0
- package/src/codegen/cosmos/authz/v1beta1/genesis.ts +58 -0
- package/src/codegen/cosmos/authz/v1beta1/query.lcd.ts +79 -0
- package/src/codegen/cosmos/authz/v1beta1/query.rpc.query.ts +68 -0
- package/src/codegen/cosmos/authz/v1beta1/query.ts +464 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +131 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.registry.ts +127 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +51 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.ts +396 -0
- package/src/codegen/cosmos/bank/v1beta1/authz.ts +68 -0
- package/src/codegen/cosmos/bank/v1beta1/bank.ts +666 -0
- package/src/codegen/cosmos/bank/v1beta1/genesis.ts +194 -0
- package/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +150 -0
- package/src/codegen/cosmos/bank/v1beta1/query.rpc.query.ts +155 -0
- package/src/codegen/cosmos/bank/v1beta1/query.ts +1301 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +110 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +35 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.ts +230 -0
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1106 -0
- package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +145 -0
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +282 -0
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +254 -0
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +1708 -0
- package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +759 -0
- package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +242 -0
- package/src/codegen/cosmos/base/store/v1beta1/listening.ts +112 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +74 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.ts +80 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1181 -0
- package/src/codegen/cosmos/base/v1beta1/coin.ts +266 -0
- package/src/codegen/cosmos/bundle.ts +214 -0
- package/src/codegen/cosmos/capability/v1beta1/capability.ts +216 -0
- package/src/codegen/cosmos/capability/v1beta1/genesis.ts +168 -0
- package/src/codegen/cosmos/client.ts +51 -0
- package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +69 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +37 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +25 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.ts +136 -0
- package/src/codegen/cosmos/crypto/ed25519/keys.ts +130 -0
- package/src/codegen/cosmos/crypto/hd/v1/hd.ts +129 -0
- package/src/codegen/cosmos/crypto/keyring/v1/record.ts +349 -0
- package/src/codegen/cosmos/crypto/multisig/keys.ts +78 -0
- package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +142 -0
- package/src/codegen/cosmos/crypto/secp256k1/keys.ts +124 -0
- package/src/codegen/cosmos/crypto/secp256r1/keys.ts +122 -0
- package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +945 -0
- package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +800 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +104 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.rpc.query.ts +149 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.ts +1187 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +120 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts +100 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +59 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.ts +473 -0
- package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +107 -0
- package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +72 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +39 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.rpc.query.ts +37 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.ts +283 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +42 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts +56 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.ts +144 -0
- package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +421 -0
- package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +71 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +52 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.rpc.query.ts +48 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.ts +467 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +75 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts +91 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +38 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +269 -0
- package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +71 -0
- package/src/codegen/cosmos/gov/v1/genesis.ts +156 -0
- package/src/codegen/cosmos/gov/v1/gov.ts +983 -0
- package/src/codegen/cosmos/gov/v1/query.lcd.ts +115 -0
- package/src/codegen/cosmos/gov/v1/query.rpc.query.ts +134 -0
- package/src/codegen/cosmos/gov/v1/query.ts +1114 -0
- package/src/codegen/cosmos/gov/v1/tx.amino.ts +226 -0
- package/src/codegen/cosmos/gov/v1/tx.registry.ts +121 -0
- package/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +66 -0
- package/src/codegen/cosmos/gov/v1/tx.ts +661 -0
- package/src/codegen/cosmos/gov/v1beta1/genesis.ts +156 -0
- package/src/codegen/cosmos/gov/v1beta1/gov.ts +1064 -0
- package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +115 -0
- package/src/codegen/cosmos/gov/v1beta1/query.rpc.query.ts +134 -0
- package/src/codegen/cosmos/gov/v1beta1/query.ts +1114 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +174 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.registry.ts +100 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +57 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.ts +518 -0
- package/src/codegen/cosmos/group/v1/events.ts +600 -0
- package/src/codegen/cosmos/group/v1/genesis.ts +208 -0
- package/src/codegen/cosmos/group/v1/query.lcd.ts +159 -0
- package/src/codegen/cosmos/group/v1/query.rpc.query.ts +147 -0
- package/src/codegen/cosmos/group/v1/query.ts +1945 -0
- package/src/codegen/cosmos/group/v1/tx.amino.ts +585 -0
- package/src/codegen/cosmos/group/v1/tx.registry.ts +512 -0
- package/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +157 -0
- package/src/codegen/cosmos/group/v1/tx.ts +2197 -0
- package/src/codegen/cosmos/group/v1/types.ts +1577 -0
- package/src/codegen/cosmos/lcd.ts +52 -0
- package/src/codegen/cosmos/mint/v1beta1/genesis.ts +81 -0
- package/src/codegen/cosmos/mint/v1beta1/mint.ts +218 -0
- package/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +33 -0
- package/src/codegen/cosmos/mint/v1beta1/query.rpc.query.ts +46 -0
- package/src/codegen/cosmos/mint/v1beta1/query.ts +339 -0
- package/src/codegen/cosmos/msg/v1/msg.ts +1 -0
- package/src/codegen/cosmos/nft/v1beta1/event.ts +279 -0
- package/src/codegen/cosmos/nft/v1beta1/genesis.ts +174 -0
- package/src/codegen/cosmos/nft/v1beta1/nft.ts +279 -0
- package/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +86 -0
- package/src/codegen/cosmos/nft/v1beta1/query.rpc.query.ts +88 -0
- package/src/codegen/cosmos/nft/v1beta1/query.ts +976 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +42 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +25 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.ts +156 -0
- package/src/codegen/cosmos/orm/v1/orm.ts +392 -0
- package/src/codegen/cosmos/orm/v1alpha1/schema.ts +289 -0
- package/src/codegen/cosmos/params/v1beta1/params.ts +187 -0
- package/src/codegen/cosmos/params/v1beta1/query.lcd.ts +40 -0
- package/src/codegen/cosmos/params/v1beta1/query.rpc.query.ts +37 -0
- package/src/codegen/cosmos/params/v1beta1/query.ts +348 -0
- package/src/codegen/cosmos/rpc.query.ts +36 -0
- package/src/codegen/cosmos/rpc.tx.ts +28 -0
- package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +356 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +45 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.rpc.query.ts +47 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.ts +394 -0
- package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +268 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +27 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.ts +110 -0
- package/src/codegen/cosmos/staking/v1beta1/authz.ts +265 -0
- package/src/codegen/cosmos/staking/v1beta1/genesis.ts +253 -0
- package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +199 -0
- package/src/codegen/cosmos/staking/v1beta1/query.rpc.query.ts +222 -0
- package/src/codegen/cosmos/staking/v1beta1/query.ts +1970 -0
- package/src/codegen/cosmos/staking/v1beta1/staking.ts +1957 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +294 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.registry.ts +121 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +68 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.ts +735 -0
- package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +528 -0
- package/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +65 -0
- package/src/codegen/cosmos/tx/v1beta1/service.rpc.svc.ts +94 -0
- package/src/codegen/cosmos/tx/v1beta1/service.ts +984 -0
- package/src/codegen/cosmos/tx/v1beta1/tx.ts +1497 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +69 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.rpc.query.ts +99 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.ts +631 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +86 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +40 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +245 -0
- package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +432 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +157 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts +127 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +50 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.ts +475 -0
- package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +527 -0
- package/src/codegen/cosmos_proto/bundle.ts +3 -0
- package/src/codegen/cosmos_proto/cosmos.ts +289 -0
- package/src/codegen/cosmwasm/bundle.ts +34 -0
- package/src/codegen/cosmwasm/client.ts +44 -0
- package/src/codegen/cosmwasm/lcd.ts +59 -0
- package/src/codegen/cosmwasm/rpc.query.ts +41 -0
- package/src/codegen/cosmwasm/rpc.tx.ts +33 -0
- package/src/codegen/cosmwasm/wasm/v1/genesis.ts +433 -0
- package/src/codegen/cosmwasm/wasm/v1/ibc.ts +180 -0
- package/src/codegen/cosmwasm/wasm/v1/proposal.ts +1083 -0
- package/src/codegen/cosmwasm/wasm/v1/query.lcd.ts +131 -0
- package/src/codegen/cosmwasm/wasm/v1/query.rpc.query.ts +152 -0
- package/src/codegen/cosmwasm/wasm/v1/query.ts +1378 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.amino.ts +252 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.registry.ts +142 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.rpc.msg.ts +75 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.ts +944 -0
- package/src/codegen/cosmwasm/wasm/v1/types.ts +861 -0
- package/src/codegen/gogoproto/bundle.ts +3 -0
- package/src/codegen/gogoproto/gogo.ts +1 -0
- package/src/codegen/google/api/annotations.ts +1 -0
- package/src/codegen/google/api/http.ts +683 -0
- package/src/codegen/google/bundle.ts +19 -0
- package/src/codegen/google/protobuf/any.ts +291 -0
- package/src/codegen/google/protobuf/descriptor.ts +4317 -0
- package/src/codegen/google/protobuf/duration.ts +215 -0
- package/src/codegen/google/protobuf/empty.ts +62 -0
- package/src/codegen/google/protobuf/field_mask.ts +459 -0
- package/src/codegen/google/protobuf/struct.ts +420 -0
- package/src/codegen/google/protobuf/timestamp.ts +259 -0
- package/src/codegen/google/protobuf/wrappers.ts +587 -0
- package/src/codegen/ibc/applications/transfer/v1/genesis.ts +82 -0
- package/src/codegen/ibc/applications/transfer/v1/query.lcd.ts +49 -0
- package/src/codegen/ibc/applications/transfer/v1/query.rpc.query.ts +66 -0
- package/src/codegen/ibc/applications/transfer/v1/query.ts +369 -0
- package/src/codegen/ibc/applications/transfer/v1/transfer.ts +182 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +73 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.registry.ts +37 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts +25 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.ts +217 -0
- package/src/codegen/ibc/applications/transfer/v2/packet.ts +115 -0
- package/src/codegen/ibc/bundle.ts +125 -0
- package/src/codegen/ibc/client.ts +53 -0
- package/src/codegen/ibc/core/channel/v1/channel.ts +923 -0
- package/src/codegen/ibc/core/channel/v1/genesis.ts +231 -0
- package/src/codegen/ibc/core/channel/v1/query.lcd.ts +165 -0
- package/src/codegen/ibc/core/channel/v1/query.rpc.query.ts +214 -0
- package/src/codegen/ibc/core/channel/v1/query.ts +2444 -0
- package/src/codegen/ibc/core/channel/v1/tx.amino.ts +670 -0
- package/src/codegen/ibc/core/channel/v1/tx.registry.ts +226 -0
- package/src/codegen/ibc/core/channel/v1/tx.rpc.msg.ts +116 -0
- package/src/codegen/ibc/core/channel/v1/tx.ts +1492 -0
- package/src/codegen/ibc/core/client/v1/client.ts +629 -0
- package/src/codegen/ibc/core/client/v1/genesis.ts +288 -0
- package/src/codegen/ibc/core/client/v1/query.lcd.ts +107 -0
- package/src/codegen/ibc/core/client/v1/query.rpc.query.ts +138 -0
- package/src/codegen/ibc/core/client/v1/query.ts +1130 -0
- package/src/codegen/ibc/core/client/v1/tx.amino.ts +205 -0
- package/src/codegen/ibc/core/client/v1/tx.registry.ts +100 -0
- package/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts +55 -0
- package/src/codegen/ibc/core/client/v1/tx.ts +603 -0
- package/src/codegen/ibc/core/commitment/v1/commitment.ts +257 -0
- package/src/codegen/ibc/core/connection/v1/connection.ts +758 -0
- package/src/codegen/ibc/core/connection/v1/genesis.ts +98 -0
- package/src/codegen/ibc/core/connection/v1/query.lcd.ts +68 -0
- package/src/codegen/ibc/core/connection/v1/query.rpc.query.ts +97 -0
- package/src/codegen/ibc/core/connection/v1/query.ts +836 -0
- package/src/codegen/ibc/core/connection/v1/tx.amino.ts +343 -0
- package/src/codegen/ibc/core/connection/v1/tx.registry.ts +100 -0
- package/src/codegen/ibc/core/connection/v1/tx.rpc.msg.ts +56 -0
- package/src/codegen/ibc/core/connection/v1/tx.ts +795 -0
- package/src/codegen/ibc/core/port/v1/query.rpc.query.ts +26 -0
- package/src/codegen/ibc/core/port/v1/query.ts +204 -0
- package/src/codegen/ibc/core/types/v1/genesis.ts +98 -0
- package/src/codegen/ibc/lcd.ts +78 -0
- package/src/codegen/ibc/lightclients/localhost/v1/localhost.ts +82 -0
- package/src/codegen/ibc/lightclients/solomachine/v1/solomachine.ts +1499 -0
- package/src/codegen/ibc/lightclients/solomachine/v2/solomachine.ts +1499 -0
- package/src/codegen/ibc/lightclients/tendermint/v1/tendermint.ts +626 -0
- package/src/codegen/ibc/rpc.query.ts +54 -0
- package/src/codegen/ibc/rpc.tx.ts +46 -0
- package/src/codegen/ics23/bundle.ts +3 -0
- package/src/codegen/index.ts +19 -0
- package/src/codegen/juno/bundle.ts +18 -0
- package/src/codegen/juno/lcd.ts +57 -0
- package/src/codegen/juno/mint/genesis.ts +76 -0
- package/src/codegen/juno/mint/mint.ts +172 -0
- package/src/codegen/juno/mint/query.lcd.ts +38 -0
- package/src/codegen/juno/mint/query.rpc.query.ts +64 -0
- package/src/codegen/juno/mint/query.ts +312 -0
- package/src/codegen/juno/rpc.query.ts +39 -0
- package/src/codegen/tendermint/abci/types.ts +3943 -0
- package/src/codegen/tendermint/bundle.ts +32 -0
- package/src/codegen/tendermint/crypto/keys.ts +69 -0
- package/src/codegen/tendermint/crypto/proof.ts +375 -0
- package/src/codegen/tendermint/libs/bits/types.ts +77 -0
- package/src/codegen/tendermint/p2p/types.ts +438 -0
- package/src/codegen/tendermint/types/block.ts +91 -0
- package/src/codegen/tendermint/types/evidence.ts +325 -0
- package/src/codegen/tendermint/types/params.ts +521 -0
- package/src/codegen/tendermint/types/types.ts +1399 -0
- package/src/codegen/tendermint/types/validator.ts +228 -0
- package/src/codegen/tendermint/version/types.ts +152 -0
- package/src/index.ts +1 -0
- package/types/codegen/JunoSwap.client.d.ts +29 -27
- package/types/codegen/JunoSwap.types.d.ts +43 -25
@@ -0,0 +1,861 @@
|
|
1
|
+
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { DeepPartial, Long } from "@osmonauts/helpers";
|
4
|
+
/** AccessType permission types */
|
5
|
+
|
6
|
+
export enum AccessType {
|
7
|
+
/** ACCESS_TYPE_UNSPECIFIED - AccessTypeUnspecified placeholder for empty value */
|
8
|
+
ACCESS_TYPE_UNSPECIFIED = 0,
|
9
|
+
|
10
|
+
/** ACCESS_TYPE_NOBODY - AccessTypeNobody forbidden */
|
11
|
+
ACCESS_TYPE_NOBODY = 1,
|
12
|
+
|
13
|
+
/** ACCESS_TYPE_ONLY_ADDRESS - AccessTypeOnlyAddress restricted to an address */
|
14
|
+
ACCESS_TYPE_ONLY_ADDRESS = 2,
|
15
|
+
|
16
|
+
/** ACCESS_TYPE_EVERYBODY - AccessTypeEverybody unrestricted */
|
17
|
+
ACCESS_TYPE_EVERYBODY = 3,
|
18
|
+
UNRECOGNIZED = -1,
|
19
|
+
}
|
20
|
+
/** AccessType permission types */
|
21
|
+
|
22
|
+
export enum AccessTypeSDKType {
|
23
|
+
/** ACCESS_TYPE_UNSPECIFIED - AccessTypeUnspecified placeholder for empty value */
|
24
|
+
ACCESS_TYPE_UNSPECIFIED = 0,
|
25
|
+
|
26
|
+
/** ACCESS_TYPE_NOBODY - AccessTypeNobody forbidden */
|
27
|
+
ACCESS_TYPE_NOBODY = 1,
|
28
|
+
|
29
|
+
/** ACCESS_TYPE_ONLY_ADDRESS - AccessTypeOnlyAddress restricted to an address */
|
30
|
+
ACCESS_TYPE_ONLY_ADDRESS = 2,
|
31
|
+
|
32
|
+
/** ACCESS_TYPE_EVERYBODY - AccessTypeEverybody unrestricted */
|
33
|
+
ACCESS_TYPE_EVERYBODY = 3,
|
34
|
+
UNRECOGNIZED = -1,
|
35
|
+
}
|
36
|
+
export function accessTypeFromJSON(object: any): AccessType {
|
37
|
+
switch (object) {
|
38
|
+
case 0:
|
39
|
+
case "ACCESS_TYPE_UNSPECIFIED":
|
40
|
+
return AccessType.ACCESS_TYPE_UNSPECIFIED;
|
41
|
+
|
42
|
+
case 1:
|
43
|
+
case "ACCESS_TYPE_NOBODY":
|
44
|
+
return AccessType.ACCESS_TYPE_NOBODY;
|
45
|
+
|
46
|
+
case 2:
|
47
|
+
case "ACCESS_TYPE_ONLY_ADDRESS":
|
48
|
+
return AccessType.ACCESS_TYPE_ONLY_ADDRESS;
|
49
|
+
|
50
|
+
case 3:
|
51
|
+
case "ACCESS_TYPE_EVERYBODY":
|
52
|
+
return AccessType.ACCESS_TYPE_EVERYBODY;
|
53
|
+
|
54
|
+
case -1:
|
55
|
+
case "UNRECOGNIZED":
|
56
|
+
default:
|
57
|
+
return AccessType.UNRECOGNIZED;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
export function accessTypeToJSON(object: AccessType): string {
|
61
|
+
switch (object) {
|
62
|
+
case AccessType.ACCESS_TYPE_UNSPECIFIED:
|
63
|
+
return "ACCESS_TYPE_UNSPECIFIED";
|
64
|
+
|
65
|
+
case AccessType.ACCESS_TYPE_NOBODY:
|
66
|
+
return "ACCESS_TYPE_NOBODY";
|
67
|
+
|
68
|
+
case AccessType.ACCESS_TYPE_ONLY_ADDRESS:
|
69
|
+
return "ACCESS_TYPE_ONLY_ADDRESS";
|
70
|
+
|
71
|
+
case AccessType.ACCESS_TYPE_EVERYBODY:
|
72
|
+
return "ACCESS_TYPE_EVERYBODY";
|
73
|
+
|
74
|
+
default:
|
75
|
+
return "UNKNOWN";
|
76
|
+
}
|
77
|
+
}
|
78
|
+
/** ContractCodeHistoryOperationType actions that caused a code change */
|
79
|
+
|
80
|
+
export enum ContractCodeHistoryOperationType {
|
81
|
+
/** CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - ContractCodeHistoryOperationTypeUnspecified placeholder for empty value */
|
82
|
+
CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0,
|
83
|
+
|
84
|
+
/** CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT - ContractCodeHistoryOperationTypeInit on chain contract instantiation */
|
85
|
+
CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1,
|
86
|
+
|
87
|
+
/** CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE - ContractCodeHistoryOperationTypeMigrate code migration */
|
88
|
+
CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2,
|
89
|
+
|
90
|
+
/** CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS - ContractCodeHistoryOperationTypeGenesis based on genesis data */
|
91
|
+
CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3,
|
92
|
+
UNRECOGNIZED = -1,
|
93
|
+
}
|
94
|
+
/** ContractCodeHistoryOperationType actions that caused a code change */
|
95
|
+
|
96
|
+
export enum ContractCodeHistoryOperationTypeSDKType {
|
97
|
+
/** CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - ContractCodeHistoryOperationTypeUnspecified placeholder for empty value */
|
98
|
+
CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0,
|
99
|
+
|
100
|
+
/** CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT - ContractCodeHistoryOperationTypeInit on chain contract instantiation */
|
101
|
+
CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1,
|
102
|
+
|
103
|
+
/** CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE - ContractCodeHistoryOperationTypeMigrate code migration */
|
104
|
+
CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2,
|
105
|
+
|
106
|
+
/** CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS - ContractCodeHistoryOperationTypeGenesis based on genesis data */
|
107
|
+
CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3,
|
108
|
+
UNRECOGNIZED = -1,
|
109
|
+
}
|
110
|
+
export function contractCodeHistoryOperationTypeFromJSON(object: any): ContractCodeHistoryOperationType {
|
111
|
+
switch (object) {
|
112
|
+
case 0:
|
113
|
+
case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED":
|
114
|
+
return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED;
|
115
|
+
|
116
|
+
case 1:
|
117
|
+
case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT":
|
118
|
+
return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT;
|
119
|
+
|
120
|
+
case 2:
|
121
|
+
case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE":
|
122
|
+
return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE;
|
123
|
+
|
124
|
+
case 3:
|
125
|
+
case "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS":
|
126
|
+
return ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS;
|
127
|
+
|
128
|
+
case -1:
|
129
|
+
case "UNRECOGNIZED":
|
130
|
+
default:
|
131
|
+
return ContractCodeHistoryOperationType.UNRECOGNIZED;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
export function contractCodeHistoryOperationTypeToJSON(object: ContractCodeHistoryOperationType): string {
|
135
|
+
switch (object) {
|
136
|
+
case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED:
|
137
|
+
return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED";
|
138
|
+
|
139
|
+
case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT:
|
140
|
+
return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT";
|
141
|
+
|
142
|
+
case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE:
|
143
|
+
return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE";
|
144
|
+
|
145
|
+
case ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS:
|
146
|
+
return "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS";
|
147
|
+
|
148
|
+
default:
|
149
|
+
return "UNKNOWN";
|
150
|
+
}
|
151
|
+
}
|
152
|
+
/** AccessTypeParam */
|
153
|
+
|
154
|
+
export interface AccessTypeParam {
|
155
|
+
value: AccessType;
|
156
|
+
}
|
157
|
+
/** AccessTypeParam */
|
158
|
+
|
159
|
+
export interface AccessTypeParamSDKType {
|
160
|
+
value: AccessTypeSDKType;
|
161
|
+
}
|
162
|
+
/** AccessConfig access control type. */
|
163
|
+
|
164
|
+
export interface AccessConfig {
|
165
|
+
permission: AccessType;
|
166
|
+
address: string;
|
167
|
+
}
|
168
|
+
/** AccessConfig access control type. */
|
169
|
+
|
170
|
+
export interface AccessConfigSDKType {
|
171
|
+
permission: AccessTypeSDKType;
|
172
|
+
address: string;
|
173
|
+
}
|
174
|
+
/** Params defines the set of wasm parameters. */
|
175
|
+
|
176
|
+
export interface Params {
|
177
|
+
codeUploadAccess: AccessConfig;
|
178
|
+
instantiateDefaultPermission: AccessType;
|
179
|
+
maxWasmCodeSize: Long;
|
180
|
+
}
|
181
|
+
/** Params defines the set of wasm parameters. */
|
182
|
+
|
183
|
+
export interface ParamsSDKType {
|
184
|
+
code_upload_access: AccessConfigSDKType;
|
185
|
+
instantiate_default_permission: AccessTypeSDKType;
|
186
|
+
max_wasm_code_size: Long;
|
187
|
+
}
|
188
|
+
/** CodeInfo is data for the uploaded contract WASM code */
|
189
|
+
|
190
|
+
export interface CodeInfo {
|
191
|
+
/** CodeHash is the unique identifier created by wasmvm */
|
192
|
+
codeHash: Uint8Array;
|
193
|
+
/** Creator address who initially stored the code */
|
194
|
+
|
195
|
+
creator: string;
|
196
|
+
/** InstantiateConfig access control to apply on contract creation, optional */
|
197
|
+
|
198
|
+
instantiateConfig: AccessConfig;
|
199
|
+
}
|
200
|
+
/** CodeInfo is data for the uploaded contract WASM code */
|
201
|
+
|
202
|
+
export interface CodeInfoSDKType {
|
203
|
+
/** CodeHash is the unique identifier created by wasmvm */
|
204
|
+
code_hash: Uint8Array;
|
205
|
+
/** Creator address who initially stored the code */
|
206
|
+
|
207
|
+
creator: string;
|
208
|
+
/** InstantiateConfig access control to apply on contract creation, optional */
|
209
|
+
|
210
|
+
instantiate_config: AccessConfigSDKType;
|
211
|
+
}
|
212
|
+
/** ContractInfo stores a WASM contract instance */
|
213
|
+
|
214
|
+
export interface ContractInfo {
|
215
|
+
/** CodeID is the reference to the stored Wasm code */
|
216
|
+
codeId: Long;
|
217
|
+
/** Creator address who initially instantiated the contract */
|
218
|
+
|
219
|
+
creator: string;
|
220
|
+
/** Admin is an optional address that can execute migrations */
|
221
|
+
|
222
|
+
admin: string;
|
223
|
+
/** Label is optional metadata to be stored with a contract instance. */
|
224
|
+
|
225
|
+
label: string;
|
226
|
+
/**
|
227
|
+
* Created Tx position when the contract was instantiated.
|
228
|
+
* This data should kept internal and not be exposed via query results. Just
|
229
|
+
* use for sorting
|
230
|
+
*/
|
231
|
+
|
232
|
+
created: AbsoluteTxPosition;
|
233
|
+
ibcPortId: string;
|
234
|
+
/**
|
235
|
+
* Extension is an extension point to store custom metadata within the
|
236
|
+
* persistence model.
|
237
|
+
*/
|
238
|
+
|
239
|
+
extension: Any;
|
240
|
+
}
|
241
|
+
/** ContractInfo stores a WASM contract instance */
|
242
|
+
|
243
|
+
export interface ContractInfoSDKType {
|
244
|
+
/** CodeID is the reference to the stored Wasm code */
|
245
|
+
code_id: Long;
|
246
|
+
/** Creator address who initially instantiated the contract */
|
247
|
+
|
248
|
+
creator: string;
|
249
|
+
/** Admin is an optional address that can execute migrations */
|
250
|
+
|
251
|
+
admin: string;
|
252
|
+
/** Label is optional metadata to be stored with a contract instance. */
|
253
|
+
|
254
|
+
label: string;
|
255
|
+
/**
|
256
|
+
* Created Tx position when the contract was instantiated.
|
257
|
+
* This data should kept internal and not be exposed via query results. Just
|
258
|
+
* use for sorting
|
259
|
+
*/
|
260
|
+
|
261
|
+
created: AbsoluteTxPositionSDKType;
|
262
|
+
ibc_port_id: string;
|
263
|
+
/**
|
264
|
+
* Extension is an extension point to store custom metadata within the
|
265
|
+
* persistence model.
|
266
|
+
*/
|
267
|
+
|
268
|
+
extension: AnySDKType;
|
269
|
+
}
|
270
|
+
/** ContractCodeHistoryEntry metadata to a contract. */
|
271
|
+
|
272
|
+
export interface ContractCodeHistoryEntry {
|
273
|
+
operation: ContractCodeHistoryOperationType;
|
274
|
+
/** CodeID is the reference to the stored WASM code */
|
275
|
+
|
276
|
+
codeId: Long;
|
277
|
+
/** Updated Tx position when the operation was executed. */
|
278
|
+
|
279
|
+
updated: AbsoluteTxPosition;
|
280
|
+
msg: Uint8Array;
|
281
|
+
}
|
282
|
+
/** ContractCodeHistoryEntry metadata to a contract. */
|
283
|
+
|
284
|
+
export interface ContractCodeHistoryEntrySDKType {
|
285
|
+
operation: ContractCodeHistoryOperationTypeSDKType;
|
286
|
+
/** CodeID is the reference to the stored WASM code */
|
287
|
+
|
288
|
+
code_id: Long;
|
289
|
+
/** Updated Tx position when the operation was executed. */
|
290
|
+
|
291
|
+
updated: AbsoluteTxPositionSDKType;
|
292
|
+
msg: Uint8Array;
|
293
|
+
}
|
294
|
+
/**
|
295
|
+
* AbsoluteTxPosition is a unique transaction position that allows for global
|
296
|
+
* ordering of transactions.
|
297
|
+
*/
|
298
|
+
|
299
|
+
export interface AbsoluteTxPosition {
|
300
|
+
/** BlockHeight is the block the contract was created at */
|
301
|
+
blockHeight: Long;
|
302
|
+
/**
|
303
|
+
* TxIndex is a monotonic counter within the block (actual transaction index,
|
304
|
+
* or gas consumed)
|
305
|
+
*/
|
306
|
+
|
307
|
+
txIndex: Long;
|
308
|
+
}
|
309
|
+
/**
|
310
|
+
* AbsoluteTxPosition is a unique transaction position that allows for global
|
311
|
+
* ordering of transactions.
|
312
|
+
*/
|
313
|
+
|
314
|
+
export interface AbsoluteTxPositionSDKType {
|
315
|
+
/** BlockHeight is the block the contract was created at */
|
316
|
+
block_height: Long;
|
317
|
+
/**
|
318
|
+
* TxIndex is a monotonic counter within the block (actual transaction index,
|
319
|
+
* or gas consumed)
|
320
|
+
*/
|
321
|
+
|
322
|
+
tx_index: Long;
|
323
|
+
}
|
324
|
+
/** Model is a struct that holds a KV pair */
|
325
|
+
|
326
|
+
export interface Model {
|
327
|
+
/** hex-encode key to read it better (this is often ascii) */
|
328
|
+
key: Uint8Array;
|
329
|
+
/** base64-encode raw value */
|
330
|
+
|
331
|
+
value: Uint8Array;
|
332
|
+
}
|
333
|
+
/** Model is a struct that holds a KV pair */
|
334
|
+
|
335
|
+
export interface ModelSDKType {
|
336
|
+
/** hex-encode key to read it better (this is often ascii) */
|
337
|
+
key: Uint8Array;
|
338
|
+
/** base64-encode raw value */
|
339
|
+
|
340
|
+
value: Uint8Array;
|
341
|
+
}
|
342
|
+
|
343
|
+
function createBaseAccessTypeParam(): AccessTypeParam {
|
344
|
+
return {
|
345
|
+
value: 0
|
346
|
+
};
|
347
|
+
}
|
348
|
+
|
349
|
+
export const AccessTypeParam = {
|
350
|
+
encode(message: AccessTypeParam, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
351
|
+
if (message.value !== 0) {
|
352
|
+
writer.uint32(8).int32(message.value);
|
353
|
+
}
|
354
|
+
|
355
|
+
return writer;
|
356
|
+
},
|
357
|
+
|
358
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AccessTypeParam {
|
359
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
360
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
361
|
+
const message = createBaseAccessTypeParam();
|
362
|
+
|
363
|
+
while (reader.pos < end) {
|
364
|
+
const tag = reader.uint32();
|
365
|
+
|
366
|
+
switch (tag >>> 3) {
|
367
|
+
case 1:
|
368
|
+
message.value = (reader.int32() as any);
|
369
|
+
break;
|
370
|
+
|
371
|
+
default:
|
372
|
+
reader.skipType(tag & 7);
|
373
|
+
break;
|
374
|
+
}
|
375
|
+
}
|
376
|
+
|
377
|
+
return message;
|
378
|
+
},
|
379
|
+
|
380
|
+
fromPartial(object: DeepPartial<AccessTypeParam>): AccessTypeParam {
|
381
|
+
const message = createBaseAccessTypeParam();
|
382
|
+
message.value = object.value ?? 0;
|
383
|
+
return message;
|
384
|
+
}
|
385
|
+
|
386
|
+
};
|
387
|
+
|
388
|
+
function createBaseAccessConfig(): AccessConfig {
|
389
|
+
return {
|
390
|
+
permission: 0,
|
391
|
+
address: ""
|
392
|
+
};
|
393
|
+
}
|
394
|
+
|
395
|
+
export const AccessConfig = {
|
396
|
+
encode(message: AccessConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
397
|
+
if (message.permission !== 0) {
|
398
|
+
writer.uint32(8).int32(message.permission);
|
399
|
+
}
|
400
|
+
|
401
|
+
if (message.address !== "") {
|
402
|
+
writer.uint32(18).string(message.address);
|
403
|
+
}
|
404
|
+
|
405
|
+
return writer;
|
406
|
+
},
|
407
|
+
|
408
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AccessConfig {
|
409
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
410
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
411
|
+
const message = createBaseAccessConfig();
|
412
|
+
|
413
|
+
while (reader.pos < end) {
|
414
|
+
const tag = reader.uint32();
|
415
|
+
|
416
|
+
switch (tag >>> 3) {
|
417
|
+
case 1:
|
418
|
+
message.permission = (reader.int32() as any);
|
419
|
+
break;
|
420
|
+
|
421
|
+
case 2:
|
422
|
+
message.address = reader.string();
|
423
|
+
break;
|
424
|
+
|
425
|
+
default:
|
426
|
+
reader.skipType(tag & 7);
|
427
|
+
break;
|
428
|
+
}
|
429
|
+
}
|
430
|
+
|
431
|
+
return message;
|
432
|
+
},
|
433
|
+
|
434
|
+
fromPartial(object: DeepPartial<AccessConfig>): AccessConfig {
|
435
|
+
const message = createBaseAccessConfig();
|
436
|
+
message.permission = object.permission ?? 0;
|
437
|
+
message.address = object.address ?? "";
|
438
|
+
return message;
|
439
|
+
}
|
440
|
+
|
441
|
+
};
|
442
|
+
|
443
|
+
function createBaseParams(): Params {
|
444
|
+
return {
|
445
|
+
codeUploadAccess: undefined,
|
446
|
+
instantiateDefaultPermission: 0,
|
447
|
+
maxWasmCodeSize: Long.UZERO
|
448
|
+
};
|
449
|
+
}
|
450
|
+
|
451
|
+
export const Params = {
|
452
|
+
encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
453
|
+
if (message.codeUploadAccess !== undefined) {
|
454
|
+
AccessConfig.encode(message.codeUploadAccess, writer.uint32(10).fork()).ldelim();
|
455
|
+
}
|
456
|
+
|
457
|
+
if (message.instantiateDefaultPermission !== 0) {
|
458
|
+
writer.uint32(16).int32(message.instantiateDefaultPermission);
|
459
|
+
}
|
460
|
+
|
461
|
+
if (!message.maxWasmCodeSize.isZero()) {
|
462
|
+
writer.uint32(24).uint64(message.maxWasmCodeSize);
|
463
|
+
}
|
464
|
+
|
465
|
+
return writer;
|
466
|
+
},
|
467
|
+
|
468
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
469
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
470
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
471
|
+
const message = createBaseParams();
|
472
|
+
|
473
|
+
while (reader.pos < end) {
|
474
|
+
const tag = reader.uint32();
|
475
|
+
|
476
|
+
switch (tag >>> 3) {
|
477
|
+
case 1:
|
478
|
+
message.codeUploadAccess = AccessConfig.decode(reader, reader.uint32());
|
479
|
+
break;
|
480
|
+
|
481
|
+
case 2:
|
482
|
+
message.instantiateDefaultPermission = (reader.int32() as any);
|
483
|
+
break;
|
484
|
+
|
485
|
+
case 3:
|
486
|
+
message.maxWasmCodeSize = (reader.uint64() as Long);
|
487
|
+
break;
|
488
|
+
|
489
|
+
default:
|
490
|
+
reader.skipType(tag & 7);
|
491
|
+
break;
|
492
|
+
}
|
493
|
+
}
|
494
|
+
|
495
|
+
return message;
|
496
|
+
},
|
497
|
+
|
498
|
+
fromPartial(object: DeepPartial<Params>): Params {
|
499
|
+
const message = createBaseParams();
|
500
|
+
message.codeUploadAccess = object.codeUploadAccess !== undefined && object.codeUploadAccess !== null ? AccessConfig.fromPartial(object.codeUploadAccess) : undefined;
|
501
|
+
message.instantiateDefaultPermission = object.instantiateDefaultPermission ?? 0;
|
502
|
+
message.maxWasmCodeSize = object.maxWasmCodeSize !== undefined && object.maxWasmCodeSize !== null ? Long.fromValue(object.maxWasmCodeSize) : Long.UZERO;
|
503
|
+
return message;
|
504
|
+
}
|
505
|
+
|
506
|
+
};
|
507
|
+
|
508
|
+
function createBaseCodeInfo(): CodeInfo {
|
509
|
+
return {
|
510
|
+
codeHash: new Uint8Array(),
|
511
|
+
creator: "",
|
512
|
+
instantiateConfig: undefined
|
513
|
+
};
|
514
|
+
}
|
515
|
+
|
516
|
+
export const CodeInfo = {
|
517
|
+
encode(message: CodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
518
|
+
if (message.codeHash.length !== 0) {
|
519
|
+
writer.uint32(10).bytes(message.codeHash);
|
520
|
+
}
|
521
|
+
|
522
|
+
if (message.creator !== "") {
|
523
|
+
writer.uint32(18).string(message.creator);
|
524
|
+
}
|
525
|
+
|
526
|
+
if (message.instantiateConfig !== undefined) {
|
527
|
+
AccessConfig.encode(message.instantiateConfig, writer.uint32(42).fork()).ldelim();
|
528
|
+
}
|
529
|
+
|
530
|
+
return writer;
|
531
|
+
},
|
532
|
+
|
533
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CodeInfo {
|
534
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
535
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
536
|
+
const message = createBaseCodeInfo();
|
537
|
+
|
538
|
+
while (reader.pos < end) {
|
539
|
+
const tag = reader.uint32();
|
540
|
+
|
541
|
+
switch (tag >>> 3) {
|
542
|
+
case 1:
|
543
|
+
message.codeHash = reader.bytes();
|
544
|
+
break;
|
545
|
+
|
546
|
+
case 2:
|
547
|
+
message.creator = reader.string();
|
548
|
+
break;
|
549
|
+
|
550
|
+
case 5:
|
551
|
+
message.instantiateConfig = AccessConfig.decode(reader, reader.uint32());
|
552
|
+
break;
|
553
|
+
|
554
|
+
default:
|
555
|
+
reader.skipType(tag & 7);
|
556
|
+
break;
|
557
|
+
}
|
558
|
+
}
|
559
|
+
|
560
|
+
return message;
|
561
|
+
},
|
562
|
+
|
563
|
+
fromPartial(object: DeepPartial<CodeInfo>): CodeInfo {
|
564
|
+
const message = createBaseCodeInfo();
|
565
|
+
message.codeHash = object.codeHash ?? new Uint8Array();
|
566
|
+
message.creator = object.creator ?? "";
|
567
|
+
message.instantiateConfig = object.instantiateConfig !== undefined && object.instantiateConfig !== null ? AccessConfig.fromPartial(object.instantiateConfig) : undefined;
|
568
|
+
return message;
|
569
|
+
}
|
570
|
+
|
571
|
+
};
|
572
|
+
|
573
|
+
function createBaseContractInfo(): ContractInfo {
|
574
|
+
return {
|
575
|
+
codeId: Long.UZERO,
|
576
|
+
creator: "",
|
577
|
+
admin: "",
|
578
|
+
label: "",
|
579
|
+
created: undefined,
|
580
|
+
ibcPortId: "",
|
581
|
+
extension: undefined
|
582
|
+
};
|
583
|
+
}
|
584
|
+
|
585
|
+
export const ContractInfo = {
|
586
|
+
encode(message: ContractInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
587
|
+
if (!message.codeId.isZero()) {
|
588
|
+
writer.uint32(8).uint64(message.codeId);
|
589
|
+
}
|
590
|
+
|
591
|
+
if (message.creator !== "") {
|
592
|
+
writer.uint32(18).string(message.creator);
|
593
|
+
}
|
594
|
+
|
595
|
+
if (message.admin !== "") {
|
596
|
+
writer.uint32(26).string(message.admin);
|
597
|
+
}
|
598
|
+
|
599
|
+
if (message.label !== "") {
|
600
|
+
writer.uint32(34).string(message.label);
|
601
|
+
}
|
602
|
+
|
603
|
+
if (message.created !== undefined) {
|
604
|
+
AbsoluteTxPosition.encode(message.created, writer.uint32(42).fork()).ldelim();
|
605
|
+
}
|
606
|
+
|
607
|
+
if (message.ibcPortId !== "") {
|
608
|
+
writer.uint32(50).string(message.ibcPortId);
|
609
|
+
}
|
610
|
+
|
611
|
+
if (message.extension !== undefined) {
|
612
|
+
Any.encode(message.extension, writer.uint32(58).fork()).ldelim();
|
613
|
+
}
|
614
|
+
|
615
|
+
return writer;
|
616
|
+
},
|
617
|
+
|
618
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ContractInfo {
|
619
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
620
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
621
|
+
const message = createBaseContractInfo();
|
622
|
+
|
623
|
+
while (reader.pos < end) {
|
624
|
+
const tag = reader.uint32();
|
625
|
+
|
626
|
+
switch (tag >>> 3) {
|
627
|
+
case 1:
|
628
|
+
message.codeId = (reader.uint64() as Long);
|
629
|
+
break;
|
630
|
+
|
631
|
+
case 2:
|
632
|
+
message.creator = reader.string();
|
633
|
+
break;
|
634
|
+
|
635
|
+
case 3:
|
636
|
+
message.admin = reader.string();
|
637
|
+
break;
|
638
|
+
|
639
|
+
case 4:
|
640
|
+
message.label = reader.string();
|
641
|
+
break;
|
642
|
+
|
643
|
+
case 5:
|
644
|
+
message.created = AbsoluteTxPosition.decode(reader, reader.uint32());
|
645
|
+
break;
|
646
|
+
|
647
|
+
case 6:
|
648
|
+
message.ibcPortId = reader.string();
|
649
|
+
break;
|
650
|
+
|
651
|
+
case 7:
|
652
|
+
message.extension = Any.decode(reader, reader.uint32());
|
653
|
+
break;
|
654
|
+
|
655
|
+
default:
|
656
|
+
reader.skipType(tag & 7);
|
657
|
+
break;
|
658
|
+
}
|
659
|
+
}
|
660
|
+
|
661
|
+
return message;
|
662
|
+
},
|
663
|
+
|
664
|
+
fromPartial(object: DeepPartial<ContractInfo>): ContractInfo {
|
665
|
+
const message = createBaseContractInfo();
|
666
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? Long.fromValue(object.codeId) : Long.UZERO;
|
667
|
+
message.creator = object.creator ?? "";
|
668
|
+
message.admin = object.admin ?? "";
|
669
|
+
message.label = object.label ?? "";
|
670
|
+
message.created = object.created !== undefined && object.created !== null ? AbsoluteTxPosition.fromPartial(object.created) : undefined;
|
671
|
+
message.ibcPortId = object.ibcPortId ?? "";
|
672
|
+
message.extension = object.extension !== undefined && object.extension !== null ? Any.fromPartial(object.extension) : undefined;
|
673
|
+
return message;
|
674
|
+
}
|
675
|
+
|
676
|
+
};
|
677
|
+
|
678
|
+
function createBaseContractCodeHistoryEntry(): ContractCodeHistoryEntry {
|
679
|
+
return {
|
680
|
+
operation: 0,
|
681
|
+
codeId: Long.UZERO,
|
682
|
+
updated: undefined,
|
683
|
+
msg: new Uint8Array()
|
684
|
+
};
|
685
|
+
}
|
686
|
+
|
687
|
+
export const ContractCodeHistoryEntry = {
|
688
|
+
encode(message: ContractCodeHistoryEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
689
|
+
if (message.operation !== 0) {
|
690
|
+
writer.uint32(8).int32(message.operation);
|
691
|
+
}
|
692
|
+
|
693
|
+
if (!message.codeId.isZero()) {
|
694
|
+
writer.uint32(16).uint64(message.codeId);
|
695
|
+
}
|
696
|
+
|
697
|
+
if (message.updated !== undefined) {
|
698
|
+
AbsoluteTxPosition.encode(message.updated, writer.uint32(26).fork()).ldelim();
|
699
|
+
}
|
700
|
+
|
701
|
+
if (message.msg.length !== 0) {
|
702
|
+
writer.uint32(34).bytes(message.msg);
|
703
|
+
}
|
704
|
+
|
705
|
+
return writer;
|
706
|
+
},
|
707
|
+
|
708
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ContractCodeHistoryEntry {
|
709
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
710
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
711
|
+
const message = createBaseContractCodeHistoryEntry();
|
712
|
+
|
713
|
+
while (reader.pos < end) {
|
714
|
+
const tag = reader.uint32();
|
715
|
+
|
716
|
+
switch (tag >>> 3) {
|
717
|
+
case 1:
|
718
|
+
message.operation = (reader.int32() as any);
|
719
|
+
break;
|
720
|
+
|
721
|
+
case 2:
|
722
|
+
message.codeId = (reader.uint64() as Long);
|
723
|
+
break;
|
724
|
+
|
725
|
+
case 3:
|
726
|
+
message.updated = AbsoluteTxPosition.decode(reader, reader.uint32());
|
727
|
+
break;
|
728
|
+
|
729
|
+
case 4:
|
730
|
+
message.msg = reader.bytes();
|
731
|
+
break;
|
732
|
+
|
733
|
+
default:
|
734
|
+
reader.skipType(tag & 7);
|
735
|
+
break;
|
736
|
+
}
|
737
|
+
}
|
738
|
+
|
739
|
+
return message;
|
740
|
+
},
|
741
|
+
|
742
|
+
fromPartial(object: DeepPartial<ContractCodeHistoryEntry>): ContractCodeHistoryEntry {
|
743
|
+
const message = createBaseContractCodeHistoryEntry();
|
744
|
+
message.operation = object.operation ?? 0;
|
745
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? Long.fromValue(object.codeId) : Long.UZERO;
|
746
|
+
message.updated = object.updated !== undefined && object.updated !== null ? AbsoluteTxPosition.fromPartial(object.updated) : undefined;
|
747
|
+
message.msg = object.msg ?? new Uint8Array();
|
748
|
+
return message;
|
749
|
+
}
|
750
|
+
|
751
|
+
};
|
752
|
+
|
753
|
+
function createBaseAbsoluteTxPosition(): AbsoluteTxPosition {
|
754
|
+
return {
|
755
|
+
blockHeight: Long.UZERO,
|
756
|
+
txIndex: Long.UZERO
|
757
|
+
};
|
758
|
+
}
|
759
|
+
|
760
|
+
export const AbsoluteTxPosition = {
|
761
|
+
encode(message: AbsoluteTxPosition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
762
|
+
if (!message.blockHeight.isZero()) {
|
763
|
+
writer.uint32(8).uint64(message.blockHeight);
|
764
|
+
}
|
765
|
+
|
766
|
+
if (!message.txIndex.isZero()) {
|
767
|
+
writer.uint32(16).uint64(message.txIndex);
|
768
|
+
}
|
769
|
+
|
770
|
+
return writer;
|
771
|
+
},
|
772
|
+
|
773
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AbsoluteTxPosition {
|
774
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
775
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
776
|
+
const message = createBaseAbsoluteTxPosition();
|
777
|
+
|
778
|
+
while (reader.pos < end) {
|
779
|
+
const tag = reader.uint32();
|
780
|
+
|
781
|
+
switch (tag >>> 3) {
|
782
|
+
case 1:
|
783
|
+
message.blockHeight = (reader.uint64() as Long);
|
784
|
+
break;
|
785
|
+
|
786
|
+
case 2:
|
787
|
+
message.txIndex = (reader.uint64() as Long);
|
788
|
+
break;
|
789
|
+
|
790
|
+
default:
|
791
|
+
reader.skipType(tag & 7);
|
792
|
+
break;
|
793
|
+
}
|
794
|
+
}
|
795
|
+
|
796
|
+
return message;
|
797
|
+
},
|
798
|
+
|
799
|
+
fromPartial(object: DeepPartial<AbsoluteTxPosition>): AbsoluteTxPosition {
|
800
|
+
const message = createBaseAbsoluteTxPosition();
|
801
|
+
message.blockHeight = object.blockHeight !== undefined && object.blockHeight !== null ? Long.fromValue(object.blockHeight) : Long.UZERO;
|
802
|
+
message.txIndex = object.txIndex !== undefined && object.txIndex !== null ? Long.fromValue(object.txIndex) : Long.UZERO;
|
803
|
+
return message;
|
804
|
+
}
|
805
|
+
|
806
|
+
};
|
807
|
+
|
808
|
+
function createBaseModel(): Model {
|
809
|
+
return {
|
810
|
+
key: new Uint8Array(),
|
811
|
+
value: new Uint8Array()
|
812
|
+
};
|
813
|
+
}
|
814
|
+
|
815
|
+
export const Model = {
|
816
|
+
encode(message: Model, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
817
|
+
if (message.key.length !== 0) {
|
818
|
+
writer.uint32(10).bytes(message.key);
|
819
|
+
}
|
820
|
+
|
821
|
+
if (message.value.length !== 0) {
|
822
|
+
writer.uint32(18).bytes(message.value);
|
823
|
+
}
|
824
|
+
|
825
|
+
return writer;
|
826
|
+
},
|
827
|
+
|
828
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Model {
|
829
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
830
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
831
|
+
const message = createBaseModel();
|
832
|
+
|
833
|
+
while (reader.pos < end) {
|
834
|
+
const tag = reader.uint32();
|
835
|
+
|
836
|
+
switch (tag >>> 3) {
|
837
|
+
case 1:
|
838
|
+
message.key = reader.bytes();
|
839
|
+
break;
|
840
|
+
|
841
|
+
case 2:
|
842
|
+
message.value = reader.bytes();
|
843
|
+
break;
|
844
|
+
|
845
|
+
default:
|
846
|
+
reader.skipType(tag & 7);
|
847
|
+
break;
|
848
|
+
}
|
849
|
+
}
|
850
|
+
|
851
|
+
return message;
|
852
|
+
},
|
853
|
+
|
854
|
+
fromPartial(object: DeepPartial<Model>): Model {
|
855
|
+
const message = createBaseModel();
|
856
|
+
message.key = object.key ?? new Uint8Array();
|
857
|
+
message.value = object.value ?? new Uint8Array();
|
858
|
+
return message;
|
859
|
+
}
|
860
|
+
|
861
|
+
};
|