juno-network 0.4.0 → 0.5.1
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/README.md +122 -1
- package/main/codegen/cosmos/client.js +11 -5
- package/main/codegen/cosmwasm/client.js +11 -5
- package/main/codegen/ibc/client.js +11 -5
- package/package.json +3 -3
- package/types/codegen/JunoSwap.client.d.ts +120 -0
- package/types/codegen/JunoSwap.types.d.ts +124 -0
- package/types/codegen/confio/proofs.d.ts +495 -0
- package/types/codegen/contracts.d.ts +12 -0
- package/types/codegen/cosmos/app/v1alpha1/config.d.ts +51 -0
- package/types/codegen/cosmos/app/v1alpha1/module.d.ts +105 -0
- package/types/codegen/cosmos/app/v1alpha1/query.d.ts +25 -0
- package/types/codegen/cosmos/app/v1alpha1/query.rpc.query.d.ts +11 -0
- package/types/codegen/cosmos/auth/v1beta1/auth.d.ts +49 -0
- package/types/codegen/cosmos/auth/v1beta1/genesis.d.ts +18 -0
- package/types/codegen/cosmos/auth/v1beta1/query.d.ts +171 -0
- package/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts +14 -0
- package/types/codegen/cosmos/auth/v1beta1/query.rpc.query.d.ts +23 -0
- package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
- package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
- package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
- package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
- package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +21 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.amino.d.ts +54 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.registry.d.ts +76 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +15 -0
- package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
- package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
- package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
- package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
- package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +39 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +13 -0
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
- package/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +25 -0
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
- package/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +53 -0
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
- package/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +118 -0
- package/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +47 -0
- package/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +24 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +197 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +13 -0
- package/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.d.ts +21 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
- package/types/codegen/cosmos/bundle.d.ts +6233 -0
- package/types/codegen/cosmos/capability/v1beta1/capability.d.ts +45 -0
- package/types/codegen/cosmos/capability/v1beta1/genesis.d.ts +34 -0
- package/types/codegen/cosmos/client.d.ts +473 -0
- package/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts +18 -0
- package/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts +17 -0
- package/types/codegen/cosmos/crisis/v1beta1/tx.d.ts +25 -0
- package/types/codegen/cosmos/crisis/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts +11 -0
- package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
- package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
- package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
- package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
- package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
- package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
- package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
- package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
- package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +39 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +17 -0
- package/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts +19 -0
- package/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts +15 -0
- package/types/codegen/cosmos/evidence/v1beta1/query.d.ts +60 -0
- package/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts +9 -0
- package/types/codegen/cosmos/evidence/v1beta1/query.rpc.query.d.ts +13 -0
- package/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts +19 -0
- package/types/codegen/cosmos/evidence/v1beta1/tx.d.ts +30 -0
- package/types/codegen/cosmos/evidence/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts +11 -0
- package/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +89 -0
- package/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts +14 -0
- package/types/codegen/cosmos/feegrant/v1beta1/query.d.ts +84 -0
- package/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts +10 -0
- package/types/codegen/cosmos/feegrant/v1beta1/query.rpc.query.d.ts +15 -0
- package/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts +32 -0
- package/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts +56 -0
- package/types/codegen/cosmos/feegrant/v1beta1/tx.registry.d.ts +56 -0
- package/types/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts +13 -0
- package/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts +14 -0
- package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
- package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +36 -0
- package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
- package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
- package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +19 -0
- package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
- package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +36 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +17 -0
- package/types/codegen/cosmos/group/v1/events.d.ts +115 -0
- package/types/codegen/cosmos/group/v1/genesis.d.ts +38 -0
- package/types/codegen/cosmos/group/v1/query.d.ts +350 -0
- package/types/codegen/cosmos/group/v1/query.lcd.d.ts +20 -0
- package/types/codegen/cosmos/group/v1/query.rpc.query.d.ts +35 -0
- package/types/codegen/cosmos/group/v1/tx.amino.d.ts +227 -0
- package/types/codegen/cosmos/group/v1/tx.d.ts +419 -0
- package/types/codegen/cosmos/group/v1/tx.registry.d.ts +296 -0
- package/types/codegen/cosmos/group/v1/tx.rpc.msg.d.ts +37 -0
- package/types/codegen/cosmos/group/v1/types.d.ts +324 -0
- package/types/codegen/cosmos/lcd.d.ts +28 -0
- package/types/codegen/cosmos/mint/v1beta1/genesis.d.ts +17 -0
- package/types/codegen/cosmos/mint/v1beta1/mint.d.ts +38 -0
- package/types/codegen/cosmos/mint/v1beta1/query.d.ts +78 -0
- package/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts +10 -0
- package/types/codegen/cosmos/mint/v1beta1/query.rpc.query.d.ts +15 -0
- package/types/codegen/cosmos/msg/v1/msg.d.ts +1 -0
- package/types/codegen/cosmos/nft/v1beta1/event.d.ts +42 -0
- package/types/codegen/cosmos/nft/v1beta1/genesis.d.ts +30 -0
- package/types/codegen/cosmos/nft/v1beta1/nft.d.ts +47 -0
- package/types/codegen/cosmos/nft/v1beta1/query.d.ts +166 -0
- package/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts +14 -0
- package/types/codegen/cosmos/nft/v1beta1/query.rpc.query.d.ts +23 -0
- package/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts +18 -0
- package/types/codegen/cosmos/nft/v1beta1/tx.d.ts +30 -0
- package/types/codegen/cosmos/nft/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/nft/v1beta1/tx.rpc.msg.d.ts +11 -0
- package/types/codegen/cosmos/orm/v1/orm.d.ts +117 -0
- package/types/codegen/cosmos/orm/v1alpha1/schema.d.ts +90 -0
- package/types/codegen/cosmos/params/v1beta1/params.d.ts +31 -0
- package/types/codegen/cosmos/params/v1beta1/query.d.ts +71 -0
- package/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts +9 -0
- package/types/codegen/cosmos/params/v1beta1/query.rpc.query.d.ts +13 -0
- package/types/codegen/cosmos/rpc.query.d.ts +97 -0
- package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
- package/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts +70 -0
- package/types/codegen/cosmos/slashing/v1beta1/query.d.ts +85 -0
- package/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts +10 -0
- package/types/codegen/cosmos/slashing/v1beta1/query.rpc.query.d.ts +15 -0
- package/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts +52 -0
- package/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts +15 -0
- package/types/codegen/cosmos/slashing/v1beta1/tx.d.ts +23 -0
- package/types/codegen/cosmos/slashing/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.d.ts +11 -0
- package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
- package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
- package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
- package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
- package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +54 -0
- package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +19 -0
- package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
- package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
- package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
- package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +27 -0
- package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +27 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +13 -0
- package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
- package/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts +58 -0
- package/types/codegen/cosmos/vesting/v1beta1/tx.d.ts +88 -0
- package/types/codegen/cosmos/vesting/v1beta1/tx.registry.d.ts +76 -0
- package/types/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts +15 -0
- package/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts +97 -0
- package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
- package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
- package/types/codegen/cosmwasm/bundle.d.ts +1109 -0
- package/types/codegen/cosmwasm/client.d.ts +120 -0
- package/types/codegen/cosmwasm/lcd.d.ts +33 -0
- package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
- package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
- package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
- package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
- package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
- package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +39 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
- package/types/codegen/gogoproto/bundle.d.ts +1 -0
- package/types/codegen/gogoproto/gogo.d.ts +1 -0
- package/types/codegen/google/api/annotations.d.ts +1 -0
- package/types/codegen/google/api/http.d.ts +375 -0
- package/types/codegen/google/bundle.d.ts +1545 -0
- package/types/codegen/google/protobuf/any.d.ts +237 -0
- package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
- package/types/codegen/google/protobuf/duration.d.ts +161 -0
- package/types/codegen/google/protobuf/empty.d.ts +33 -0
- package/types/codegen/google/protobuf/field_mask.d.ts +417 -0
- package/types/codegen/google/protobuf/struct.d.ts +148 -0
- package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
- package/types/codegen/google/protobuf/wrappers.d.ts +209 -0
- package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
- package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +21 -0
- package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
- package/types/codegen/ibc/bundle.d.ts +3781 -0
- package/types/codegen/ibc/client.d.ts +559 -0
- package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
- package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
- package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
- package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +51 -0
- package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
- package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
- package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
- package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +29 -0
- package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +36 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +17 -0
- package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
- package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
- package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
- package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
- package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
- package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +27 -0
- package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
- package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
- package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +17 -0
- package/types/codegen/ibc/core/port/v1/query.d.ts +37 -0
- package/types/codegen/ibc/core/port/v1/query.rpc.query.d.ts +11 -0
- package/types/codegen/ibc/core/types/v1/genesis.d.ts +21 -0
- package/types/codegen/ibc/lcd.d.ts +46 -0
- package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
- package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
- package/types/codegen/ibc/rpc.query.d.ts +148 -0
- package/types/codegen/ibc/rpc.tx.d.ts +44 -0
- package/types/codegen/ics23/bundle.d.ts +545 -0
- package/types/codegen/index.d.ts +18 -0
- package/types/codegen/juno/bundle.d.ts +226 -0
- package/types/codegen/juno/lcd.d.ts +31 -0
- package/types/codegen/juno/mint/genesis.d.ts +22 -0
- package/types/codegen/juno/mint/mint.d.ts +44 -0
- package/types/codegen/juno/mint/query.d.ts +99 -0
- package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
- package/types/codegen/juno/mint/query.rpc.query.d.ts +21 -0
- package/types/codegen/juno/rpc.query.d.ts +104 -0
- package/types/codegen/tendermint/abci/types.d.ts +902 -0
- package/types/codegen/tendermint/bundle.d.ts +2065 -0
- package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
- package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
- package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
- package/types/codegen/tendermint/p2p/types.d.ts +87 -0
- package/types/codegen/tendermint/types/block.d.ts +21 -0
- package/types/codegen/tendermint/types/evidence.d.ts +70 -0
- package/types/codegen/tendermint/types/params.d.ts +181 -0
- package/types/codegen/tendermint/types/types.d.ts +326 -0
- package/types/codegen/tendermint/types/validator.d.ts +48 -0
- package/types/codegen/tendermint/version/types.d.ts +48 -0
- package/types/index.d.ts +1 -0
package/README.md
CHANGED
|
@@ -130,6 +130,128 @@ const {
|
|
|
130
130
|
voteWeighted
|
|
131
131
|
} = cosmos.gov.v1beta1.MessageComposer.fromPartial;
|
|
132
132
|
```
|
|
133
|
+
## Connecting with Wallets and Signing Messages
|
|
134
|
+
|
|
135
|
+
⚡️ For web interfaces, we recommend using [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit). Continue below to see how to manually construct signers and clients.
|
|
136
|
+
### Initializing the Stargate Client
|
|
137
|
+
|
|
138
|
+
Use `getSigningPublicawesomeClient` to get your `SigningStargateClient`, with the proto/amino messages full-loaded. No need to manually add amino types, just require and initialize the client:
|
|
139
|
+
|
|
140
|
+
```js
|
|
141
|
+
import { getSigningPublicawesomeClient } from 'juno-network';
|
|
142
|
+
|
|
143
|
+
const stargateClient = await getSigningPublicawesomeClient({
|
|
144
|
+
rpcEndpoint,
|
|
145
|
+
signer // OfflineSigner
|
|
146
|
+
});
|
|
147
|
+
```
|
|
148
|
+
## Creating Signers
|
|
149
|
+
|
|
150
|
+
To broadcast messages, you'll want to use either [keplr](https://docs.keplr.app/api/cosmjs.html) or an `OfflineSigner` from `cosmjs` using mnemonics.
|
|
151
|
+
|
|
152
|
+
### Cosmos Kit
|
|
153
|
+
|
|
154
|
+
If you use react, for keplr, we recommend using [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit/tree/main/packages/react#2-signing-clients)
|
|
155
|
+
|
|
156
|
+
### Amino Signer
|
|
157
|
+
|
|
158
|
+
Likely you'll want to use the Amino, so unless you need proto, you should use this one:
|
|
159
|
+
|
|
160
|
+
```js
|
|
161
|
+
import { getOfflineSignerAmino as getOfflineSigner } from 'cosmjs-utils';
|
|
162
|
+
```
|
|
163
|
+
### Proto Signer
|
|
164
|
+
|
|
165
|
+
```js
|
|
166
|
+
import { getOfflineSignerProto as getOfflineSigner } from 'cosmjs-utils';
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
WARNING: NOT RECOMMENDED TO USE PLAIN-TEXT MNEMONICS. Please take care of your security and use best practices such as AES encryption and/or methods from 12factor applications.
|
|
170
|
+
|
|
171
|
+
```js
|
|
172
|
+
import { chains } from 'chain-registry';
|
|
173
|
+
|
|
174
|
+
const mnemonic =
|
|
175
|
+
'unfold client turtle either pilot stock floor glow toward bullet car science';
|
|
176
|
+
const chain = chains.find(({ chain_name }) => chain_name === 'juno');
|
|
177
|
+
const signer = await getOfflineSigner({
|
|
178
|
+
mnemonic,
|
|
179
|
+
chain
|
|
180
|
+
});
|
|
181
|
+
```
|
|
182
|
+
### Broadcasting messages
|
|
183
|
+
|
|
184
|
+
Now that you have your `stargateClient`, you can broadcast messages:
|
|
185
|
+
|
|
186
|
+
```js
|
|
187
|
+
const { send } = cosmos.bank.v1beta1.MessageComposer.withTypeUrl;
|
|
188
|
+
|
|
189
|
+
const msg = send({
|
|
190
|
+
amount: [
|
|
191
|
+
{
|
|
192
|
+
denom: 'ujuno',
|
|
193
|
+
amount: '1000'
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
toAddress: address,
|
|
197
|
+
fromAddress: address
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
const fee: StdFee = {
|
|
201
|
+
amount: [
|
|
202
|
+
{
|
|
203
|
+
denom: 'ujuno',
|
|
204
|
+
amount: '864'
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
gas: '86364'
|
|
208
|
+
};
|
|
209
|
+
const response = await stargateClient.signAndBroadcast(address, [msg], fee);
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Advanced Usage
|
|
213
|
+
|
|
214
|
+
If you want to manually construct a stargate client
|
|
215
|
+
|
|
216
|
+
```js
|
|
217
|
+
import { OfflineSigner, GeneratedType, Registry } from "@cosmjs/proto-signing";
|
|
218
|
+
import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
219
|
+
|
|
220
|
+
import {
|
|
221
|
+
cosmosAminoConverters,
|
|
222
|
+
cosmosProtoRegistry,
|
|
223
|
+
cosmwasmAminoConverters,
|
|
224
|
+
cosmwasmProtoRegistry,
|
|
225
|
+
ibcProtoRegistry,
|
|
226
|
+
ibcAminoConverters
|
|
227
|
+
} from 'juno-network';
|
|
228
|
+
|
|
229
|
+
const signer: OfflineSigner = /* create your signer (see above) */
|
|
230
|
+
const rpcEndpint = 'https://rpc.cosmos.directory/juno'; // or another URL
|
|
231
|
+
|
|
232
|
+
const protoRegistry: ReadonlyArray<[string, GeneratedType]> = [
|
|
233
|
+
...cosmosProtoRegistry,
|
|
234
|
+
...publicawesomeProtoRegistry,
|
|
235
|
+
...cosmwasmProtoRegistry,
|
|
236
|
+
...ibcProtoRegistry
|
|
237
|
+
];
|
|
238
|
+
|
|
239
|
+
const aminoConverters = {
|
|
240
|
+
...cosmosAminoConverters,
|
|
241
|
+
...publicawesomeAminoConverters,
|
|
242
|
+
...cosmwasmAminoConverters,
|
|
243
|
+
...ibcAminoConverters
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
const registry = new Registry(protoRegistry);
|
|
247
|
+
const aminoTypes = new AminoTypes(aminoConverters);
|
|
248
|
+
|
|
249
|
+
const stargateClient = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
250
|
+
registry,
|
|
251
|
+
aminoTypes
|
|
252
|
+
});
|
|
253
|
+
```
|
|
254
|
+
|
|
133
255
|
## Credits
|
|
134
256
|
|
|
135
257
|
🛠 Built by Cosmology — if you like our tools, please consider delegating to [our validator ⚛️](https://cosmology.tech/validator)
|
|
@@ -138,4 +260,3 @@ Code built with the help of these related projects:
|
|
|
138
260
|
|
|
139
261
|
* [@cosmwasm/ts-codegen](https://github.com/CosmWasm/ts-codegen) for generated CosmWasm contract Typescript classes
|
|
140
262
|
* [@osmonauts/telescope](https://github.com/osmosis-labs/telescope) a "babel for the Cosmos", Telescope is a TypeScript Transpiler for Cosmos Protobufs.
|
|
141
|
-
|
|
@@ -7,16 +7,16 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.getSigningCosmosClientOptions = exports.getSigningCosmosClient = void 0;
|
|
10
|
+
exports.getSigningCosmosClientOptions = exports.getSigningCosmosClient = exports.cosmosProtoRegistry = exports.cosmosAminoConverters = void 0;
|
|
11
11
|
|
|
12
12
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
13
|
|
|
14
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
15
|
|
|
16
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
-
|
|
18
16
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
19
17
|
|
|
18
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
19
|
+
|
|
20
20
|
var _protoSigning = require("@cosmjs/proto-signing");
|
|
21
21
|
|
|
22
22
|
var _stargate = require("@cosmjs/stargate");
|
|
@@ -53,9 +53,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
53
53
|
|
|
54
54
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
55
55
|
|
|
56
|
+
var cosmosAminoConverters = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, cosmosBankV1beta1TxAmino.AminoConverter), cosmosDistributionV1beta1TxAmino.AminoConverter), cosmosGovV1TxAmino.AminoConverter), cosmosGovV1beta1TxAmino.AminoConverter), cosmosStakingV1beta1TxAmino.AminoConverter), cosmosUpgradeV1beta1TxAmino.AminoConverter);
|
|
57
|
+
|
|
58
|
+
exports.cosmosAminoConverters = cosmosAminoConverters;
|
|
59
|
+
var cosmosProtoRegistry = [].concat((0, _toConsumableArray2["default"])(cosmosBankV1beta1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosDistributionV1beta1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosGovV1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosGovV1beta1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosStakingV1beta1TxRegistry.registry), (0, _toConsumableArray2["default"])(cosmosUpgradeV1beta1TxRegistry.registry));
|
|
60
|
+
exports.cosmosProtoRegistry = cosmosProtoRegistry;
|
|
61
|
+
|
|
56
62
|
var getSigningCosmosClientOptions = function getSigningCosmosClientOptions() {
|
|
57
|
-
var registry = new _protoSigning.Registry(
|
|
58
|
-
var aminoTypes = new _stargate.AminoTypes(_objectSpread(
|
|
63
|
+
var registry = new _protoSigning.Registry((0, _toConsumableArray2["default"])(cosmosProtoRegistry));
|
|
64
|
+
var aminoTypes = new _stargate.AminoTypes(_objectSpread({}, cosmosAminoConverters));
|
|
59
65
|
return {
|
|
60
66
|
registry: registry,
|
|
61
67
|
aminoTypes: aminoTypes
|
|
@@ -7,16 +7,16 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.getSigningCosmwasmClientOptions = exports.getSigningCosmwasmClient = void 0;
|
|
10
|
+
exports.getSigningCosmwasmClientOptions = exports.getSigningCosmwasmClient = exports.cosmwasmProtoRegistry = exports.cosmwasmAminoConverters = void 0;
|
|
11
11
|
|
|
12
12
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
13
|
|
|
14
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
15
|
|
|
16
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
-
|
|
18
16
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
19
17
|
|
|
18
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
19
|
+
|
|
20
20
|
var _protoSigning = require("@cosmjs/proto-signing");
|
|
21
21
|
|
|
22
22
|
var _stargate = require("@cosmjs/stargate");
|
|
@@ -33,13 +33,19 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
33
33
|
|
|
34
34
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
35
35
|
|
|
36
|
+
var cosmwasmAminoConverters = _objectSpread({}, cosmwasmWasmV1TxAmino.AminoConverter);
|
|
37
|
+
|
|
38
|
+
exports.cosmwasmAminoConverters = cosmwasmAminoConverters;
|
|
39
|
+
var cosmwasmProtoRegistry = (0, _toConsumableArray2["default"])(cosmwasmWasmV1TxRegistry.registry);
|
|
40
|
+
exports.cosmwasmProtoRegistry = cosmwasmProtoRegistry;
|
|
41
|
+
|
|
36
42
|
var getSigningCosmwasmClientOptions = function getSigningCosmwasmClientOptions() {
|
|
37
43
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
38
44
|
_ref$defaultTypes = _ref.defaultTypes,
|
|
39
45
|
defaultTypes = _ref$defaultTypes === void 0 ? _stargate.defaultRegistryTypes : _ref$defaultTypes;
|
|
40
46
|
|
|
41
|
-
var registry = new _protoSigning.Registry([].concat((0, _toConsumableArray2["default"])(defaultTypes), (0, _toConsumableArray2["default"])(
|
|
42
|
-
var aminoTypes = new _stargate.AminoTypes(_objectSpread({},
|
|
47
|
+
var registry = new _protoSigning.Registry([].concat((0, _toConsumableArray2["default"])(defaultTypes), (0, _toConsumableArray2["default"])(cosmwasmProtoRegistry)));
|
|
48
|
+
var aminoTypes = new _stargate.AminoTypes(_objectSpread({}, cosmwasmAminoConverters));
|
|
43
49
|
return {
|
|
44
50
|
registry: registry,
|
|
45
51
|
aminoTypes: aminoTypes
|
|
@@ -7,16 +7,16 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.getSigningIbcClientOptions = exports.getSigningIbcClient = void 0;
|
|
10
|
+
exports.ibcProtoRegistry = exports.ibcAminoConverters = exports.getSigningIbcClientOptions = exports.getSigningIbcClient = void 0;
|
|
11
11
|
|
|
12
12
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
13
|
|
|
14
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
15
|
|
|
16
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
-
|
|
18
16
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
19
17
|
|
|
18
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
19
|
+
|
|
20
20
|
var _protoSigning = require("@cosmjs/proto-signing");
|
|
21
21
|
|
|
22
22
|
var _stargate = require("@cosmjs/stargate");
|
|
@@ -45,13 +45,19 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
45
45
|
|
|
46
46
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
47
47
|
|
|
48
|
+
var ibcAminoConverters = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, ibcApplicationsTransferV1TxAmino.AminoConverter), ibcCoreChannelV1TxAmino.AminoConverter), ibcCoreClientV1TxAmino.AminoConverter), ibcCoreConnectionV1TxAmino.AminoConverter);
|
|
49
|
+
|
|
50
|
+
exports.ibcAminoConverters = ibcAminoConverters;
|
|
51
|
+
var ibcProtoRegistry = [].concat((0, _toConsumableArray2["default"])(ibcApplicationsTransferV1TxRegistry.registry), (0, _toConsumableArray2["default"])(ibcCoreChannelV1TxRegistry.registry), (0, _toConsumableArray2["default"])(ibcCoreClientV1TxRegistry.registry), (0, _toConsumableArray2["default"])(ibcCoreConnectionV1TxRegistry.registry));
|
|
52
|
+
exports.ibcProtoRegistry = ibcProtoRegistry;
|
|
53
|
+
|
|
48
54
|
var getSigningIbcClientOptions = function getSigningIbcClientOptions() {
|
|
49
55
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
50
56
|
_ref$defaultTypes = _ref.defaultTypes,
|
|
51
57
|
defaultTypes = _ref$defaultTypes === void 0 ? _stargate.defaultRegistryTypes : _ref$defaultTypes;
|
|
52
58
|
|
|
53
|
-
var registry = new _protoSigning.Registry([].concat((0, _toConsumableArray2["default"])(defaultTypes), (0, _toConsumableArray2["default"])(
|
|
54
|
-
var aminoTypes = new _stargate.AminoTypes(_objectSpread(
|
|
59
|
+
var registry = new _protoSigning.Registry([].concat((0, _toConsumableArray2["default"])(defaultTypes), (0, _toConsumableArray2["default"])(ibcProtoRegistry)));
|
|
60
|
+
var aminoTypes = new _stargate.AminoTypes(_objectSpread({}, ibcAminoConverters));
|
|
55
61
|
return {
|
|
56
62
|
registry: registry,
|
|
57
63
|
aminoTypes: aminoTypes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "juno-network",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "juno",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/CosmosContracts/typescript#readme",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@babel/plugin-transform-runtime": "7.19.1",
|
|
54
54
|
"@babel/preset-env": "7.19.1",
|
|
55
55
|
"@babel/preset-typescript": "^7.18.6",
|
|
56
|
-
"@osmonauts/telescope": "^0.
|
|
56
|
+
"@osmonauts/telescope": "^0.33.0",
|
|
57
57
|
"@protobufs/cosmos": "^0.0.11",
|
|
58
58
|
"@protobufs/cosmwasm": "^0.0.11",
|
|
59
59
|
"@protobufs/ibc": "^0.0.11",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"@osmonauts/lcd": "0.6.0",
|
|
87
87
|
"protobufjs": "^6.11.2"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "cd99e75da00198c07009c053aa8589efafbff783"
|
|
90
90
|
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.16.1.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
import { CosmWasmClient, SigningCosmWasmClient, ExecuteResult } from "@cosmjs/cosmwasm-stargate";
|
|
7
|
+
import { Coin, StdFee } from "@cosmjs/amino";
|
|
8
|
+
import { Uint128, BalanceResponse, Expiration, TokenSelect, Addr, InfoResponse, Token1ForToken2PriceResponse, Token2ForToken1PriceResponse } from "./JunoSwap.types";
|
|
9
|
+
export interface JunoSwapReadOnlyInterface {
|
|
10
|
+
contractAddress: string;
|
|
11
|
+
balance: ({ address }: {
|
|
12
|
+
address: string;
|
|
13
|
+
}) => Promise<BalanceResponse>;
|
|
14
|
+
info: () => Promise<InfoResponse>;
|
|
15
|
+
token1ForToken2Price: ({ token1Amount }: {
|
|
16
|
+
token1Amount: Uint128;
|
|
17
|
+
}) => Promise<Token1ForToken2PriceResponse>;
|
|
18
|
+
token2ForToken1Price: ({ token2Amount }: {
|
|
19
|
+
token2Amount: Uint128;
|
|
20
|
+
}) => Promise<Token2ForToken1PriceResponse>;
|
|
21
|
+
}
|
|
22
|
+
export declare class JunoSwapQueryClient implements JunoSwapReadOnlyInterface {
|
|
23
|
+
client: CosmWasmClient;
|
|
24
|
+
contractAddress: string;
|
|
25
|
+
constructor(client: CosmWasmClient, contractAddress: string);
|
|
26
|
+
balance: ({ address }: {
|
|
27
|
+
address: string;
|
|
28
|
+
}) => Promise<BalanceResponse>;
|
|
29
|
+
info: () => Promise<InfoResponse>;
|
|
30
|
+
token1ForToken2Price: ({ token1Amount }: {
|
|
31
|
+
token1Amount: Uint128;
|
|
32
|
+
}) => Promise<Token1ForToken2PriceResponse>;
|
|
33
|
+
token2ForToken1Price: ({ token2Amount }: {
|
|
34
|
+
token2Amount: Uint128;
|
|
35
|
+
}) => Promise<Token2ForToken1PriceResponse>;
|
|
36
|
+
}
|
|
37
|
+
export interface JunoSwapInterface extends JunoSwapReadOnlyInterface {
|
|
38
|
+
contractAddress: string;
|
|
39
|
+
sender: string;
|
|
40
|
+
addLiquidity: ({ expiration, maxToken2, minLiquidity, token1Amount }: {
|
|
41
|
+
expiration?: Expiration;
|
|
42
|
+
maxToken2: Uint128;
|
|
43
|
+
minLiquidity: Uint128;
|
|
44
|
+
token1Amount: Uint128;
|
|
45
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
46
|
+
removeLiquidity: ({ amount, expiration, minToken1, minToken2 }: {
|
|
47
|
+
amount: Uint128;
|
|
48
|
+
expiration?: Expiration;
|
|
49
|
+
minToken1: Uint128;
|
|
50
|
+
minToken2: Uint128;
|
|
51
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
52
|
+
swapToken1ForToken2: ({ expiration, minToken2, token1Amount }: {
|
|
53
|
+
expiration?: Expiration;
|
|
54
|
+
minToken2: Uint128;
|
|
55
|
+
token1Amount: Uint128;
|
|
56
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
57
|
+
swapToken2ForToken1: ({ expiration, minToken1, token2Amount }: {
|
|
58
|
+
expiration?: Expiration;
|
|
59
|
+
minToken1: Uint128;
|
|
60
|
+
token2Amount: Uint128;
|
|
61
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
62
|
+
multiContractSwap: ({ expiration, inputToken, inputTokenAmount, outputAmmAddress, outputMinToken, outputToken }: {
|
|
63
|
+
expiration?: Expiration;
|
|
64
|
+
inputToken: TokenSelect;
|
|
65
|
+
inputTokenAmount: Uint128;
|
|
66
|
+
outputAmmAddress: Addr;
|
|
67
|
+
outputMinToken: Uint128;
|
|
68
|
+
outputToken: TokenSelect;
|
|
69
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
70
|
+
swapTo: ({ expiration, inputAmount, inputToken, minToken, recipient }: {
|
|
71
|
+
expiration?: Expiration;
|
|
72
|
+
inputAmount: Uint128;
|
|
73
|
+
inputToken: TokenSelect;
|
|
74
|
+
minToken: Uint128;
|
|
75
|
+
recipient: Addr;
|
|
76
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
77
|
+
}
|
|
78
|
+
export declare class JunoSwapClient extends JunoSwapQueryClient implements JunoSwapInterface {
|
|
79
|
+
client: SigningCosmWasmClient;
|
|
80
|
+
sender: string;
|
|
81
|
+
contractAddress: string;
|
|
82
|
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string);
|
|
83
|
+
addLiquidity: ({ expiration, maxToken2, minLiquidity, token1Amount }: {
|
|
84
|
+
expiration?: Expiration;
|
|
85
|
+
maxToken2: Uint128;
|
|
86
|
+
minLiquidity: Uint128;
|
|
87
|
+
token1Amount: Uint128;
|
|
88
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
89
|
+
removeLiquidity: ({ amount, expiration, minToken1, minToken2 }: {
|
|
90
|
+
amount: Uint128;
|
|
91
|
+
expiration?: Expiration;
|
|
92
|
+
minToken1: Uint128;
|
|
93
|
+
minToken2: Uint128;
|
|
94
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
95
|
+
swapToken1ForToken2: ({ expiration, minToken2, token1Amount }: {
|
|
96
|
+
expiration?: Expiration;
|
|
97
|
+
minToken2: Uint128;
|
|
98
|
+
token1Amount: Uint128;
|
|
99
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
100
|
+
swapToken2ForToken1: ({ expiration, minToken1, token2Amount }: {
|
|
101
|
+
expiration?: Expiration;
|
|
102
|
+
minToken1: Uint128;
|
|
103
|
+
token2Amount: Uint128;
|
|
104
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
105
|
+
multiContractSwap: ({ expiration, inputToken, inputTokenAmount, outputAmmAddress, outputMinToken, outputToken }: {
|
|
106
|
+
expiration?: Expiration;
|
|
107
|
+
inputToken: TokenSelect;
|
|
108
|
+
inputTokenAmount: Uint128;
|
|
109
|
+
outputAmmAddress: Addr;
|
|
110
|
+
outputMinToken: Uint128;
|
|
111
|
+
outputToken: TokenSelect;
|
|
112
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
113
|
+
swapTo: ({ expiration, inputAmount, inputToken, minToken, recipient }: {
|
|
114
|
+
expiration?: Expiration;
|
|
115
|
+
inputAmount: Uint128;
|
|
116
|
+
inputToken: TokenSelect;
|
|
117
|
+
minToken: Uint128;
|
|
118
|
+
recipient: Addr;
|
|
119
|
+
}, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise<ExecuteResult>;
|
|
120
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.16.1.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
export declare type Uint128 = string;
|
|
7
|
+
export interface BalanceResponse {
|
|
8
|
+
balance: Uint128;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export declare type ExecuteMsg = {
|
|
12
|
+
add_liquidity: {
|
|
13
|
+
expiration?: Expiration | null;
|
|
14
|
+
max_token2: Uint128;
|
|
15
|
+
min_liquidity: Uint128;
|
|
16
|
+
token1_amount: Uint128;
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
remove_liquidity: {
|
|
21
|
+
amount: Uint128;
|
|
22
|
+
expiration?: Expiration | null;
|
|
23
|
+
min_token1: Uint128;
|
|
24
|
+
min_token2: Uint128;
|
|
25
|
+
[k: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
} | {
|
|
28
|
+
swap_token1_for_token2: {
|
|
29
|
+
expiration?: Expiration | null;
|
|
30
|
+
min_token2: Uint128;
|
|
31
|
+
token1_amount: Uint128;
|
|
32
|
+
[k: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
} | {
|
|
35
|
+
swap_token2_for_token1: {
|
|
36
|
+
expiration?: Expiration | null;
|
|
37
|
+
min_token1: Uint128;
|
|
38
|
+
token2_amount: Uint128;
|
|
39
|
+
[k: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
42
|
+
multi_contract_swap: {
|
|
43
|
+
expiration?: Expiration | null;
|
|
44
|
+
input_token: TokenSelect;
|
|
45
|
+
input_token_amount: Uint128;
|
|
46
|
+
output_amm_address: Addr;
|
|
47
|
+
output_min_token: Uint128;
|
|
48
|
+
output_token: TokenSelect;
|
|
49
|
+
[k: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
} | {
|
|
52
|
+
swap_to: {
|
|
53
|
+
expiration?: Expiration | null;
|
|
54
|
+
input_amount: Uint128;
|
|
55
|
+
input_token: TokenSelect;
|
|
56
|
+
min_token: Uint128;
|
|
57
|
+
recipient: Addr;
|
|
58
|
+
[k: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare type Expiration = {
|
|
62
|
+
at_height: number;
|
|
63
|
+
} | {
|
|
64
|
+
at_time: Timestamp;
|
|
65
|
+
} | {
|
|
66
|
+
never: {
|
|
67
|
+
[k: string]: unknown;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export declare type Timestamp = Uint64;
|
|
71
|
+
export declare type Uint64 = string;
|
|
72
|
+
export declare type TokenSelect = "Token1" | "Token2";
|
|
73
|
+
export declare type Addr = string;
|
|
74
|
+
export interface InfoResponse {
|
|
75
|
+
lp_token_supply: Uint128;
|
|
76
|
+
token1_address?: string | null;
|
|
77
|
+
token1_denom: string;
|
|
78
|
+
token1_reserve: Uint128;
|
|
79
|
+
token2_address?: string | null;
|
|
80
|
+
token2_denom: string;
|
|
81
|
+
token2_reserve: Uint128;
|
|
82
|
+
[k: string]: unknown;
|
|
83
|
+
}
|
|
84
|
+
export interface InstantiateMsg {
|
|
85
|
+
token1_address?: Addr | null;
|
|
86
|
+
token1_denom: string;
|
|
87
|
+
token2_address?: Addr | null;
|
|
88
|
+
token2_denom: string;
|
|
89
|
+
[k: string]: unknown;
|
|
90
|
+
}
|
|
91
|
+
export declare type QueryMsg = {
|
|
92
|
+
balance: {
|
|
93
|
+
address: string;
|
|
94
|
+
[k: string]: unknown;
|
|
95
|
+
};
|
|
96
|
+
} | {
|
|
97
|
+
info: {
|
|
98
|
+
[k: string]: unknown;
|
|
99
|
+
};
|
|
100
|
+
} | {
|
|
101
|
+
token1_for_token2_price: {
|
|
102
|
+
token1_amount: Uint128;
|
|
103
|
+
[k: string]: unknown;
|
|
104
|
+
};
|
|
105
|
+
} | {
|
|
106
|
+
token2_for_token1_price: {
|
|
107
|
+
token2_amount: Uint128;
|
|
108
|
+
[k: string]: unknown;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export interface Token {
|
|
112
|
+
address?: Addr | null;
|
|
113
|
+
denom: string;
|
|
114
|
+
reserve: Uint128;
|
|
115
|
+
[k: string]: unknown;
|
|
116
|
+
}
|
|
117
|
+
export interface Token1ForToken2PriceResponse {
|
|
118
|
+
token2_amount: Uint128;
|
|
119
|
+
[k: string]: unknown;
|
|
120
|
+
}
|
|
121
|
+
export interface Token2ForToken1PriceResponse {
|
|
122
|
+
token1_amount: Uint128;
|
|
123
|
+
[k: string]: unknown;
|
|
124
|
+
}
|