Module-level declarations

Functions

Link copied to clipboard

Calculates the account details for the account that will be registered using the ft4.ras_transfer_open strategy.

Link copied to clipboard
@extend(strategy) function (): map<text, _strategy>
Link copied to clipboard
function transfer_action(account: account, strategy_params_gtv: gtv)

The action for the transfer-open _strategy. Transfers the funds to the account.

Operations

Link copied to clipboard
@mount("ft4.ras_transfer_open") operation ras_transfer_open(main: auth_descriptor, disposable: auth_descriptor?)

The operation that defines the transfer-open strategy. The open strategy will allow anybody to register an account by simply sending a certain amount of tokens to that account, as long as the tokens sent are more than a certain minimum amount.

In most cases, this is not something that is desirable for production dapps, as it will expose the dapp to spam account creation, since no costs are associated.

Throws if the next operation in the transaction is not accepted by require_register_account_next_operation