-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
24,412 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,3 @@ artifacts | |
# Coverage Report | ||
report/ | ||
lcov.info | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# specific to npm package | ||
deployments | ||
|
||
node_modules | ||
.env | ||
coverage | ||
coverage.json | ||
typechain | ||
typechain-types | ||
dist/ | ||
|
||
#Hardhat files | ||
cache | ||
artifacts | ||
|
||
# Foundry files | ||
out/ | ||
forge-cache/ | ||
|
||
*.tgz | ||
src/contracts.template.ts | ||
|
||
.idea/ | ||
.direnv/ | ||
forge-cache/ | ||
|
||
node_modules | ||
.env | ||
coverage | ||
coverage.json | ||
typechain | ||
typechain-types | ||
|
||
#Hardhat files | ||
cache | ||
artifacts | ||
|
||
# Coverage Report | ||
report | ||
lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,91 @@ | ||
{ | ||
"name": "vibc-core-smart-contracts", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"repository": "https://github.com/open-ibc/vibc-core-smart-contracts", | ||
"name": "@open-ibc/vibc-core-smart-contracts", | ||
"version": "2.1.0", | ||
"main": "dist/index.js", | ||
"bin": { | ||
"deploy-vibc-core-smart-contracts": "./dist/scripts/deploy-script.js", | ||
"upgrade-vibc-core-smart-contracts": "./dist/scripts/upgrade-script.js", | ||
"setup-vibc-core-dispatcher": "./dist/scripts/setup-dispatcher-script.js" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"solhint": "^4.1.1" | ||
"@commander-js/extra-typings": "^12.0.1", | ||
"@typechain/ethers-v6": "^0.5.0", | ||
"ethers": "^6.7.1", | ||
"nunjucks": "^3.2.4", | ||
"solhint": "^4.1.1", | ||
"typechain": "^8.3.2", | ||
"winston": "^3.13.0", | ||
"yaml": "^2.4.1", | ||
"yargs": "^17.7.2", | ||
"zod": "^3.23.4", | ||
"zx": "^8.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/nunjucks": "^3.2.6", | ||
"@types/winston": "^2.4.4", | ||
"@types/yargs": "^17.0.32", | ||
"chai": "^4.2.0", | ||
"solidity-coverage": "^0.8.0", | ||
"tsup": "^8.0.2" | ||
}, | ||
"scripts": { | ||
"lint": "solhint contracts/**/*.sol" | ||
"lint": "solhint contracts/**/*.sol", | ||
"test": "forge test", | ||
"build": "npm run build-ts-contract-bindings && npm run build-go-contract-bindings && tsup", | ||
"build-ts-contract-bindings": "npm run build-contracts && typechain --target ethers-v6 --out-dir src/evm/contracts/ './out/?(OptimisticProofVerifier|ProofVerifier|Ibc|IbcUtils|Channel|Dispatcher|Mars|Earth|UniversalChannelHandler|DummyProofVerifier|DummyLightClient|ERC1967Proxy|OptimisticLightClient).sol/*.json'", | ||
"build-go-contract-bindings": "echo go bindings generation not yet implemented!", | ||
"build-contracts": "forge build", | ||
"deploy-contracts": "npm run build && node dist/deploy.js", | ||
"deploy-simple": "node dist/deploy.js", | ||
"prepublish": "npm run build" | ||
}, | ||
"keywords": [ | ||
"evm", | ||
"cosmos", | ||
"rollup", | ||
"op-stack", | ||
"interoperability", | ||
"solidity" | ||
], | ||
"author": "Polymer Labs", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.js", | ||
"import": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
"./contracts": { | ||
"require": "./dist/evm/contracts/index.js", | ||
"import": "./dist/evm/contracts/index.js", | ||
"types": "./dist/evm/contracts/d.ts" | ||
}, | ||
"./contracts/*": { | ||
"require": "./dist/evm/contracts/*.js", | ||
"import": "./dist/evm/contracts/*.js", | ||
"types": "./dist/evm/contracts/*.d.ts" | ||
}, | ||
"./evm": { | ||
"require": "./dist/evm/index.js", | ||
"import": "./dist/evm/index.js", | ||
"types": "./dist/evm/index.d.ts" | ||
}, | ||
"./evm/account": "./dist/evm/account.js", | ||
"./evm/chain": "./dist/evm/chain.js", | ||
"./evm/schemas/contract": "./dist/evm/schemas/contract.js", | ||
"./evm/schemas/tx": "./dist/evm/schemas/tx.js", | ||
"./utils": { | ||
"require": "./dist/utils/index.js", | ||
"import": "./dist/utils/index.js", | ||
"types": "./dist/utils/index.d.ts" | ||
}, | ||
"./utils/cli": "./dist/utils/cli.js", | ||
"./utils/io": "./dist/utils/io.js", | ||
"./constants": { | ||
"require": "./dist/utils/constants/index.js", | ||
"import": "./dist/utils/constants/index.js", | ||
"types": "./dist/utils/constants/index.d.ts" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This file contains a tx spec for setting the right connections in the dispatcher contract. This spec needs to be run before the e2e test suite after deploying contracts. | ||
|
||
## The following arguments can be specified in tx spec: | ||
# name: name of entry that will be stored in tx registry | ||
# description: description in tx registry | ||
# factoryName: factory to use to read abi to send tx | ||
# deployer: can be set in the accounts.yaml | ||
# address: address of contract to call method on | ||
# signature: signature of method to call for this tx | ||
# args: args to make the function call with, need to be compatible with the signature | ||
- name: DispatcherClientSetup-Connection-0 | ||
description: 'Setup client for dispatcher contracts' | ||
deployer: 'KEY_POLYMER' | ||
signature: "setClientForConnection(string,address)" | ||
address: '{{DispatcherProxy}}' | ||
factoryName: "Dispatcher" | ||
args: | ||
- 'connection-0' | ||
- '{{LightClient}}' | ||
|
||
- name: DispatcherClientSetup-Connection-1 | ||
description: 'Setup client for dispatcher contracts' | ||
deployer: 'KEY_POLYMER' | ||
signature: "setClientForConnection(string,address)" | ||
address: '{{DispatcherProxy}}' | ||
factoryName: "Dispatcher" | ||
args: | ||
- 'connection-2' | ||
- '{{LightClient}}' |
Oops, something went wrong.