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
9 changes: 4 additions & 5 deletions typescript/aqua/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Aqua Protocol is a decentralized protocol for liquidity management. This SDK

- **Encoding/Decoding**: Build typed call data for `ship`, `dock` operations
- **Event Parsing**: Decode and parse `Pushed`, `Pulled`, `Shipped`, and `Docked` events
- **Multi-Chain Support**: Pre-configured addresses for 13+ blockchain networks
- **Multi-Chain Support**: Pre-configured addresses for 10+ blockchain networks

For detailed protocol documentation, see the [Aqua Protocol Documentation](https://github.com/1inch/aqua#table-of-contents).

Expand Down Expand Up @@ -103,13 +103,12 @@ const dockTx = aqua.dock({

### Pushed Event

Emitted when funds are pushed to a strategy.
Emitted when funds are pushed to a strategy/wallet.

```typescript
import { PushedEvent } from '@1inch/aqua-sdk'
import { Log } from 'viem'

const log: Log = { /* ... */ }
const log = { data: '0x...', topics: ['0x...'] }
const event = PushedEvent.fromLog(log)

console.log(event.maker) // Address
Expand All @@ -121,7 +120,7 @@ console.log(event.amount) // bigint

### Pulled Event

Emitted when funds are pulled from a strategy.
Emitted when funds are pulled from a strategy/wallet.

```typescript
import { PulledEvent } from '@1inch/aqua-sdk'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: LicenseRef-Degensoft-Aqua-Source-1.1

import type { Log } from 'viem'
import { decodeEventLog } from 'viem'
import { Address, HexString } from '@1inch/sdk-core'
import type { LogLike } from '@1inch/sdk-core'
import { AQUA_ABI } from '../../abi/Aqua.abi'

export class DockedEvent {
Expand All @@ -20,7 +20,7 @@ export class DockedEvent {
* Creates a DockedEvent from
* @throws Error if the log data is invalid or doesn't match the expected event structure
*/
static fromLog(log: Log): DockedEvent {
static fromLog(log: LogLike): DockedEvent {
const decoded = decodeEventLog({
abi: AQUA_ABI,
data: log.data,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: LicenseRef-Degensoft-Aqua-Source-1.1

import type { Log } from 'viem'
import { decodeEventLog } from 'viem'
import { Address, HexString } from '@1inch/sdk-core'
import type { LogLike } from '@1inch/sdk-core'
import { AQUA_ABI } from '../../abi/Aqua.abi'

export class PulledEvent {
Expand All @@ -22,7 +22,7 @@ export class PulledEvent {
* Creates a PulledEvent
* @throws Error if the log data is invalid or doesn't match the expected event structure
*/
static fromLog(log: Log): PulledEvent {
static fromLog(log: LogLike): PulledEvent {
const decoded = decodeEventLog({
abi: AQUA_ABI,
data: log.data,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LicenseRef-Degensoft-Aqua-Source-1.1

import type { Log } from 'viem'
import type { LogLike } from '@1inch/sdk-core'
import { decodeEventLog } from 'viem'
import { Address, HexString } from '@1inch/sdk-core'
import { AQUA_ABI } from '../../abi/Aqua.abi'
Expand All @@ -22,7 +22,7 @@ export class PushedEvent {
* Creates a PushedEvent
* @throws Error if the log data is invalid or doesn't match the expected event structure
*/
static fromLog(log: Log): PushedEvent {
static fromLog(log: LogLike): PushedEvent {
const decoded = decodeEventLog({
abi: AQUA_ABI,
data: log.data,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LicenseRef-Degensoft-Aqua-Source-1.1

import type { Log } from 'viem'
import type { LogLike } from '@1inch/sdk-core'
import { decodeEventLog } from 'viem'
import { Address, HexString } from '@1inch/sdk-core'
import { AQUA_ABI } from '../../abi/Aqua.abi'
Expand All @@ -21,7 +21,7 @@ export class ShippedEvent {
* Creates a ShippedEvent
* @throws Error if the log data is invalid or doesn't match the expected event structure
*/
static fromLog(log: Log): ShippedEvent {
static fromLog(log: LogLike): ShippedEvent {
const decoded = decodeEventLog({
abi: AQUA_ABI,
data: log.data,
Expand Down
2 changes: 1 addition & 1 deletion typescript/swap-vm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Available instruction categories in the full Swap VM instruction set include:
### Trading instructions
- `XYC_SWAP_XD` - XYC swap for multi-dimensional pools
- `CONCENTRATE_GROW_LIQUIDITY_XD` - Concentrate liquidity in multi-dimensional pools
- `CONCENTRATE_GROW_LIQUIDITY_2D` - Concentrate liquidity in 2D pools
- `CONCENTRATE_GROW_LIQUIDITY_2D` - Concentrate liquidity in 2 tokens pools
- `DECAY_XD` - Apply decay calculation
- `LIMIT_SWAP_1D` - Execute limit order swap
- `LIMIT_SWAP_ONLY_FULL_1D` - Execute limit order only if fully fillable
Expand Down
Loading