Skip to content

Commit

Permalink
Updated ConnextFacet.sol to comply with the latest changes, updated t… (
Browse files Browse the repository at this point in the history
#134)

* Updated ConnextFacet.sol to comply with the latest changes, updated test suite, added docs, added support for solidity 0.8.17 and updated Connext package.

* pulled in latest changes

* Updated ERC20 transfer and ETH transfer functions to include check for msg.value to eq relayerFee & amount + relayerFee and tested reverts

* Updated functions to reduce fn call and deployment gas, updated hardhat-gas-reported to latest version.

* reverted update to hardhat-gas-reporter package as issue with ci/cd

* revert change in hardhat.config re: gasReporter commented out

* fix error with test run - removed named return from getWETH fn

* 2.0.0
  • Loading branch information
cryptonoyaiba authored Jun 5, 2023
1 parent 7f8d4d9 commit 8f89bab
Show file tree
Hide file tree
Showing 152 changed files with 29,615 additions and 38,307 deletions.
4 changes: 2 additions & 2 deletions artifacts/Address.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"contractName": "Address",
"sourceName": "@openzeppelin/contracts/utils/Address.sol",
"abi": [],
"bytecode": "0x602d6050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c634300080f000a",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c634300080f000a",
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204be9bb072a81b187b69029143d2bb612bb4f05e89f0d92a4de1845adfba1a89564736f6c63430008110033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204be9bb072a81b187b69029143d2bb612bb4f05e89f0d92a4de1845adfba1a89564736f6c63430008110033",
"linkReferences": {},
"deployedLinkReferences": {}
}
4 changes: 2 additions & 2 deletions artifacts/AddressUpgradeable.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"contractName": "AddressUpgradeable",
"sourceName": "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol",
"abi": [],
"bytecode": "0x602d6050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c634300080f000a",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c634300080f000a",
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207ebac623b5c0e66a1f7d51ceabb73a03088138ca3ce8fc0bfae515e4be5b9ff164736f6c63430008110033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207ebac623b5c0e66a1f7d51ceabb73a03088138ca3ce8fc0bfae515e4be5b9ff164736f6c63430008110033",
"linkReferences": {},
"deployedLinkReferences": {}
}
30 changes: 2 additions & 28 deletions artifacts/AmplificationUtils.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,36 +52,10 @@
],
"name": "StopRampA",
"type": "event"
},
{
"inputs": [],
"name": "A_PRECISION",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_A",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x60bf610052600b82828239805160001a607314610045577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610603d5760003560e01c806339698415146042578063d011f91814605c575b600080fd5b60486076565b604051605391906099565b60405180910390f35b6062607d565b604051606d91906099565b60405180910390f35b620f424081565b606481565b6000819050919050565b6093816082565b82525050565b600060208201905060ac6000830184608c565b9291505056fea164736f6c634300080f000a",
"deployedBytecode": "0x7300000000000000000000000000000000000000003014608060405260043610603d5760003560e01c806339698415146042578063d011f91814605c575b600080fd5b60486076565b604051605391906099565b60405180910390f35b6062607d565b604051606d91906099565b60405180910390f35b620f424081565b606481565b6000819050919050565b6093816082565b82525050565b600060208201905060ac6000830184608c565b9291505056fea164736f6c634300080f000a",
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b11fd6dff13a14654d73e77c50d46af55a0781b6d0604277b4a768052de705bc64736f6c63430008110033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b11fd6dff13a14654d73e77c50d46af55a0781b6d0604277b4a768052de705bc64736f6c63430008110033",
"linkReferences": {},
"deployedLinkReferences": {}
}
41 changes: 41 additions & 0 deletions artifacts/AssetLogic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "AssetLogic",
"sourceName": "@connext/nxtp-contracts/contracts/core/connext/libraries/AssetLogic.sol",
"abi": [
{
"inputs": [],
"name": "AssetLogic__getConfig_notRegistered",
"type": "error"
},
{
"inputs": [],
"name": "AssetLogic__getTokenIndexFromStableSwapPool_notExist",
"type": "error"
},
{
"inputs": [],
"name": "AssetLogic__handleIncomingAsset_feeOnTransferNotSupported",
"type": "error"
},
{
"inputs": [],
"name": "AssetLogic__handleIncomingAsset_nativeAssetNotSupported",
"type": "error"
},
{
"inputs": [],
"name": "AssetLogic__handleOutgoingAsset_notNative",
"type": "error"
},
{
"inputs": [],
"name": "AssetLogic__swapAsset_externalStableSwapPoolDoesNotExist",
"type": "error"
}
],
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a308637350ea3051c4aec0daff55569551361be4e979421eff6819f130e68b8f64736f6c63430008110033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a308637350ea3051c4aec0daff55569551361be4e979421eff6819f130e68b8f64736f6c63430008110033",
"linkReferences": {},
"deployedLinkReferences": {}
}
153 changes: 44 additions & 109 deletions artifacts/ConnextFacet.json

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions artifacts/ConnextMessage.json

This file was deleted.

Loading

0 comments on commit 8f89bab

Please sign in to comment.