Payloads

router_payloads

Messages

POOL_FUND_ACCOUNT

Opcode : 0x4468de77

This is not a message Op this is a payload format for JETTON_TRANSFER_NOTIFICATION

Path
Mnemonic
Type
Description

op

Uint(32),op

POOLV3_FUND_ACCOUNT (0x4468de77)

jetton_target_w

Address(267)

Address of the jetton0 wallet. Used to compute pool address

enough0

Coins(124)

When temporary storage (user account) satisfy both enough0/1 amounts - mint would trigger

enough1

Coins(124)

When temporary storage (user account) satisfy both enough0/1 amounts - mint would trigger

needPos

Uint(64)

Amount of positions that are enough for the order to be executed

passthrough

Uint(4)

Amount of positions that will be untouched

target_action

Uint(32)

target_action

0

Maybe Cell(1) MintOrder0

Cell with mint order

0

op0

Uint(32)

0

liquidity0

Uint(128)

Amount of liquidity to mint

0

tickLower0

Int(24)

lower bound of the range in which to mint

0

tickUpper0

Int(24)

upper bound of the range in which to mint

0

receiver

Address(267)

Address of receiver of the NFT

1

Maybe Cell(1) MintOrder1

Cell with mint order

1

op1

Uint(32)

1

liquidity1

Uint(128)

Amount of liquidity to mint

1

tickLower1

Int(24)

lower bound of the range in which to mint

1

tickUpper1

Int(24)

upper bound of the range in which to mint

1

receiver

Address(267)

Address of receiver of the NFT

2

Maybe Cell(1) MintOrder2

Cell with mint order

2

op2

Uint(32)

2

liquidity2

Uint(128)

Amount of liquidity to mint

2

tickLower2

Int(24)

lower bound of the range in which to mint

2

tickUpper2

Int(24)

upper bound of the range in which to mint

2

receiver

Address(267)

Address of receiver of the NFT

3

Maybe Cell(1) MintOrder3

Cell with mint order

3

op3

Uint(32)

3

liquidity3

Uint(128)

Amount of liquidity to mint

3

tickLower3

Int(24)

lower bound of the range in which to mint

3

tickUpper3

Int(24)

upper bound of the range in which to mint

3

receiver

Address(267)

Address of receiver of the NFT

TL-B Description (TBD)

This is a preliminary tl-b - subject to change

Tlb for POOL_FUND_ACCOUNT
POOL_FUND_ACCOUNT#4468de77 
    jetton_target_w:MsgAddress
    enough0:(VarUInteger 16)
    enough1:(VarUInteger 16)
    needPos:uint64
    passthrough:uint4
    target_action:uint32
    MintOrder0:(Maybe ^[
        op0:uint32
        liquidity0:uint128
        tickLower0:int24
        tickUpper0:int24
        receiver:MsgAddress
    ] ) 
    MintOrder1:(Maybe ^[
        op1:uint32
        liquidity1:uint128
        tickLower1:int24
        tickUpper1:int24
        receiver:MsgAddress
    ] ) 
    MintOrder2:(Maybe ^[
        op2:uint32
        liquidity2:uint128
        tickLower2:int24
        tickUpper2:int24
        receiver:MsgAddress
    ] ) 
    MintOrder3:(Maybe ^[
        op3:uint32
        liquidity3:uint128
        tickLower3:int24
        tickUpper3:int24
        receiver:MsgAddress
    ] ) 
= ContractMessages;

POOL_FUND_SOMEONES_ACCOUNT

Opcode : 0x134b6d30

This is not a message Op this is a payload format for JETTON_TRANSFER_NOTIFICATION

Path
Mnemonic
Type
Description

op

Uint(32),op

jetton_target_w

Address(267)

Address of the second jetton wallet (first is identified by sender_address). Used to compute pool address

to_user

Address(267)

User to fund

TL-B Description (TBD)

This is a preliminary tl-b - subject to change

Tlb for POOL_FUND_SOMEONES_ACCOUNT
POOL_FUND_SOMEONES_ACCOUNT#134b6d30 
    jetton_target_w:MsgAddress
    to_user:MsgAddress
= ContractMessages;

POOL_SWAP

Opcode : 0xa7fb58f8

This is not a message Op this is a payload format for JETTON_TRANSFER_NOTIFICATION

Path
Mnemonic
Type
Description

op

Uint(32),op

target_jetton_wallet

Address(267)

sqrtPriceLimitX96

Uint(160),PriceX96

Limit price. Swap won't go beyond it

minOutAmount

Coins(124)

owner_address

Address(267)

Address of the sender

0

Maybe Cell(1) multihop_cell

Cell with multihop data

0

target_address

Address(267)

Address of the receiver

0

ok_forward_amount

Coins(124)

0

ok_forward_payload

Cell(0),Maybe, Payload

Payload for processing by target with swapped coins

0

ret_forward_amount

Coins(124)

0

ret_forward_payload

Cell(0),Maybe, Payload

Payload for processing by owner with change/return coins

0

excess_address

Address(267)

Address to get excess gas

1

Cell(0) referral_cell

Cell with referral data

1

code

Uint(32)

TL-B Description (TBD)

This is a preliminary tl-b - subject to change

Tlb for POOL_SWAP
POOL_SWAP#a7fb58f8 
    target_jetton_wallet:MsgAddress
    sqrtPriceLimitX96:uint160
    minOutAmount:(VarUInteger 16)
    owner_address:MsgAddress
    multihop_cell:(Maybe ^[
        target_address:MsgAddress
        ok_forward_amount:(VarUInteger 16)
        ok_forward_payload:(Maybe ^Cell)
        ret_forward_amount:(VarUInteger 16)
        ret_forward_payload:(Maybe ^Cell)
        excess_address:MsgAddress
    ] ) 
    referral_cell:^[
        code:uint32
    ]  
= ContractMessages;

Last updated