@stacknet/keyutils 0.1.16 → 0.1.18

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.
@@ -65,6 +65,12 @@ interface ListingResult {
65
65
  currency: string;
66
66
  status: string;
67
67
  }
68
+ interface DirectTransferResult {
69
+ keyId: string;
70
+ fromUserId: string;
71
+ toUserId: string;
72
+ transferredAt: number;
73
+ }
68
74
  type Platform = 'ios' | 'android' | 'windows' | 'mac' | 'linux';
69
75
  interface PlatformDownload {
70
76
  platform: Platform;
@@ -72,13 +78,15 @@ interface PlatformDownload {
72
78
  url: string;
73
79
  compatible: boolean;
74
80
  }
75
- type KeyWidgetTab = 'buy' | 'use' | 'sell';
81
+ type KeyWidgetTab = 'buy' | 'use' | 'sell' | 'transfer';
76
82
  interface KeyUtilsConfig {
77
83
  apiBaseUrl: string;
78
84
  stackId?: string;
79
85
  stackName?: string;
80
86
  paymentMethods?: PaymentMethod[];
81
87
  merchantWallet?: string;
88
+ protocolTreasuryWallet?: string;
89
+ protocolFeeBps?: number;
82
90
  stripePublicKey?: string;
83
91
  theme?: 'light' | 'dark' | 'system';
84
92
  maxQuantity?: number;
@@ -94,6 +102,7 @@ interface KeyUtilsCallbacks {
94
102
  onPaymentStart?: (method: PaymentMethod) => void;
95
103
  onPaymentComplete?: (method: PaymentMethod, transactionId: string) => void;
96
104
  onListingCreated?: (listing: ListingResult) => void;
105
+ onTransferComplete?: (result: DirectTransferResult) => void;
97
106
  }
98
107
 
99
- export type { KeyListing, KeyUtilsCallbacks, KeyUtilsConfig, KeyWidgetTab, LedgerEntry, ListingResult, MintResult, NodeKeyInfo, PaymentMethod, Platform, PlatformDownload, PricingInfo };
108
+ export type { DirectTransferResult, KeyListing, KeyUtilsCallbacks, KeyUtilsConfig, KeyWidgetTab, LedgerEntry, ListingResult, MintResult, NodeKeyInfo, PaymentMethod, Platform, PlatformDownload, PricingInfo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacknet/keyutils",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Reusable components for buying and managing StackNet node keys",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",