Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
7504986
Get started, not yet compiling
notlesh Jun 7, 2023
a88b126
Compiling baseline
notlesh Jun 7, 2023
37d2d58
Remove ethereum_chain_id
notlesh Jun 8, 2023
73d7bec
Revert "Remove ethereum_chain_id"
notlesh Jun 8, 2023
f0c7c38
Initialize chain_id to something other than 0
notlesh Jun 8, 2023
b7f239b
Some progress towards Eth RPC
notlesh Jun 9, 2023
760cc46
Incremental progress
notlesh Jun 12, 2023
f16559b
Remove Eth pubsub
notlesh Jun 12, 2023
01b9550
command_sink for authorship
notlesh Jun 12, 2023
cbf9b49
Impl nonce api in runtime
notlesh Jun 12, 2023
6859a3b
Impl EthereumRuntimeRPCApi
notlesh Jun 12, 2023
cba6352
Getting close...
notlesh Jun 12, 2023
7d5e5ec
It compiles!
notlesh Jun 12, 2023
5641c09
Add address mapping pallet
notlesh Jun 12, 2023
fd81b24
Add pallet to workspace
notlesh Jun 13, 2023
ee393b9
Merge branch 'main' into notlesh-add-frontier (prefer ours @ conflicts)
notlesh Jun 13, 2023
5552de7
fmt
notlesh Jun 13, 2023
becddfd
Use frame_system::Config::AccountId for mapping type
notlesh Jun 14, 2023
72eff53
Hook up EVMAddressMapping to runtime
notlesh Jun 14, 2023
61479e9
Add reverse address mapping and implement EnsureADdressOrigin
notlesh Jun 14, 2023
ecb0132
Adopt Acala's approach to AddressMapping fallback
notlesh Jun 15, 2023
73cbc71
Probably not quite the FindAuthor we're looking for, but close
notlesh Jun 15, 2023
686d22d
Remove unused generics
notlesh Jun 15, 2023
ef6c9e0
Add basic precompiles
notlesh Jun 15, 2023
2b5b3de
Move ManagedAddressMapping to runtime/src
notlesh Jun 15, 2023
b2abaaa
Merge branch 'main' into notlesh-add-frontier
notlesh Jun 15, 2023
bf2cdb4
Remove duplicate RPC mod
notlesh Jun 19, 2023
d41421b
Resolve most clippy issues
notlesh Jun 20, 2023
a0a782e
Remove unused spawn_frontier_tasks
notlesh Jun 20, 2023
95dfbcd
More clippy fixes
notlesh Jun 20, 2023
d8305bf
Merge branch 'main' into notlesh-add-frontier
notlesh Jun 20, 2023
7bf3f4f
Update spec.json
notlesh Jun 20, 2023
ee93809
genesis config for address mapping
JoshOrndorff Jun 24, 2023
95a72f2
Disabling fees makes manual evm usage possible
JoshOrndorff Jun 24, 2023
1f02734
bring in moonbeam's accountid20 stuff
JoshOrndorff Jun 24, 2023
eee8146
Install in runtime
JoshOrndorff Jun 24, 2023
37127f6
disabling block author makes runtime compile
JoshOrndorff Jun 24, 2023
09237d9
disable block author client side
JoshOrndorff Jun 24, 2023
9d5d0fe
use ecdsa in chainspec
JoshOrndorff Jun 24, 2023
6777cb9
rework cli
JoshOrndorff Jun 24, 2023
86e2954
wire mining account id through service
JoshOrndorff Jun 24, 2023
f5038f1
fix some warnings
JoshOrndorff Jun 24, 2023
61b4b98
Revert "disable block author client side"
JoshOrndorff Jun 24, 2023
e658200
Revert "disabling block author makes runtime compile"
JoshOrndorff Jun 24, 2023
645338c
make block author generic
JoshOrndorff Jun 24, 2023
7d22560
clean up unused imports
JoshOrndorff Jun 24, 2023
c675c54
cargo fmt
JoshOrndorff Jun 24, 2023
eae5993
Merge branch 'main' into notlesh-add-frontier
JoshOrndorff Jun 24, 2023
dd5fa2a
clippy
JoshOrndorff Jun 24, 2023
4e317bd
lookup and address fixed. (#21)
asiniscalchi Jun 25, 2023
b3468e9
unused import
JoshOrndorff Jun 25, 2023
b312c05
spec name as frontier template to trick apps into using ethereum styl…
JoshOrndorff Jun 25, 2023
a3fa842
try fixing bootstrap chain script
JoshOrndorff Jun 25, 2023
6bdf23f
more clippy and formatting
JoshOrndorff Jun 26, 2023
025dec5
Merge remote-tracking branch 'origin/main' into notlesh-add-frontier
JoshOrndorff Jun 26, 2023
ffbbf72
Merge remote-tracking branch 'origin/main' into joshy-account-id-20
JoshOrndorff Jun 26, 2023
969da75
Merge branch 'joshy-account-id-20' into joshy-frontier-plus-unified-a…
JoshOrndorff Jun 26, 2023
b7a0e1b
remove managed address mapping from runtime
JoshOrndorff Jun 26, 2023
aeb6825
Remove managed address mapping from chain spec
JoshOrndorff Jun 26, 2023
6f0c755
reconnect block author
JoshOrndorff Jun 26, 2023
beda5de
proper evm call origin
JoshOrndorff Jun 26, 2023
0c0c74e
clean up ensure address same better a bit
JoshOrndorff Jun 26, 2023
94a3cf3
cargo fmt
JoshOrndorff Jun 26, 2023
7c7cbbf
Kill transaction converter
JoshOrndorff Jun 26, 2023
738633c
mining public key is gone from cli
JoshOrndorff Jun 27, 2023
f24f1a1
try updating update chain script
JoshOrndorff Jun 27, 2023
943234a
just disable the mining account flag
JoshOrndorff Jun 27, 2023
b09eba3
adapt interact-with-contract script to use polkadot js for chain inte…
JoshOrndorff Jun 28, 2023
44f4321
oops, use proper ci compilation path, not my local one
JoshOrndorff Jun 28, 2023
7e14176
another try at proper contract path
JoshOrndorff Jul 6, 2023
3ae2fd9
install fp_self_contained
JoshOrndorff Jul 11, 2023
82b2d2f
Update runtime/src/lib.rs
JoshOrndorff Jul 11, 2023
b694362
Update node/src/cli.rs
JoshOrndorff Jul 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/scripts/interact-with-contract.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# seed associated with ethereum-style derivation of Alith dev account. I found it in
# https://github.com/polkadot-js/common/blob/0ec894b7324ac048d9f521a889e5349d59ad5696/packages/keyring/src/testingPairs.spec.ts#L43C41-L43C107
ALITH_SEED="0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133"

set -eo pipefail

mkdir --parents test-contract/
Expand All @@ -14,7 +18,20 @@ $CC cargo contract new --target-dir /sources flipper
$CC cargo contract build --release --manifest-path=/sources/flipper/Cargo.toml

# Upload and instantiate code
ADDRESS=$($CC cargo contract instantiate --suri //Alice --skip-confirm --args false -x --output-json /sources/flipper/target/ink/flipper.wasm | jq -jr '.contract')
# Cargo contract does not currently support AccountId20, so we use Polkadot js for now.
# https://github.com/paritytech/cargo-contract/issues/1182

# ADDRESS=$($CC cargo contract instantiate --suri //Alice --skip-confirm --args false -x --output-json /sources/flipper/target/ink/flipper.wasm | jq -jr '.contract')
polkadot-js-api --seed $ALITH_SEED --sign ethereum tx.contracts.instantiateWithCode 0 '{"refTime": 1000000000, "proofSize": 1000000000}' 1000000000000 @flipper/target/ink/flipper.wasm 0xed4b9d1b 0x
# TODO parse the contract address from the output
# "event": {
# "index": "0x0003",
# "data": [
# "0x25379eeFE1fdd60c602FB0234F38F373c7F5F164"
# ]
# },

# Call the contract
$CC cargo contract call --suri //Alice --contract $ADDRESS --message flip --manifest-path=/sources/flipper/Cargo.toml -x --skip-confirm
#$CC cargo contract call --suri //Alice --contract $ADDRESS --message flip --manifest-path=/sources/flipper/Cargo.toml -x --skip-confirm
polkadot-js-api --seed $ALITH_SEED --sign ethereum tx.contracts.call 0x25379eeFE1fdd60c602FB0234F38F373c7F5F164 0 '{"refTime": 1000000000, "proofSize": 1000000000}' 1000000000000 0x633aa551

4 changes: 4 additions & 0 deletions .github/workflows/e2e-tests-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ jobs:
alias curl='docker run -it --rm curlimages/curl:8.1.2'
curl --retry 12 --retry-all-errors --retry-delay 3 -H "Content-Type: application/json" -d '{ "id": 1, "jsonrpc": "2.0", "method": "rpc_methods"}' http://127.0.0.1:9933

- name: Install polkadot js cli utility
run: |
npm install --location=global @polkadot/api-cli

- name: Verify contract interaction
shell: bash
run: ./.github/scripts/interact-with-contract.sh
Loading