@settlr/sdk 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +26 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -430,13 +430,17 @@ export async function POST(request: Request) {
430
430
 
431
431
  ### Webhook Events
432
432
 
433
- | Event | Description |
434
- | ------------------- | -------------------------- |
435
- | `payment.created` | Payment link was created |
436
- | `payment.completed` | Payment confirmed on-chain |
437
- | `payment.failed` | Payment failed |
438
- | `payment.expired` | Payment link expired |
439
- | `payment.refunded` | Payment was refunded |
433
+ | Event | Description |
434
+ | ------------------------ | -------------------------- |
435
+ | `payment.created` | Payment link was created |
436
+ | `payment.completed` | Payment confirmed on-chain |
437
+ | `payment.failed` | Payment failed |
438
+ | `payment.expired` | Payment link expired |
439
+ | `payment.refunded` | Payment was refunded |
440
+ | `subscription.created` | Subscription was created |
441
+ | `subscription.renewed` | Subscription was renewed |
442
+ | `subscription.cancelled` | Subscription was cancelled |
443
+ | `subscription.expired` | Subscription expired |
440
444
 
441
445
  ### Webhook Payload
442
446
 
@@ -480,10 +484,21 @@ shortenAddress("ABC...XYZ"); // "ABC...XYZ"
480
484
 
481
485
  ## Networks
482
486
 
483
- | Network | USDC Mint |
484
- | ------- | ---------------------------------------------- |
485
- | Devnet | `4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU` |
486
- | Mainnet | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` |
487
+ | Network | USDC Mint | USDT Mint |
488
+ | ------- | ---------------------------------------------- | ---------------------------------------------- |
489
+ | Devnet | `4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU` | `EJwZgeZrdC8TXTQbQBoL6bfuAnFUUy1PVCMB4DYPzVaS` |
490
+ | Mainnet | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` | `Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB` |
491
+
492
+ ## Supported Tokens
493
+
494
+ ```typescript
495
+ import { SUPPORTED_TOKENS, getTokenMint, getTokenDecimals } from "@settlr/sdk";
496
+
497
+ // Get token info
498
+ const usdcMint = getTokenMint("USDC", "mainnet-beta");
499
+ const usdtMint = getTokenMint("USDT", "mainnet-beta");
500
+ const decimals = getTokenDecimals("USDC"); // 6
501
+ ```
487
502
 
488
503
  ## License
489
504
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlr/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Settlr SDK - Accept Solana USDC payments in games and apps. Email checkout, gasless transactions, no wallet required. The easiest way to add crypto payments.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",