Skip to content

Commit

Permalink
fixes misc
Browse files Browse the repository at this point in the history
  • Loading branch information
saeta-eth committed Oct 4, 2024
1 parent 332b443 commit 64455e7
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: '20.5.1'
node-version: '20.18.0'

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
Expand Down
33 changes: 33 additions & 0 deletions examples/sample-foundry-project/cannonfile.withcloned.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name = "owned-greeter"
version = "1.0.0"
description = "Simple greeter project that can be owned"
keywords = ["sample", "greeter", "owned"]

[setting.salt]
defaultValue = "owned-greeter"

[provision.usd]
source = "mintable-token@permissionless-mint"
options.symbol = "USD"
options.name = "Mintable USD"
options.salt = "usd"

[provision.oracle_manager]
source = "oracle-manager"
options.salt = "0x3330363734343032330000000000000000000000000000000000000000000000-oracle"
options.owner = "0x6E1613B5c68B4Cf2A58400D8019a97849A678139"

[provision.chainlink]
source = "chainlink"

[contract.Greeter]
artifact = "Greeter"
args = ['0x70997970C51812dc3A010C7d01b50e0d17dc79C8']
salt = "<%= settings.salt %>"

# Call Greeter.setGreeting
[invoke.setGreeting]
target = ["Greeter"]
func = "setGreeting"
from = '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
args = [0, "hello world!"]
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#!/bin/bash
git clone --depth=1 https://github.com/FuzzB0t/partial-build-example
cd partial-build-example
pnpm i

$CANNON build cannonfile.withcloned.toml --chain-id 1
$CANNON build $CANNON_REPO_DIR/examples/sample-foundry-project/cannonfile.withcloned.toml --chain-id 1 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

0 comments on commit 64455e7

Please sign in to comment.