@tuwaio/nova-payments 0.2.0 → 0.3.0
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.
- package/README.md +3 -3
- package/dist/evm/index.cjs +1 -1
- package/dist/evm/index.d.cts +6 -3
- package/dist/evm/index.d.ts +6 -3
- package/dist/evm/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +11 -7
- package/dist/index.d.ts +11 -7
- package/dist/index.js +2 -2
- package/dist/{types-DkYd2XhD.d.cts → types-DOxwRLyU.d.cts} +17 -0
- package/dist/{types-DkYd2XhD.d.ts → types-DOxwRLyU.d.ts} +17 -0
- package/package.json +2 -2
|
@@ -296,6 +296,23 @@ interface PaymentsAdapter {
|
|
|
296
296
|
/** Called with the transaction of a batch that landed after the adapter gave up waiting (`sentUnconfirmed`). */
|
|
297
297
|
onLate?: (txKey: string) => void;
|
|
298
298
|
}) => Promise<string>;
|
|
299
|
+
/**
|
|
300
|
+
* Sends the call Quasar authorized for a gasless payment (`relayFromPage` of the checkout store) from a one-time
|
|
301
|
+
* account of the page: a key made in memory for this payment only, delegated (EIP-7702) to the account code Quasar's
|
|
302
|
+
* paymaster sponsors, whose user operation goes to the merchant's paymaster and bundler through `paymasterUrl`. The
|
|
303
|
+
* buyer's wallet is not asked again; the key is never stored or sent anywhere.
|
|
304
|
+
*
|
|
305
|
+
* @param params - The chain (CAIP-2), the call and the checkout's paymaster URL.
|
|
306
|
+
* @returns The hash of the user operation.
|
|
307
|
+
*/
|
|
308
|
+
sendOneTimeRelay?: (params: {
|
|
309
|
+
chainId: string;
|
|
310
|
+
call: {
|
|
311
|
+
to: string;
|
|
312
|
+
data: string;
|
|
313
|
+
};
|
|
314
|
+
paymasterUrl: string;
|
|
315
|
+
}) => Promise<string>;
|
|
299
316
|
}
|
|
300
317
|
|
|
301
318
|
export { canPayWithQr as c, connectedWallet as d, methodToken as e, familyOf as f, priceAdjustment as g, isWalletIconUrl as i, methodFamily as m, networkName as n, payerFor as p, walletLabel as w };
|
|
@@ -296,6 +296,23 @@ interface PaymentsAdapter {
|
|
|
296
296
|
/** Called with the transaction of a batch that landed after the adapter gave up waiting (`sentUnconfirmed`). */
|
|
297
297
|
onLate?: (txKey: string) => void;
|
|
298
298
|
}) => Promise<string>;
|
|
299
|
+
/**
|
|
300
|
+
* Sends the call Quasar authorized for a gasless payment (`relayFromPage` of the checkout store) from a one-time
|
|
301
|
+
* account of the page: a key made in memory for this payment only, delegated (EIP-7702) to the account code Quasar's
|
|
302
|
+
* paymaster sponsors, whose user operation goes to the merchant's paymaster and bundler through `paymasterUrl`. The
|
|
303
|
+
* buyer's wallet is not asked again; the key is never stored or sent anywhere.
|
|
304
|
+
*
|
|
305
|
+
* @param params - The chain (CAIP-2), the call and the checkout's paymaster URL.
|
|
306
|
+
* @returns The hash of the user operation.
|
|
307
|
+
*/
|
|
308
|
+
sendOneTimeRelay?: (params: {
|
|
309
|
+
chainId: string;
|
|
310
|
+
call: {
|
|
311
|
+
to: string;
|
|
312
|
+
data: string;
|
|
313
|
+
};
|
|
314
|
+
paymasterUrl: string;
|
|
315
|
+
}) => Promise<string>;
|
|
299
316
|
}
|
|
300
317
|
|
|
301
318
|
export { canPayWithQr as c, connectedWallet as d, methodToken as e, familyOf as f, priceAdjustment as g, isWalletIconUrl as i, methodFamily as m, networkName as n, payerFor as p, walletLabel as w };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuwaio/nova-payments",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Oleksandr Tkach",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@tuwaio/orbit-core": "^0.6.2",
|
|
123
123
|
"@tuwaio/orbit-solana": "^0.7.4",
|
|
124
124
|
"@tuwaio/pulsar-core": "^0.12.4",
|
|
125
|
-
"@tuwaio/quasar-sdk": "^0.
|
|
125
|
+
"@tuwaio/quasar-sdk": "^0.11.0",
|
|
126
126
|
"@tuwaio/satellite-core": "^0.12.0",
|
|
127
127
|
"@tuwaio/satellite-react": "^0.10.4",
|
|
128
128
|
"@types/react": "^19.3.0",
|