Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pointers contracts: support for ERC1155 and CW1155 contracts (sei-pro…
…tocol#1755) * wip cw1155 pointer * cleanup todos * sync events with current standard * fix query BalanceOfBatch * fix import * Fix up cwerc1155 compiled files * Add 1155 requests into bindings * queries * follow same coding style * Add cwerc1155.wasm binary to `/contracts` * Add go code to support new pointer contract * Fix typo * Add updated protobuf files * Fix up tests * Deprecate pointer proposals * queries * follow same coding style * safetransfer functions, royalyinfo, set approval * adding in transfer and approval tests * solc and abigen * clean up unused artifacts * Add all go bindings * return unsupported for methods not supported in erc standard * fix query BalanceOfBatch response * Add new test files * fix Erc1155BalanceOfBatchResponse * More testing * Update cwerc1155.wasm * More tests * return true/false instead of erroring in query IsApprovedForAll * use correct response for query BalanceOfBatch * pass optional token id field to evm query TotalSupply * remove todos * remove AllTokenInfo query * Fix balances query struct * Update and rebuild CW1155 pointer * Add new cw1155 wasms * merge * Update cwerc1155.wasm * Fix up ERC1155 pointer tests * balanceOfBatch * adding in expect calls * remove unused import * Round of updates to cw1155 contracts * Update cw1155 pointer tests * Fix: missing ERC1155TransferPayload * removing unnecessary return * Update binary * Fix balance of batch * add minor checks * Update integration test with latest main updates * Fix up erc721-payload and erc1155-payload cli commands * Lint code * Update integration test with new pointer contract code id * Map CW1155 events to EVM * updates from cw1155 base * update cw1155 base * Test events emissions for cw1155 events * Update wasm build for cwerc1155 * Fix integration test 1 * update cw1155 cargo, add optimize script to cargo * Update wasm builds * Add migrations for 1155s * Code quality * Remove unnecessary lines * updates from audit on cw1155 standard * [P1-I-01] Validate parameters in the "balanceOfBatch" function * build pointer wasm from audit changes * update pointer wasms in other places * [P1-H-01] Fix "safeBatchTransferFrom" - change to "onERC1155BatchReceived" * [P1-I-02] Consider adding "ERC1155Burnable" to "CW1155ERC1155Pointer" * Fix CW1155ERC1155Pointer.sol styles * Update ERC1155 pointer artifacts * send funds if empty msg in send and send_batch * rebuild cw1155 pointer/standard * fix version issue * cw1155_base wasm fix * Update and fix tests * Fix tests * Remove events from 1155 pointer so as not to double-emit * Linting --------- Co-authored-by: shab <[email protected]> Co-authored-by: Mr Meat <[email protected]> Co-authored-by: scottirvine <[email protected]>
- Loading branch information