Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions typescript/aqua/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,19 +189,18 @@ The SDK includes pre-configured contract addresses for the following networks:

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

Access addresses using:

Expand Down
25 changes: 12 additions & 13 deletions typescript/aqua/src/aqua-protocol-contract/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ import { Address, NetworkEnum } from '@1inch/sdk-core'
* Aqua Protocol contract addresses by chain ID
*/
export const AQUA_CONTRACT_ADDRESSES: Record<NetworkEnum, Address> = {
[NetworkEnum.ETHEREUM]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.BINANCE]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.POLYGON]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.ARBITRUM]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.AVALANCHE]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.GNOSIS]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.COINBASE]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.OPTIMISM]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.FANTOM]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.ZKSYNC]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.LINEA]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.UNICHAIN]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.SONIC]: new Address('0x11d305af1691D3aca504f6216532675f7Dd07D11'),
[NetworkEnum.ETHEREUM]: new Address('0x407bb6447c1328f41ebb2d3cc018c54158775159'),
[NetworkEnum.BINANCE]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
[NetworkEnum.POLYGON]: new Address('0x0d5c0881cba1a88a6ebf90e89a25ecd2506bb967'),
[NetworkEnum.ARBITRUM]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
[NetworkEnum.AVALANCHE]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
[NetworkEnum.GNOSIS]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
[NetworkEnum.COINBASE]: new Address('0xa7868b134f447914dd60c0984889ac57ddaa1a21'),
[NetworkEnum.OPTIMISM]: new Address('0x0d5c0881cba1a88a6ebf90e89a25ecd2506bb967'),
[NetworkEnum.ZKSYNC]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
[NetworkEnum.LINEA]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
[NetworkEnum.UNICHAIN]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
[NetworkEnum.SONIC]: new Address('0x68d16542c60c1affae3a18896c1ad01c969c652f'),
}
1 change: 0 additions & 1 deletion typescript/sdk-core/src/types/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export enum NetworkEnum {
ARBITRUM = 42161,
AVALANCHE = 43114,
OPTIMISM = 10,
FANTOM = 250,
GNOSIS = 100,
COINBASE = 8453,
LINEA = 59144,
Expand Down
1 change: 1 addition & 0 deletions typescript/sdk-core/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from './chain'
export * from './tx'
export * from './bytes'
export * from './data-for'
export * from './log'
9 changes: 9 additions & 0 deletions typescript/sdk-core/src/types/log.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { Hex } from './bytes'

/**
* Raw log event with data and topics
*/
export type LogLike = {
data: Hex
topics: [signature: Hex, ...Hex[]] | []
}
1 change: 0 additions & 1 deletion typescript/sdk-core/src/types/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Hex } from './bytes'

/**
* Call info type for transaction data
* Matching limit-order-sdk pattern
*/
export type CallInfo = {
to: Hex
Expand Down
Loading
Loading