Pool Factory

pool_factory

Interface

getPoolFactoryData

(address, address, int, cell, cell) getPoolFactoryData ()

This function provides current state of the user account

Return Values

#
Type
Description

0

address

admin_address Address of the admin of this Pool Factory

1

address

router_address Address of the router that this Pool Factory is attached to

2

int

ton_price Amount of ton taken as fee during Pool Creation (so far usually 0)

3

cell

nftContent Content of Pool that would be presented as Nft Collection

4

cell

nftItemContent Content of Position NFT that would be presented as NFT

getWhitelist

(dict) getWhitelist ()

This function provides current whitelist of the wallets that are allowed to get more granular control on creation.

Return Values

#
Type
Description

0

dict

whitelist Dictionary with whitelist of the Pool Factory

Messages

POOL_FACTORY_CREATE_POOL

Opcode : 0x9e9a8f7f

Message that initiates pool creation

Path
Mnemonic
Type
Description

op

Uint(32),op

query_id

Uint(64)

queryid as of the TON documentation

jetton0Minter

Address(267)

Minter address of the first jetton

jetton1Minter

Address(267)

Minter address of the second jetton

initial_priceX96

Uint(160),PriceX96

Initial price for the pool

settings

Uint(16)

Value that describes pool configuration preset

0

Cell(0) wallet_cell

Cell With Wallets.

0

jetton0Wallet

Address(267)

Address of the jetton0 wallet of the Router

0

jetton1Wallet

Address(267)

Address of the jetton1 wallet of the Router

1

Cell(0) settings_cell

Cell With Settings for Whitelisted

1

fee

Uint(16)

1

tickSpacing

Uint(24)

1

active

Uint(1),Boolean

1

nftContent

Cell(1),Maybe

TL-B Description (TBD)

This is a preliminary tl-b - subject to change

Tlb for POOL_FACTORY_CREATE_POOL
POOL_FACTORY_CREATE_POOL#9e9a8f7f 
    query_id:uint64
    jetton0Minter:MsgAddress
    jetton1Minter:MsgAddress
    initial_priceX96:uint160
    settings:uint16
    wallet_cell:^[
        jetton0Wallet:MsgAddress
        jetton1Wallet:MsgAddress
    ]  
    settings_cell:^[
        fee:uint16
        tickSpacing:uint24
        active:uint1
        nftContent:(Maybe ^Cell)
    ]  
= ContractMessages;

Last updated