Skip to content

Commit

Permalink
chore: update contract bindings and addresses (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam authored Oct 27, 2023
1 parent 139e781 commit fa77412
Show file tree
Hide file tree
Showing 9 changed files with 789 additions and 884 deletions.
197 changes: 26 additions & 171 deletions bindings/FunctionRegistry.go

Large diffs are not rendered by default.

1,449 changes: 739 additions & 710 deletions bindings/FunctionGateway.go → bindings/SuccinctGateway.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions contracts/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ RPC_1=
RPC_5=
RPC_137=
RPC_420=https://goerli.optimism.io
RPC_17000=https://rpc.holesky.ethpandaops.io
RPC_42163=https://goerli-rollup.arbitrum.io/rpc
RPC_84531=https://goerli.base.org

ETHERSCAN_API_KEY_1=
ETHERSCAN_API_KEY_5=
ETHERSCAN_API_KEY_137=
ETHERSCAN_API_KEY_420=
ETHERSCAN_API_KEY_17000=
ETHERSCAN_API_KEY_42163=
ETHERSCAN_API_KEY_84531=
5 changes: 5 additions & 0 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Run Tests
forge test
```

## Addresses

SUCCINCT_GATEWAY=[0x6e4f1e9ea315ebfd69d18c2db974eef6105fb803](https://etherscan.io/address/0x6e4f1e9ea315ebfd69d18c2db974eef6105fb803)
SUCCINCT_FEE_VAULT=[0x5999d401444f15d262fdce310bb68bd234de11aa](https://etherscan.io/address/0x5999d401444f15d262fdce310bb68bd234de11aa)

## Deploying

Each contract has it's own deployment file in the form of `script/deploy/{Contract}.s.sol`. Inside each, there is a `Deploy{Contract}` script that will deploy the contract. This allows for programmatic cross-chain deployment of contracts using `script/deploy.sh`.
Expand Down
2 changes: 1 addition & 1 deletion gnarkx/succinct/circuit.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (f *CircuitFunction) Prove(inputBytes []byte, build *CircuitBuild) (*types.
return output, nil
}

// Generates a JSON fixture for use in Solidity tests with MockFunctionGateway.sol.
// Generates a JSON fixture for use in Solidity tests with MockSuccinctGateway.sol.
func (f *CircuitFunction) GenerateFixture(inputBytes []byte) (types.Fixture, error) {
f.SetWitness(inputBytes)
fixture := types.Fixture{
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/succinctlabs/sdk
module github.com/succinctlabs/succinctx

go 1.20

Expand Down
Empty file modified scripts/abi.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion scripts/binding.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e

# Add to this list for each contract you want to generate bindings for. Must be in the abi folder.
CONTRACTS=(FunctionGateway FunctionRegistry)
CONTRACTS=(SuccinctGateway FunctionRegistry)

# Clear previous bindings so there is no leftovers (e.g. in case of rename).
rm -rf ./bindings/*
Expand Down
14 changes: 14 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -euf -o pipefail

if ! echo "$1" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$'; then
echo "${1} is not in MAJOR.MINOR.PATCH format"
exit 1
fi

# Create a new signed annotated tag for the version
git tag "v${1}" -as -m "release v${1}"

# Push all tags, which triggers the Release workflow
git push --atomic origin "v${1}" --force

0 comments on commit fa77412

Please sign in to comment.