1"use strict";(self.webpackChunktonscan=self.webpackChunktonscan||[]).push([[5238],{45238:function(e){e.exports=JSON.parse('{"abi_schema_version":"1.0","alias_instantiations":[],"author":"TonFun","compiler_name":"tolk","compiler_version":"1.4.1","contract_name":"TonFunBclWalletV1","declarations":[{"description":"Master confirmation that unlocks V1; all bits after the opcode are ignored.","fields":[{"description":"Optional legacy tail ignored by the implementation.","name":"remainder","ty_idx":15}],"kind":"struct","name":"TonFunBclWalletV1UnlockConfirmation","prefix":{"prefix_len":32,"prefix_num":2832089063},"ty_idx":21},{"description":"Untagged body emitted to the owner after a V1 unlock confirmation.","fields":[],"kind":"struct","name":"TonFunBclWalletV1EmptyBody","ty_idx":31},{"description":"Persistent state shared by TonFun bonding-curve Jetton wallet revisions.","fields":[{"description":"Transfer lock status: zero is locked and one permits owner transfers.","name":"status","ty_idx":30},{"description":"Jetton balance held for the wallet owner, in base units.","name":"balance","ty_idx":6},{"description":"Owner authorized to transfer, burn, sell, or request unlocking.","name":"ownerAddress","ty_idx":7},{"description":"Jetton master that authenticates mint and unlock-confirmation messages.","name":"jettonMasterAddress","ty_idx":7}],"kind":"struct","name":"TonFunBclWalletStorage","ty_idx":29},{"description":"Owner-originated TEP-74 transfer request.","fields":[{"description":"Caller-selected identifier copied into downstream messages.","name":"queryId","ty_idx":11},{"description":"Jetton amount debited from the wallet balance.","name":"amount","ty_idx":6},{"description":"Owner address whose deterministic wallet receives the transfer.","name":"destination","ty_idx":7},{"description":"Optional destination for returned excess GRAM.","name":"responseDestination","ty_idx":13},{"description":"Optional referenced application payload ignored by the wallet.","name":"customPayload","ty_idx":14},{"description":"Nanograms forwarded to the destination owner notification.","name":"forwardTonAmount","ty_idx":6},{"description":"TEP-74 `Either Cell ^Cell` forward-payload tail.","name":"forwardPayload","ty_idx":15}],"kind":"struct","name":"TonFunBclWalletTransfer","prefix":{"prefix_len":32,"prefix_num":260734629},"ty_idx":12},{"description":"Wallet-to-wallet or master-to-wallet TEP-74 internal transfer.","fields":[{"description":"Query identifier copied from the originating transfer or mint operation.","name":"queryId","ty_idx":11},{"description":"Jetton amount credited to the wallet balance.","name":"amount","ty_idx":6},{"description":"Source owner, or `addr_none` for a master-originated mint.","name":"fromAddress","ty_idx":13},{"description":"Optional destination for returned excess GRAM.","name":"responseAddress","ty_idx":13},{"description":"Nanograms forwarded to the receiving owner.","name":"forwardTonAmount","ty_idx":6},{"description":"TEP-74 `Either Cell ^Cell` forward-payload tail.","name":"forwardPayload","ty_idx":15}],"kind":"struct","name":"TonFunBclWalletInternalTransfer","prefix":{"prefix_len":32,"prefix_num":395134233},"ty_idx":16},{"description":"Owner-originated TEP-74 burn request.","fields":[{"description":"Caller-selected identifier copied into the burn notification.","name":"queryId","ty_idx":11},{"description":"Jetton amount removed from the wallet balance.","name":"amount","ty_idx":6},{"description":"Optional destination for excess GRAM returned by the master.","name":"responseDestination","ty_idx":13},{"description":"Optional referenced application payload ignored by the wallet.","name":"customPayload","ty_idx":14}],"kind":"struct","name":"TonFunBclWalletBurn","prefix":{"prefix_len":32,"prefix_num":1499400124},"ty_idx":17},{"description":"Funding-only message accepted without changing wallet state.","fields":[{"description":"Arbitrary body tail ignored after the opcode.","name":"remainder","ty_idx":15}],"kind":"struct","name":"TonFunBclWalletTopUp","prefix":{"prefix_len":32,"prefix_num":3547469196},"ty_idx":18},{"description":"Owner request to sell Jettons through the bonding-curve master.","fields":[{"description":"Caller-selected identifier copied into the master notification.","name":"queryId","ty_idx":11},{"description":"Jetton amount removed from the wallet balance for sale.","name":"amount","ty_idx":6},{"description":"Minimum GRAM amount accepted from the bonding curve.","name":"minReceiveAmount","ty_idx":6},{"description":"Optional referenced referral data forwarded unchanged to the master.","name":"referral","ty_idx":14}],"kind":"struct","name":"TonFunBclWalletSell","prefix":{"prefix_len":32,"prefix_num":1948989144},"ty_idx":19},{"description":"Owner request to unlock a transfer-locked wallet through the master.","fields":[{"description":"Caller-selected identifier copied into the unlock callback.","name":"queryId","ty_idx":11}],"kind":"struct","name":"TonFunBclWalletUnlock","prefix":{"prefix_len":32,"prefix_num":2640700538},"ty_idx":20},{"description":"Transfer notification emitted to the receiving wallet owner.","fields":[{"description":"Query identifier copied from the internal transfer.","name":"queryId","ty_idx":11},{"description":"Jetton amount credited to the wallet.","name":"amount","ty_idx":6},{"description":"Source owner, or `addr_none` for a master-originated mint.","name":"senderAddress","ty_idx":13},{"description":"TEP-74 `Either Cell ^Cell` forward-payload tail.","name":"forwardPayload","ty_idx":15}],"kind":"struct","name":"TonFunBclWalletTransferNotification","prefix":{"prefix_len":32,"prefix_num":1935855772},"ty_idx":22},{"description":"Standard excess-value response.","fields":[{"description":"Query identifier associated with the returned GRAM.","name":"queryId","ty_idx":11}],"kind":"struct","name":"TonFunBclWalletExcesses","prefix":{"prefix_len":32,"prefix_num":3576854235},"ty_idx":23},{"description":"Burn notification emitted to the Jetton master.","fields":[{"description":"Query identifier copied from the burn request.","name":"queryId","ty_idx":11},{"description":"Burned Jetton amount.","name":"amount","ty_idx":6},{"description":"Wallet owner reported to the master.","name":"ownerAddress","ty_idx":7},{"description":"Optional destination for excess GRAM returned by the master.","name":"responseDestination","ty_idx":13}],"kind":"struct","name":"TonFunBclWalletBurnNotification","prefix":{"prefix_len":32,"prefix_num":2078119902},"ty_idx":24},{"description":"Sell notification emitted to the bonding-curve master.","fields":[{"description":"Query identifier copied from the sell request.","name":"queryId","ty_idx":11},{"description":"Jetton amount removed from the wallet balance.","name":"amount","ty_idx":6},{"description":"Minimum GRAM amount accepted by the owner.","name":"minReceiveAmount","ty_idx":6},{"description":"Wallet owner that initiated the sale.","name":"ownerAddress","ty_idx":7},{"description":"Optional referenced referral data copied from the request.","name":"referral","ty_idx":14}],"kind":"struct","name":"TonFunBclWalletSellNotification","prefix":{"prefix_len":32,"prefix_num":1760063742},"ty_idx":25},{"description":"Unlock callback emitted to the bonding-curve master.","fields":[{"description":"Query identifier copied from the owner request.","name":"queryId","ty_idx":11},{"description":"Wallet owner requesting transfer unlock.","name":"ownerAddress","ty_idx":7}],"kind":"struct","name":"TonFunBclWalletUnlockCallback","prefix":{"prefix_len":32,"prefix_num":1297626441},"ty_idx":26},{"description":"Bounced debit operation whose Jetton amount is restored to storage.","fields":[{"description":"Original operation: internal transfer, burn notification, or sell notification.","name":"originalOpcode","ty_idx":9},{"description":"Query identifier copied from the bounced operation.","name":"queryId","ty_idx":11},{"description":"Jetton amount restored to the wallet balance.","name":"amount","ty_idx":6},{"description":"Remaining fields of the original bounced body.","name":"tail","ty_idx":15}],"kind":"struct","name":"TonFunBclWalletBouncedKnownBody","prefix":{"prefix_len":32,"prefix_num":4294967295},"ty_idx":32},{"description":"Structured stack result returned by `get_wallet_data`.","fields":[{"description":"Current Jetton balance.","name":"balance","ty_idx":1},{"description":"Wallet owner address.","name":"ownerAddress","ty_idx":7},{"description":"Jetton master address.","name":"jettonMasterAddress","ty_idx":7}
1,{"description":"Current wallet code cell.","name":"jettonWalletCode","ty_idx":3}],"kind":"struct","name":"GetTonFunBclWalletDataReply","ty_idx":33},{"description":"Exit codes shared by TonFun BCL wallet revisions.","encoded_as_ty_idx":28,"kind":"enum","members":[{"description":"Transfer, burn, or sell would make the Jetton balance negative.","name":"InsufficientJettonBalance","value":"47"},{"description":"Attached GRAM does not cover the transfer, burn, sell, or unlock fee budget.","name":"NotEnoughGas","value":"48"},{"description":"TEP-74 forward payload has an invalid `Either` shape.","name":"InvalidMessage","value":"49"},{"description":"Caller is not the stored owner for a standard transfer or burn.","name":"NotOwner","value":"73"},{"description":"Destination owner belongs to an unsupported workchain.","name":"WrongWorkchain","value":"333"},{"description":"Caller is not the stored owner for a sell or unlock request.","name":"UnauthorizedCustomOperation","value":"705"},{"description":"Sell amount exceeds the stored Jetton balance.","name":"InsufficientSellBalance","value":"706"},{"description":"Unlock confirmation did not originate from the stored master.","name":"InvalidUnlockConfirmationSender","value":"707"},{"description":"Owner transfer is disabled while the wallet status is locked.","name":"TransfersLocked","value":"710"},{"description":"Internal transfer sender is neither the master nor a deterministic peer wallet.","name":"InvalidWalletSender","value":"713"},{"description":"Owner requested unlock after the wallet was already unlocked.","name":"WalletAlreadyUnlocked","value":"777"},{"description":"Incoming opcode or bounced operation is unsupported.","name":"UnsupportedOperation","value":"65535"}],"name":"TonFunBclWalletErrors","ty_idx":27}],"description":"TonFun BCL Wallet V1 stores a locked Jetton balance and relays sell and unlock requests to its master.","emitted_events":[],"get_methods":[{"description":"Return balance, owner, master, and current wallet code.","name":"get_wallet_data","parameters":[],"return_ty_idx":33,"tvm_method_id":97026},{"description":"Return the stored four-bit lock status.","name":"get_status","parameters":[],"return_ty_idx":30,"tvm_method_id":100881},{"description":"Return true only when owner transfers are enabled.","name":"get_transfers_enabled","parameters":[],"return_ty_idx":5,"tvm_method_id":96704}],"incoming_external":[],"incoming_messages":[{"body_ty_idx":12},{"body_ty_idx":16},{"body_ty_idx":17},{"body_ty_idx":18},{"body_ty_idx":19},{"body_ty_idx":20},{"body_ty_idx":21}],"outgoing_messages":[{"body_ty_idx":16},{"body_ty_idx":22},{"body_ty_idx":23},{"body_ty_idx":24},{"body_ty_idx":25},{"body_ty_idx":26}],"storage":{"storage_ty_idx":29},"struct_instantiations":[],"thrown_errors":[{"description":"Transfer, burn, or sell would make the Jetton balance negative.","err_code":47,"kind":"enum_member","name":"TonFunBclWalletErrors.InsufficientJettonBalance"},{"description":"Attached GRAM does not cover the transfer, burn, sell, or unlock fee budget.","err_code":48,"kind":"enum_member","name":"TonFunBclWalletErrors.NotEnoughGas"},{"description":"TEP-74 forward payload has an invalid `Either` shape.","err_code":49,"kind":"enum_member","name":"TonFunBclWalletErrors.InvalidMessage"},{"description":"Caller is not the stored owner for a standard transfer or burn.","err_code":73,"kind":"enum_member","name":"TonFunBclWalletErrors.NotOwner"},{"description":"Destination owner belongs to an unsupported workchain.","err_code":333,"kind":"enum_member","name":"TonFunBclWalletErrors.WrongWorkchain"},{"description":"Caller is not the stored owner for a sell or unlock request.","err_code":705,"kind":"enum_member","name":"TonFunBclWalletErrors.UnauthorizedCustomOperation"},{"description":"Sell amount exceeds the stored Jetton balance.","err_code":706,"kind":"enum_member","name":"TonFunBclWalletErrors.InsufficientSellBalance"},{"description":"Unlock confirmation did not originate from the stored master.","err_code":707,"kind":"enum_member","name":"TonFunBclWalletErrors.InvalidUnlockConfirmationSender"}
1,{"description":"Owner transfer is disabled while the wallet status is locked.","err_code":710,"kind":"enum_member","name":"TonFunBclWalletErrors.TransfersLocked"},{"description":"Internal transfer sender is neither the master nor a deterministic peer wallet.","err_code":713,"kind":"enum_member","name":"TonFunBclWalletErrors.InvalidWalletSender"},{"description":"Owner requested unlock after the wallet was already unlocked.","err_code":777,"kind":"enum_member","name":"TonFunBclWalletErrors.WalletAlreadyUnlocked"},{"description":"Incoming opcode or bounced operation is unsupported.","err_code":65535,"kind":"enum_member","name":"TonFunBclWalletErrors.UnsupportedOperation"}],"unique_types":[{"kind":"void"},{"kind":"int"},{"kind":"slice"},{"kind":"cell"},{"kind":"builder"},{"kind":"bool"},{"kind":"coins"},{"kind":"address"},{"kind":"intN","n":32},{"kind":"uintN","n":32},{"kind":"intN","n":64},{"kind":"uintN","n":64},{"kind":"StructRef","struct_name":"TonFunBclWalletTransfer"},{"kind":"addressOpt"},{"inner_ty_idx":3,"kind":"nullable"},{"kind":"remaining"},{"kind":"StructRef","struct_name":"TonFunBclWalletInternalTransfer"},{"kind":"StructRef","struct_name":"TonFunBclWalletBurn"},{"kind":"StructRef","struct_name":"TonFunBclWalletTopUp"},{"kind":"StructRef","struct_name":"TonFunBclWalletSell"},{"kind":"StructRef","struct_name":"TonFunBclWalletUnlock"},{"kind":"StructRef","struct_name":"TonFunBclWalletV1UnlockConfirmation"},{"kind":"StructRef","struct_name":"TonFunBclWalletTransferNotification"},{"kind":"StructRef","struct_name":"TonFunBclWalletExcesses"},{"kind":"StructRef","struct_name":"TonFunBclWalletBurnNotification"},{"kind":"StructRef","struct_name":"TonFunBclWalletSellNotification"},{"kind":"StructRef","struct_name":"TonFunBclWalletUnlockCallback"},{"enum_name":"TonFunBclWalletErrors","kind":"EnumRef"},{"kind":"uintN","n":16},{"kind":"StructRef","struct_name":"TonFunBclWalletStorage"},{"kind":"uintN","n":4},{"kind":"StructRef","struct_name":"TonFunBclWalletV1EmptyBody"},{"kind":"StructRef","struct_name":"TonFunBclWalletBouncedKnownBody"},{"kind":"StructRef","struct_name":"GetTonFunBclWalletDataReply"}],"version":"1"}')}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.