Skip to content

Commit

Permalink
feat: cannonfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Feb 25, 2025
1 parent 2edbd60 commit d2e38bd
Show file tree
Hide file tree
Showing 4 changed files with 1,002 additions and 14 deletions.
28 changes: 28 additions & 0 deletions packages/contracts/cannonfile.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name = "cartesi-util"
version = "6.3.0"
description = "Cartesi Smart Contract Utilities"

[deploy.Bitmask]
artifact = "Bitmask"
create2 = "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37"
salt = "0x0000000000000000000000000000000000000000000000000000000000000000"
ifExists = "continue"

[deploy.CartesiMathV2]
artifact = "CartesiMathV2"
create2 = "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37"
salt = "0x0000000000000000000000000000000000000000000000000000000000000000"
ifExists = "continue"

[deploy.MerkleV2]
artifact = "MerkleV2"
create2 = "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37"
salt = "0x0000000000000000000000000000000000000000000000000000000000000000"
libraries = { CartesiMathV2 = "<%= contracts.CartesiMathV2.address %>" }
ifExists = "continue"

[deploy.UnrolledCordic]
artifact = "UnrolledCordic"
create2 = "0xE1CB04A0fA36DdD16a06ea828007E35e1a3cBC37"
salt = "0x0000000000000000000000000000000000000000000000000000000000000000"
ifExists = "continue"
13 changes: 0 additions & 13 deletions packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
[profile.default]
src = 'contracts'
out = 'out'
libs = ['node_modules', 'lib']
test = 'test/foundry'
cache_path = 'forge-cache'
solc_version = '0.8.20'
evm_version = 'paris'
fs_permissions = [
{ access = "read", path = "./test/"},
{ access = "read-write", path = "./test/"}
]
use_literal_content = true
optimizer = true
auto_detect_remappings = false

[invariant]
runs = 32
depth = 100
fail_on_revert = true

# See more config options https://book.getfoundry.sh/reference/config/
1 change: 1 addition & 0 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"@types/keccak": "^3",
"@types/mocha": "^10",
"@types/node": "^20",
"@usecannon/cli": "^2.21.3",
"chai": "^4",
"copyfiles": "^2",
"decimal.js": "^10",
Expand Down
Loading

0 comments on commit d2e38bd

Please sign in to comment.