diff --git a/schema/interfaces/core/payout-nft.yaml b/schema/interfaces/core/payout-nft.yaml new file mode 100644 index 0000000..eebca11 --- /dev/null +++ b/schema/interfaces/core/payout-nft.yaml @@ -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 \ No newline at end of file diff --git a/schema/tests/core/payout-nft.yaml b/schema/tests/core/payout-nft.yaml new file mode 100644 index 0000000..7a006f1 --- /dev/null +++ b/schema/tests/core/payout-nft.yaml @@ -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 \ No newline at end of file