Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a pallet to demonstrate calling into a contract #228

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5afdde5
Adding template pallet
ascjones Feb 29, 2024
6226cfc
Rename template to contract-caller
ascjones Mar 1, 2024
d06e666
Add `contracts` dir with basic flipper
ascjones Mar 5, 2024
999e421
WIP add e2e tests
ascjones Mar 8, 2024
6d37876
Merge branch 'main' into aj/call-contract-from-runtime
ascjones Mar 8, 2024
ef2b1f1
Cargo.lock
ascjones Mar 8, 2024
89803f0
Move flipper inside pallet
ascjones Mar 11, 2024
0fe5530
Revert "Move flipper inside pallet"
ascjones Mar 11, 2024
a358ece
Flipper std
ascjones Mar 11, 2024
a1dbf42
Move contracts back into pallet
ascjones Mar 11, 2024
0fe9756
Add e2e tests
ascjones Mar 11, 2024
f7d57f6
Cargo.lock
ascjones Mar 13, 2024
1913ec6
Add instantiate flipper dispatchable and use pallet_contracts benchmarks
ascjones Mar 13, 2024
2d32d86
Add Flipper trait
ascjones Mar 13, 2024
e18a81b
WIP calling contract from pallet with e2e test
ascjones Mar 14, 2024
8c7360f
Remove unused testing stuff, wire up pallet
ascjones Mar 14, 2024
148275a
Calling runtime works
ascjones Mar 15, 2024
8aed71f
Folder structure, test works
ascjones Mar 15, 2024
5bc7e8a
Use released ink from contract
ascjones Mar 15, 2024
9d4ef8f
ink 5.0
ascjones Mar 15, 2024
e2eaf03
Failing e2e test
ascjones Mar 15, 2024
72c09b2
Use gas estimate, tidy up pallet
ascjones Mar 15, 2024
346b083
Add CI test
ascjones Mar 15, 2024
f820b6c
Revert "Add CI test"
ascjones Mar 15, 2024
5cc26e0
Add CI test
ascjones Mar 15, 2024
eefa41f
Add stage
ascjones Mar 15, 2024
f522ba3
Fmt
ascjones Mar 15, 2024
53be759
Remove empty event definition
ascjones Mar 18, 2024
ef2dbcb
remove event impl
ascjones Mar 18, 2024
ef680af
Use ink `no-panic-handler` branch
ascjones Mar 18, 2024
5c217b9
ink master
ascjones Mar 18, 2024
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
13 changes: 13 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ default:
stages:
- fmt
- build-linux
- test-contract-caller-linux
- build-mac
- publish

Expand Down Expand Up @@ -80,6 +81,18 @@ build-linux:
- mkdir -p ./artifacts/substrate-contracts-node-linux/
- cp target/release/substrate-contracts-node ./artifacts/substrate-contracts-node-linux/substrate-contracts-node

### stage: test-contract-caller-linux

test-contract-caller-linux:
stage: test-contract-caller-linux
<<: *docker-env
<<: *collect-artifacts
<<: *build-refs
variables:
CONTRACTS_NODE: ./artifacts/substrate-contracts-node-linux/substrate-contracts-node
script:
- cargo test --manifest-path ./pallets/contract-caller/contracts/flipper/Cargo.toml --features e2e-tests

### stage: build-mac

build-mac:
Expand Down
Loading