Skip to main content

LockupAction

A generic entity for tracking Lockup protocol actions.

type LockupAction {
id: String!
subgraphId: BigInt!
block: BigInt!
chainId: BigInt!
from: Bytes!
hash: Bytes!
timestamp: BigInt!
category: LockupActionCategory!
contract: Bytes!
fee: BigInt
stream: LockupStream
addressA: Bytes
addressB: Bytes
amountA: BigInt
amountB: BigInt
}

Fields

LockupAction.id ● String! non-null scalar

Unique identifier: action-{chainId}-{txHash}-{logIndex}

LockupAction.subgraphId ● BigInt! non-null scalar

Unique global id as tracked by the Watcher entity.

LockupAction.block ● BigInt! non-null scalar

Block number of the Ethereum transaction.

LockupAction.chainId ● BigInt! non-null scalar

The chain ID where the action was created (e.g., 137 for Polygon).

LockupAction.from ● Bytes! non-null scalar

The tx.origin of the Ethereum transaction.

LockupAction.hash ● Bytes! non-null scalar

Hash of the Ethereum transaction.

LockupAction.timestamp ● BigInt! non-null scalar

Unix timestamp of the Ethereum transaction.

LockupAction.category ● LockupActionCategory! non-null enum

Category of action, e.g., Deposit.

LockupAction.contract ● Bytes! non-null scalar

Contract through which the action was triggered.

LockupAction.fee ● BigInt scalar

The Sablier fee paid in the native token of the chain (e.g., ETH for Mainnet). See https://docs.sablier.com/concepts/fees

LockupAction.stream ● LockupStream object

Stream linked to this action, if any.

LockupAction.addressA ● Bytes scalar

Address of 1st actor. Who this is depends upon the action type, e.g. for Create, it is the sender.

LockupAction.addressB ● Bytes scalar

Address of 2nd actor. Who this is depends upon the action type, e.g. for Transfer, it is the recipient.

LockupAction.amountA ● BigInt scalar

1st amount. What this is depends upon the action type, e.g. for Deposit, it is the deposit amount.

LockupAction.amountB ● BigInt scalar

2nd amount. What this is depends upon the action type, e.g. for Withdraw, it is the refund amount.