Used to handle the wrapping/unwrapping of WIP (Wrapped IP) tokens within Story.
Method | Type |
---|---|
deposit | (request: DepositRequest) |
request.amount
: The amount to deposit.Method | Type |
---|---|
withdraw | (request: WithdrawRequest) |
request.amount
: The amount to withdraw.Method | Type |
---|---|
approve | (request: ApproveRequest) |
request.amount
: The amount of WIP tokens to approve.request.spender
: The address that will use the WIP tokensMethod | Type |
---|---|
balanceOf | (addr: Address) => Promise<bigint> |
addr
: The address you want to check the baalnce for.amount
of WIP to a recipient to
.
Method | Type |
---|---|
transfer | (request: TransferRequest) |
request.to
: Who you’re transferring to.request.amount
: The amount to transfer.amount
of WIP from from
to a recipient to
.
Method | Type |
---|---|
transferFrom | (request: TransferFromRequest) |
request.to
: Who you’re transferring to.request.amount
: The amount to transfer.request.from
: The address to transfer from.