@tuwaio/nova-payments 0.0.0 → 0.1.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.
Files changed (45) hide show
  1. package/README.md +139 -12
  2. package/dist/OwnConnection-ET76SUMX.js +1 -0
  3. package/dist/OwnConnection-S5SQLIBT.cjs +1 -0
  4. package/dist/chunk-7FQXTBOY.cjs +1 -0
  5. package/dist/chunk-7HSDAUKN.js +1 -0
  6. package/dist/chunk-EMYW4LI7.js +1 -0
  7. package/dist/chunk-HRTXVGBJ.cjs +1 -0
  8. package/dist/de-DXFDX3GR.js +1 -0
  9. package/dist/de-TJ6BGSUG.cjs +1 -0
  10. package/dist/es-DCARFZ3R.js +1 -0
  11. package/dist/es-I4V64VEP.cjs +1 -0
  12. package/dist/evm/index.cjs +1 -1
  13. package/dist/evm/index.d.cts +14 -6
  14. package/dist/evm/index.d.ts +14 -6
  15. package/dist/evm/index.js +1 -1
  16. package/dist/i18n/index.cjs +1 -1
  17. package/dist/i18n/index.d.cts +4 -23
  18. package/dist/i18n/index.d.ts +4 -23
  19. package/dist/i18n/index.js +1 -1
  20. package/dist/index.cjs +2 -1
  21. package/dist/index.css +626 -61
  22. package/dist/index.d.cts +2181 -373
  23. package/dist/index.d.ts +2181 -373
  24. package/dist/index.js +2 -1
  25. package/dist/it-N36S2FXH.js +1 -0
  26. package/dist/it-RQJGHQPP.cjs +1 -0
  27. package/dist/locales-DP2jStIs.d.cts +1282 -0
  28. package/dist/locales-DP2jStIs.d.ts +1282 -0
  29. package/dist/solana/index.cjs +1 -1
  30. package/dist/solana/index.d.cts +7 -4
  31. package/dist/solana/index.d.ts +7 -4
  32. package/dist/solana/index.js +1 -1
  33. package/dist/{types-Bmj8ctqc.d.cts → types-Bp6JUt56.d.cts} +116 -7
  34. package/dist/{types-Bmj8ctqc.d.ts → types-Bp6JUt56.d.ts} +116 -7
  35. package/dist/uk-FFP4RBO4.js +1 -0
  36. package/dist/uk-HYM26VN5.cjs +1 -0
  37. package/dist/zhCN-EKUFCQTZ.js +1 -0
  38. package/dist/zhCN-Q5DO4HXO.cjs +1 -0
  39. package/package.json +39 -39
  40. package/dist/chunk-2GRM2VF3.cjs +0 -1
  41. package/dist/chunk-4TPU7WSP.cjs +0 -1
  42. package/dist/chunk-BK3GAYTJ.js +0 -1
  43. package/dist/chunk-XAUJNVKC.js +0 -1
  44. package/dist/locales-DtReb4Tp.d.cts +0 -588
  45. package/dist/locales-DtReb4Tp.d.ts +0 -588
@@ -1 +1 @@
1
- 'use strict';var chunk2GRM2VF3_cjs=require('../chunk-2GRM2VF3.cjs'),kit=require('@solana/kit'),system=require('@solana-program/system'),token=require('@solana-program/token'),orbitCore=require('@tuwaio/orbit-core'),orbitSolana=require('@tuwaio/orbit-solana'),pulsarCore=require('@tuwaio/pulsar-core');var y=kit.address("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),A=5000n,W=165n;function f(r){if(r.family!=="solana")throw new Error(`${r.chainId} is not a Solana chain`);return r}function g(r){if(!r.startsWith("solana:"))throw new Error(`${r} is not a Solana chain`);return orbitSolana.getCluster({cluster:r})}var k=(r,l)=>({...r,accounts:[...r.accounts??[],{address:kit.address(l),role:kit.AccountRole.READONLY}]});function V({rpcUrls:r}={}){let l=n=>orbitSolana.createSolanaClientWithCache({rpcUrlOrMoniker:g(n),rpcUrls:r}).rpc,T=async(n,t)=>{let{value:e}=await l(n).getAccountInfo(t,{encoding:"jsonParsed"}).send();if(!e)throw new Error(`${t} is not a token mint`);if(e.owner===token.TOKEN_PROGRAM_ADDRESS)return token.TOKEN_PROGRAM_ADDRESS;if(e.owner!==y)throw new Error(`${t} is not a token mint`);if(e.data.parsed?.info?.extensions?.find(o=>o.extension==="transferHook")?.state?.programId)throw new chunk2GRM2VF3_cjs.a("unsupported","A token with a transfer hook is paid with the QR code");return y},S=async n=>{let t=kit.address(n.token),e=await T(n.chainId,t),[a]=await token.findAssociatedTokenPda({owner:kit.address(n.to),mint:t,tokenProgram:e});return {mint:t,tokenProgram:e,account:a}},I=async(n,t)=>{let e=BigInt(n.amount);if(n.token==="native"){let c=system.getTransferSolInstruction({source:t,destination:kit.address(n.to),amount:e});return [k(c,n.reference)]}let{mint:a,tokenProgram:o,account:s}=await S(n),[d]=await token.findAssociatedTokenPda({owner:t.address,mint:a,tokenProgram:o}),u=token.getCreateAssociatedTokenIdempotentInstruction({payer:t,ata:s,owner:kit.address(n.to),mint:a,tokenProgram:o}),m=token.getTransferCheckedInstruction({source:d,mint:a,destination:s,authority:t,amount:e,decimals:n.decimals},{programAddress:o});return [u,k(m,n.reference)]};return {family:"solana",getBalance:async({chainId:n,account:t,token:e})=>{let a=l(n);if(e==="native")return (await a.getBalance(kit.address(t)).send()).value;let{value:o}=await a.getTokenAccountsByOwner(kit.address(t),{mint:kit.address(e)},{encoding:"jsonParsed"}).send();return o.reduce((s,d)=>s+BigInt(d.account.data.parsed.info.tokenAmount.amount),0n)},estimateFee:async({instructions:n})=>{let t=f(n);if(t.token==="native")return {amount:A,decimals:9,symbol:"SOL"};let{account:e}=await S(t),a=l(t.chainId),{value:o}=await a.getAccountInfo(e,{encoding:"base64"}).send(),s=o?0n:await a.getMinimumBalanceForRentExemption(W).send();return {amount:A+s,decimals:9,symbol:"SOL"}},sendTransfer:async({instructions:n,account:t,connection:e})=>{let a=f(n),o=e?.connectedAccount;if(!o||o.address!==t)throw new chunk2GRM2VF3_cjs.a("unsupported","No connected Solana account to sign with");let s;try{s=orbitSolana.createSolanaTransactionSendingSigner(o,g(a.chainId));}catch(c){throw new chunk2GRM2VF3_cjs.a("unsupported","The wallet cannot send this transaction",{cause:c})}let d=await I(a,s),{value:u}=await l(a.chainId).getLatestBlockhash().send(),m=kit.pipe(kit.createTransactionMessage({version:0}),c=>kit.setTransactionMessageFeePayerSigner(s,c),c=>kit.setTransactionMessageLifetimeUsingBlockhash(u,c),c=>kit.appendTransactionMessageInstructions(d,c));return kit.getBase58Decoder().decode(await kit.signAndSendTransactionMessageWithSigners(m))},explorerUrl:({chainId:n,txKey:t})=>orbitSolana.getSolanaExplorerLink(`/tx/${t}`,g(n)),pulsarTransaction:({txKey:n,instructions:t,account:e,connectorType:a,title:o,description:s,payload:d})=>{let u=f(t),m=r?.[g(u.chainId)];return {adapter:orbitCore.OrbitAdapter.SOLANA,tracker:pulsarCore.TransactionTracker.Solana,txKey:n,chainId:u.chainId,...m?{rpcUrl:m}:{},from:e,type:"payment",connectorType:a,title:o,description:s,payload:d,pending:true,localTimestamp:Math.floor(Date.now()/1e3),isTrackedModalOpen:false}}}}exports.paymentsSolanaAdapter=V;
1
+ 'use strict';var chunk7FQXTBOY_cjs=require('../chunk-7FQXTBOY.cjs'),kit=require('@solana/kit'),system=require('@solana-program/system'),token=require('@solana-program/token'),orbitCore=require('@tuwaio/orbit-core'),orbitSolana=require('@tuwaio/orbit-solana'),pulsarCore=require('@tuwaio/pulsar-core');var T=kit.address("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),I=5000n,W=165n;function k(s){if(s.family!=="solana")throw new Error(`${s.chainId} is not a Solana chain`);return s}function h(s){if(!s.startsWith("solana:"))throw new Error(`${s} is not a Solana chain`);return orbitSolana.getCluster({cluster:s})}var j=/blockhash ?not ?found/i;function q(s){let i=new Set;for(let d=s;typeof d=="object"&&d!==null&&!i.has(d);){if(i.add(d),kit.isSolanaError(d,kit.SOLANA_ERROR__TRANSACTION_ERROR__BLOCKHASH_NOT_FOUND))return true;let{message:g,cause:w}=d;if(typeof g=="string"&&j.test(g))return true;d=w;}return false}var O=(s,i)=>i?{...s,accounts:[...s.accounts??[],{address:kit.address(i),role:kit.AccountRole.READONLY}]}:s;function tn({rpcUrls:s}={}){let i=n=>orbitSolana.createSolanaClientWithCache({rpcUrlOrMoniker:h(n),rpcUrls:s}).rpc,d=async(n,t)=>{let{value:a}=await i(n).getAccountInfo(t,{encoding:"jsonParsed"}).send();if(!a)throw new Error(`${t} is not a token mint`);if(a.owner===token.TOKEN_PROGRAM_ADDRESS)return token.TOKEN_PROGRAM_ADDRESS;if(a.owner!==T)throw new Error(`${t} is not a token mint`);if(a.data.parsed?.info?.extensions?.find(o=>o.extension==="transferHook")?.state?.programId)throw new chunk7FQXTBOY_cjs.a("unsupported","A token with a transfer hook is paid with the QR code");return T},g=async n=>{let t=kit.address(n.token),a=await d(n.chainId,t),[e]=await token.findAssociatedTokenPda({owner:kit.address(n.to),mint:t,tokenProgram:a});return {mint:t,tokenProgram:a,account:e}},w=async(n,t)=>{let a=BigInt(n.amount);if(n.token==="native"){let r=system.getTransferSolInstruction({source:t,destination:kit.address(n.to),amount:a});return [O(r,n.reference)]}let{mint:e,tokenProgram:o,account:c}=await g(n),[p]=await token.findAssociatedTokenPda({owner:t.address,mint:e,tokenProgram:o}),u=token.getCreateAssociatedTokenIdempotentInstruction({payer:t,ata:c,owner:kit.address(n.to),mint:e,tokenProgram:o}),m=token.getTransferCheckedInstruction({source:p,mint:e,destination:c,authority:t,amount:a,decimals:n.decimals},{programAddress:o});return [u,O(m,n.reference)]};return {family:"solana",getBalance:async({chainId:n,account:t,token:a})=>{let e=i(n);if(a==="native")return (await e.getBalance(kit.address(t)).send()).value;let o=kit.address(a),{value:c}=await e.getTokenAccountsByOwner(kit.address(t),{mint:o},{encoding:"jsonParsed"}).send(),p=await d(n,o),[u]=await token.findAssociatedTokenPda({owner:kit.address(t),mint:o,tokenProgram:p}),m=c.find(r=>r.pubkey===u);return BigInt(m?.account.data.parsed.info.tokenAmount.amount??0)},estimateFee:async({instructions:n})=>{let t=k(n);if(t.token==="native")return {amount:I,decimals:9,symbol:"SOL"};let{account:a}=await g(t),e=i(t.chainId),{value:o}=await e.getAccountInfo(a,{encoding:"base64"}).send(),c=o?0n:await e.getMinimumBalanceForRentExemption(W).send();return {amount:I+c,decimals:9,symbol:"SOL"}},sendTransfer:async({instructions:n,account:t,connection:a})=>{let e=k(n),o=a?.connectedAccount;if(!o||o.address!==t)throw new chunk7FQXTBOY_cjs.a("unsupported","No connected Solana account to sign with");let c;try{c=orbitSolana.createSolanaTransactionSendingSigner(o,h(e.chainId));}catch(r){throw new chunk7FQXTBOY_cjs.a("unsupported","The wallet cannot send this transaction",{cause:r})}let p=await w(e,c),{value:u}=await i(e.chainId).getLatestBlockhash({commitment:"confirmed"}).send(),m=kit.pipe(kit.createTransactionMessage({version:0}),r=>kit.setTransactionMessageFeePayerSigner(c,r),r=>kit.setTransactionMessageLifetimeUsingBlockhash(u,r),r=>kit.appendTransactionMessageInstructions(p,r));try{return kit.getBase58Decoder().decode(await kit.signAndSendTransactionMessageWithSigners(m))}catch(r){throw q(r)?await i(e.chainId).isBlockhashValid(u.blockhash,{commitment:"confirmed"}).send().then(({value:P})=>P).catch(()=>true)?new chunk7FQXTBOY_cjs.a("wrongNetwork",`The wallet is not on ${e.chainId}`,{cause:r}):new chunk7FQXTBOY_cjs.a("failed","The transaction expired in the wallet",{cause:r}):r}},explorerUrl:({chainId:n,txKey:t})=>orbitSolana.getSolanaExplorerLink(`/tx/${t}`,h(n)),explorerAddressUrl:({chainId:n,address:t})=>orbitSolana.getSolanaExplorerLink(`/address/${t}`,h(n)),pulsarTransaction:({txKey:n,instructions:t,account:a,connectorType:e,title:o,description:c,payload:p})=>{let u=k(t),m=s?.[h(u.chainId)];return {adapter:orbitCore.OrbitAdapter.SOLANA,tracker:pulsarCore.TransactionTracker.Solana,txKey:n,chainId:u.chainId,...m?{rpcUrl:m}:{},from:a,type:"payment",connectorType:e,title:o,description:c,payload:p,pending:true,localTimestamp:Math.floor(Date.now()/1e3),isTrackedModalOpen:false}}}}exports.paymentsSolanaAdapter=tn;
@@ -1,5 +1,5 @@
1
1
  import { SolanaClusterMoniker } from '@tuwaio/orbit-solana';
2
- import { P as PaymentsAdapter } from '../types-Bmj8ctqc.cjs';
2
+ import { PaymentsAdapter } from '../index.cjs';
3
3
  import '@tuwaio/pulsar-core';
4
4
  import '@tuwaio/quasar-sdk/checkout';
5
5
 
@@ -12,8 +12,10 @@ interface PaymentsSolanaAdapterOptions {
12
12
  * The adapter that pays Solana methods of a Nova Payments checkout from the Wallet Standard wallet connected through
13
13
  * Satellite Connect. It reads balances and estimates fees on the network, and sends SOL with a system transfer or a
14
14
  * token with `transferChecked` to the merchant's associated token account (created when missing), in the token's own
15
- * program (Token or Token-2022), always with the Solana Pay reference key of the quote. A Token-2022 mint with a
16
- * transfer hook is refused: a Solana Pay wallet pays it with the QR code. Pass it in `adapters` of
15
+ * program (Token or Token-2022), with the Solana Pay reference key of the quote (a refund has none). A Token-2022
16
+ * mint with a transfer hook is refused: a Solana Pay wallet pays it with the QR code. A transfer the network refuses
17
+ * for an unknown blockhash, because the wallet sent it on another cluster (Solana wallets choose their network
18
+ * themselves), throws `PaymentWalletError` with the kind `wrongNetwork`: nothing was paid. Pass it in `adapters` of
17
19
  * `NovaPaymentsProvider`.
18
20
  *
19
21
  * Side effects: RPC reads (the URLs of `rpcUrls`, else the public endpoints of the clusters); wallet prompts.
@@ -35,4 +37,5 @@ interface PaymentsSolanaAdapterOptions {
35
37
  */
36
38
  declare function paymentsSolanaAdapter({ rpcUrls }?: PaymentsSolanaAdapterOptions): PaymentsAdapter;
37
39
 
38
- export { type PaymentsSolanaAdapterOptions, paymentsSolanaAdapter };
40
+ export { paymentsSolanaAdapter };
41
+ export type { PaymentsSolanaAdapterOptions };
@@ -1,5 +1,5 @@
1
1
  import { SolanaClusterMoniker } from '@tuwaio/orbit-solana';
2
- import { P as PaymentsAdapter } from '../types-Bmj8ctqc.js';
2
+ import { PaymentsAdapter } from '../index.js';
3
3
  import '@tuwaio/pulsar-core';
4
4
  import '@tuwaio/quasar-sdk/checkout';
5
5
 
@@ -12,8 +12,10 @@ interface PaymentsSolanaAdapterOptions {
12
12
  * The adapter that pays Solana methods of a Nova Payments checkout from the Wallet Standard wallet connected through
13
13
  * Satellite Connect. It reads balances and estimates fees on the network, and sends SOL with a system transfer or a
14
14
  * token with `transferChecked` to the merchant's associated token account (created when missing), in the token's own
15
- * program (Token or Token-2022), always with the Solana Pay reference key of the quote. A Token-2022 mint with a
16
- * transfer hook is refused: a Solana Pay wallet pays it with the QR code. Pass it in `adapters` of
15
+ * program (Token or Token-2022), with the Solana Pay reference key of the quote (a refund has none). A Token-2022
16
+ * mint with a transfer hook is refused: a Solana Pay wallet pays it with the QR code. A transfer the network refuses
17
+ * for an unknown blockhash, because the wallet sent it on another cluster (Solana wallets choose their network
18
+ * themselves), throws `PaymentWalletError` with the kind `wrongNetwork`: nothing was paid. Pass it in `adapters` of
17
19
  * `NovaPaymentsProvider`.
18
20
  *
19
21
  * Side effects: RPC reads (the URLs of `rpcUrls`, else the public endpoints of the clusters); wallet prompts.
@@ -35,4 +37,5 @@ interface PaymentsSolanaAdapterOptions {
35
37
  */
36
38
  declare function paymentsSolanaAdapter({ rpcUrls }?: PaymentsSolanaAdapterOptions): PaymentsAdapter;
37
39
 
38
- export { type PaymentsSolanaAdapterOptions, paymentsSolanaAdapter };
40
+ export { paymentsSolanaAdapter };
41
+ export type { PaymentsSolanaAdapterOptions };
@@ -1 +1 @@
1
- import {a}from'../chunk-XAUJNVKC.js';import {address,pipe,createTransactionMessage,setTransactionMessageFeePayerSigner,setTransactionMessageLifetimeUsingBlockhash,appendTransactionMessageInstructions,getBase58Decoder,signAndSendTransactionMessageWithSigners,AccountRole}from'@solana/kit';import {getTransferSolInstruction}from'@solana-program/system';import {findAssociatedTokenPda,getCreateAssociatedTokenIdempotentInstruction,getTransferCheckedInstruction,TOKEN_PROGRAM_ADDRESS}from'@solana-program/token';import {OrbitAdapter}from'@tuwaio/orbit-core';import {getSolanaExplorerLink,createSolanaTransactionSendingSigner,createSolanaClientWithCache,getCluster}from'@tuwaio/orbit-solana';import {TransactionTracker}from'@tuwaio/pulsar-core';var y=address("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),A=5000n,W=165n;function f(r){if(r.family!=="solana")throw new Error(`${r.chainId} is not a Solana chain`);return r}function g(r){if(!r.startsWith("solana:"))throw new Error(`${r} is not a Solana chain`);return getCluster({cluster:r})}var k=(r,l)=>({...r,accounts:[...r.accounts??[],{address:address(l),role:AccountRole.READONLY}]});function V({rpcUrls:r}={}){let l=n=>createSolanaClientWithCache({rpcUrlOrMoniker:g(n),rpcUrls:r}).rpc,T=async(n,t)=>{let{value:e}=await l(n).getAccountInfo(t,{encoding:"jsonParsed"}).send();if(!e)throw new Error(`${t} is not a token mint`);if(e.owner===TOKEN_PROGRAM_ADDRESS)return TOKEN_PROGRAM_ADDRESS;if(e.owner!==y)throw new Error(`${t} is not a token mint`);if(e.data.parsed?.info?.extensions?.find(o=>o.extension==="transferHook")?.state?.programId)throw new a("unsupported","A token with a transfer hook is paid with the QR code");return y},S=async n=>{let t=address(n.token),e=await T(n.chainId,t),[a]=await findAssociatedTokenPda({owner:address(n.to),mint:t,tokenProgram:e});return {mint:t,tokenProgram:e,account:a}},I=async(n,t)=>{let e=BigInt(n.amount);if(n.token==="native"){let c=getTransferSolInstruction({source:t,destination:address(n.to),amount:e});return [k(c,n.reference)]}let{mint:a,tokenProgram:o,account:s}=await S(n),[d]=await findAssociatedTokenPda({owner:t.address,mint:a,tokenProgram:o}),u=getCreateAssociatedTokenIdempotentInstruction({payer:t,ata:s,owner:address(n.to),mint:a,tokenProgram:o}),m=getTransferCheckedInstruction({source:d,mint:a,destination:s,authority:t,amount:e,decimals:n.decimals},{programAddress:o});return [u,k(m,n.reference)]};return {family:"solana",getBalance:async({chainId:n,account:t,token:e})=>{let a=l(n);if(e==="native")return (await a.getBalance(address(t)).send()).value;let{value:o}=await a.getTokenAccountsByOwner(address(t),{mint:address(e)},{encoding:"jsonParsed"}).send();return o.reduce((s,d)=>s+BigInt(d.account.data.parsed.info.tokenAmount.amount),0n)},estimateFee:async({instructions:n})=>{let t=f(n);if(t.token==="native")return {amount:A,decimals:9,symbol:"SOL"};let{account:e}=await S(t),a=l(t.chainId),{value:o}=await a.getAccountInfo(e,{encoding:"base64"}).send(),s=o?0n:await a.getMinimumBalanceForRentExemption(W).send();return {amount:A+s,decimals:9,symbol:"SOL"}},sendTransfer:async({instructions:n,account:t,connection:e})=>{let a$1=f(n),o=e?.connectedAccount;if(!o||o.address!==t)throw new a("unsupported","No connected Solana account to sign with");let s;try{s=createSolanaTransactionSendingSigner(o,g(a$1.chainId));}catch(c){throw new a("unsupported","The wallet cannot send this transaction",{cause:c})}let d=await I(a$1,s),{value:u}=await l(a$1.chainId).getLatestBlockhash().send(),m=pipe(createTransactionMessage({version:0}),c=>setTransactionMessageFeePayerSigner(s,c),c=>setTransactionMessageLifetimeUsingBlockhash(u,c),c=>appendTransactionMessageInstructions(d,c));return getBase58Decoder().decode(await signAndSendTransactionMessageWithSigners(m))},explorerUrl:({chainId:n,txKey:t})=>getSolanaExplorerLink(`/tx/${t}`,g(n)),pulsarTransaction:({txKey:n,instructions:t,account:e,connectorType:a,title:o,description:s,payload:d})=>{let u=f(t),m=r?.[g(u.chainId)];return {adapter:OrbitAdapter.SOLANA,tracker:TransactionTracker.Solana,txKey:n,chainId:u.chainId,...m?{rpcUrl:m}:{},from:e,type:"payment",connectorType:a,title:o,description:s,payload:d,pending:true,localTimestamp:Math.floor(Date.now()/1e3),isTrackedModalOpen:false}}}}export{V as paymentsSolanaAdapter};
1
+ import {a}from'../chunk-7HSDAUKN.js';import {address,pipe,createTransactionMessage,setTransactionMessageFeePayerSigner,setTransactionMessageLifetimeUsingBlockhash,appendTransactionMessageInstructions,getBase58Decoder,signAndSendTransactionMessageWithSigners,isSolanaError,SOLANA_ERROR__TRANSACTION_ERROR__BLOCKHASH_NOT_FOUND,AccountRole}from'@solana/kit';import {getTransferSolInstruction}from'@solana-program/system';import {findAssociatedTokenPda,TOKEN_PROGRAM_ADDRESS,getCreateAssociatedTokenIdempotentInstruction,getTransferCheckedInstruction}from'@solana-program/token';import {OrbitAdapter}from'@tuwaio/orbit-core';import {getSolanaExplorerLink,createSolanaTransactionSendingSigner,createSolanaClientWithCache,getCluster}from'@tuwaio/orbit-solana';import {TransactionTracker}from'@tuwaio/pulsar-core';var T=address("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),I=5000n,W=165n;function k(s){if(s.family!=="solana")throw new Error(`${s.chainId} is not a Solana chain`);return s}function h(s){if(!s.startsWith("solana:"))throw new Error(`${s} is not a Solana chain`);return getCluster({cluster:s})}var j=/blockhash ?not ?found/i;function q(s){let i=new Set;for(let d=s;typeof d=="object"&&d!==null&&!i.has(d);){if(i.add(d),isSolanaError(d,SOLANA_ERROR__TRANSACTION_ERROR__BLOCKHASH_NOT_FOUND))return true;let{message:g,cause:w}=d;if(typeof g=="string"&&j.test(g))return true;d=w;}return false}var O=(s,i)=>i?{...s,accounts:[...s.accounts??[],{address:address(i),role:AccountRole.READONLY}]}:s;function tn({rpcUrls:s}={}){let i=n=>createSolanaClientWithCache({rpcUrlOrMoniker:h(n),rpcUrls:s}).rpc,d=async(n,t)=>{let{value:a$1}=await i(n).getAccountInfo(t,{encoding:"jsonParsed"}).send();if(!a$1)throw new Error(`${t} is not a token mint`);if(a$1.owner===TOKEN_PROGRAM_ADDRESS)return TOKEN_PROGRAM_ADDRESS;if(a$1.owner!==T)throw new Error(`${t} is not a token mint`);if(a$1.data.parsed?.info?.extensions?.find(o=>o.extension==="transferHook")?.state?.programId)throw new a("unsupported","A token with a transfer hook is paid with the QR code");return T},g=async n=>{let t=address(n.token),a=await d(n.chainId,t),[e]=await findAssociatedTokenPda({owner:address(n.to),mint:t,tokenProgram:a});return {mint:t,tokenProgram:a,account:e}},w=async(n,t)=>{let a=BigInt(n.amount);if(n.token==="native"){let r=getTransferSolInstruction({source:t,destination:address(n.to),amount:a});return [O(r,n.reference)]}let{mint:e,tokenProgram:o,account:c}=await g(n),[p]=await findAssociatedTokenPda({owner:t.address,mint:e,tokenProgram:o}),u=getCreateAssociatedTokenIdempotentInstruction({payer:t,ata:c,owner:address(n.to),mint:e,tokenProgram:o}),m=getTransferCheckedInstruction({source:p,mint:e,destination:c,authority:t,amount:a,decimals:n.decimals},{programAddress:o});return [u,O(m,n.reference)]};return {family:"solana",getBalance:async({chainId:n,account:t,token:a})=>{let e=i(n);if(a==="native")return (await e.getBalance(address(t)).send()).value;let o=address(a),{value:c}=await e.getTokenAccountsByOwner(address(t),{mint:o},{encoding:"jsonParsed"}).send(),p=await d(n,o),[u]=await findAssociatedTokenPda({owner:address(t),mint:o,tokenProgram:p}),m=c.find(r=>r.pubkey===u);return BigInt(m?.account.data.parsed.info.tokenAmount.amount??0)},estimateFee:async({instructions:n})=>{let t=k(n);if(t.token==="native")return {amount:I,decimals:9,symbol:"SOL"};let{account:a}=await g(t),e=i(t.chainId),{value:o}=await e.getAccountInfo(a,{encoding:"base64"}).send(),c=o?0n:await e.getMinimumBalanceForRentExemption(W).send();return {amount:I+c,decimals:9,symbol:"SOL"}},sendTransfer:async({instructions:n,account:t,connection:a$1})=>{let e=k(n),o=a$1?.connectedAccount;if(!o||o.address!==t)throw new a("unsupported","No connected Solana account to sign with");let c;try{c=createSolanaTransactionSendingSigner(o,h(e.chainId));}catch(r){throw new a("unsupported","The wallet cannot send this transaction",{cause:r})}let p=await w(e,c),{value:u}=await i(e.chainId).getLatestBlockhash({commitment:"confirmed"}).send(),m=pipe(createTransactionMessage({version:0}),r=>setTransactionMessageFeePayerSigner(c,r),r=>setTransactionMessageLifetimeUsingBlockhash(u,r),r=>appendTransactionMessageInstructions(p,r));try{return getBase58Decoder().decode(await signAndSendTransactionMessageWithSigners(m))}catch(r){throw q(r)?await i(e.chainId).isBlockhashValid(u.blockhash,{commitment:"confirmed"}).send().then(({value:P})=>P).catch(()=>true)?new a("wrongNetwork",`The wallet is not on ${e.chainId}`,{cause:r}):new a("failed","The transaction expired in the wallet",{cause:r}):r}},explorerUrl:({chainId:n,txKey:t})=>getSolanaExplorerLink(`/tx/${t}`,h(n)),explorerAddressUrl:({chainId:n,address:t})=>getSolanaExplorerLink(`/address/${t}`,h(n)),pulsarTransaction:({txKey:n,instructions:t,account:a,connectorType:e,title:o,description:c,payload:p})=>{let u=k(t),m=s?.[h(u.chainId)];return {adapter:OrbitAdapter.SOLANA,tracker:TransactionTracker.Solana,txKey:n,chainId:u.chainId,...m?{rpcUrl:m}:{},from:a,type:"payment",connectorType:e,title:o,description:c,payload:p,pending:true,localTimestamp:Math.floor(Date.now()/1e3),isTrackedModalOpen:false}}}}export{tn as paymentsSolanaAdapter};
@@ -20,30 +20,60 @@ interface CheckoutWallet {
20
20
  connectorType: string;
21
21
  /** The wallet id for `WalletIcon` of `@tuwaio/nova-core` (`metamask`). */
22
22
  walletId: string;
23
- /** The wallet name to show. */
23
+ /** The wallet name to show: the name the wallet gives itself (`Switch Wallet`), see {@link walletLabel}. */
24
24
  name: string;
25
+ /**
26
+ * The icon the wallet gives itself, an image `data:` URI (EIP-6963, Wallet Standard) or an HTTPS URL: of the
27
+ * connection (the connector that connected), else of its wallet in the Satellite store; `undefined` when neither
28
+ * gives one the checkout can show, and the checkout shows the icon of `walletId`.
29
+ */
30
+ icon?: string;
25
31
  /** The Satellite Connect connection itself, for the chain adapters (the Solana adapter signs with its account). */
26
32
  connection: unknown;
27
33
  }
28
34
  /**
29
- * The name of a wallet from its connector type.
35
+ * The name of a wallet: the name it gives itself, as the wallet list of Nova Connect shows it (`Switch Wallet`);
36
+ * without one, the name Nova knows for its connector type (`evm:metamask` is `MetaMask`), else the connector type
37
+ * with a capital letter. The generic injected connector is always `Browser wallet`.
30
38
  *
31
39
  * @param connectorType - Connector type of Satellite Connect, for example `evm:metamask`.
40
+ * @param ownName - The name of the wallet's connector (`name` of the wagmi connector or the Wallet Standard wallet).
32
41
  * @returns The name, for example `MetaMask`.
33
42
  */
34
- declare function walletLabel(connectorType: string): string;
43
+ declare function walletLabel(connectorType: string, ownName?: string): string;
44
+ /**
45
+ * Whether the checkout shows an icon a wallet gives itself: an image `data:` URI (EIP-6963, Wallet Standard) or an
46
+ * HTTPS URL.
47
+ *
48
+ * @param icon - The icon.
49
+ * @returns `true` for an image `data:` URI or an HTTPS URL.
50
+ * @internal
51
+ */
52
+ declare const isWalletIconUrl: (icon: string) => boolean;
35
53
  /**
36
- * The connected wallet of Satellite Connect in CAIP identifiers.
54
+ * The family of a CAIP-2 chain.
55
+ *
56
+ * @param chainId - A CAIP-2 chain ID.
57
+ * @returns `eip155` or `solana`; `null` for another namespace.
58
+ */
59
+ declare const familyOf: (chainId: string) => PaymentFamily | null;
60
+ /**
61
+ * The connected wallet of Satellite Connect in CAIP identifiers, named and shown as the wallet calls itself.
37
62
  *
38
63
  * @param connection - The active connection of the Satellite store: `address`, `chainId` (an EVM number or a Solana
39
- * cluster), `connectorType`.
64
+ * cluster), `connectorType`, and the `icon` of the wallet when the adapter set it.
65
+ * @param connectors - The wallets of the Satellite store by adapter (`getConnectors()`): the one with the connector
66
+ * type of the connection gives the name (see {@link walletLabel}); of several such wallets, the one with the icon of
67
+ * the connection. When it is not listed, the name comes from the connector type. The icon is the connection's, else
68
+ * the listed wallet's, when it is an image `data:` URI or an HTTPS URL.
40
69
  * @returns The wallet, or `null` without a connection or with a chain the checkout cannot read.
41
70
  */
42
71
  declare function connectedWallet(connection: {
43
72
  address: string;
44
73
  chainId: string | number;
45
74
  connectorType: string;
46
- } | null | undefined): CheckoutWallet | null;
75
+ icon?: string;
76
+ } | null | undefined, connectors?: Partial<Record<string, unknown[]>>): CheckoutWallet | null;
47
77
  /**
48
78
  * The chain family of a payment method.
49
79
  *
@@ -189,6 +219,22 @@ interface PaymentsAdapter {
189
219
  typedData: TransferAuthorizationTypedData;
190
220
  account: string;
191
221
  }) => Promise<string>;
222
+ /**
223
+ * Signs a message with `personal_sign` (EIP-191), with the wallet's prompt: the EIP-4361 message by which the paying
224
+ * wallet confirms the invoice before an EVM payment it sends itself (`confirmPayer` of the checkout store of
225
+ * `@tuwaio/quasar-sdk/checkout`). A free signature that moves no funds; a smart wallet signs it through its own flow
226
+ * (ERC-1271, ERC-6492), often with a passkey. Without it the checkout cannot pay methods that need the confirmation
227
+ * from this wallet.
228
+ *
229
+ * @param params - The message exactly as Quasar wrote it, the signer, and the CAIP-2 network the message names (the
230
+ * wallet is on it already: the checkout switches it first).
231
+ * @returns The signature, as hex.
232
+ */
233
+ signMessage?: (params: {
234
+ message: string;
235
+ account: string;
236
+ chainId: string;
237
+ }) => Promise<string>;
192
238
  /**
193
239
  * Sends the sponsored calls of a gasless quote with `wallet_sendCalls` and the paymaster, with the wallet's prompt,
194
240
  * and waits for the transaction that carries them.
@@ -207,6 +253,38 @@ interface PaymentsAdapter {
207
253
  chainId: string;
208
254
  txKey: string;
209
255
  }) => string | undefined;
256
+ /**
257
+ * The link of a wallet address on a block explorer of its chain.
258
+ *
259
+ * @param params - The chain and the address.
260
+ * @returns The link, or `undefined` when the chain has no known explorer.
261
+ */
262
+ explorerAddressUrl?: (params: {
263
+ chainId: string;
264
+ address: string;
265
+ }) => string | undefined;
266
+ /**
267
+ * What the account is for automatic payments, read before asking for the permission: `smart` has code on the network,
268
+ * `upgradable` is a plain account its wallet can switch to a smart account, `unknown` says nothing either way. Quasar
269
+ * decides in the end: it refuses a wallet that could never be charged.
270
+ *
271
+ * @param params - The network and the account.
272
+ * @returns The kind.
273
+ */
274
+ smartAccountStatus?: (params: {
275
+ chainId: string;
276
+ account: string;
277
+ }) => Promise<'smart' | 'upgradable' | 'unknown'>;
278
+ /**
279
+ * Has the wallet switch a plain account to its smart account (`upgradable` of {@link PaymentsAdapter.smartAccountStatus})
280
+ * and waits until the network includes it. The wallet asks the buyer and the buyer pays the network fee.
281
+ *
282
+ * @param params - The network and the account.
283
+ */
284
+ upgradeToSmartAccount?: (params: {
285
+ chainId: string;
286
+ account: string;
287
+ }) => Promise<void>;
210
288
  /**
211
289
  * Asks the wallet for the ERC-7715 permission of a subscription's automatic payments, with the wallet's prompt.
212
290
  *
@@ -217,6 +295,22 @@ interface PaymentsAdapter {
217
295
  request: PermissionRequest;
218
296
  account: string;
219
297
  }) => Promise<Omit<GrantPermissionParams, 'payer'>>;
298
+ /**
299
+ * Sends the transaction that revokes the permission of a subscription's automatic payments, with the wallet's prompt,
300
+ * and waits until the network includes it. The wallet pays its network fee.
301
+ *
302
+ * @param params - The transaction of the checkout's auto-charge offer, its CAIP-2 chain, the account that granted the
303
+ * permission and what to call once the wallet has sent it: a failure while waiting must not send it again.
304
+ */
305
+ revokePermission?: (params: {
306
+ revocation: {
307
+ to: string;
308
+ data: string;
309
+ };
310
+ chainId: string;
311
+ account: string;
312
+ onSent?: () => void;
313
+ }) => Promise<void>;
220
314
  /**
221
315
  * Describes a sent payment as a pending transaction of `@tuwaio/pulsar-core`, so that the app's Pulsar store tracks
222
316
  * it (and Nova Transactions shows its toast) once the checkout closes.
@@ -225,6 +319,16 @@ interface PaymentsAdapter {
225
319
  * @returns The pending transaction, for `injectExternalPendingTxs` of the Pulsar store.
226
320
  */
227
321
  pulsarTransaction?: (params: PulsarTransactionParams) => Transaction;
322
+ /**
323
+ * Follows a batch the wallet took before the page was reloaded, until its transaction comes or `until` passes.
324
+ *
325
+ * @param params - The batch, until when to follow it (a timestamp) and what to call with its transaction.
326
+ */
327
+ followSponsoredCalls?: (params: {
328
+ batchId: string;
329
+ until: number;
330
+ onLate: (txKey: string) => void;
331
+ }) => void;
228
332
  sendSponsoredCalls?: (params: {
229
333
  calls: {
230
334
  to: string;
@@ -235,7 +339,12 @@ interface PaymentsAdapter {
235
339
  chainId: string;
236
340
  account: string;
237
341
  onSent?: () => void;
342
+ /** Called with the ID of the batch as soon as the wallet took it, before it has a transaction. */
343
+ onAccepted?: (batchId: string) => void;
344
+ /** Called with the transaction of a batch that landed after the adapter gave up waiting (`sentUnconfirmed`). */
345
+ onLate?: (txKey: string) => void;
238
346
  }) => Promise<string>;
239
347
  }
240
348
 
241
- export { type CheckoutWallet as C, type NativeFee as N, type PaymentsAdapter as P, type PaymentFamily as a, type PulsarTransactionParams as b, canPayWithQr as c, connectedWallet as d, methodToken as e, priceAdjustment as f, methodFamily as m, networkName as n, payerFor as p, walletLabel as w };
349
+ 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 };
350
+ export type { CheckoutWallet as C, NativeFee as N, PaymentsAdapter as P, PaymentFamily as a, PulsarTransactionParams as b };
@@ -20,30 +20,60 @@ interface CheckoutWallet {
20
20
  connectorType: string;
21
21
  /** The wallet id for `WalletIcon` of `@tuwaio/nova-core` (`metamask`). */
22
22
  walletId: string;
23
- /** The wallet name to show. */
23
+ /** The wallet name to show: the name the wallet gives itself (`Switch Wallet`), see {@link walletLabel}. */
24
24
  name: string;
25
+ /**
26
+ * The icon the wallet gives itself, an image `data:` URI (EIP-6963, Wallet Standard) or an HTTPS URL: of the
27
+ * connection (the connector that connected), else of its wallet in the Satellite store; `undefined` when neither
28
+ * gives one the checkout can show, and the checkout shows the icon of `walletId`.
29
+ */
30
+ icon?: string;
25
31
  /** The Satellite Connect connection itself, for the chain adapters (the Solana adapter signs with its account). */
26
32
  connection: unknown;
27
33
  }
28
34
  /**
29
- * The name of a wallet from its connector type.
35
+ * The name of a wallet: the name it gives itself, as the wallet list of Nova Connect shows it (`Switch Wallet`);
36
+ * without one, the name Nova knows for its connector type (`evm:metamask` is `MetaMask`), else the connector type
37
+ * with a capital letter. The generic injected connector is always `Browser wallet`.
30
38
  *
31
39
  * @param connectorType - Connector type of Satellite Connect, for example `evm:metamask`.
40
+ * @param ownName - The name of the wallet's connector (`name` of the wagmi connector or the Wallet Standard wallet).
32
41
  * @returns The name, for example `MetaMask`.
33
42
  */
34
- declare function walletLabel(connectorType: string): string;
43
+ declare function walletLabel(connectorType: string, ownName?: string): string;
44
+ /**
45
+ * Whether the checkout shows an icon a wallet gives itself: an image `data:` URI (EIP-6963, Wallet Standard) or an
46
+ * HTTPS URL.
47
+ *
48
+ * @param icon - The icon.
49
+ * @returns `true` for an image `data:` URI or an HTTPS URL.
50
+ * @internal
51
+ */
52
+ declare const isWalletIconUrl: (icon: string) => boolean;
35
53
  /**
36
- * The connected wallet of Satellite Connect in CAIP identifiers.
54
+ * The family of a CAIP-2 chain.
55
+ *
56
+ * @param chainId - A CAIP-2 chain ID.
57
+ * @returns `eip155` or `solana`; `null` for another namespace.
58
+ */
59
+ declare const familyOf: (chainId: string) => PaymentFamily | null;
60
+ /**
61
+ * The connected wallet of Satellite Connect in CAIP identifiers, named and shown as the wallet calls itself.
37
62
  *
38
63
  * @param connection - The active connection of the Satellite store: `address`, `chainId` (an EVM number or a Solana
39
- * cluster), `connectorType`.
64
+ * cluster), `connectorType`, and the `icon` of the wallet when the adapter set it.
65
+ * @param connectors - The wallets of the Satellite store by adapter (`getConnectors()`): the one with the connector
66
+ * type of the connection gives the name (see {@link walletLabel}); of several such wallets, the one with the icon of
67
+ * the connection. When it is not listed, the name comes from the connector type. The icon is the connection's, else
68
+ * the listed wallet's, when it is an image `data:` URI or an HTTPS URL.
40
69
  * @returns The wallet, or `null` without a connection or with a chain the checkout cannot read.
41
70
  */
42
71
  declare function connectedWallet(connection: {
43
72
  address: string;
44
73
  chainId: string | number;
45
74
  connectorType: string;
46
- } | null | undefined): CheckoutWallet | null;
75
+ icon?: string;
76
+ } | null | undefined, connectors?: Partial<Record<string, unknown[]>>): CheckoutWallet | null;
47
77
  /**
48
78
  * The chain family of a payment method.
49
79
  *
@@ -189,6 +219,22 @@ interface PaymentsAdapter {
189
219
  typedData: TransferAuthorizationTypedData;
190
220
  account: string;
191
221
  }) => Promise<string>;
222
+ /**
223
+ * Signs a message with `personal_sign` (EIP-191), with the wallet's prompt: the EIP-4361 message by which the paying
224
+ * wallet confirms the invoice before an EVM payment it sends itself (`confirmPayer` of the checkout store of
225
+ * `@tuwaio/quasar-sdk/checkout`). A free signature that moves no funds; a smart wallet signs it through its own flow
226
+ * (ERC-1271, ERC-6492), often with a passkey. Without it the checkout cannot pay methods that need the confirmation
227
+ * from this wallet.
228
+ *
229
+ * @param params - The message exactly as Quasar wrote it, the signer, and the CAIP-2 network the message names (the
230
+ * wallet is on it already: the checkout switches it first).
231
+ * @returns The signature, as hex.
232
+ */
233
+ signMessage?: (params: {
234
+ message: string;
235
+ account: string;
236
+ chainId: string;
237
+ }) => Promise<string>;
192
238
  /**
193
239
  * Sends the sponsored calls of a gasless quote with `wallet_sendCalls` and the paymaster, with the wallet's prompt,
194
240
  * and waits for the transaction that carries them.
@@ -207,6 +253,38 @@ interface PaymentsAdapter {
207
253
  chainId: string;
208
254
  txKey: string;
209
255
  }) => string | undefined;
256
+ /**
257
+ * The link of a wallet address on a block explorer of its chain.
258
+ *
259
+ * @param params - The chain and the address.
260
+ * @returns The link, or `undefined` when the chain has no known explorer.
261
+ */
262
+ explorerAddressUrl?: (params: {
263
+ chainId: string;
264
+ address: string;
265
+ }) => string | undefined;
266
+ /**
267
+ * What the account is for automatic payments, read before asking for the permission: `smart` has code on the network,
268
+ * `upgradable` is a plain account its wallet can switch to a smart account, `unknown` says nothing either way. Quasar
269
+ * decides in the end: it refuses a wallet that could never be charged.
270
+ *
271
+ * @param params - The network and the account.
272
+ * @returns The kind.
273
+ */
274
+ smartAccountStatus?: (params: {
275
+ chainId: string;
276
+ account: string;
277
+ }) => Promise<'smart' | 'upgradable' | 'unknown'>;
278
+ /**
279
+ * Has the wallet switch a plain account to its smart account (`upgradable` of {@link PaymentsAdapter.smartAccountStatus})
280
+ * and waits until the network includes it. The wallet asks the buyer and the buyer pays the network fee.
281
+ *
282
+ * @param params - The network and the account.
283
+ */
284
+ upgradeToSmartAccount?: (params: {
285
+ chainId: string;
286
+ account: string;
287
+ }) => Promise<void>;
210
288
  /**
211
289
  * Asks the wallet for the ERC-7715 permission of a subscription's automatic payments, with the wallet's prompt.
212
290
  *
@@ -217,6 +295,22 @@ interface PaymentsAdapter {
217
295
  request: PermissionRequest;
218
296
  account: string;
219
297
  }) => Promise<Omit<GrantPermissionParams, 'payer'>>;
298
+ /**
299
+ * Sends the transaction that revokes the permission of a subscription's automatic payments, with the wallet's prompt,
300
+ * and waits until the network includes it. The wallet pays its network fee.
301
+ *
302
+ * @param params - The transaction of the checkout's auto-charge offer, its CAIP-2 chain, the account that granted the
303
+ * permission and what to call once the wallet has sent it: a failure while waiting must not send it again.
304
+ */
305
+ revokePermission?: (params: {
306
+ revocation: {
307
+ to: string;
308
+ data: string;
309
+ };
310
+ chainId: string;
311
+ account: string;
312
+ onSent?: () => void;
313
+ }) => Promise<void>;
220
314
  /**
221
315
  * Describes a sent payment as a pending transaction of `@tuwaio/pulsar-core`, so that the app's Pulsar store tracks
222
316
  * it (and Nova Transactions shows its toast) once the checkout closes.
@@ -225,6 +319,16 @@ interface PaymentsAdapter {
225
319
  * @returns The pending transaction, for `injectExternalPendingTxs` of the Pulsar store.
226
320
  */
227
321
  pulsarTransaction?: (params: PulsarTransactionParams) => Transaction;
322
+ /**
323
+ * Follows a batch the wallet took before the page was reloaded, until its transaction comes or `until` passes.
324
+ *
325
+ * @param params - The batch, until when to follow it (a timestamp) and what to call with its transaction.
326
+ */
327
+ followSponsoredCalls?: (params: {
328
+ batchId: string;
329
+ until: number;
330
+ onLate: (txKey: string) => void;
331
+ }) => void;
228
332
  sendSponsoredCalls?: (params: {
229
333
  calls: {
230
334
  to: string;
@@ -235,7 +339,12 @@ interface PaymentsAdapter {
235
339
  chainId: string;
236
340
  account: string;
237
341
  onSent?: () => void;
342
+ /** Called with the ID of the batch as soon as the wallet took it, before it has a transaction. */
343
+ onAccepted?: (batchId: string) => void;
344
+ /** Called with the transaction of a batch that landed after the adapter gave up waiting (`sentUnconfirmed`). */
345
+ onLate?: (txKey: string) => void;
238
346
  }) => Promise<string>;
239
347
  }
240
348
 
241
- export { type CheckoutWallet as C, type NativeFee as N, type PaymentsAdapter as P, type PaymentFamily as a, type PulsarTransactionParams as b, canPayWithQr as c, connectedWallet as d, methodToken as e, priceAdjustment as f, methodFamily as m, networkName as n, payerFor as p, walletLabel as w };
349
+ 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 };
350
+ export type { CheckoutWallet as C, NativeFee as N, PaymentsAdapter as P, PaymentFamily as a, PulsarTransactionParams as b };