Skip to content

Commit

Permalink
Additional swap-erc20 deploys; remove solidity deps from NPM packages (
Browse files Browse the repository at this point in the history
…#1300)

* deploys and blocks for base and arbitrum

* move solidity deps to devdeps

* merge deploys
  • Loading branch information
dmosites authored Mar 13, 2024
1 parent 1c0b8a1 commit 38fb92d
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 45 deletions.
10 changes: 4 additions & 6 deletions source/batch-call/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airswap/batch-call",
"version": "4.2.2",
"version": "4.2.3",
"description": "Batch balance, allowance, order validity checks",
"license": "MIT",
"repository": {
Expand All @@ -25,13 +25,11 @@
"verify": "hardhat run ./scripts/verify.js",
"owners": "hardhat run ./scripts/owner.js"
},
"dependencies": {
"@openzeppelin/contracts": "^4.8.3",
"@airswap/swap": "4.2.1",
"@airswap/swap-erc20": "4.3.0"
},
"devDependencies": {
"@airswap/utils": "4.3.0",
"@airswap/swap": "4.2.2",
"@airswap/swap-erc20": "4.3.1",
"@openzeppelin/contracts": "^4.8.3",
"prompt-confirm": "^2.0.4"
},
"publishConfig": {
Expand Down
6 changes: 2 additions & 4 deletions source/pool/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airswap/pool",
"version": "4.2.1",
"version": "4.2.2",
"description": "AirSwap: Withdrawable Token Pool",
"license": "MIT",
"repository": {
Expand All @@ -27,12 +27,10 @@
"migrate": "hardhat run ./scripts/migrate.js",
"balances": "hardhat run ./scripts/balances.js"
},
"dependencies": {
"@openzeppelin/contracts": "^4.8.3"
},
"devDependencies": {
"@airswap/utils": "4.3.0",
"@airswap/merkle": "0.0.2",
"@openzeppelin/contracts": "^4.8.3",
"prompt-confirm": "^2.0.4"
},
"publishConfig": {
Expand Down
6 changes: 2 additions & 4 deletions source/registry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airswap/registry",
"version": "4.2.1",
"version": "4.2.2",
"description": "AirSwap: Server Registry",
"license": "MIT",
"repository": {
Expand All @@ -25,14 +25,12 @@
"verify": "hardhat run ./scripts/verify.js",
"owners": "hardhat run ./scripts/owner.js"
},
"dependencies": {
"@openzeppelin/contracts": "^4.8.3"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@airswap/utils": "4.3.0",
"@openzeppelin/contracts": "^4.8.3",
"prompt-confirm": "^2.0.4"
}
}
6 changes: 2 additions & 4 deletions source/staking/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airswap/staking",
"version": "4.2.1",
"version": "4.2.2",
"description": "AirSwap: Stake Tokens",
"license": "MIT",
"repository": {
Expand All @@ -25,14 +25,12 @@
"verify": "hardhat run ./scripts/verify.js",
"owners": "hardhat run ./scripts/owner.js"
},
"dependencies": {
"@openzeppelin/contracts": "^4.8.3"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@airswap/utils": "4.3.0",
"@openzeppelin/contracts": "^4.8.3",
"prompt-confirm": "^2.0.4"
}
}
9 changes: 9 additions & 0 deletions source/swap-erc20/deploys-blocks.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
module.exports = {
1: 19341464,
56: 36593146,
97: 38543402,
137: 54144778,
8453: 11289587,
42161: 186290627,
17000: 1132433,
43113: 30844328,
43114: 42345669,
59140: 4286115,
59144: 2613444,
80001: 47001356,
84532: 7287254,
421614: 22800328,
11155111: 5395281,
}
9 changes: 9 additions & 0 deletions source/swap-erc20/deploys.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
module.exports = {
1: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
56: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
97: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
137: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
8453: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
42161: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
17000: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
43113: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
43114: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
59140: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
59144: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
80001: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
84532: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
421614: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
11155111: '0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46',
}
10 changes: 4 additions & 6 deletions source/swap-erc20/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airswap/swap-erc20",
"version": "4.3.0",
"version": "4.3.1",
"description": "AirSwap: Atomic ERC20 Token Swap",
"license": "MIT",
"repository": {
Expand All @@ -25,13 +25,11 @@
"verify": "hardhat run ./scripts/verify.js",
"owners": "hardhat run ./scripts/owner.js"
},
"dependencies": {
"solady": "0.0.173"
},
"devDependencies": {
"@airswap/staking": "4.2.1",
"@airswap/staking": "4.2.2",
"@airswap/utils": "4.3.0",
"prompt-confirm": "^2.0.4"
"prompt-confirm": "^2.0.4",
"solady": "0.0.173"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 1 addition & 2 deletions source/swap-erc20/scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const {
ChainIds,
chainLabels,
protocolFeeReceiverAddresses,
ADDRESS_ZERO,
} = require('@airswap/utils')
const { getReceiptUrl } = require('@airswap/utils')
const swapERC20Deploys = require('../deploys.js')
Expand All @@ -27,7 +26,7 @@ async function main() {
}
await displayDeployerInfo(deployer)

let protocolFeeReceiver = poolDeploys[chainId] || ADDRESS_ZERO
let protocolFeeReceiver = poolDeploys[chainId]
if (protocolFeeReceiverAddresses[chainId]) {
protocolFeeReceiver = protocolFeeReceiverAddresses[chainId]
}
Expand Down
8 changes: 3 additions & 5 deletions source/swap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airswap/swap",
"version": "4.2.1",
"version": "4.2.2",
"description": "AirSwap: Atomic Token Swap",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -28,12 +28,10 @@
"verify-adapters": "hardhat run ./scripts/verify-adapters.js",
"owners": "hardhat run ./scripts/owner.js"
},
"dependencies": {
"@openzeppelin/contracts": "^4.8.3"
},
"devDependencies": {
"@airswap/utils": "4.3.0",
"@nomicfoundation/hardhat-network-helpers": "^1.0.7"
"@nomicfoundation/hardhat-network-helpers": "^1.0.7",
"@openzeppelin/contracts": "^4.8.3"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 3 additions & 5 deletions source/wrapper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airswap/wrapper",
"version": "4.2.2",
"version": "4.2.3",
"description": "AirSwap: Wrap and Unwrap Native Tokens",
"license": "MIT",
"repository": {
Expand All @@ -27,12 +27,10 @@
"verify": "hardhat run ./scripts/verify.js",
"owners": "hardhat run ./scripts/owner.js"
},
"dependencies": {
"@airswap/swap-erc20": "4.3.0",
"@openzeppelin/contracts": "^4.8.3"
},
"devDependencies": {
"@airswap/utils": "4.3.0",
"@airswap/swap-erc20": "4.3.1",
"@openzeppelin/contracts": "^4.8.3",
"@uniswap/v2-periphery": "^1.1.0-beta.0",
"prompt-confirm": "^2.0.4"
},
Expand Down
16 changes: 8 additions & 8 deletions tools/libraries/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airswap/libraries",
"version": "4.3.1",
"version": "4.3.2",
"description": "AirSwap: Libraries for Developers",
"repository": {
"type": "git",
Expand All @@ -22,15 +22,15 @@
"test:ci": "yarn test"
},
"dependencies": {
"@airswap/batch-call": "4.2.2",
"@airswap/batch-call": "4.2.3",
"@airswap/jsonrpc-client-websocket": "0.0.1",
"@airswap/registry": "4.2.1",
"@airswap/pool": "4.2.1",
"@airswap/staking": "4.2.1",
"@airswap/swap": "4.2.1",
"@airswap/swap-erc20": "4.3.0",
"@airswap/registry": "4.2.2",
"@airswap/pool": "4.2.2",
"@airswap/staking": "4.2.2",
"@airswap/swap": "4.2.2",
"@airswap/swap-erc20": "4.3.1",
"@airswap/utils": "4.3.0",
"@airswap/wrapper": "4.2.2",
"@airswap/wrapper": "4.2.3",
"browser-or-node": "^2.1.1",
"ethers": "^5.7.2",
"jayson": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tools/utils/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const apiUrls: Record<number, string> = {
[ChainIds.AVALANCHE]: 'https://api.avax.network/ext/bc/C/rpc',
[ChainIds.LINEAGOERLI]: 'https://rpc.goerli.linea.build',
[ChainIds.LINEA]: 'https://rpc.linea.build',
[ChainIds.MUMBAI]: 'https://rpc-mumbai.maticvigil.com',
[ChainIds.MUMBAI]: 'https://gateway.tenderly.co/public/polygon-mumbai',
[ChainIds.BASESEPOLIA]: 'https://sepolia.base.org',
[ChainIds.ARBITRUMSEPOLIA]: 'https://sepolia-rollup.arbitrum.io/rpc',
[ChainIds.SEPOLIA]: 'https://ethereum-sepolia.publicnode.com',
Expand Down

0 comments on commit 38fb92d

Please sign in to comment.