@tokenbound/sdk
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -1,3 +0,3 @@ | ||
import { getContract as s, encodeFunctionData as u } from "viem"; | ||
const d = [ | ||
import { getContract as r, encodeFunctionData as d } from "viem"; | ||
const y = [ | ||
{ | ||
@@ -134,3 +134,3 @@ inputs: [], | ||
} | ||
], r = [ | ||
], p = [ | ||
{ | ||
@@ -243,11 +243,11 @@ anonymous: !1, | ||
} | ||
], c = "0x02101dfB77FDE026414827Fdc604ddAF224F0921", y = "0x2d25602551487c3f3354dd80d76d54383a243358"; | ||
], u = "0x02101dfB77FDE026414827Fdc604ddAF224F0921", c = "0x2d25602551487c3f3354dd80d76d54383a243358"; | ||
async function o(t, n, e) { | ||
const a = s({ | ||
address: c, | ||
abi: d, | ||
const a = r({ | ||
address: u, | ||
abi: y, | ||
publicClient: e | ||
}), i = await e.getChainId(); | ||
return await a.read.account([ | ||
y, | ||
c, | ||
i, | ||
@@ -260,9 +260,20 @@ t, | ||
async function m(t, n, e) { | ||
const a = s({ | ||
address: "0x1472d0f5c6c151df96352ec271b8df1093370a7a", | ||
abi: d, | ||
const a = r({ | ||
address: u, | ||
abi: y, | ||
walletClient: e | ||
}), i = await e.getChainId(); | ||
}), i = await e.getChainId(), s = d({ | ||
abi: [ | ||
{ | ||
inputs: [], | ||
name: "initialize", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function" | ||
} | ||
], | ||
functionName: "initialize" | ||
}); | ||
return a.write.createAccount([ | ||
y, | ||
c, | ||
i, | ||
@@ -272,3 +283,3 @@ t, | ||
0, | ||
"" | ||
s | ||
]); | ||
@@ -280,4 +291,4 @@ } | ||
value: e, | ||
data: u({ | ||
abi: r, | ||
data: d({ | ||
abi: p, | ||
functionName: "executeCall", | ||
@@ -289,5 +300,5 @@ args: [n, e, a] | ||
async function b(t, n, e, a, i) { | ||
return s({ | ||
return r({ | ||
address: t, | ||
abi: r, | ||
abi: p, | ||
walletClient: i | ||
@@ -302,6 +313,6 @@ }).write.executeCall([ | ||
m as createAccount, | ||
r as erc6551AccountAbi, | ||
y as erc6551AccountImplementationAddress, | ||
d as erc6551RegistryAbi, | ||
c as erc6551RegistryAddress, | ||
p as erc6551AccountAbi, | ||
c as erc6551AccountImplementationAddress, | ||
y as erc6551RegistryAbi, | ||
u as erc6551RegistryAddress, | ||
b as executeCall, | ||
@@ -308,0 +319,0 @@ o as getAccount, |
{ | ||
"name": "@tokenbound/sdk", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
11893
343