@crossmint/wallets-sdk 1.0.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 (81) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -0
  3. package/dist/api/client.cjs +1 -0
  4. package/dist/api/client.d.cts +49 -0
  5. package/dist/api/client.d.ts +49 -0
  6. package/dist/api/client.js +1 -0
  7. package/dist/api/gen/client.gen.cjs +1 -0
  8. package/dist/api/gen/client.gen.d.cts +16 -0
  9. package/dist/api/gen/client.gen.d.ts +16 -0
  10. package/dist/api/gen/client.gen.js +1 -0
  11. package/dist/api/gen/index.cjs +1 -0
  12. package/dist/api/gen/index.d.cts +3 -0
  13. package/dist/api/gen/index.d.ts +3 -0
  14. package/dist/api/gen/index.js +1 -0
  15. package/dist/api/gen/sdk.gen.cjs +1 -0
  16. package/dist/api/gen/sdk.gen.d.cts +181 -0
  17. package/dist/api/gen/sdk.gen.d.ts +181 -0
  18. package/dist/api/gen/sdk.gen.js +1 -0
  19. package/dist/api/gen/types.gen.cjs +1 -0
  20. package/dist/api/gen/types.gen.d.cts +3755 -0
  21. package/dist/api/gen/types.gen.d.ts +3755 -0
  22. package/dist/api/gen/types.gen.js +1 -0
  23. package/dist/api/index.cjs +1 -0
  24. package/dist/api/index.d.cts +3 -0
  25. package/dist/api/index.d.ts +3 -0
  26. package/dist/api/index.js +1 -0
  27. package/dist/chunk-22GIA4MK.js +1 -0
  28. package/dist/chunk-3ENSZP74.cjs +1 -0
  29. package/dist/chunk-5M7IRODB.js +1 -0
  30. package/dist/chunk-6TDMYZSP.js +1 -0
  31. package/dist/chunk-A7F5DWC7.js +0 -0
  32. package/dist/chunk-APYZEG33.js +1 -0
  33. package/dist/chunk-CK4JCQY6.cjs +1 -0
  34. package/dist/chunk-DBOB7H6W.cjs +1 -0
  35. package/dist/chunk-EY4BQMWT.js +1 -0
  36. package/dist/chunk-ICE64YWF.js +1 -0
  37. package/dist/chunk-MSK53SDP.js +1 -0
  38. package/dist/chunk-O5UBTDCJ.cjs +1 -0
  39. package/dist/chunk-OOKBOMFJ.cjs +1 -0
  40. package/dist/chunk-RUIBT3JV.cjs +1 -0
  41. package/dist/chunk-STYSP6KL.cjs +1 -0
  42. package/dist/chunk-U2WTEWN7.cjs +1 -0
  43. package/dist/chunk-WVCL7F3L.js +1 -0
  44. package/dist/chunk-XPMCPXI3.cjs +1 -0
  45. package/dist/chunk-YMRXMNME.js +0 -0
  46. package/dist/chunk-Z4FSGH26.js +1 -0
  47. package/dist/chunk-Z4XNQ4N5.cjs +1 -0
  48. package/dist/chunk-Z6JFF3HR.cjs +1 -0
  49. package/dist/evm/chains.cjs +1 -0
  50. package/dist/evm/chains.d.cts +9 -0
  51. package/dist/evm/chains.d.ts +9 -0
  52. package/dist/evm/chains.js +1 -0
  53. package/dist/evm/index.cjs +1 -0
  54. package/dist/evm/index.d.cts +6 -0
  55. package/dist/evm/index.d.ts +6 -0
  56. package/dist/evm/index.js +1 -0
  57. package/dist/evm/wallet.cjs +1 -0
  58. package/dist/evm/wallet.d.cts +48 -0
  59. package/dist/evm/wallet.d.ts +48 -0
  60. package/dist/evm/wallet.js +1 -0
  61. package/dist/index.cjs +1 -0
  62. package/dist/index.d.cts +2 -0
  63. package/dist/index.d.ts +2 -0
  64. package/dist/index.js +1 -0
  65. package/dist/sdk.cjs +1 -0
  66. package/dist/sdk.d.cts +35 -0
  67. package/dist/sdk.d.ts +35 -0
  68. package/dist/sdk.js +1 -0
  69. package/dist/solana/index.cjs +1 -0
  70. package/dist/solana/index.d.cts +5 -0
  71. package/dist/solana/index.d.ts +5 -0
  72. package/dist/solana/index.js +1 -0
  73. package/dist/solana/wallet.cjs +1 -0
  74. package/dist/solana/wallet.d.cts +33 -0
  75. package/dist/solana/wallet.d.ts +33 -0
  76. package/dist/solana/wallet.js +1 -0
  77. package/dist/utils/constants.cjs +1 -0
  78. package/dist/utils/constants.d.cts +5 -0
  79. package/dist/utils/constants.d.ts +5 -0
  80. package/dist/utils/constants.js +1 -0
  81. package/package.json +37 -0
@@ -0,0 +1 @@
1
+ import"../../chunk-YMRXMNME.js";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-RUIBT3JV.cjs');var _chunkU2WTEWN7cjs = require('../chunk-U2WTEWN7.cjs');require('../chunk-O5UBTDCJ.cjs');require('../chunk-CK4JCQY6.cjs');exports.ApiClient = _chunkU2WTEWN7cjs.a;
@@ -0,0 +1,3 @@
1
+ export { ApiClient, ApproveSignatureParams, ApproveSignatureResponse, ApproveTransactionParams, ApproveTransactionResponse, CreateSignatureParams, CreateSignatureResponse, CreateTransactionParams, CreateTransactionResponse, CreateWalletParams, CreateWalletResponse, GetBalanceResponse, GetNftsResponse, GetSignatureResponse, GetTransactionResponse, GetTransactionsResponse, GetWalletResponse } from './client.cjs';
2
+ import '@crossmint/common-sdk-base';
3
+ import './gen/types.gen.cjs';
@@ -0,0 +1,3 @@
1
+ export { ApiClient, ApproveSignatureParams, ApproveSignatureResponse, ApproveTransactionParams, ApproveTransactionResponse, CreateSignatureParams, CreateSignatureResponse, CreateTransactionParams, CreateTransactionResponse, CreateWalletParams, CreateWalletResponse, GetBalanceResponse, GetNftsResponse, GetSignatureResponse, GetTransactionResponse, GetTransactionsResponse, GetWalletResponse } from './client.js';
2
+ import '@crossmint/common-sdk-base';
3
+ import './gen/types.gen.js';
@@ -0,0 +1 @@
1
+ import"../chunk-A7F5DWC7.js";import{a}from"../chunk-ICE64YWF.js";import"../chunk-APYZEG33.js";import"../chunk-22GIA4MK.js";export{a as ApiClient};
@@ -0,0 +1 @@
1
+ var m=Object.defineProperty,n=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var i=(c,b,a)=>b in c?m(c,b,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[b]=a,r=(c,b)=>{for(var a in b||(b={}))p.call(b,a)&&i(c,a,b[a]);if(h)for(var a of h(b))q.call(b,a)&&i(c,a,b[a]);return c},s=(c,b)=>n(c,o(b));var t=(c,b,a)=>new Promise((j,g)=>{var k=d=>{try{e(a.next(d))}catch(f){g(f)}},l=d=>{try{e(a.throw(d))}catch(f){g(f)}},e=d=>d.done?j(d.value):Promise.resolve(d.value).then(k,l);e((a=a.apply(c,b)).next())});export{r as a,s as b,t as c};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCK4JCQY6cjs = require('./chunk-CK4JCQY6.cjs');var t=class{constructor(a,r,s,p){this.publicClient=a;this.chain=r;this.apiClient=s;this.address=p}balances(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){})}transactions(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){})}nfts(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){})}getAddress(){return this.address}getNonce(a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){throw new Error("Not implemented")})}signMessage(a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){throw new Error("Not implemented")})}signTypedData(a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){throw new Error("Not implemented")})}sendTransaction(a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){throw new Error("Not implemented")})}},i= exports.b =class{};exports.a = t; exports.b = i;
@@ -0,0 +1 @@
1
+ import{createClient as t,createConfig as e}from"@hey-api/client-fetch";var p=t(e({baseUrl:"https://staging.crossmint.com/api"}));export{p as a};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-ICE64YWF.js";import{c as l}from"./chunk-22GIA4MK.js";var t=class r{constructor(e){this.apiClient=new a(e)}static from(e){return new r(e)}getOrCreateWallet(e,...n){return l(this,null,function*(){throw new Error("Not implemented")})}},s=t;export{s as a};
File without changes
@@ -0,0 +1 @@
1
+ var s="@crossmint/wallets-sdk",t="1.0.0";var d="WALLETS_SDK",a=t,r=s;export{d as a,a as b,r as c};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var m=Object.defineProperty,n=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var i=(c,b,a)=>b in c?m(c,b,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[b]=a,r= exports.a =(c,b)=>{for(var a in b||(b={}))p.call(b,a)&&i(c,a,b[a]);if(h)for(var a of h(b))q.call(b,a)&&i(c,a,b[a]);return c},s= exports.b =(c,b)=>n(c,o(b));var t=(c,b,a)=>new Promise((j,g)=>{var k=d=>{try{e(a.next(d))}catch(f){g(f)}},l=d=>{try{e(a.throw(d))}catch(f){g(f)}},e=d=>d.done?j(d.value):Promise.resolve(d.value).then(k,l);e((a=a.apply(c,b)).next())});exports.a = r; exports.b = s; exports.c = t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSTYSP6KLcjs = require('./chunk-STYSP6KL.cjs');var _chunkCK4JCQY6cjs = require('./chunk-CK4JCQY6.cjs');var s=e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/me{walletType}/transactions/{transactionId}/approvals"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},C= exports.b =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/me{walletType}/transactions/{transactionId}"},e))},i= exports.c =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/me{walletType}/transactions"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},c= exports.d =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/me{walletType}/signatures/{signatureId}/approvals"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},u= exports.e =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/me{walletType}/signatures/{signatureId}"},e))},W= exports.f =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/me{walletType}/signatures"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},p= exports.g =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/me{walletType}"},e))},w= exports.h =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/me"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},V= exports.i =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}/transactions/{transactionId}/approvals"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},T= exports.j =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}/transactions/{transactionId}"},e))},h= exports.k =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}/transactions"},e))},E= exports.l =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}/transactions"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},g= exports.m =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}/signers/{signer}"},e))},O= exports.n =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}/signers"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},S= exports.o =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}/signatures/{signatureId}/approvals"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},d= exports.p =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}/signatures/{signatureId}"},e))},G= exports.q =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}/signatures"},e))},D= exports.r =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}/signatures"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},R= exports.s =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{walletLocator}"},e))},b= exports.t =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))},M= exports.u =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/2022-06-09/wallets/{identifier}/nfts"},e))},m= exports.v =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).get(_chunkCK4JCQY6cjs.a.call(void 0, {url:"/v1-alpha2/wallets/{walletLocator}/balances"},e))},x= exports.w =e=>{var r;return((r=e.client)!=null?r:_chunkSTYSP6KLcjs.a).post(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {url:"/v1-alpha2/wallets/{walletLocator}/balances"},e),{headers:_chunkCK4JCQY6cjs.a.call(void 0, {"Content-Type":"application/json"},e==null?void 0:e.headers)}))};exports.a = s; exports.b = C; exports.c = i; exports.d = c; exports.e = u; exports.f = W; exports.g = p; exports.h = w; exports.i = V; exports.j = T; exports.k = h; exports.l = E; exports.m = g; exports.n = O; exports.o = S; exports.p = d; exports.q = G; exports.r = D; exports.s = R; exports.t = b; exports.u = M; exports.v = m; exports.w = x;
@@ -0,0 +1 @@
1
+ import{BlockchainIncludingTestnet as t}from"@crossmint/common-sdk-base";var e=[t.BASE_SEPOLIA,t.POLYGON_AMOY,t.OPTIMISM_SEPOLIA,t.ARBITRUM_SEPOLIA,t.STORY_TESTNET],n=[t.BASE,t.POLYGON,t.OPTIMISM,t.ARBITRUM,t.STORY];function T(a){return e.includes(a)}function l(a){return n.includes(a)}export{T as a,l as b};
@@ -0,0 +1 @@
1
+ import{b as o,c as i}from"./chunk-APYZEG33.js";import{c as a}from"./chunk-22GIA4MK.js";import{CrossmintApiClient as l}from"@crossmint/common-sdk-base";var p=class extends l{constructor(e){super(e,{internalConfig:{sdkMetadata:{name:i,version:o}}});this.apiPrefix="api/2022-06-09/wallets"}createWallet(e){return a(this,null,function*(){return(yield this.post(this.apiPrefix,{body:JSON.stringify(e),headers:{"Content-Type":"application/json"}})).json()})}createMeWallet(e){return a(this,null,function*(){return(yield this.post(`${this.apiPrefix}/me`,{body:JSON.stringify(e),headers:{"Content-Type":"application/json"}})).json()})}getWallet(e){return a(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}`,{headers:{"Content-Type":"application/json"}})).json()})}getMeWallet(e){return a(this,null,function*(){return(yield this.get(`${this.apiPrefix}/me:${e}`,{headers:{"Content-Type":"application/json"}})).json()})}createTransaction(e,s){return a(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions`,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).json()})}createMeTransaction(e,s){return a(this,null,function*(){return(yield this.post(`${this.apiPrefix}/me:${e}/transactions`,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).json()})}approveTransaction(e,s,t){return a(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions/${s}/approvals`,{body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})).json()})}approveMeTransaction(e,s,t){return a(this,null,function*(){return(yield this.post(`${this.apiPrefix}/me:${e}/transactions/${s}/approvals`,{body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})).json()})}getTransaction(e,s){return a(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions/${s}`,{headers:{"Content-Type":"application/json"}})).json()})}getMeTransaction(e,s){return a(this,null,function*(){return(yield this.get(`${this.apiPrefix}/me:${e}/transactions/${s}`,{headers:{"Content-Type":"application/json"}})).json()})}createSignature(e,s){return a(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures`,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).json()})}createMeSignature(e,s){return a(this,null,function*(){return(yield this.post(`${this.apiPrefix}/me:${e}/signatures`,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).json()})}approveSignature(e,s,t){return a(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures/${s}/approvals`,{body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})).json()})}approveMeSignature(e,s,t){return a(this,null,function*(){return(yield this.post(`${this.apiPrefix}/me:${e}/signatures/${s}/approvals`,{body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})).json()})}getSignature(e,s){return a(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signatures/${s}`,{headers:{"Content-Type":"application/json"}})).json()})}getMeSignature(e,s){return a(this,null,function*(){return(yield this.get(`${this.apiPrefix}/me:${e}/signatures/${s}`,{headers:{"Content-Type":"application/json"}})).json()})}getTransactions(e){return a(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions`,{headers:{"Content-Type":"application/json"}})).json()})}getMeTransactions(e){return a(this,null,function*(){return(yield this.get(`${this.apiPrefix}/me:${e}/transactions`,{headers:{"Content-Type":"application/json"}})).json()})}getNfts(e,s,t){return a(this,null,function*(){let n=new URLSearchParams;return n.append("page",s.toString()),n.append("perPage",t.toString()),(yield this.get(`${this.apiPrefix}/${e}/nfts?${n.toString()}`,{headers:{"Content-Type":"application/json"}})).json()})}getBalance(e,s){return a(this,null,function*(){let t=new URLSearchParams;return s.chains&&s.chains.forEach(r=>t.append("chains",r)),s.tokens.forEach(r=>t.append("tokens",r)),(yield this.get(`api/v1-alpha2/wallets/${e}/balances?${t.toString()}`,{headers:{"Content-Type":"application/json"}})).json()})}};export{p as a};
@@ -0,0 +1 @@
1
+ import{c as n}from"./chunk-22GIA4MK.js";var e=class{constructor(r,o){this.client=r;this.apiClient=o}balances(){return n(this,null,function*(){})}transactions(){return n(this,null,function*(){})}nfts(){return n(this,null,function*(){})}getPublicKey(){throw new Error("Not implemented")}sendTransaction(){return n(this,null,function*(){throw new Error("Not implemented")})}},i=class{};export{e as a,i as b};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var s="@crossmint/wallets-sdk",t="1.0.0";var p="WALLETS_SDK",d= exports.b =t,a= exports.c =s;exports.a = p; exports.b = d; exports.c = a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCK4JCQY6cjs = require('./chunk-CK4JCQY6.cjs');var e=class{constructor(r,o){this.client=r;this.apiClient=o}balances(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){})}transactions(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){})}nfts(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){})}getPublicKey(){throw new Error("Not implemented")}sendTransaction(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){throw new Error("Not implemented")})}},i= exports.b =class{};exports.a = e; exports.b = i;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _clientfetch = require('@hey-api/client-fetch');var o=_clientfetch.createClient.call(void 0, _clientfetch.createConfig.call(void 0, {baseUrl:"https://staging.crossmint.com/api"}));exports.a = o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO5UBTDCJcjs = require('./chunk-O5UBTDCJ.cjs');var _chunkCK4JCQY6cjs = require('./chunk-CK4JCQY6.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var p=class extends _commonsdkbase.CrossmintApiClient{constructor(e){super(e,{internalConfig:{sdkMetadata:{name:_chunkO5UBTDCJcjs.c,version:_chunkO5UBTDCJcjs.b}}});this.apiPrefix="api/2022-06-09/wallets"}createWallet(e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.post(this.apiPrefix,{body:JSON.stringify(e),headers:{"Content-Type":"application/json"}})).json()})}createMeWallet(e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/me`,{body:JSON.stringify(e),headers:{"Content-Type":"application/json"}})).json()})}getWallet(e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}`,{headers:{"Content-Type":"application/json"}})).json()})}getMeWallet(e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/me:${e}`,{headers:{"Content-Type":"application/json"}})).json()})}createTransaction(e,s){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions`,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).json()})}createMeTransaction(e,s){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/me:${e}/transactions`,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).json()})}approveTransaction(e,s,t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions/${s}/approvals`,{body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})).json()})}approveMeTransaction(e,s,t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/me:${e}/transactions/${s}/approvals`,{body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})).json()})}getTransaction(e,s){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions/${s}`,{headers:{"Content-Type":"application/json"}})).json()})}getMeTransaction(e,s){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/me:${e}/transactions/${s}`,{headers:{"Content-Type":"application/json"}})).json()})}createSignature(e,s){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures`,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).json()})}createMeSignature(e,s){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/me:${e}/signatures`,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})).json()})}approveSignature(e,s,t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures/${s}/approvals`,{body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})).json()})}approveMeSignature(e,s,t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/me:${e}/signatures/${s}/approvals`,{body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})).json()})}getSignature(e,s){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signatures/${s}`,{headers:{"Content-Type":"application/json"}})).json()})}getMeSignature(e,s){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/me:${e}/signatures/${s}`,{headers:{"Content-Type":"application/json"}})).json()})}getTransactions(e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions`,{headers:{"Content-Type":"application/json"}})).json()})}getMeTransactions(e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/me:${e}/transactions`,{headers:{"Content-Type":"application/json"}})).json()})}getNfts(e,s,t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){let n=new URLSearchParams;return n.append("page",s.toString()),n.append("perPage",t.toString()),(yield this.get(`${this.apiPrefix}/${e}/nfts?${n.toString()}`,{headers:{"Content-Type":"application/json"}})).json()})}getBalance(e,s){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){let t=new URLSearchParams;return s.chains&&s.chains.forEach(r=>t.append("chains",r)),s.tokens.forEach(r=>t.append("tokens",r)),(yield this.get(`api/v1-alpha2/wallets/${e}/balances?${t.toString()}`,{headers:{"Content-Type":"application/json"}})).json()})}};exports.a = p;
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-5M7IRODB.js";import{a as l,b as a}from"./chunk-22GIA4MK.js";var C=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets/me{walletType}/transactions/{transactionId}/approvals"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},i=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/2022-06-09/wallets/me{walletType}/transactions/{transactionId}"},e))},c=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets/me{walletType}/transactions"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},u=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets/me{walletType}/signatures/{signatureId}/approvals"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},W=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/2022-06-09/wallets/me{walletType}/signatures/{signatureId}"},e))},p=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets/me{walletType}/signatures"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},w=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/2022-06-09/wallets/me{walletType}"},e))},V=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets/me"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},T=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets/{walletLocator}/transactions/{transactionId}/approvals"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},h=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/2022-06-09/wallets/{walletLocator}/transactions/{transactionId}"},e))},E=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/2022-06-09/wallets/{walletLocator}/transactions"},e))},g=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets/{walletLocator}/transactions"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},O=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/2022-06-09/wallets/{walletLocator}/signers/{signer}"},e))},S=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets/{walletLocator}/signers"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},d=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets/{walletLocator}/signatures/{signatureId}/approvals"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},G=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/2022-06-09/wallets/{walletLocator}/signatures/{signatureId}"},e))},D=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/2022-06-09/wallets/{walletLocator}/signatures"},e))},R=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets/{walletLocator}/signatures"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},b=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/2022-06-09/wallets/{walletLocator}"},e))},M=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/2022-06-09/wallets"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))},m=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/2022-06-09/wallets/{identifier}/nfts"},e))},x=e=>{var r;return((r=e.client)!=null?r:t).get(l({url:"/v1-alpha2/wallets/{walletLocator}/balances"},e))},A=e=>{var r;return((r=e.client)!=null?r:t).post(a(l({url:"/v1-alpha2/wallets/{walletLocator}/balances"},e),{headers:l({"Content-Type":"application/json"},e==null?void 0:e.headers)}))};export{C as a,i as b,c,u as d,W as e,p as f,w as g,V as h,T as i,h as j,E as k,g as l,O as m,S as n,d as o,G as p,D as q,R as r,b as s,M as t,m as u,x as v,A as w};
@@ -0,0 +1 @@
1
+ "use strict";
File without changes
@@ -0,0 +1 @@
1
+ import{c as e}from"./chunk-22GIA4MK.js";var t=class{constructor(a,r,s,p){this.publicClient=a;this.chain=r;this.apiClient=s;this.address=p}balances(){return e(this,null,function*(){})}transactions(){return e(this,null,function*(){})}nfts(){return e(this,null,function*(){})}getAddress(){return this.address}getNonce(a){return e(this,null,function*(){throw new Error("Not implemented")})}signMessage(a){return e(this,null,function*(){throw new Error("Not implemented")})}signTypedData(a){return e(this,null,function*(){throw new Error("Not implemented")})}sendTransaction(a){return e(this,null,function*(){throw new Error("Not implemented")})}},i=class{};export{t as a,i as b};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkU2WTEWN7cjs = require('./chunk-U2WTEWN7.cjs');var _chunkCK4JCQY6cjs = require('./chunk-CK4JCQY6.cjs');var t=class r{constructor(e){this.apiClient=new (0, _chunkU2WTEWN7cjs.a)(e)}static from(e){return new r(e)}getOrCreateWallet(e,...n){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){throw new Error("Not implemented")})}},m= exports.a =t;exports.a = m;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _commonsdkbase = require('@crossmint/common-sdk-base');var e=[_commonsdkbase.BlockchainIncludingTestnet.BASE_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.POLYGON_AMOY,_commonsdkbase.BlockchainIncludingTestnet.OPTIMISM_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.ARBITRUM_SEPOLIA,_commonsdkbase.BlockchainIncludingTestnet.STORY_TESTNET],n=[_commonsdkbase.BlockchainIncludingTestnet.BASE,_commonsdkbase.BlockchainIncludingTestnet.POLYGON,_commonsdkbase.BlockchainIncludingTestnet.OPTIMISM,_commonsdkbase.BlockchainIncludingTestnet.ARBITRUM,_commonsdkbase.BlockchainIncludingTestnet.STORY];function S(a){return e.includes(a)}function T(a){return n.includes(a)}exports.a = S; exports.b = T;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ6JFF3HRcjs = require('../chunk-Z6JFF3HR.cjs');require('../chunk-CK4JCQY6.cjs');exports.isMainnetChain = _chunkZ6JFF3HRcjs.b; exports.isTestnetChain = _chunkZ6JFF3HRcjs.a;
@@ -0,0 +1,9 @@
1
+ declare const EVM_SMART_WALLET_TESTNET_CHAINS: ("arbitrum-sepolia" | "base-sepolia" | "optimism-sepolia" | "polygon-amoy" | "story-testnet")[];
2
+ declare const EVM_SMART_WALLET_MAINNET_CHAINS: ("polygon" | "optimism" | "arbitrum" | "base" | "story")[];
3
+ type EVMSmartWalletTestnet = (typeof EVM_SMART_WALLET_TESTNET_CHAINS)[number];
4
+ type EVMSmartWalletMainnet = (typeof EVM_SMART_WALLET_MAINNET_CHAINS)[number];
5
+ type EVMSmartWalletChain = EVMSmartWalletTestnet | EVMSmartWalletMainnet;
6
+ declare function isTestnetChain(chain: EVMSmartWalletChain): chain is EVMSmartWalletTestnet;
7
+ declare function isMainnetChain(chain: EVMSmartWalletChain): chain is EVMSmartWalletMainnet;
8
+
9
+ export { type EVMSmartWalletChain, isMainnetChain, isTestnetChain };
@@ -0,0 +1,9 @@
1
+ declare const EVM_SMART_WALLET_TESTNET_CHAINS: ("arbitrum-sepolia" | "base-sepolia" | "optimism-sepolia" | "polygon-amoy" | "story-testnet")[];
2
+ declare const EVM_SMART_WALLET_MAINNET_CHAINS: ("polygon" | "optimism" | "arbitrum" | "base" | "story")[];
3
+ type EVMSmartWalletTestnet = (typeof EVM_SMART_WALLET_TESTNET_CHAINS)[number];
4
+ type EVMSmartWalletMainnet = (typeof EVM_SMART_WALLET_MAINNET_CHAINS)[number];
5
+ type EVMSmartWalletChain = EVMSmartWalletTestnet | EVMSmartWalletMainnet;
6
+ declare function isTestnetChain(chain: EVMSmartWalletChain): chain is EVMSmartWalletTestnet;
7
+ declare function isMainnetChain(chain: EVMSmartWalletChain): chain is EVMSmartWalletMainnet;
8
+
9
+ export { type EVMSmartWalletChain, isMainnetChain, isTestnetChain };
@@ -0,0 +1 @@
1
+ import{a,b}from"../chunk-EY4BQMWT.js";import"../chunk-22GIA4MK.js";export{b as isMainnetChain,a as isTestnetChain};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ6JFF3HRcjs = require('../chunk-Z6JFF3HR.cjs');var _chunk3ENSZP74cjs = require('../chunk-3ENSZP74.cjs');require('../chunk-CK4JCQY6.cjs');exports.EVMMPCWallet = _chunk3ENSZP74cjs.b; exports.EVMSmartWallet = _chunk3ENSZP74cjs.a; exports.isMainnetChain = _chunkZ6JFF3HRcjs.b; exports.isTestnetChain = _chunkZ6JFF3HRcjs.a;
@@ -0,0 +1,6 @@
1
+ export { EVMMPCWallet, EVMSmartWallet, ViemWallet } from './wallet.cjs';
2
+ export { EVMSmartWalletChain, isMainnetChain, isTestnetChain } from './chains.cjs';
3
+ import 'viem';
4
+ import '../api/client.cjs';
5
+ import '@crossmint/common-sdk-base';
6
+ import '../api/gen/types.gen.cjs';
@@ -0,0 +1,6 @@
1
+ export { EVMMPCWallet, EVMSmartWallet, ViemWallet } from './wallet.js';
2
+ export { EVMSmartWalletChain, isMainnetChain, isTestnetChain } from './chains.js';
3
+ import 'viem';
4
+ import '../api/client.js';
5
+ import '@crossmint/common-sdk-base';
6
+ import '../api/gen/types.gen.js';
@@ -0,0 +1 @@
1
+ import{a as o,b as r}from"../chunk-EY4BQMWT.js";import{a as e,b as f}from"../chunk-Z4FSGH26.js";import"../chunk-22GIA4MK.js";export{f as EVMMPCWallet,e as EVMSmartWallet,r as isMainnetChain,o as isTestnetChain};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3ENSZP74cjs = require('../chunk-3ENSZP74.cjs');require('../chunk-CK4JCQY6.cjs');exports.EVMMPCWallet = _chunk3ENSZP74cjs.b; exports.EVMSmartWallet = _chunk3ENSZP74cjs.a;
@@ -0,0 +1,48 @@
1
+ import { Address, SignableMessage, Hex, TypedData, TypedDataDefinition, PublicClient, HttpTransport } from 'viem';
2
+ import { ApiClient } from '../api/client.cjs';
3
+ import { EVMSmartWalletChain } from './chains.cjs';
4
+ import '@crossmint/common-sdk-base';
5
+ import '../api/gen/types.gen.cjs';
6
+
7
+ interface ViemWallet {
8
+ getAddress: () => Address;
9
+ getNonce?: ((parameters?: {
10
+ key?: bigint | undefined;
11
+ } | undefined) => Promise<bigint>) | undefined;
12
+ signMessage: (parameters: {
13
+ message: SignableMessage;
14
+ }) => Promise<Hex>;
15
+ signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
16
+ sendTransaction: (parameters: {
17
+ to: Address;
18
+ data?: Hex;
19
+ value?: bigint;
20
+ }) => Promise<Hex>;
21
+ }
22
+ declare class EVMSmartWallet implements ViemWallet {
23
+ readonly publicClient: PublicClient<HttpTransport>;
24
+ readonly chain: EVMSmartWalletChain;
25
+ private readonly apiClient;
26
+ private readonly address;
27
+ constructor(publicClient: PublicClient<HttpTransport>, chain: EVMSmartWalletChain, apiClient: ApiClient, address: Address);
28
+ balances(): Promise<void>;
29
+ transactions(): Promise<void>;
30
+ nfts(): Promise<void>;
31
+ getAddress(): `0x${string}`;
32
+ getNonce(parameters?: {
33
+ key?: bigint | undefined;
34
+ } | undefined): Promise<bigint>;
35
+ signMessage(parameters: {
36
+ message: SignableMessage;
37
+ }): Promise<Hex>;
38
+ signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>): Promise<Hex>;
39
+ sendTransaction(parameters: {
40
+ to: Address;
41
+ data?: Hex;
42
+ value?: bigint;
43
+ }): Promise<Hex>;
44
+ }
45
+ declare class EVMMPCWallet {
46
+ }
47
+
48
+ export { EVMMPCWallet, EVMSmartWallet, type ViemWallet };
@@ -0,0 +1,48 @@
1
+ import { Address, SignableMessage, Hex, TypedData, TypedDataDefinition, PublicClient, HttpTransport } from 'viem';
2
+ import { ApiClient } from '../api/client.js';
3
+ import { EVMSmartWalletChain } from './chains.js';
4
+ import '@crossmint/common-sdk-base';
5
+ import '../api/gen/types.gen.js';
6
+
7
+ interface ViemWallet {
8
+ getAddress: () => Address;
9
+ getNonce?: ((parameters?: {
10
+ key?: bigint | undefined;
11
+ } | undefined) => Promise<bigint>) | undefined;
12
+ signMessage: (parameters: {
13
+ message: SignableMessage;
14
+ }) => Promise<Hex>;
15
+ signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
16
+ sendTransaction: (parameters: {
17
+ to: Address;
18
+ data?: Hex;
19
+ value?: bigint;
20
+ }) => Promise<Hex>;
21
+ }
22
+ declare class EVMSmartWallet implements ViemWallet {
23
+ readonly publicClient: PublicClient<HttpTransport>;
24
+ readonly chain: EVMSmartWalletChain;
25
+ private readonly apiClient;
26
+ private readonly address;
27
+ constructor(publicClient: PublicClient<HttpTransport>, chain: EVMSmartWalletChain, apiClient: ApiClient, address: Address);
28
+ balances(): Promise<void>;
29
+ transactions(): Promise<void>;
30
+ nfts(): Promise<void>;
31
+ getAddress(): `0x${string}`;
32
+ getNonce(parameters?: {
33
+ key?: bigint | undefined;
34
+ } | undefined): Promise<bigint>;
35
+ signMessage(parameters: {
36
+ message: SignableMessage;
37
+ }): Promise<Hex>;
38
+ signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>): Promise<Hex>;
39
+ sendTransaction(parameters: {
40
+ to: Address;
41
+ data?: Hex;
42
+ value?: bigint;
43
+ }): Promise<Hex>;
44
+ }
45
+ declare class EVMMPCWallet {
46
+ }
47
+
48
+ export { EVMMPCWallet, EVMSmartWallet, type ViemWallet };
@@ -0,0 +1 @@
1
+ import{a,b}from"../chunk-Z4FSGH26.js";import"../chunk-22GIA4MK.js";export{b as EVMMPCWallet,a as EVMSmartWallet};
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";require('./chunk-Z4XNQ4N5.cjs');require('./chunk-RUIBT3JV.cjs');require('./chunk-U2WTEWN7.cjs');require('./chunk-O5UBTDCJ.cjs');require('./chunk-CK4JCQY6.cjs');
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ import"./chunk-6TDMYZSP.js";import"./chunk-A7F5DWC7.js";import"./chunk-ICE64YWF.js";import"./chunk-APYZEG33.js";import"./chunk-22GIA4MK.js";
package/dist/sdk.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ4XNQ4N5cjs = require('./chunk-Z4XNQ4N5.cjs');require('./chunk-RUIBT3JV.cjs');require('./chunk-U2WTEWN7.cjs');require('./chunk-O5UBTDCJ.cjs');require('./chunk-CK4JCQY6.cjs');exports.default = _chunkZ4XNQ4N5cjs.a;
package/dist/sdk.d.cts ADDED
@@ -0,0 +1,35 @@
1
+ import { Crossmint } from '@crossmint/common-sdk-base';
2
+ import { EVMSmartWallet, EVMMPCWallet } from './evm/wallet.cjs';
3
+ import { SolanaSmartWallet, SolanaMPCWallet } from './solana/wallet.cjs';
4
+ import { CreateWalletDto } from './api/gen/types.gen.cjs';
5
+ import 'viem';
6
+ import './api/client.cjs';
7
+ import './evm/chains.cjs';
8
+ import '@solana/web3.js';
9
+
10
+ type EVMAdminSigner = NonNullable<Extract<CreateWalletDto, {
11
+ type: "evm-smart-wallet";
12
+ }>["config"]>["adminSigner"];
13
+ type SolanaAdminSigner = NonNullable<Extract<CreateWalletDto, {
14
+ type: "solana-smart-wallet";
15
+ }>["config"]>["adminSigner"];
16
+ type WalletTypeToArgs = {
17
+ "evm-smart-wallet": [adminSigner: EVMAdminSigner, linkedUser?: string];
18
+ "evm-mpc-wallet": [linkedUser: string];
19
+ "solana-smart-wallet": [adminSigner: SolanaAdminSigner, linkedUser?: string];
20
+ "solana-mpc-wallet": [linkedUser: string];
21
+ };
22
+ type WalletTypeToWallet = {
23
+ "evm-smart-wallet": EVMSmartWallet;
24
+ "evm-mpc-wallet": EVMMPCWallet;
25
+ "solana-smart-wallet": SolanaSmartWallet;
26
+ "solana-mpc-wallet": SolanaMPCWallet;
27
+ };
28
+ declare class CrossmintWallet {
29
+ private apiClient;
30
+ private constructor();
31
+ static from(crossmint: Crossmint): CrossmintWallet;
32
+ getOrCreateWallet<WalletType extends keyof WalletTypeToArgs>(_type: WalletType, ..._args: WalletTypeToArgs[WalletType]): Promise<WalletTypeToWallet[WalletType]>;
33
+ }
34
+
35
+ export { CrossmintWallet as default };
package/dist/sdk.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ import { Crossmint } from '@crossmint/common-sdk-base';
2
+ import { EVMSmartWallet, EVMMPCWallet } from './evm/wallet.js';
3
+ import { SolanaSmartWallet, SolanaMPCWallet } from './solana/wallet.js';
4
+ import { CreateWalletDto } from './api/gen/types.gen.js';
5
+ import 'viem';
6
+ import './api/client.js';
7
+ import './evm/chains.js';
8
+ import '@solana/web3.js';
9
+
10
+ type EVMAdminSigner = NonNullable<Extract<CreateWalletDto, {
11
+ type: "evm-smart-wallet";
12
+ }>["config"]>["adminSigner"];
13
+ type SolanaAdminSigner = NonNullable<Extract<CreateWalletDto, {
14
+ type: "solana-smart-wallet";
15
+ }>["config"]>["adminSigner"];
16
+ type WalletTypeToArgs = {
17
+ "evm-smart-wallet": [adminSigner: EVMAdminSigner, linkedUser?: string];
18
+ "evm-mpc-wallet": [linkedUser: string];
19
+ "solana-smart-wallet": [adminSigner: SolanaAdminSigner, linkedUser?: string];
20
+ "solana-mpc-wallet": [linkedUser: string];
21
+ };
22
+ type WalletTypeToWallet = {
23
+ "evm-smart-wallet": EVMSmartWallet;
24
+ "evm-mpc-wallet": EVMMPCWallet;
25
+ "solana-smart-wallet": SolanaSmartWallet;
26
+ "solana-mpc-wallet": SolanaMPCWallet;
27
+ };
28
+ declare class CrossmintWallet {
29
+ private apiClient;
30
+ private constructor();
31
+ static from(crossmint: Crossmint): CrossmintWallet;
32
+ getOrCreateWallet<WalletType extends keyof WalletTypeToArgs>(_type: WalletType, ..._args: WalletTypeToArgs[WalletType]): Promise<WalletTypeToWallet[WalletType]>;
33
+ }
34
+
35
+ export { CrossmintWallet as default };
package/dist/sdk.js ADDED
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-6TDMYZSP.js";import"./chunk-A7F5DWC7.js";import"./chunk-ICE64YWF.js";import"./chunk-APYZEG33.js";import"./chunk-22GIA4MK.js";export{a as default};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOOKBOMFJcjs = require('../chunk-OOKBOMFJ.cjs');require('../chunk-CK4JCQY6.cjs');exports.SolanaMPCWallet = _chunkOOKBOMFJcjs.b; exports.SolanaSmartWallet = _chunkOOKBOMFJcjs.a;
@@ -0,0 +1,5 @@
1
+ export { SolanaMPCWallet, SolanaSmartWallet, SolanaWallet } from './wallet.cjs';
2
+ import '@solana/web3.js';
3
+ import '../api/client.cjs';
4
+ import '@crossmint/common-sdk-base';
5
+ import '../api/gen/types.gen.cjs';
@@ -0,0 +1,5 @@
1
+ export { SolanaMPCWallet, SolanaSmartWallet, SolanaWallet } from './wallet.js';
2
+ import '@solana/web3.js';
3
+ import '../api/client.js';
4
+ import '@crossmint/common-sdk-base';
5
+ import '../api/gen/types.gen.js';
@@ -0,0 +1 @@
1
+ import{a as o,b as r}from"../chunk-MSK53SDP.js";import"../chunk-22GIA4MK.js";export{r as SolanaMPCWallet,o as SolanaSmartWallet};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOOKBOMFJcjs = require('../chunk-OOKBOMFJ.cjs');require('../chunk-CK4JCQY6.cjs');exports.SolanaMPCWallet = _chunkOOKBOMFJcjs.b; exports.SolanaSmartWallet = _chunkOOKBOMFJcjs.a;
@@ -0,0 +1,33 @@
1
+ import { PublicKey, Transaction, VersionedTransaction, Connection } from '@solana/web3.js';
2
+ import { ApiClient } from '../api/client.cjs';
3
+ import '@crossmint/common-sdk-base';
4
+ import '../api/gen/types.gen.cjs';
5
+
6
+ interface SolanaWallet {
7
+ getPublicKey: () => PublicKey;
8
+ sendTransaction: (parameters: {
9
+ transaction: Transaction | VersionedTransaction;
10
+ options?: {
11
+ skipPreflight?: boolean;
12
+ maxRetries?: number;
13
+ };
14
+ }) => Promise<string>;
15
+ }
16
+ declare class SolanaSmartWallet implements SolanaWallet {
17
+ readonly client: {
18
+ public: Connection;
19
+ };
20
+ private readonly apiClient;
21
+ constructor(client: {
22
+ public: Connection;
23
+ }, apiClient: ApiClient);
24
+ balances(): Promise<void>;
25
+ transactions(): Promise<void>;
26
+ nfts(): Promise<void>;
27
+ getPublicKey(): PublicKey;
28
+ sendTransaction(): Promise<string>;
29
+ }
30
+ declare class SolanaMPCWallet {
31
+ }
32
+
33
+ export { SolanaMPCWallet, SolanaSmartWallet, type SolanaWallet };
@@ -0,0 +1,33 @@
1
+ import { PublicKey, Transaction, VersionedTransaction, Connection } from '@solana/web3.js';
2
+ import { ApiClient } from '../api/client.js';
3
+ import '@crossmint/common-sdk-base';
4
+ import '../api/gen/types.gen.js';
5
+
6
+ interface SolanaWallet {
7
+ getPublicKey: () => PublicKey;
8
+ sendTransaction: (parameters: {
9
+ transaction: Transaction | VersionedTransaction;
10
+ options?: {
11
+ skipPreflight?: boolean;
12
+ maxRetries?: number;
13
+ };
14
+ }) => Promise<string>;
15
+ }
16
+ declare class SolanaSmartWallet implements SolanaWallet {
17
+ readonly client: {
18
+ public: Connection;
19
+ };
20
+ private readonly apiClient;
21
+ constructor(client: {
22
+ public: Connection;
23
+ }, apiClient: ApiClient);
24
+ balances(): Promise<void>;
25
+ transactions(): Promise<void>;
26
+ nfts(): Promise<void>;
27
+ getPublicKey(): PublicKey;
28
+ sendTransaction(): Promise<string>;
29
+ }
30
+ declare class SolanaMPCWallet {
31
+ }
32
+
33
+ export { SolanaMPCWallet, SolanaSmartWallet, type SolanaWallet };
@@ -0,0 +1 @@
1
+ import{a,b}from"../chunk-MSK53SDP.js";import"../chunk-22GIA4MK.js";export{b as SolanaMPCWallet,a as SolanaSmartWallet};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO5UBTDCJcjs = require('../chunk-O5UBTDCJ.cjs');require('../chunk-CK4JCQY6.cjs');exports.SDK_NAME = _chunkO5UBTDCJcjs.c; exports.SDK_VERSION = _chunkO5UBTDCJcjs.b; exports.WALLETS_SERVICE = _chunkO5UBTDCJcjs.a;
@@ -0,0 +1,5 @@
1
+ declare const WALLETS_SERVICE = "WALLETS_SDK";
2
+ declare const SDK_VERSION: string;
3
+ declare const SDK_NAME: string;
4
+
5
+ export { SDK_NAME, SDK_VERSION, WALLETS_SERVICE };
@@ -0,0 +1,5 @@
1
+ declare const WALLETS_SERVICE = "WALLETS_SDK";
2
+ declare const SDK_VERSION: string;
3
+ declare const SDK_NAME: string;
4
+
5
+ export { SDK_NAME, SDK_VERSION, WALLETS_SERVICE };
@@ -0,0 +1 @@
1
+ import{a,b,c}from"../chunk-APYZEG33.js";import"../chunk-22GIA4MK.js";export{c as SDK_NAME,b as SDK_VERSION,a as WALLETS_SERVICE};
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@crossmint/wallets-sdk",
3
+ "version": "1.0.0",
4
+ "repository": "https://github.com/Crossmint/crossmint-sdk",
5
+ "license": "Apache-2.0",
6
+ "author": "Paella Labs Inc",
7
+ "sideEffects": false,
8
+ "type": "module",
9
+ "exports": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.cjs"
12
+ },
13
+ "main": "./dist/index.cjs",
14
+ "module": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "files": [
17
+ "dist",
18
+ "LICENSE"
19
+ ],
20
+ "dependencies": {
21
+ "@hey-api/client-fetch": "0.8.1",
22
+ "@solana/web3.js": "1.95.1",
23
+ "viem": "2.17.5",
24
+ "@crossmint/common-sdk-auth": "1.0.18",
25
+ "@crossmint/common-sdk-base": "0.3.2"
26
+ },
27
+ "devDependencies": {
28
+ "@hey-api/openapi-ts": "0.64.5"
29
+ },
30
+ "scripts": {
31
+ "build": "tsup",
32
+ "dev": "tsup --watch",
33
+ "test:vitest": "vitest run",
34
+ "generate": "pnpm dlx @hey-api/openapi-ts",
35
+ "postinstall": "pnpm generate"
36
+ }
37
+ }