This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Improve pallet-cosmos and runtime in horizon-template-node (#…
…33) * refactor: Refactor cosmos host functions * refactor: Add support for tuple ante decorators (#25) * refactor: Rename decode cosmos error * feat: Add known msg decorator * refactor: Rename cosmos modules * refactor: Separate cosmos msg from primitives * refactor: Refactor decode cosmos tx * refactor: Add transcoder for converting protobuf to scale * refactor: Restructure hp-cosmos into pallet-cosmos-types * refactor: Refactor chain id * refactor: Add cosmos type registry * refactor: Refactor legacy msg * refactor: Rename sign bytes * refactor: Remove unused code * feat: Add weight to transact call * feat: Add tx get signers * feat: Add fee payer * fix: Fix set cosmos tx origin * feat: Add validate sig count decorator * feat: Add increment sequence decorator * refactor: Separate coin struct from tx * refactor: Remove unused error * refactor: Add conditional compilation for sp_std::vec::Vec import * fix: Fix msg send weight * feat: Add default config to pallet-cosmos * chore: Merge pallet-cosmos-x to pallet-cosmos-types * refactor: Add conversion from Any to cosmrs::Any * fix: Add no_default to Currency in pallet_cosmos * feat: Add cosmos event * feat: Add event type * feat: Add msg send events * fix: Fix migration bug * fix: Remove unused error * fix: Fix std sign doc creation bug * fix: Fix typo * feat: Apply cosmos proto types (#26) * build(deps): Add no_std version of `cosmos-sdk-proto` * feat: Directly apply protobuf type * feat: Apply protobuf tx to ante decorators * feat: Apply protobuf type to msg send * feat: Apply protobuf type to pallet cosmos * feat: Add types to pallet cosmos * feat: Add get signers and sign bytes to msg send * feat: Implement get sign bytes and get signers * test: Add get sign bytes test * test: Add get std sign bytes test * fix: Remove ripemd160 host function * fix: Fix add fee payer bug * fix: Add error handlings * feat: Implement check_self_contained * refactor: Add get address from bech32 * fix: Re-enable transaction validation check * docs: Refactor pallet cosmos annotations * feat: Add get sequence from transaction * feat: Add default weight to pallet cosmos * fix: Add get sequence to validate transaction in pool * refactor: Refactor dependencies --------- Co-authored-by: Jeeyong Um <[email protected]> Co-authored-by: Jungyong Um <[email protected]> * feat: Add cosmos tx simulate json rpc (#27) * feat: Add cosmos transaction simulation json rpc * feat: Add simulate json rpc * feat: Add events to simulate response * fix: Fix simulate return type * fix: Fix check tx event handling in sidecar * feat: Transform raw type event values to string in simulate * fix: Fix search tx bug * fix: Fix typos * fix: Fix pallet cosmos event --------- Co-authored-by: Jungyong Um <[email protected]> * feat: Add cosmos error (#28) * feat: Add module error to pallet cosmos * refactor: Refactor get fee payer from tx * refactor: Refactor get fee from tx * fix: Change event and error names * feat: Add cosmos errors * fix: Add codespace to check result * refactor: Refactor remove 0x from hex string * feat: Add error to simulate rpc * feat: Add pallet assets to support multiple assets (#29) * feat: Add pallet assets * feat: Add asset id to denom converter * feat: Add asset transfer * feat: Add denom asset router * feat: Add genesis build for register denom asset routes * feat: Add denom asset route example to chain spec * fix: Set deposit values * feat: Add deduct fee decorator (#30) * feat: Add deduct fee decorator * feat: Add deduct fee events * feat: Add simulate query to json rpc * fix: Fix decode tx to get fee error * refactor: Remove unused code * fix: Fix keplr gas rate settings * chore: Add asset transfer todo to migration * refactor: Refactor create events in check deduct fee * chore: Add todo for resolve imbalance to withdraw fee * feat: Add more conditions to simulate * fix: Remove unused code and dependency * refactor: Refactor to string * feat: Add remove denom asset pair from router * chore: Add todo to simulate * feat: Add cosmwasm message handlers (#31) * feat: Add any match macro * refactor: Refactor message router with any_match macro * style: Reformat any_match macros * refactor: Refactor msg filter with any_match macro * feat: Add cosmwasm msgs to MsgFilter * feat: Add MsgStoreCode * feat: Add MsgInstantiateContract2 handler * feat: Add MsgExecuteContract handler * feat: Add MsgMigrateContract and MsgUpdateAdmin handlers * feat: Add pallet-cosmwasm (#32) * feat: Add cosmwasm libraries * refactor: Refactor from IbcPacketReceiveResult to ContractResult function * fix: Fix cosmwasm-vm errors * feat: Add pallet-cosmwasm * chore: Move cosmwasm vm and vm-wasmi to cosmwasm * chore: Fix typos * feat: Add pallet-cosmwasm * feat: Add composable-support * fix: Remove outdated ibc implements * refactor: Remove unused dependencies * fix: Add iterator and stargate features to cosmwasm vm and vm-wasmi * refactor: Reformat pallet-cosmwasm Cargo.toml * fix: Add no_std to several packages * build: Add no_std to cosmwasm-std * build: Remove unused features of cosmwasm vm and vm-wasmi * build: Add default-features=false to several dependencies * build: Fix num no_std issue * refactor: Replace deprecated GenesisBuild with BuildGenesisConfig * style: Reformat --------- Co-authored-by: Jeeyong Um <[email protected]> Co-authored-by: Jungyong Um <[email protected]>
- Loading branch information