Repository navigation
radius-sdk@0.2.0
·
115 commits
to main
since this release
Minor Changes
- 2dae8ec: Add ERC-20 interactions as viem actions, exported from
radius-sdk/client:getTokenMetadata,getAllowance,approve,transfer,transferFrom,getTransfers,watchTransfersand theerc20Actions({ token?, network? })client extension. The default token is the payment asset of the client's chain when it is a Radius preset, or ofnetwork; any other chain must name atoken(aconfigerror, never a silent SBC address). Writes wait for the receipt;wait: falsereturnsstatus: 'pending'(TxResult.statusis now'pending' | 'success' | 'reverted').getTransfersdefaults to the lastMAX_LOG_RANGE(1e6) blocks and splits wider ranges into sequentialeth_getLogscalls;watchTransfersis an SDK poller with a resumablefromBlock, ordered at-least-once delivery,onCheckpoint, retry without gaps, andtransferKeyas the dedupe key.createRadiusFetch(...)gainsallowance(spender)andapprove(spender, amount); every allowance change it makes (payment-time Permit2 approval,approvePermit2(),approve()) now passes throughonApprovalRequired, whoseApprovalRequestcarries areasonand an optionaloffer.
Patch Changes
- fd86bf6: README: drop the PoC and unpublished-preview wording, add an entry-point table, and list every
src/module.