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
42 changes: 42 additions & 0 deletions schema/interfaces/core/payout-nft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: dabi/v0
type: Interface
metadata:
name: "TF Core: Payout NFT"
link: "https://ton-ls-protocol.gitbook.io/ton-liquid-staking-protocol/protocol-components/common-components/payouts"
labels:
name: core_payout_nft
dton_parse_prefix: abi_core_payout_nft_
spec:
get_methods:
- method_name: get_nft_data
result:
- type: Int
labels:
name: inited
dton_type: UInt8
- type: Int
labels:
name: index
dton_type: UInt64
- type: Slice
labels:
name: collection_address
address: true
- type: Slice
labels:
name: owner_address
address: true
- type: Cell
labels:
name: amount_cell
skipParse: true

- method_name: get_bill_amount
result:
- type: Int
labels:
name: amount
dton_type: UInt256

selector:
by_methods: true
19 changes: 19 additions & 0 deletions schema/tests/core/payout-nft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: dabi/v0
type: TestCase
smart_contract:
name: core_payout_nft
address: "0:0001F090FE8B85BC64364DF250917FA3B722E844A828712BA33619FA96EBC2B6"
block:
mc_seqno: 43019939
parsed_info:
get_methods:
get_nft_data:
result:
- inited: -1
- index: 64
- collection_address: "EQBllVevtv2QYb30AXIyoLigZjBJafCXdAR1cZHVCNuhXl39"
- owner_address: "EQCOCa4MSQz-YcDe8aFvGlMsD4hTIHIMTRgIdqTuyEcbq2oR"

get_bill_amount:
result:
- amount: 31876967239