Repository navigation
Commit 1186580
Remove unused contracts from example/ (#4630)
`example/` holds the Solidity and CosmWasm contracts the Go tests
deploy, and part of it is no longer read by anything.
`contracts/erc2981` lost its last user when #4198 removed the CW-wrapper
royalty cases from `x/evm/integration_test.go`. The `abigen` bindings
`contracts/erc20/ERC20.go` and `contracts/erc1155/erc1155.go` were never
imported, and `IERC20.{abi,bin}` and `IBank.{abi,bin}` are by-products
`solc` emits for the interfaces that `ERC20.sol` and `SendAll.sol`
compile. `cosmwasm/cw20`, `cw721` and `cw1155` hold the sources and
built wasm of the `cwerc20`, `cwerc721` and `cwerc1155` pointer
contracts, which no workflow, Makefile, script or Go package builds or
reads.
This deletes all of them, along with the `.gitignore` entries for the
removed crates' `target/` directories and the `abigen` step in the
`erc20` and `erc721` READMEs (the `erc721` one generated an `ERC721.go`
that was never committed). Everything a test loads stays:
`simplestorage`, `echo` and `sendall` with their bindings, the `ERC20`,
`DummyERC721` and `ERC1155Example` bytecode deployed by
`x/evm/client/wasm`, and the `echo` and `iter` wasm used by
`precompiles/wasmd` and `evmrpc/tests`.
The pointer contract sources are the part to check before merging, since
#4198 kept them on purpose as the record of the wrappers still live on
mainnet. The chain can no longer create wrappers, so these files only
describe code that is already deployed; that code keeps running, and its
source stays in git history (for example `git show
e3e78f9:example/cosmwasm/cw20/src/contract.rs`). The deleted
`cwerc*.wasm` files are byte-identical to the blobs `x/evm/artifacts`
embedded before #4198. No consensus, state or wire-format impact; `go
list -test -deps ./...` resolves every package and test, and `go mod
tidy -diff` reports no changes.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent e3e78f9 commit 1186580
44 files changed
Lines changed: 0 additions & 8105 deletions
File tree
- example
- contracts
- erc1155
- erc20
- erc2981
- erc721
- sendall
- cosmwasm
- cw1155
- artifacts
- src
- cw20
- artifacts
- src
- cw721
- artifacts
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments