Skip to content

Commit fb30861

Browse files
authored
chore(swap-vm): cleanup doc (#11)
* chore(swap-vm): cleanup doc * update addresses * docs(swap-vm) * Update README.md * chore(swap-vm): update addresses * docs(aqua): update addresses in docs
1 parent 5236388 commit fb30861

File tree

17 files changed

+439
-215
lines changed

17 files changed

+439
-215
lines changed

typescript/aqua/README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -189,19 +189,18 @@ The SDK includes pre-configured contract addresses for the following networks:
189189

190190
| Network | Chain ID | Address |
191191
|---------|----------|---------|
192-
| Ethereum | 1 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
193-
| BNB Chain | 56 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
194-
| Polygon | 137 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
195-
| Arbitrum | 42161 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
196-
| Avalanche | 43114 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
197-
| Gnosis | 100 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
198-
| Coinbase Base | 8453 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
199-
| Optimism | 10 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
200-
| Fantom | 250 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
201-
| zkSync Era | 324 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
202-
| Linea | 59144 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
203-
| Unichain | 1301 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
204-
| Sonic | 146 | 0x11d305af1691D3aca504f6216532675f7Dd07D11 |
192+
| Ethereum | 1 | [0x407bb6447c1328f41ebb2d3cc018c54158775159](https://etherscan.io/address/0x407bb6447c1328f41ebb2d3cc018c54158775159) |
193+
| BNB Chain | 56 | [0x68d16542c60c1affae3a18896c1ad01c969c652f](https://bscscan.com/address/0x68d16542c60c1affae3a18896c1ad01c969c652f) |
194+
| Polygon | 137 | [0x0d5c0881cba1a88a6ebf90e89a25ecd2506bb967](https://polygonscan.com/address/0x0d5c0881cba1a88a6ebf90e89a25ecd2506bb967) |
195+
| Arbitrum | 42161 | [0x68d16542c60c1affae3a18896c1ad01c969c652f](https://arbiscan.io/address/0x68d16542c60c1affae3a18896c1ad01c969c652f) |
196+
| Avalanche | 43114 | [0x68d16542c60c1affae3a18896c1ad01c969c652f](https://subnets.avax.network/c-chain/address/0x68d16542c60c1affae3a18896c1ad01c969c652f) |
197+
| Gnosis | 100 | [0x68d16542c60c1affae3a18896c1ad01c969c652f](https://gnosisscan.io/address/0x68d16542c60c1affae3a18896c1ad01c969c652f) |
198+
| Coinbase Base | 8453 | [0xa7868b134f447914dd60c0984889ac57ddaa1a21](https://basescan.org/address/0xa7868b134f447914dd60c0984889ac57ddaa1a21) |
199+
| Optimism | 10 | [0x0d5c0881cba1a88a6ebf90e89a25ecd2506bb967](https://optimistic.etherscan.io/address/0x0d5c0881cba1a88a6ebf90e89a25ecd2506bb967) |
200+
| zkSync Era | 324 | [0x68d16542c60c1affae3a18896c1ad01c969c652f](https://era.zksync.network/address/0x68d16542c60c1affae3a18896c1ad01c969c652f) |
201+
| Linea | 59144 | [0x68d16542c60c1affae3a18896c1ad01c969c652f](https://lineascan.build/address/0x68d16542c60c1affae3a18896c1ad01c969c652f) |
202+
| Unichain | 1301 | [0x68d16542c60c1affae3a18896c1ad01c969c652f](https://unichain.blockscout.com/address/0x68d16542c60c1affae3a18896c1ad01c969c652f) |
203+
| Sonic | 146 | [0x68d16542c60c1affae3a18896c1ad01c969c652f](https://sonicscan.org/address/0x68d16542c60c1affae3a18896c1ad01c969c652f) |
205204

206205
Access addresses using:
207206

typescript/aqua/src/aqua-protocol-contract/constants.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ import { Address, NetworkEnum } from '@1inch/sdk-core'
44
* Aqua Protocol contract addresses by chain ID
55
*/
66
export const AQUA_CONTRACT_ADDRESSES: Record<NetworkEnum, Address> = {
7-
[NetworkEnum.ETHEREUM]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
8-
[NetworkEnum.BINANCE]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
9-
[NetworkEnum.POLYGON]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
10-
[NetworkEnum.ARBITRUM]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
11-
[NetworkEnum.AVALANCHE]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
12-
[NetworkEnum.GNOSIS]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
13-
[NetworkEnum.COINBASE]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
14-
[NetworkEnum.OPTIMISM]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
15-
[NetworkEnum.FANTOM]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
16-
[NetworkEnum.ZKSYNC]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
17-
[NetworkEnum.LINEA]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
18-
[NetworkEnum.UNICHAIN]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
19-
[NetworkEnum.SONIC]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
7+
[NetworkEnum.ETHEREUM]: new Address('0x407bb6447c1328f41ebb2d3cc018c54158775159'),
8+
[NetworkEnum.BINANCE]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
9+
[NetworkEnum.POLYGON]: new Address('0x0d5c0881cba1a88a6ebf90e89a25ecd2506bb967'),
10+
[NetworkEnum.ARBITRUM]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
11+
[NetworkEnum.AVALANCHE]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
12+
[NetworkEnum.GNOSIS]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
13+
[NetworkEnum.COINBASE]: new Address('0xa7868b134f447914dd60c0984889ac57ddaa1a21'),
14+
[NetworkEnum.OPTIMISM]: new Address('0x0d5c0881cba1a88a6ebf90e89a25ecd2506bb967'),
15+
[NetworkEnum.ZKSYNC]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
16+
[NetworkEnum.LINEA]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
17+
[NetworkEnum.UNICHAIN]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
18+
[NetworkEnum.SONIC]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
2019
}

typescript/sdk-core/src/types/chain.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export enum NetworkEnum {
66
ARBITRUM = 42161,
77
AVALANCHE = 43114,
88
OPTIMISM = 10,
9-
FANTOM = 250,
109
GNOSIS = 100,
1110
COINBASE = 8453,
1211
LINEA = 59144,

typescript/sdk-core/src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ export * from './chain'
22
export * from './tx'
33
export * from './bytes'
44
export * from './data-for'
5+
export * from './log'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { Hex } from './bytes'
2+
3+
/**
4+
* Raw log event with data and topics
5+
*/
6+
export type LogLike = {
7+
data: Hex
8+
topics: [signature: Hex, ...Hex[]] | []
9+
}

typescript/sdk-core/src/types/tx.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { Hex } from './bytes'
22

33
/**
44
* Call info type for transaction data
5-
* Matching limit-order-sdk pattern
65
*/
76
export type CallInfo = {
87
to: Hex

0 commit comments

Comments
 (0)