diff --git a/.changeset/docs-post-release-cli.md b/.changeset/docs-post-release-cli.md deleted file mode 100644 index da7d953..0000000 --- a/.changeset/docs-post-release-cli.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"radius-cli": patch ---- - -README: SBC has a built-in default address (from `radius-sdk`); `--sbc` / `RADIUS_SBC_ADDRESS` are only needed for another deployment. diff --git a/.changeset/docs-post-release-sdk.md b/.changeset/docs-post-release-sdk.md deleted file mode 100644 index 21b6058..0000000 --- a/.changeset/docs-post-release-sdk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"radius-sdk": patch ---- - -README: drop the PoC and unpublished-preview wording, add an entry-point table, and list every `src/` module. diff --git a/.changeset/sdk-erc20.md b/.changeset/sdk-erc20.md deleted file mode 100644 index ccba789..0000000 --- a/.changeset/sdk-erc20.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"radius-sdk": minor ---- - -Add ERC-20 interactions as viem actions, exported from `radius-sdk/client`: `getTokenMetadata`, `getAllowance`, `approve`, `transfer`, `transferFrom`, `getTransfers`, `watchTransfers` and the `erc20Actions({ token?, network? })` client extension. The default token is the payment asset of the client's chain when it is a Radius preset, or of `network`; any other chain must name a `token` (a `config` error, never a silent SBC address). Writes wait for the receipt; `wait: false` returns `status: 'pending'` (`TxResult.status` is now `'pending' | 'success' | 'reverted'`). `getTransfers` defaults to the last `MAX_LOG_RANGE` (1e6) blocks and splits wider ranges into sequential `eth_getLogs` calls; `watchTransfers` is an SDK poller with a resumable `fromBlock`, ordered at-least-once delivery, `onCheckpoint`, retry without gaps, and `transferKey` as the dedupe key. `createRadiusFetch(...)` gains `allowance(spender)` and `approve(spender, amount)`; every allowance change it makes (payment-time Permit2 approval, `approvePermit2()`, `approve()`) now passes through `onApprovalRequired`, whose `ApprovalRequest` carries a `reason` and an optional `offer`. diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 12fb1e9..607edf5 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,14 @@ # radius-cli +## 0.2.1 + +### Patch Changes + +- fd86bf6: README: SBC has a built-in default address (from `radius-sdk`); `--sbc` / `RADIUS_SBC_ADDRESS` are only needed for another deployment. +- Updated dependencies [fd86bf6] +- Updated dependencies [2dae8ec] + - radius-sdk@0.2.0 + ## 0.2.0 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 24740f8..75d7c96 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "radius-cli", - "version": "0.2.0", + "version": "0.2.1", "description": "CLI wallet for the Radius network \u2014 like cast, with a built-in account", "type": "module", "bin": { diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 0a63233..210465f 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,15 @@ # radius-sdk +## 0.2.0 + +### Minor Changes + +- 2dae8ec: Add ERC-20 interactions as viem actions, exported from `radius-sdk/client`: `getTokenMetadata`, `getAllowance`, `approve`, `transfer`, `transferFrom`, `getTransfers`, `watchTransfers` and the `erc20Actions({ token?, network? })` client extension. The default token is the payment asset of the client's chain when it is a Radius preset, or of `network`; any other chain must name a `token` (a `config` error, never a silent SBC address). Writes wait for the receipt; `wait: false` returns `status: 'pending'` (`TxResult.status` is now `'pending' | 'success' | 'reverted'`). `getTransfers` defaults to the last `MAX_LOG_RANGE` (1e6) blocks and splits wider ranges into sequential `eth_getLogs` calls; `watchTransfers` is an SDK poller with a resumable `fromBlock`, ordered at-least-once delivery, `onCheckpoint`, retry without gaps, and `transferKey` as the dedupe key. `createRadiusFetch(...)` gains `allowance(spender)` and `approve(spender, amount)`; every allowance change it makes (payment-time Permit2 approval, `approvePermit2()`, `approve()`) now passes through `onApprovalRequired`, whose `ApprovalRequest` carries a `reason` and an optional `offer`. + +### Patch Changes + +- fd86bf6: README: drop the PoC and unpublished-preview wording, add an entry-point table, and list every `src/` module. + ## 0.1.0 ### Minor Changes diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 58e646f..749cb2d 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "radius-sdk", - "version": "0.1.0", + "version": "0.2.0", "description": "Accept and make Radius payments over x402 v2 \u2014 Hono / Cloudflare Workers first", "type": "module", "license": "MIT",