mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Deployed connectors
This commit is contained in:
parent
b3ad283bfc
commit
333208f254
|
@ -40,6 +40,6 @@ abstract contract AuthorityResolver is Events, Helpers {
|
|||
}
|
||||
}
|
||||
|
||||
contract ConnectV2Auth is AuthorityResolver {
|
||||
contract ConnectV2AuthArbitrum is AuthorityResolver {
|
||||
string public constant name = "Auth-v1";
|
||||
}
|
||||
|
|
|
@ -88,6 +88,6 @@ abstract contract BasicResolver is Events, DSMath, Basic {
|
|||
}
|
||||
}
|
||||
|
||||
contract ConnectV2BasicERC1155 is BasicResolver {
|
||||
contract ConnectV2BasicERC1155Arbitrum is BasicResolver {
|
||||
string public constant name = "BASIC-ERC1155-v1.0";
|
||||
}
|
||||
|
|
|
@ -71,6 +71,6 @@ abstract contract BasicResolver is Events, DSMath, Basic {
|
|||
}
|
||||
}
|
||||
|
||||
contract ConnectV2BasicERC721 is BasicResolver {
|
||||
contract ConnectV2BasicERC721Arbitrum is BasicResolver {
|
||||
string public constant name = "BASIC-ERC721-v1.0";
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ abstract contract BasicResolver is Events, DSMath, Basic {
|
|||
uint256 setId
|
||||
) public payable returns (string memory _eventName, bytes memory _eventParam) {
|
||||
uint _amt = getUint(getId, amt);
|
||||
if (token != maticAddr) {
|
||||
if (token != ethAddr) {
|
||||
IERC20 tokenContract = IERC20(token);
|
||||
_amt = _amt == uint(-1) ? tokenContract.balanceOf(msg.sender) : _amt;
|
||||
tokenContract.safeTransferFrom(msg.sender, address(this), _amt);
|
||||
|
@ -62,7 +62,7 @@ abstract contract BasicResolver is Events, DSMath, Basic {
|
|||
uint setId
|
||||
) public payable returns (string memory _eventName, bytes memory _eventParam) {
|
||||
uint _amt = getUint(getId, amt);
|
||||
if (token == maticAddr) {
|
||||
if (token == ethAddr) {
|
||||
_amt = _amt == uint(-1) ? address(this).balance : _amt;
|
||||
to.call{value: _amt}("");
|
||||
} else {
|
||||
|
@ -77,6 +77,6 @@ abstract contract BasicResolver is Events, DSMath, Basic {
|
|||
}
|
||||
}
|
||||
|
||||
contract ConnectV2Basic is BasicResolver {
|
||||
contract ConnectV2BasicArbitrum is BasicResolver {
|
||||
string constant public name = "Basic-v1";
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"connectors": {
|
||||
"1" : {
|
||||
"mainnet" : {
|
||||
"AUTHORITY-A": "0x351Bb32e90C35647Df7a584f3c1a3A0c38F31c68",
|
||||
"BASIC-A": "0x9926955e0Dd681Dc303370C52f4Ad0a4dd061687",
|
||||
"1INCH-A": "0x235fca310ac7be45c7ad45f111203468743e4b7c",
|
||||
|
@ -31,13 +31,19 @@
|
|||
"B-MAKERDAO-A": "0xB0A1f10FeEfECf25064CE7cdF0a65042F7dE7bF0",
|
||||
"B-LIQUITY-A": "0x19574E5Dfb40bbD63A4F3bdcF27ed662b329b2ff"
|
||||
},
|
||||
"137" : {
|
||||
"polygon" : {
|
||||
"1INCH-A": "0xC0d9210496afE9763F5d8cEb8deFfBa817232A9e",
|
||||
"AAVE-V2-A": "0xE84d8010Afc3663919F44685cB53ED88866da3eE",
|
||||
"AUTHORITY-A": "0xf73C94402BC24148b744083eD02654EEc2C37D5B",
|
||||
"BASIC-A": "0x1cAF5EC802ca602E98139AD96A8f2B7BC524264E",
|
||||
"AAVE-CLAIM-A": "0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC",
|
||||
"PARASWAP-A": "0xFb3a1D56eD56F046721B9aCa749895100754578b"
|
||||
},
|
||||
"arbitrum" : {
|
||||
"AUTHORITY-A": "0x6ce3e607c808b4f4c26b7f6adaeb619e49cabb25",
|
||||
"BASIC-A": "0x9926955e0dd681dc303370c52f4ad0a4dd061687",
|
||||
"BASIC-B": "0xa9b99766e6c676cf1975c0d3166f96c0848ff5ad",
|
||||
"BASIC-C": "0x839c2d3ade63df5b0b8f3e57d5e145057ab41556"
|
||||
}
|
||||
},
|
||||
"mappings": {
|
||||
|
|
|
@ -43,7 +43,6 @@ module.exports = {
|
|||
],
|
||||
},
|
||||
networks: {
|
||||
// defaultNetwork: "hardhat",
|
||||
kovan: {
|
||||
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
||||
accounts: [`0x${PRIVATE_KEY}`],
|
||||
|
@ -68,6 +67,13 @@ module.exports = {
|
|||
timeout: 150000,
|
||||
gasPrice: parseInt(utils.parseUnits("1", "gwei")),
|
||||
},
|
||||
arbitrum: {
|
||||
chainId: 42161,
|
||||
url: `https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_ID}`,
|
||||
accounts: [`0x${PRIVATE_KEY}`],
|
||||
timeout: 150000,
|
||||
gasPrice: parseInt(utils.parseUnits("2", "gwei")),
|
||||
},
|
||||
},
|
||||
etherscan: {
|
||||
apiKey: process.env.ETHERSCAN_API_KEY,
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@nomiclabs/hardhat-ethers": "^2.0.2",
|
||||
"@nomiclabs/hardhat-etherscan": "^2.1.4",
|
||||
"@nomiclabs/hardhat-etherscan": "^2.1.6",
|
||||
"@nomiclabs/hardhat-waffle": "^2.0.1",
|
||||
"@nomiclabs/hardhat-web3": "^2.0.0",
|
||||
"@openzeppelin/test-helpers": "^0.5.12",
|
||||
|
@ -42,8 +42,8 @@
|
|||
"chai-as-promised": "^7.1.1",
|
||||
"ethereum-waffle": "^3.4.0",
|
||||
"ethers": "^5.4.4",
|
||||
"hardhat": "^2.6.0",
|
||||
"hardhat-deploy": "^0.8.11",
|
||||
"hardhat": "^2.6.4",
|
||||
"hardhat-deploy": "^0.9.1",
|
||||
"hardhat-deploy-ethers": "^0.3.0-beta.10",
|
||||
"husky": "^6.0.0",
|
||||
"sol-merger": "^2.0.1",
|
||||
|
|
Loading…
Reference in New Issue
Block a user