@crossmint/client-sdk-smart-wallet 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apiService.cjs +1 -1
- package/dist/apiService.js +1 -1
- package/dist/{chunk-HQHK4WTT.js → chunk-6TH5VXHV.js} +1 -1
- package/dist/{chunk-2ZE5TIKL.cjs → chunk-E3VNTW5J.cjs} +1 -1
- package/dist/{chunk-JPF3ZY6Z.js → chunk-EPJDFF75.js} +1 -1
- package/dist/{chunk-BF7L4FS4.js → chunk-EUWXOGZY.js} +1 -1
- package/dist/{chunk-2LM65VO3.js → chunk-F3K52YIU.js} +1 -1
- package/dist/{chunk-QIY34WEL.js → chunk-HESFCZO6.js} +1 -1
- package/dist/{chunk-6EKMVDH4.js → chunk-IQJ22AYO.js} +1 -1
- package/dist/{chunk-NRMCCERQ.cjs → chunk-KKT2GTET.cjs} +1 -1
- package/dist/chunk-KNXPO7F2.cjs +1 -0
- package/dist/{chunk-MOCVP6AE.cjs → chunk-LGHC7NEB.cjs} +1 -1
- package/dist/{chunk-XYN5AGKO.cjs → chunk-TPYITPBS.cjs} +1 -1
- package/dist/{chunk-XVJ4PII4.cjs → chunk-UTAZBSEV.cjs} +1 -1
- package/dist/error/processor.cjs +1 -1
- package/dist/error/processor.js +1 -1
- package/dist/evm/chains/definitions/story-testnet.d.cts +5 -3
- package/dist/evm/chains/definitions/story-testnet.d.ts +5 -3
- package/dist/evm/chains/definitions/story.d.cts +5 -3
- package/dist/evm/chains/definitions/story.d.ts +5 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.js +1 -1
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/logger.cjs +1 -1
- package/dist/services/logger.js +1 -1
- package/dist/smartWalletService.cjs +1 -1
- package/dist/smartWalletService.js +1 -1
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-F7ZYVWUR.cjs +0 -1
package/dist/apiService.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTPYITPBScjs = require('./chunk-TPYITPBS.cjs');require('./chunk-LGHC7NEB.cjs');exports.CrossmintApiService = _chunkTPYITPBScjs.b; exports.scwLogger = _chunkTPYITPBScjs.a;
|
package/dist/apiService.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-IQJ22AYO.js";import"./chunk-F3K52YIU.js";export{b as CrossmintApiService,a as scwLogger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y}from"./chunk-2MQHIAJE.js";import{b as w}from"./chunk-75JNTS3U.js";import{a as C}from"./chunk-DB2QM3HB.js";import{f as h,g as u,h as T,i as v,j as f,k as b,l as P}from"./chunk-UBRUUSMF.js";import{e as A,f as m}from"./chunk-
|
|
1
|
+
import{a as y}from"./chunk-2MQHIAJE.js";import{b as w}from"./chunk-75JNTS3U.js";import{a as C}from"./chunk-DB2QM3HB.js";import{f as h,g as u,h as T,i as v,j as f,k as b,l as P}from"./chunk-UBRUUSMF.js";import{e as A,f as m}from"./chunk-F3K52YIU.js";import{a as x}from"./chunk-GGKMZPIA.js";import{createPublicClient as k,concat as I,http as E,stringify as $,encodeFunctionData as N}from"viem";import{WebAuthnP256 as W}from"ox";var F=class{constructor(e){this.crossmintApiService=e}async getOrCreate(e,t,i,s){this.callbacks=s;let n=k({transport:E(w(t))}),{signer:a}=i,o=(await this.createWallet(e,a)).address;return new C({wallet:this.smartAccountClient(e,a,t,o),public:n},t,this.crossmintApiService)}smartAccountClient(e,t,i,s){return{getAddress:()=>s,getNonce:async n=>await k({transport:E(w(i))}).readContract({abi:x,address:A,functionName:"getNonce",args:[s,n?.key??0n]}),signMessage:async n=>{if(typeof n.message!="string")throw new h("Message must be a string");let a=await this.getSignerLocator(t),l=await this.crossmintApiService.createSignature(e,{type:"evm-message",params:{message:n.message,signer:a,chain:i}}),o=l.id,p=l.approvals.pending;if(p.length!==1)throw new u(`Expected 1 pending approval, got ${p.length}`);let c=p[0],g=await this.approveSignature(e,t,o,c.message),r=null;for(;r===null||r.status==="pending";)await y(m),r=await this.crossmintApiService.getSignature(e,o);if(r.status==="failed")throw new u("Message signing failed");return g},signTypedData:async n=>{let a=await this.getSignerLocator(t),{domain:l,message:o,primaryType:p,types:c}=n;if(!l||!o||!c)throw new T("Invalid typed data");let g=await this.crossmintApiService.createSignature(e,{type:"evm-typed-data",params:{typedData:{domain:l,message:o,primaryType:p,types:c},signer:a,chain:i,isSmartWalletSignature:!1}}),r=g.id,S=g.approvals.pending;if(S.length!==1)throw new v(`Expected 1 pending approval, got ${S.length}`);let D=S[0],R=await this.approveSignature(e,t,r,D.message),d=null;for(;d===null||d.status==="pending";)await y(m),d=await this.crossmintApiService.getSignature(e,r);if(d.status==="failed")throw new v("Typed data signing failed");return R},sendTransaction:async n=>await this.sendTransactionInternal(n,t,e,i),writeContract:async({address:n,abi:a,functionName:l,args:o,value:p})=>{let c=N({abi:a,functionName:l,args:o});return await this.sendTransactionInternal({to:n,data:c,value:p},t,e,i)}}}async sendTransactionInternal(e,t,i,s){this.callbacks?.onTransactionSigningStarted&&await this.callbacks.onTransactionSigningStarted(e);let n=await this.getSignerLocator(t),a=await this.crossmintApiService.createTransaction(i,{params:{signer:n,chain:s,calls:[{to:e.to,value:e.value?e.value.toString():"0",data:e.data??"0x"}]}}),l=a.id,o=a.approvals.pending;if(o.length!==1){let r=new f(`Expected 1 pending approval, got ${o.length}`);throw this.callbacks?.onTransactionSigningFailed&&await this.callbacks.onTransactionSigningFailed(r),r}let p=o[0];await this.approveTransaction(i,t,l,p.message);let c=null;for(;c===null||c.status==="pending";)await y(m),c=await this.crossmintApiService.getTransaction(i,l);if(c.status==="failed"){let r=new b("Transaction sending failed",$(c.error));throw this.callbacks?.onTransactionSigningFailed&&await this.callbacks.onTransactionSigningFailed(r),r}let g=c.onChain.txId;if(g===void 0){let r=new P("Transaction hash not found");throw this.callbacks?.onTransactionSigningFailed&&await this.callbacks.onTransactionSigningFailed(r),r}return this.callbacks?.onTransactionCompleted&&await this.callbacks.onTransactionCompleted(e),g}async createWallet(e,t){if("type"in t&&t.type==="PASSKEY")return await this.crossmintApiService.createWallet(e,{type:"evm-smart-wallet",config:{adminSigner:{type:"evm-passkey",id:t.credential.id,name:"Default",publicKey:{x:`0x${t.credential.publicKey.x.toString(16)}`,y:`0x${t.credential.publicKey.y.toString(16)}`}}}});{let i=await this.getSignerAddress(t);return await this.crossmintApiService.createWallet(e,{type:"evm-smart-wallet",config:{adminSigner:{type:"evm-keypair",address:i}}})}}async getSignerLocator(e){return"type"in e&&e.type==="PASSKEY"?`evm-passkey:${e.credential.id}`:`evm-keypair:${await this.getSignerAddress(e)}`}async getSignerAddress(e){return"type"in e?e.account.address:(await e.request({method:"eth_requestAccounts"}))[0]}async approveTransaction(e,t,i,s){if("type"in t&&t.type==="PASSKEY"){let{metadata:n,signature:a}=await W.sign({credentialId:t.credential.id,challenge:s});await this.crossmintApiService.approveTransaction(e,i,{approvals:[{metadata:n,signature:{r:`0x${a.r.toString(16)}`,s:`0x${a.s.toString(16)}`},signer:`evm-passkey:${t.credential.id}`}]})}else{let n=await this.getSignerAddress(t),a="type"in t?await t.account.signMessage({message:{raw:s}}):await t.request({method:"personal_sign",params:[s,n]});await this.crossmintApiService.approveTransaction(e,i,{approvals:[{signature:a,signer:`evm-keypair:${n}`}]})}}async approveSignature(e,t,i,s){if("type"in t&&t.type==="PASSKEY"){let{metadata:n,signature:a}=await W.sign({credentialId:t.credential.id,challenge:s});return await this.crossmintApiService.approveSignature(e,i,{approvals:[{metadata:n,signature:{r:`0x${a.r.toString(16)}`,s:`0x${a.s.toString(16)}`},signer:`evm-passkey:${t.credential.id}`}]}),I([`0x${a.r.toString(16)}`,`0x${a.s.toString(16)}`])}else{let n=await this.getSignerAddress(t),a="type"in t?await t.account.signMessage({message:{raw:s}}):await t.request({method:"personal_sign",params:[s,n]});return await this.crossmintApiService.approveSignature(e,i,{approvals:[{signature:a,signer:`evm-keypair:${n}`}]}),a}}};export{F as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkUTAZBSEVcjs = require('./chunk-UTAZBSEV.cjs');var _chunkKNXPO7F2cjs = require('./chunk-KNXPO7F2.cjs');var _chunkTPYITPBScjs = require('./chunk-TPYITPBS.cjs');var _chunkKKT2GTETcjs = require('./chunk-KKT2GTET.cjs');var _chunkMLTT5BGDcjs = require('./chunk-MLTT5BGD.cjs');var _chunk73LUJQGUcjs = require('./chunk-73LUJQGU.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var _viem = require('viem');var _ox = require('ox');var _clientsdkbase = require('@crossmint/client-sdk-base');var d=class W{constructor(r,t,i,e=_chunkKNXPO7F2cjs.a){this.crossmintEnv=r;this.smartWalletService=t;this.errorProcessor=i;this.logger=e}static init(r){let{clientApiKey:t}=r,i=_commonsdkbase.validateAPIKey.call(void 0, t);if(!i.isValid)throw new (0, _chunk73LUJQGUcjs.b)("API key invalid");let e=new (0, _chunkTPYITPBScjs.b)({apiKey:t}),a=new (0, _chunkKKT2GTETcjs.a)(e),g=new (0, _chunkUTAZBSEVcjs.a)(_chunkKNXPO7F2cjs.b);return new W(i.environment,a,g)}async getOrCreateWallet(r,t,i,e){if(!_clientsdkbase.isClient.call(void 0, ))throw new (0, _chunk73LUJQGUcjs.a)("Smart Wallet SDK should only be used client side.");return this.assertValidChain(t),await this.logger.logPerformance("GET_OR_CREATE_WALLET",async()=>{try{return _optionalChain([e, 'optionalAccess', _ => _.onWalletCreationStarted])&&await e.onWalletCreationStarted(),await this.smartWalletService.getOrCreate(r,t,i,e)}catch(a){throw _optionalChain([e, 'optionalAccess', _2 => _2.onWalletCreationFailed])&&await e.onWalletCreationFailed(a),this.errorProcessor.map(a,new (0, _chunk73LUJQGUcjs.c)(`Wallet creation failed: ${a.message}.`,_viem.stringify.call(void 0, a)))}})}async createPasskeySigner(r){return{type:"PASSKEY",credential:await _ox.WebAuthnP256.createCredential({name:r})}}assertValidChain(r){if(!this.validChain(r))throw new (0, _chunk73LUJQGUcjs.d)(`The selected chain "${r}" is not available in "${this.crossmintEnv}". Either set a valid chain or check you're using an API key for the environment you're trying to target.`)}validChain(r){return this.crossmintEnv==="development"||this.crossmintEnv==="staging"?_chunkMLTT5BGDcjs.a.call(void 0, r):_chunkMLTT5BGDcjs.b.call(void 0, r)}};exports.a = d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-UBRUUSMF.js";import{b as a}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-UBRUUSMF.js";import{b as a}from"./chunk-F3K52YIU.js";import{BaseError as e,stringify as i}from"viem";var r=class{constructor(n){this.logger=n}map(n,t){return this.record(n),n instanceof o||n instanceof e?n:t}record(n){let t=n instanceof Error?n.message:String(n);this.logger.error(`Smart Wallet SDK Error: ${t}`,{stack:n instanceof Error?n.stack:void 0,name:n instanceof Error?n.name:"UnknownError",details:i(n),domain:window.location.hostname,sdk_version:a})}};export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-F3K52YIU.js";import{SDKLogger as r,getBrowserLogger as e}from"@crossmint/client-sdk-base";var w=new r(o),a=new r(o,e(o,{onlyDatadog:!0}));export{w as a,a as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var s="@crossmint/client-sdk-smart-wallet",t="0.3.
|
|
1
|
+
var s="@crossmint/client-sdk-smart-wallet",t="0.3.2";var c="SCW_SDK",r=t,p=s,a="2022-06-09",m="0x0000000071727de22e5e9d8baf0edac6f37da032",l=1e3;export{c as a,r as b,p as c,a as d,m as e,l as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
1
|
+
import{a as h}from"./chunk-EPJDFF75.js";import{a as v,b as y}from"./chunk-EUWXOGZY.js";import{b as n}from"./chunk-IQJ22AYO.js";import{a as S}from"./chunk-6TH5VXHV.js";import{a as c,b as p}from"./chunk-VEZ3PQGX.js";import{a as o,b as s,c as l,d as m}from"./chunk-UBRUUSMF.js";import{validateAPIKey as P}from"@crossmint/common-sdk-base";import{stringify as f}from"viem";import{WebAuthnP256 as C}from"ox";import{isClient as w}from"@crossmint/client-sdk-base";var d=class W{constructor(r,t,i,e=v){this.crossmintEnv=r;this.smartWalletService=t;this.errorProcessor=i;this.logger=e}static init(r){let{clientApiKey:t}=r,i=P(t);if(!i.isValid)throw new s("API key invalid");let e=new n({apiKey:t}),a=new S(e),g=new h(y);return new W(i.environment,a,g)}async getOrCreateWallet(r,t,i,e){if(!w())throw new o("Smart Wallet SDK should only be used client side.");return this.assertValidChain(t),await this.logger.logPerformance("GET_OR_CREATE_WALLET",async()=>{try{return e?.onWalletCreationStarted&&await e.onWalletCreationStarted(),await this.smartWalletService.getOrCreate(r,t,i,e)}catch(a){throw e?.onWalletCreationFailed&&await e.onWalletCreationFailed(a),this.errorProcessor.map(a,new l(`Wallet creation failed: ${a.message}.`,f(a)))}})}async createPasskeySigner(r){return{type:"PASSKEY",credential:await C.createCredential({name:r})}}assertValidChain(r){if(!this.validChain(r))throw new m(`The selected chain "${r}" is not available in "${this.crossmintEnv}". Either set a valid chain or check you're using an API key for the environment you're trying to target.`)}validChain(r){return this.crossmintEnv==="development"||this.crossmintEnv==="staging"?c(r):p(r)}};export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,b as n,c as o,d as a}from"./chunk-
|
|
1
|
+
import{a as r,b as n,c as o,d as a}from"./chunk-F3K52YIU.js";import{CrossmintApiClient as l}from"@crossmint/common-sdk-base";import{APIErrorService as m,SDKLogger as c}from"@crossmint/client-sdk-base";var g=new c(r),i=class{constructor(e){this.logger=g;this.apiErrorService=new m({});this.apiClient=new l(e,{internalConfig:{sdkMetadata:{name:o,version:n}}})}async createWallet(e,s){return(await this.apiClient.post(`api/${a}/wallets/me`,{body:JSON.stringify(s),headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}})).json()}async createTransaction(e,s){return(await this.apiClient.post(`api/${a}/wallets/me:evm-smart-wallet/transactions`,{body:JSON.stringify(s),headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}})).json()}async approveTransaction(e,s,t){return(await this.apiClient.post(`api/${a}/wallets/me:evm-smart-wallet/transactions/${s}/approvals`,{body:JSON.stringify(t),headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}})).json()}async getTransaction(e,s){return(await this.apiClient.get(`api/${a}/wallets/me:evm-smart-wallet/transactions/${s}`,{headers:{Authorization:`Bearer ${e.jwt}`}})).json()}async createSignature(e,s){return(await this.apiClient.post(`api/${a}/wallets/me:evm-smart-wallet/signatures`,{body:JSON.stringify(s),headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}})).json()}async approveSignature(e,s,t){return(await this.apiClient.post(`api/${a}/wallets/me:evm-smart-wallet/signatures/${s}/approvals`,{body:JSON.stringify(t),headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}})).json()}async getSignature(e,s){return(await this.apiClient.get(`api/${a}/wallets/me:evm-smart-wallet/signatures/${s}`,{headers:{Authorization:`Bearer ${e.jwt}`}})).json()}async getNfts(e){return(await this.apiClient.get(`api/${a}/wallets/${e}/nfts`,{})).json()}};export{g as a,i as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkAS5VIM5Vcjs = require('./chunk-AS5VIM5V.cjs');var _chunk23IWY6XVcjs = require('./chunk-23IWY6XV.cjs');var _chunkLPLLPZFUcjs = require('./chunk-LPLLPZFU.cjs');var _chunk73LUJQGUcjs = require('./chunk-73LUJQGU.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkAS5VIM5Vcjs = require('./chunk-AS5VIM5V.cjs');var _chunk23IWY6XVcjs = require('./chunk-23IWY6XV.cjs');var _chunkLPLLPZFUcjs = require('./chunk-LPLLPZFU.cjs');var _chunk73LUJQGUcjs = require('./chunk-73LUJQGU.cjs');var _chunkLGHC7NEBcjs = require('./chunk-LGHC7NEB.cjs');var _chunkKXYDJTZScjs = require('./chunk-KXYDJTZS.cjs');var _viem = require('viem');var _ox = require('ox');var F=class{constructor(e){this.crossmintApiService=e}async getOrCreate(e,t,i,s){this.callbacks=s;let n=_viem.createPublicClient.call(void 0, {transport:_viem.http.call(void 0, _chunk23IWY6XVcjs.b.call(void 0, t))}),{signer:a}=i,o=(await this.createWallet(e,a)).address;return new (0, _chunkLPLLPZFUcjs.a)({wallet:this.smartAccountClient(e,a,t,o),public:n},t,this.crossmintApiService)}smartAccountClient(e,t,i,s){return{getAddress:()=>s,getNonce:async n=>await _viem.createPublicClient.call(void 0, {transport:_viem.http.call(void 0, _chunk23IWY6XVcjs.b.call(void 0, i))}).readContract({abi:_chunkKXYDJTZScjs.a,address:_chunkLGHC7NEBcjs.e,functionName:"getNonce",args:[s,_nullishCoalesce(_optionalChain([n, 'optionalAccess', _ => _.key]), () => (0n))]}),signMessage:async n=>{if(typeof n.message!="string")throw new (0, _chunk73LUJQGUcjs.f)("Message must be a string");let a=await this.getSignerLocator(t),l=await this.crossmintApiService.createSignature(e,{type:"evm-message",params:{message:n.message,signer:a,chain:i}}),o=l.id,p=l.approvals.pending;if(p.length!==1)throw new (0, _chunk73LUJQGUcjs.g)(`Expected 1 pending approval, got ${p.length}`);let c=p[0],g=await this.approveSignature(e,t,o,c.message),r=null;for(;r===null||r.status==="pending";)await _chunkAS5VIM5Vcjs.a.call(void 0, _chunkLGHC7NEBcjs.f),r=await this.crossmintApiService.getSignature(e,o);if(r.status==="failed")throw new (0, _chunk73LUJQGUcjs.g)("Message signing failed");return g},signTypedData:async n=>{let a=await this.getSignerLocator(t),{domain:l,message:o,primaryType:p,types:c}=n;if(!l||!o||!c)throw new (0, _chunk73LUJQGUcjs.h)("Invalid typed data");let g=await this.crossmintApiService.createSignature(e,{type:"evm-typed-data",params:{typedData:{domain:l,message:o,primaryType:p,types:c},signer:a,chain:i,isSmartWalletSignature:!1}}),r=g.id,S=g.approvals.pending;if(S.length!==1)throw new (0, _chunk73LUJQGUcjs.i)(`Expected 1 pending approval, got ${S.length}`);let D=S[0],R=await this.approveSignature(e,t,r,D.message),d=null;for(;d===null||d.status==="pending";)await _chunkAS5VIM5Vcjs.a.call(void 0, _chunkLGHC7NEBcjs.f),d=await this.crossmintApiService.getSignature(e,r);if(d.status==="failed")throw new (0, _chunk73LUJQGUcjs.i)("Typed data signing failed");return R},sendTransaction:async n=>await this.sendTransactionInternal(n,t,e,i),writeContract:async({address:n,abi:a,functionName:l,args:o,value:p})=>{let c=_viem.encodeFunctionData.call(void 0, {abi:a,functionName:l,args:o});return await this.sendTransactionInternal({to:n,data:c,value:p},t,e,i)}}}async sendTransactionInternal(e,t,i,s){_optionalChain([this, 'access', _2 => _2.callbacks, 'optionalAccess', _3 => _3.onTransactionSigningStarted])&&await this.callbacks.onTransactionSigningStarted(e);let n=await this.getSignerLocator(t),a=await this.crossmintApiService.createTransaction(i,{params:{signer:n,chain:s,calls:[{to:e.to,value:e.value?e.value.toString():"0",data:_nullishCoalesce(e.data, () => ("0x"))}]}}),l=a.id,o=a.approvals.pending;if(o.length!==1){let r=new (0, _chunk73LUJQGUcjs.j)(`Expected 1 pending approval, got ${o.length}`);throw _optionalChain([this, 'access', _4 => _4.callbacks, 'optionalAccess', _5 => _5.onTransactionSigningFailed])&&await this.callbacks.onTransactionSigningFailed(r),r}let p=o[0];await this.approveTransaction(i,t,l,p.message);let c=null;for(;c===null||c.status==="pending";)await _chunkAS5VIM5Vcjs.a.call(void 0, _chunkLGHC7NEBcjs.f),c=await this.crossmintApiService.getTransaction(i,l);if(c.status==="failed"){let r=new (0, _chunk73LUJQGUcjs.k)("Transaction sending failed",_viem.stringify.call(void 0, c.error));throw _optionalChain([this, 'access', _6 => _6.callbacks, 'optionalAccess', _7 => _7.onTransactionSigningFailed])&&await this.callbacks.onTransactionSigningFailed(r),r}let g=c.onChain.txId;if(g===void 0){let r=new (0, _chunk73LUJQGUcjs.l)("Transaction hash not found");throw _optionalChain([this, 'access', _8 => _8.callbacks, 'optionalAccess', _9 => _9.onTransactionSigningFailed])&&await this.callbacks.onTransactionSigningFailed(r),r}return _optionalChain([this, 'access', _10 => _10.callbacks, 'optionalAccess', _11 => _11.onTransactionCompleted])&&await this.callbacks.onTransactionCompleted(e),g}async createWallet(e,t){if("type"in t&&t.type==="PASSKEY")return await this.crossmintApiService.createWallet(e,{type:"evm-smart-wallet",config:{adminSigner:{type:"evm-passkey",id:t.credential.id,name:"Default",publicKey:{x:`0x${t.credential.publicKey.x.toString(16)}`,y:`0x${t.credential.publicKey.y.toString(16)}`}}}});{let i=await this.getSignerAddress(t);return await this.crossmintApiService.createWallet(e,{type:"evm-smart-wallet",config:{adminSigner:{type:"evm-keypair",address:i}}})}}async getSignerLocator(e){return"type"in e&&e.type==="PASSKEY"?`evm-passkey:${e.credential.id}`:`evm-keypair:${await this.getSignerAddress(e)}`}async getSignerAddress(e){return"type"in e?e.account.address:(await e.request({method:"eth_requestAccounts"}))[0]}async approveTransaction(e,t,i,s){if("type"in t&&t.type==="PASSKEY"){let{metadata:n,signature:a}=await _ox.WebAuthnP256.sign({credentialId:t.credential.id,challenge:s});await this.crossmintApiService.approveTransaction(e,i,{approvals:[{metadata:n,signature:{r:`0x${a.r.toString(16)}`,s:`0x${a.s.toString(16)}`},signer:`evm-passkey:${t.credential.id}`}]})}else{let n=await this.getSignerAddress(t),a="type"in t?await t.account.signMessage({message:{raw:s}}):await t.request({method:"personal_sign",params:[s,n]});await this.crossmintApiService.approveTransaction(e,i,{approvals:[{signature:a,signer:`evm-keypair:${n}`}]})}}async approveSignature(e,t,i,s){if("type"in t&&t.type==="PASSKEY"){let{metadata:n,signature:a}=await _ox.WebAuthnP256.sign({credentialId:t.credential.id,challenge:s});return await this.crossmintApiService.approveSignature(e,i,{approvals:[{metadata:n,signature:{r:`0x${a.r.toString(16)}`,s:`0x${a.s.toString(16)}`},signer:`evm-passkey:${t.credential.id}`}]}),_viem.concat.call(void 0, [`0x${a.r.toString(16)}`,`0x${a.s.toString(16)}`])}else{let n=await this.getSignerAddress(t),a="type"in t?await t.account.signMessage({message:{raw:s}}):await t.request({method:"personal_sign",params:[s,n]});return await this.crossmintApiService.approveSignature(e,i,{approvals:[{signature:a,signer:`evm-keypair:${n}`}]}),a}}};exports.a = F;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLGHC7NEBcjs = require('./chunk-LGHC7NEB.cjs');var _clientsdkbase = require('@crossmint/client-sdk-base');var s=new (0, _clientsdkbase.SDKLogger)(_chunkLGHC7NEBcjs.a),w= exports.b =new (0, _clientsdkbase.SDKLogger)(_chunkLGHC7NEBcjs.a,_clientsdkbase.getBrowserLogger.call(void 0, _chunkLGHC7NEBcjs.a,{onlyDatadog:!0}));exports.a = s; exports.b = w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var s="@crossmint/client-sdk-smart-wallet",t="0.3.
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var s="@crossmint/client-sdk-smart-wallet",t="0.3.2";var d="SCW_SDK",c= exports.b =t,r= exports.c =s,p= exports.d ="2022-06-09",a= exports.e ="0x0000000071727de22e5e9d8baf0edac6f37da032",m= exports.f =1e3;exports.a = d; exports.b = c; exports.c = r; exports.d = p; exports.e = a; exports.f = m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLGHC7NEBcjs = require('./chunk-LGHC7NEB.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var _clientsdkbase = require('@crossmint/client-sdk-base');var g=new (0, _clientsdkbase.SDKLogger)(_chunkLGHC7NEBcjs.a),i= exports.b =class{constructor(e){this.logger=g;this.apiErrorService=new (0, _clientsdkbase.APIErrorService)({});this.apiClient=new (0, _commonsdkbase.CrossmintApiClient)(e,{internalConfig:{sdkMetadata:{name:_chunkLGHC7NEBcjs.c,version:_chunkLGHC7NEBcjs.b}}})}async createWallet(e,s){return(await this.apiClient.post(`api/${_chunkLGHC7NEBcjs.d}/wallets/me`,{body:JSON.stringify(s),headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}})).json()}async createTransaction(e,s){return(await this.apiClient.post(`api/${_chunkLGHC7NEBcjs.d}/wallets/me:evm-smart-wallet/transactions`,{body:JSON.stringify(s),headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}})).json()}async approveTransaction(e,s,t){return(await this.apiClient.post(`api/${_chunkLGHC7NEBcjs.d}/wallets/me:evm-smart-wallet/transactions/${s}/approvals`,{body:JSON.stringify(t),headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}})).json()}async getTransaction(e,s){return(await this.apiClient.get(`api/${_chunkLGHC7NEBcjs.d}/wallets/me:evm-smart-wallet/transactions/${s}`,{headers:{Authorization:`Bearer ${e.jwt}`}})).json()}async createSignature(e,s){return(await this.apiClient.post(`api/${_chunkLGHC7NEBcjs.d}/wallets/me:evm-smart-wallet/signatures`,{body:JSON.stringify(s),headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}})).json()}async approveSignature(e,s,t){return(await this.apiClient.post(`api/${_chunkLGHC7NEBcjs.d}/wallets/me:evm-smart-wallet/signatures/${s}/approvals`,{body:JSON.stringify(t),headers:{Authorization:`Bearer ${e.jwt}`,"Content-Type":"application/json"}})).json()}async getSignature(e,s){return(await this.apiClient.get(`api/${_chunkLGHC7NEBcjs.d}/wallets/me:evm-smart-wallet/signatures/${s}`,{headers:{Authorization:`Bearer ${e.jwt}`}})).json()}async getNfts(e){return(await this.apiClient.get(`api/${_chunkLGHC7NEBcjs.d}/wallets/${e}/nfts`,{})).json()}};exports.a = g; exports.b = i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk73LUJQGUcjs = require('./chunk-73LUJQGU.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk73LUJQGUcjs = require('./chunk-73LUJQGU.cjs');var _chunkLGHC7NEBcjs = require('./chunk-LGHC7NEB.cjs');var _viem = require('viem');var r=class{constructor(n){this.logger=n}map(n,t){return this.record(n),n instanceof _chunk73LUJQGUcjs.a||n instanceof _viem.BaseError?n:t}record(n){let t=n instanceof Error?n.message:String(n);this.logger.error(`Smart Wallet SDK Error: ${t}`,{stack:n instanceof Error?n.stack:void 0,name:n instanceof Error?n.name:"UnknownError",details:_viem.stringify.call(void 0, n),domain:window.location.hostname,sdk_version:_chunkLGHC7NEBcjs.b})}};exports.a = r;
|
package/dist/error/processor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUTAZBSEVcjs = require('../chunk-UTAZBSEV.cjs');require('../chunk-73LUJQGU.cjs');require('../chunk-LGHC7NEB.cjs');exports.ErrorProcessor = _chunkUTAZBSEVcjs.a;
|
package/dist/error/processor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-EPJDFF75.js";import"../chunk-UBRUUSMF.js";import"../chunk-F3K52YIU.js";export{a as ErrorProcessor};
|
|
@@ -7,14 +7,16 @@ declare const storyTestnet: {
|
|
|
7
7
|
readonly url: "https://testnet.storyscan.xyz";
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
contracts?: {
|
|
11
|
-
[
|
|
10
|
+
contracts?: viem.Prettify<{
|
|
11
|
+
[key: string]: viem.ChainContract | {
|
|
12
12
|
[sourceId: number]: viem.ChainContract | undefined;
|
|
13
13
|
} | undefined;
|
|
14
|
+
} & {
|
|
14
15
|
ensRegistry?: viem.ChainContract | undefined;
|
|
15
16
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
16
17
|
multicall3?: viem.ChainContract | undefined;
|
|
17
|
-
|
|
18
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
19
|
+
}> | undefined;
|
|
18
20
|
id: 1513;
|
|
19
21
|
name: "Story Testnet";
|
|
20
22
|
nativeCurrency: {
|
|
@@ -7,14 +7,16 @@ declare const storyTestnet: {
|
|
|
7
7
|
readonly url: "https://testnet.storyscan.xyz";
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
contracts?: {
|
|
11
|
-
[
|
|
10
|
+
contracts?: viem.Prettify<{
|
|
11
|
+
[key: string]: viem.ChainContract | {
|
|
12
12
|
[sourceId: number]: viem.ChainContract | undefined;
|
|
13
13
|
} | undefined;
|
|
14
|
+
} & {
|
|
14
15
|
ensRegistry?: viem.ChainContract | undefined;
|
|
15
16
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
16
17
|
multicall3?: viem.ChainContract | undefined;
|
|
17
|
-
|
|
18
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
19
|
+
}> | undefined;
|
|
18
20
|
id: 1513;
|
|
19
21
|
name: "Story Testnet";
|
|
20
22
|
nativeCurrency: {
|
|
@@ -13,14 +13,16 @@ declare const story: {
|
|
|
13
13
|
apiUrl?: string | undefined;
|
|
14
14
|
};
|
|
15
15
|
} | undefined;
|
|
16
|
-
contracts?: {
|
|
17
|
-
[
|
|
16
|
+
contracts?: viem.Prettify<{
|
|
17
|
+
[key: string]: viem.ChainContract | {
|
|
18
18
|
[sourceId: number]: viem.ChainContract | undefined;
|
|
19
19
|
} | undefined;
|
|
20
|
+
} & {
|
|
20
21
|
ensRegistry?: viem.ChainContract | undefined;
|
|
21
22
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
22
23
|
multicall3?: viem.ChainContract | undefined;
|
|
23
|
-
|
|
24
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
25
|
+
}> | undefined;
|
|
24
26
|
id: 1514;
|
|
25
27
|
name: "Story";
|
|
26
28
|
nativeCurrency: {
|
|
@@ -13,14 +13,16 @@ declare const story: {
|
|
|
13
13
|
apiUrl?: string | undefined;
|
|
14
14
|
};
|
|
15
15
|
} | undefined;
|
|
16
|
-
contracts?: {
|
|
17
|
-
[
|
|
16
|
+
contracts?: viem.Prettify<{
|
|
17
|
+
[key: string]: viem.ChainContract | {
|
|
18
18
|
[sourceId: number]: viem.ChainContract | undefined;
|
|
19
19
|
} | undefined;
|
|
20
|
+
} & {
|
|
20
21
|
ensRegistry?: viem.ChainContract | undefined;
|
|
21
22
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
22
23
|
multicall3?: viem.ChainContract | undefined;
|
|
23
|
-
|
|
24
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
25
|
+
}> | undefined;
|
|
24
26
|
id: 1514;
|
|
25
27
|
name: "Story";
|
|
26
28
|
nativeCurrency: {
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE3VNTW5Jcjs = require('./chunk-E3VNTW5J.cjs');require('./chunk-UTAZBSEV.cjs');require('./chunk-ODAUWGUU.cjs');require('./chunk-KNXPO7F2.cjs');require('./chunk-TPYITPBS.cjs');require('./chunk-KKT2GTET.cjs');require('./chunk-AS5VIM5V.cjs');require('./chunk-23IWY6XV.cjs');require('./chunk-MLTT5BGD.cjs');require('./chunk-5URY3C2T.cjs');require('./chunk-MFUN74KH.cjs');var _chunkLPLLPZFUcjs = require('./chunk-LPLLPZFU.cjs');var _chunk73LUJQGUcjs = require('./chunk-73LUJQGU.cjs');require('./chunk-4PMBBA3O.cjs');require('./chunk-LGHC7NEB.cjs');require('./chunk-KXYDJTZS.cjs');require('./chunk-J5SRLI35.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');exports.Chain = _commonsdkbase.EVMBlockchainIncludingTestnet; exports.EVMSmartWallet = _chunkLPLLPZFUcjs.a; exports.InvalidApiKeyError = _chunk73LUJQGUcjs.b; exports.InvalidChainError = _chunk73LUJQGUcjs.d; exports.InvalidMessageFormatError = _chunk73LUJQGUcjs.f; exports.InvalidTransferChainError = _chunk73LUJQGUcjs.e; exports.InvalidTypedDataError = _chunk73LUJQGUcjs.h; exports.MessageSigningError = _chunk73LUJQGUcjs.g; exports.SmartWalletError = _chunk73LUJQGUcjs.a; exports.SmartWalletSDK = _chunkE3VNTW5Jcjs.a; exports.TransactionApprovalError = _chunk73LUJQGUcjs.j; exports.TransactionFailedError = _chunk73LUJQGUcjs.k; exports.TransactionNotFoundError = _chunk73LUJQGUcjs.l; exports.TypedDataSigningError = _chunk73LUJQGUcjs.i; exports.WalletCreationError = _chunk73LUJQGUcjs.c; exports.blockchainToChainId = _commonsdkbase.blockchainToChainId;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-HESFCZO6.js";import"./chunk-EPJDFF75.js";import"./chunk-4SPA557P.js";import"./chunk-EUWXOGZY.js";import"./chunk-IQJ22AYO.js";import"./chunk-6TH5VXHV.js";import"./chunk-2MQHIAJE.js";import"./chunk-75JNTS3U.js";import"./chunk-VEZ3PQGX.js";import"./chunk-XLACPZJJ.js";import"./chunk-KVFFSUF4.js";import{a as E}from"./chunk-DB2QM3HB.js";import{a as r,b as a,c as e,d as t,e as n,f as o,g as l,h as i,i as s,j as m,k as p,l as T}from"./chunk-UBRUUSMF.js";import"./chunk-NXTHA2ZL.js";import"./chunk-F3K52YIU.js";import"./chunk-GGKMZPIA.js";import"./chunk-I5RZI2HB.js";import{blockchainToChainId as C,EVMBlockchainIncludingTestnet as W}from"@crossmint/common-sdk-base";export{W as Chain,E as EVMSmartWallet,a as InvalidApiKeyError,t as InvalidChainError,o as InvalidMessageFormatError,n as InvalidTransferChainError,i as InvalidTypedDataError,l as MessageSigningError,r as SmartWalletError,f as SmartWalletSDK,m as TransactionApprovalError,p as TransactionFailedError,T as TransactionNotFoundError,s as TypedDataSigningError,e as WalletCreationError,C as blockchainToChainId};
|
package/dist/sdk.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE3VNTW5Jcjs = require('./chunk-E3VNTW5J.cjs');require('./chunk-UTAZBSEV.cjs');require('./chunk-ODAUWGUU.cjs');require('./chunk-KNXPO7F2.cjs');require('./chunk-TPYITPBS.cjs');require('./chunk-KKT2GTET.cjs');require('./chunk-AS5VIM5V.cjs');require('./chunk-23IWY6XV.cjs');require('./chunk-MLTT5BGD.cjs');require('./chunk-5URY3C2T.cjs');require('./chunk-MFUN74KH.cjs');require('./chunk-LPLLPZFU.cjs');require('./chunk-73LUJQGU.cjs');require('./chunk-4PMBBA3O.cjs');require('./chunk-LGHC7NEB.cjs');require('./chunk-KXYDJTZS.cjs');require('./chunk-J5SRLI35.cjs');exports.SmartWalletSDK = _chunkE3VNTW5Jcjs.a;
|
package/dist/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-HESFCZO6.js";import"./chunk-EPJDFF75.js";import"./chunk-4SPA557P.js";import"./chunk-EUWXOGZY.js";import"./chunk-IQJ22AYO.js";import"./chunk-6TH5VXHV.js";import"./chunk-2MQHIAJE.js";import"./chunk-75JNTS3U.js";import"./chunk-VEZ3PQGX.js";import"./chunk-XLACPZJJ.js";import"./chunk-KVFFSUF4.js";import"./chunk-DB2QM3HB.js";import"./chunk-UBRUUSMF.js";import"./chunk-NXTHA2ZL.js";import"./chunk-F3K52YIU.js";import"./chunk-GGKMZPIA.js";import"./chunk-I5RZI2HB.js";export{a as SmartWalletSDK};
|
package/dist/services/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ODAUWGUU.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ODAUWGUU.cjs');var _chunkKNXPO7F2cjs = require('../chunk-KNXPO7F2.cjs');require('../chunk-LGHC7NEB.cjs');exports.scwDatadogLogger = _chunkKNXPO7F2cjs.b; exports.scwLogger = _chunkKNXPO7F2cjs.a;
|
package/dist/services/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-4SPA557P.js";import{a,b}from"../chunk-
|
|
1
|
+
import"../chunk-4SPA557P.js";import{a,b}from"../chunk-EUWXOGZY.js";import"../chunk-F3K52YIU.js";export{b as scwDatadogLogger,a as scwLogger};
|
package/dist/services/logger.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKNXPO7F2cjs = require('../chunk-KNXPO7F2.cjs');require('../chunk-LGHC7NEB.cjs');exports.scwDatadogLogger = _chunkKNXPO7F2cjs.b; exports.scwLogger = _chunkKNXPO7F2cjs.a;
|
package/dist/services/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-EUWXOGZY.js";import"../chunk-F3K52YIU.js";export{b as scwDatadogLogger,a as scwLogger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKKT2GTETcjs = require('./chunk-KKT2GTET.cjs');require('./chunk-AS5VIM5V.cjs');require('./chunk-23IWY6XV.cjs');require('./chunk-MLTT5BGD.cjs');require('./chunk-5URY3C2T.cjs');require('./chunk-MFUN74KH.cjs');require('./chunk-LPLLPZFU.cjs');require('./chunk-73LUJQGU.cjs');require('./chunk-4PMBBA3O.cjs');require('./chunk-LGHC7NEB.cjs');require('./chunk-KXYDJTZS.cjs');require('./chunk-J5SRLI35.cjs');exports.SmartWalletService = _chunkKKT2GTETcjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-6TH5VXHV.js";import"./chunk-2MQHIAJE.js";import"./chunk-75JNTS3U.js";import"./chunk-VEZ3PQGX.js";import"./chunk-XLACPZJJ.js";import"./chunk-KVFFSUF4.js";import"./chunk-DB2QM3HB.js";import"./chunk-UBRUUSMF.js";import"./chunk-NXTHA2ZL.js";import"./chunk-F3K52YIU.js";import"./chunk-GGKMZPIA.js";import"./chunk-I5RZI2HB.js";export{a as SmartWalletService};
|
package/dist/utils/constants.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLGHC7NEBcjs = require('../chunk-LGHC7NEB.cjs');exports.API_VERSION = _chunkLGHC7NEBcjs.d; exports.ENTRY_POINT_ADDRESS = _chunkLGHC7NEBcjs.e; exports.SCW_SERVICE = _chunkLGHC7NEBcjs.a; exports.SDK_NAME = _chunkLGHC7NEBcjs.c; exports.SDK_VERSION = _chunkLGHC7NEBcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkLGHC7NEBcjs.f;
|
package/dist/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-F3K52YIU.js";export{d as API_VERSION,e as ENTRY_POINT_ADDRESS,a as SCW_SERVICE,c as SDK_NAME,b as SDK_VERSION,f as STATUS_POLLING_INTERVAL_MS};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossmint/client-sdk-smart-wallet",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"ox": "0.6.9",
|
|
22
|
-
"viem": "2.
|
|
23
|
-
"@crossmint/client-sdk-base": "1.4.
|
|
22
|
+
"viem": "2.23.6",
|
|
23
|
+
"@crossmint/client-sdk-base": "1.4.13",
|
|
24
24
|
"@crossmint/common-sdk-base": "0.3.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
package/dist/chunk-F7ZYVWUR.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMOCVP6AEcjs = require('./chunk-MOCVP6AE.cjs');var _clientsdkbase = require('@crossmint/client-sdk-base');var s=new (0, _clientsdkbase.SDKLogger)(_chunkMOCVP6AEcjs.a),w= exports.b =new (0, _clientsdkbase.SDKLogger)(_chunkMOCVP6AEcjs.a,_clientsdkbase.getBrowserLogger.call(void 0, _chunkMOCVP6AEcjs.a,{onlyDatadog:!0}));exports.a = s; exports.b = w;
|