Skip to content

Commit 1186580

Browse files
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ coverage.out
4242

4343
# example artifacts
4444
example/cosmwasm/echo/target
45-
example/cosmwasm/cw20/target
46-
example/cosmwasm/cw721/target
47-
example/cosmwasm/cw1155/target
4845
example/cosmwasm/iter/target
4946

5047
# Solidity contracts artifacts

‎example/contracts/erc1155/erc1155.go‎

Lines changed: 0 additions & 1234 deletions
This file was deleted.

‎example/contracts/erc20/ERC20.go‎

Lines changed: 0 additions & 738 deletions
This file was deleted.

‎example/contracts/erc20/IERC20.abi‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎example/contracts/erc20/IERC20.bin‎

Whitespace-only changes.

‎example/contracts/erc20/README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ To regenerate these files, run:
22
```
33
solc --bin -o example/contracts/erc20 example/contracts/erc20/ERC20.sol --overwrite
44
solc --abi -o example/contracts/erc20 example/contracts/erc20/ERC20.sol --overwrite
5-
abigen --abi=example/contracts/erc20/ERC20.abi --pkg=erc20 --out=example/contracts/erc20/ERC20.go
65
```

‎example/contracts/erc2981/ERC2981Example.abi‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎example/contracts/erc2981/ERC2981Example.bin‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎example/contracts/erc2981/ERC2981Example.sol‎

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)