Facilitate deploying EVM contract bytecode #217

Closed
opened 2023-03-11 21:25:45 +00:00 by dboreham · 2 comments
Owner

Given a set of .bin (ASCII-encoded HEX EVM bytecode) files, deploy to a fixturenet-eth with minimal fuss and confusion.

Given a set of `.bin` (ASCII-encoded HEX EVM bytecode) files, deploy to a fixturenet-eth with minimal fuss and confusion.
Author
Owner

This works with some manual steps at present:

You can put the .bin files in the directory ./app/data/compose/foundry/workspace then run a command like this to deploy:

$ laconic-so --stack fixturenet-eth deploy exec foundry "cast send --gas-limit 10000000 --private-key 888814df89c4358d7ddb3fa4b021
3e7331239a80e1f013eaa7b2deca2a41a218 --create --code-file /workspace/ERC20.bin"

blockHash               0x84b3b64616063166b013842ac54f7972ad7b6ee5d5386143cb68c4e2f73cd4cc
blockNumber             716
contractAddress         0xCf5207018766587b8cBad4B8B1a1a38c225ebA7A
cumulativeGasUsed       147667
effectiveGasPrice       3000000007
gasUsed                 147667
logs                    []
logsBloom               0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
root
status                  0
transactionHash         0xf434a6edf4f698db488fa01eafb8c706bfbda4cb234017d29d52f8a679c2aa5b
transactionIndex        0
type                    2

This requires knowing the magic private key and is missing some sort of automatic packaging scheme to go from to .

This works with some manual steps at present: You can put the `.bin` files in the directory `./app/data/compose/foundry/workspace` then run a command like this to deploy: ``` $ laconic-so --stack fixturenet-eth deploy exec foundry "cast send --gas-limit 10000000 --private-key 888814df89c4358d7ddb3fa4b021 3e7331239a80e1f013eaa7b2deca2a41a218 --create --code-file /workspace/ERC20.bin" blockHash 0x84b3b64616063166b013842ac54f7972ad7b6ee5d5386143cb68c4e2f73cd4cc blockNumber 716 contractAddress 0xCf5207018766587b8cBad4B8B1a1a38c225ebA7A cumulativeGasUsed 147667 effectiveGasPrice 3000000007 gasUsed 147667 logs [] logsBloom 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 root status 0 transactionHash 0xf434a6edf4f698db488fa01eafb8c706bfbda4cb234017d29d52f8a679c2aa5b transactionIndex 0 type 2 ``` This requires knowing the magic private key and is missing some sort of automatic packaging scheme to go from <repo-with-solidity> to <bin files>.
Author
Owner

Calling this done since a contract can now be deployed with cast send.

Calling this done since a contract can now be deployed with `cast send`.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#217
No description provided.