Skip to content

Commit 3d07a84

Browse files
cryptonoyaibach4r10t33r0xSulpiridericcardopillarParthasarathy Ramanujam
authored
Merge from develop to master (#111)
* Resolved merge conflicts * add diamond contract (#71) * add diamond contract * update compiler version in .solhint * typo * fix typo * Update package.json (#76) - Changed version to 1.8.0 * Fuse support to etherspot (#79) * PRO-295 setup constants and update package.json * PRO-295 Fuse Sparknet deployments * update version and add network details * update compiled code * FUSE mainnet deployments * Updated deployments Co-authored-by: zincoshine <psramanuj@gmail.com> * Update package release (#80) * update release * change release number * Support for SuperTokens in BalancesHelperV2 contract (#68) (#81) * Mainnet deployments * 1.7.0 * Resolved merge conflicts Co-authored-by: Luke Wickens <71776468+lukewickens1989@users.noreply.github.com> Co-authored-by: Luke Wickens <luke@pillarproject.com> Co-authored-by: Parthasarathy Ramanujam <zincoshine@users.noreply.github.com> Co-authored-by: Luke Wickens <71776468+lukewickens1989@users.noreply.github.com> Co-authored-by: Luke Wickens <luke@pillarproject.com> * integration of connext amarok (#74) * add diamond contract * add connext amarok integration * fix package-lock * Feature/pro 305 integrate layerzero stargate (#88) * WIP - Integration of Stargate - Smart contract being written, some issue with logic of swap fn call on IStargateRouter. - Added functionality into contract to be able to decide which router address to use on destination chain dynamically. - Reduced amount of accounts created in hardhat config as causing issues with forking newer blocks with alchemy (too many requests error). - Set up basic testing environment and added in some testing of functionality - 1 failing test due to issue with swap fn call failing to execute. - Added in x2 more utils, one to move forward blocks and another to move forward in time (secs). * Update StargateFacet.sol - Changed position of getStorage() in contract * WIP - Stargate integration - Smart contract written - Most functionality test except for the actual swap - some testing issues * Stargate bridging contract /w tests and deployment scripts - Stargate contract with preloaded existing pool information (for USDC, USDT and BUSD) - Complete test suite (tested swapping on two separate networks) - Deployment script * Added natspec comments to contract - Added natspec comments to StargateFacet.sol * Added sgRetrievePoolId fn to contract - sgRetrievePoolId replaces sgCheckPoolId functionality in sgBridgeTokens fn. Should now get the pool ids without having to be passed into fn - Added testing for new fn and ensured test suite still passing * Removed console.log contract import from facet * Removed console.log from smart contract * Modified ReentrancyGuard contract and moved - Changed the contract name to DiamondReentrancyGuard.sol - Moved the contract into common/helpers and updated the path in the facet - Amended the NAMESPACE constant to something that better reflects the code * Added ReentrancyGuard into Stargate facet to test typings issue * Typing issue resolved * Fixed issue with msg.value for swapping - Issue with msg.value and not using quoteLayerZeroFee for msg.value being passed in - FIXED * Removed payable from data struct to test backend issue * compiled and built * Some changes to facet contract and added tests - Changed sgCheckPoolId fn to external from public. - Added SPDX License to DiamondReentrancyGuard. - Added tests for StargateFacet to check for deducting from user balance correctly. - Ran slither on both StargateFacet and DiamondReentrancyGuard. - Documentation on facet added to README.md. Co-authored-by: Luke Wickens <luke@pillarproject.io> * update connext integration & make bridges contracts deployment separate (#90) * update connext integration & make bridges contracts deployment separate * feat: add hop protocol (#91) * Feature/pro 284 integration of cbridge (#78) * Structure setup Set up of contract and testing file and folder structure * cBridge smart contract and testing - Updated hardhat version to latest and added support for issue with EIP when testing. - Added hardhat-tracer plugin for extra visibility of events and transactions and EVM opcodes. - Added mainnet forking to hardhat.config to reduce testing deployments. - Added logic for cBridge integration in smart contract. - Added new test util for checking emitted event information. - Added new test util for checking last emitted event in a multicall function. - Tested smart contract. - Slither check performed. * Amended test suite to integrate diamond functionality - Integrated Diamond Proxy functionality into CBridgeFacet test suite. - Added in checks to ensure some contract functions can only be called by Diamond Proxy owner. - Created deployment script. - Removed 0.8.13 compiler version from hardhat.config as no longer used. - Turned off forking for deployment testing. - HH Addr: 0xD9a9Ee6B79fBa90dA738735C85bdAf43ae1E2B60 * Updated cBridgeFacet - Removed chainId from the contract and replaced with block.chainid and removed contract variable. - Amended test suite to reflect the changes. * Edited deployment script and tested CREATE2 deployment - Edited deployment script to reflect removal of chain id. - Tested deterministic deployment on Goerli, OptimismKovan & ArbitrumTest (0x3054F79f18AecC4aAe249fd9C8ca23D93d635504) * Fixed linting issue - Removed chainId variable from deployment script. * Smart contract and test suite changes - Added storage struct into smart contract. - Added namespace storage pointer. - Updated cBridge address updating function name to be more specific. - Updated test suite to reflect smart contract changes. * Replaced OpenZeppelin contracts - Removed imports from OpenZeppelin - Manually added contracts that were removed * Reinstated IERC20 OpenZeppelin import - Reinstated IERC20 OpenZeppelin import * Updated CBridgeFacet to include slippage - Added default slippage into facet - Added functionality to update slippage tolerance - Changed function and event names to relate more bridge type - Added SafeERC20 functionality for standard approvals and transfers - Removed need for LibAsset helper functions - Updated test suite to reflect changes and confirm all still passing - Added custom CBridge errors * Added further tests and amended deployment script to match contract changes - Added more revert requirements in cbBridgeTokens and added to test suite - Changed deployment script to match new initialise fn name - Added tests for cbWithdraw fn * Modified ReentrancyGuard contract and moved - Changed the contract name to DiamondReentrancyGuard.sol - Moved the contract into common/helpers and updated the path in the facet - Amended the NAMESPACE constant to something that better reflects the code * Updated typings - issue with pulling through Stargate typings * Fix for unneeded typings - Running 'npx hardhat coverage' seemed to remove unwanted typings * Update 204_deploy_cbridge_facet.ts - Changed tags on deployment script in line with new diamond deployments. * Removed receive fn from facet contract * Update StargateFacet.sol - Removed receive() from StargateFacet * Removal of withdraw from CBridge and Stargate facets - Removed withdraw fn from CBridge and Stargate facets - Updated test suite to remove testing for withdraw fn * Fix merge conflicts * Update hardhat.config.ts - Added new compiler version to hardhat.config to fix issue with @connext imported contracts * Update package-lock.json - Rerun of npm to install latest packages for connext libs * Updated connext lib * Removed 0.8.15 compiler version * Re-added 0.8.15 compiler version Co-authored-by: Luke Wickens <luke@pillarproject.io> * remove exceptions from deployments script (#99) * deploy diamond contracts to testnets (#101) deploy diamond contracts to testnets * Feature/pro 463 arbitrum nova support (#100) * Added Arbitrum Nova configs - Added config information for Arbitrum Nova * Added support for Arbitrum Nitro testnet (Goerli) * Deployed contracts to Arbitrum Nitro testnet - Deployed contracts to Arbitrum Nitro - Issues with Diamond deployment not following deterministic deployment * Amended deployment script for CBridge - Added in error handling if network is not supported * Reverted amendments to cbridge deployment script * Added deployment information for diamond contracts on Arbitrum Nitro * Added error handling for unsupported CBridge networks Co-authored-by: Luke Wickens <luke@pillarproject.io> * Deployed on Arbitrum Nova and removed deployments from .gitignore * Updated deployments * add diamond contracts deployments (#105) * Fix typo and bump version (#106) * recompile artifacts & bump version * Resolved merge conflict * Resolved merge conflicts * Changed package version number * Pipeline improvements (#109) * Pipeline improvements * Change mumbai RPC * Downgrade node Co-authored-by: zincoshine <psramanuj@gmail.com> Co-authored-by: Utkir S <sobirovutkir@gmail.com> Co-authored-by: Luke Wickens <71776468+lukewickens1989@users.noreply.github.com> Co-authored-by: riccardopillar <98806807+riccardopillar@users.noreply.github.com> Co-authored-by: Parthasarathy Ramanujam <zincoshine@users.noreply.github.com> Co-authored-by: Luke Wickens <luke@pillarproject.com> Co-authored-by: Luke Wickens <luke@pillarproject.io> Co-authored-by: Ardian <34317628+arddluma@users.noreply.github.com>
1 parent 327ec22 commit 3d07a84

5 files changed

Lines changed: 35 additions & 4 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
install:
88
working_directory: ~/etherspot-contracts
99
docker:
10-
- image: circleci/node:14.17.0
10+
- image: cimg/node:14.17.0
1111
auth:
1212
username: $DOCKERHUB_USER
1313
password: $DOCKERHUB_PASSWORD
@@ -33,7 +33,7 @@ jobs:
3333
publish:
3434
working_directory: ~/etherspot-contracts
3535
docker:
36-
- image: circleci/node:14.17.0
36+
- image: cimg/node:14.17.0
3737
auth:
3838
username: $DOCKERHUB_USER
3939
password: $DOCKERHUB_PASSWORD
@@ -88,6 +88,8 @@ workflows:
8888
- master
8989
- publish-github-release:
9090
context: general-vars
91+
requires:
92+
- publish
9193
filters:
9294
branches:
9395
only:

.github/workflows/run-linter-and-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ jobs:
4444

4545
- name: Run tests
4646
run: npm run test -- --report-gas
47+
48+
- name: Dry run build
49+
run: npm run build

extensions/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const NETWORK_CONFIGS: {
122122
},
123123
[NetworkNames.Mumbai]: {
124124
chainId: 80001,
125-
defaultProviderUrl: "https://rpc-mumbai.maticvigil.com",
125+
defaultProviderUrl: "https://matic-mumbai.chainstacklabs.com",
126126
defaultGasPrice: 5,
127127
explorer: "https://mumbai.polygonscan.com",
128128
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@etherspot/contracts",
3-
"version": "1.9.0",
3+
"version": "1.9.1",
44
"description": "Etherspot Solidity contracts",
55
"keywords": [
66
"ether",

pull_request_template.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
<!--- Describe your changes in detail -->
5+
-
6+
7+
## Motivation and Context
8+
<!--- Why is this change required? What problem does it solve? -->
9+
<!--- If it fixes an open issue, please link to the issue here. -->
10+
-
11+
12+
## How Has This Been Tested?
13+
<!--- Please describe in detail how you tested your changes. -->
14+
<!--- Include details of your testing environment, and the tests you ran to -->
15+
<!--- see how your change affects other areas of the code, etc. -->
16+
-
17+
-
18+
-
19+
20+
## Screenshots (if appropriate):
21+
22+
## Types of changes
23+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
24+
- [ ] Bug fix (non-breaking change which fixes an issue)
25+
- [ ] New feature (non-breaking change which adds functionality)
26+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

0 commit comments

Comments
 (0)