Skip to content

Commit

Permalink
chore: release v0.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Dec 9, 2024
1 parent a8e9a49 commit d30b0dc
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @biconomy/sdk

## 0.0.15

### Patch Changes

- Migrate to Nexus: b4d6ff463bc41dc232292c385bdb76814ca8689c

## 0.0.14

### Patch Changes
Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biconomy/sdk",
"version": "0.0.14",
"version": "0.0.15",
"author": "Biconomy",
"repository": "github:bcnmy/sdk",
"main": "./dist/_cjs/index.js",
Expand All @@ -26,7 +26,7 @@
"execa": "^9.3.1",
"get-port": "^7.1.0",
"gh-pages": "^6.1.1",
"nexus": "github:bcnmy/nexus#ddfc4b3ec024f884e6f8b327e2b6840099f64293",
"nexus": "github:bcnmy/nexus#84d918d694b7619186769d160fd00629a233c0e6",
"prool": "^0.0.16",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.9.0",
Expand Down
6 changes: 5 additions & 1 deletion scripts/fetch:deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type FetchDetails = {
}
const {
nexusDeploymentPath = "../node_modules/nexus/deployments",
chainName = "anvil-54219",
chainName = "anvil-50597",
forSrc = ["K1ValidatorFactory", "Nexus", "K1Validator"]
} = yargs(hideBin(process.argv)).argv as unknown as FetchDetails

Expand Down Expand Up @@ -54,6 +54,10 @@ export const getDeployments = async () => {
? `${__dirname}/../src/sdk/__contracts/abi/${name}Abi.ts`
: `${__dirname}/../src/test/__contracts/abi/${name}Abi.ts`

// Create all necessary directories recursively
fs.mkdirSync(`${__dirname}/../src/sdk/__contracts/abi`, {
recursive: true
})
fs.writeFileSync(tsAbiPath, tsAbiContent)

deployedContracts[name] = {
Expand Down
6 changes: 3 additions & 3 deletions scripts/send:userOp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ const main = async () => {
const nexusAccount = await toNexusAccount({
signer: account,
chain,
transport: http(),
k1ValidatorAddress: "0x000000000EE7335c268e8225fcce3E913B8b30FE",
factoryAddress: "0x0000000000D8BA042724b13e85B5f40C715A5702"
transport: http()
// k1ValidatorAddress: "0x9e89779Aec23d02f3b407f6B2ec46895dADa6FdA",
// factoryAddress: "0x607dc9e8bf063730eFe3634CcCA4Ce80924541BE"
})

const nexusBalance = await publicClient.getBalance({
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/clients/createBundlerClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { smartAccountActions } from "./decorators/smartAccount"
const COMPETITORS = [
{
name: "Pimlico",
bundlerUrl: `https://api.pimlico.io/v2/84532/rpc?apikey=${process.env.PIMLICO_API_KEY}`
bundlerUrl: `https://api.pimlico.io/v2/${process.env.CHAIN_ID}/rpc?apikey=${process.env.PIMLICO_API_KEY}`
}
]

Expand Down
10 changes: 5 additions & 5 deletions src/sdk/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ export const NEXUS_BOOTSTRAP_ADDRESS: Hex =
"0x00000008c901d8871b6F6942De0B5D9cCf3873d3"

export const TEST_ADDRESS_NEXUS_IMPLEMENTATION_ADDRESS: Hex =
"0xDe3880ed9dBB5faECaB5F7d5DEC2C5815272fD47"
"0xB3F84591e997Fc6fe9Cd3b89603Dad28E0445CE0"
export const TEST_ADDRESS_K1_VALIDATOR_FACTORY_ADDRESS: Hex =
"0x10c5d8DC02d7F360eC41b8F5AFFdE3e0BD0a2B6E"
"0x704C800D313c6B184228B5b733bBd6BC3EA9832c"
export const TEST_ADDRESS_K1_VALIDATOR_ADDRESS: Hex =
"0xCfa6175DDC2eF918e527b2972D9AB8B149f151b7"

export const MAINNET_ADDRESS_NEXUS_IMPLEMENTATION_ADDRESS: Hex =
"0x000000039dfcAd030719B07296710F045F0558f7"
"0x000000F5b753Fdd20C5CA2D7c1210b3Ab1EA5903"
export const MAINNET_ADDRESS_K1_VALIDATOR_FACTORY_ADDRESS: Hex =
"0x00000bb19a3579F4D779215dEf97AFbd0e30DB55"
"0x00000024115AA990F0bAE0B6b0D5B8F68b684cd6"
export const MAINNET_ADDRESS_K1_VALIDATOR_ADDRESS: Hex =
"0x00000004171351c442B202678c48D8AB5B321E8f"
"0x0000002D6DB27c52E3C11c1Cf24072004AC75cBa"

export const nexusImplementationAddress: Hex = isTesting()
? TEST_ADDRESS_NEXUS_IMPLEMENTATION_ADDRESS
Expand Down
8 changes: 4 additions & 4 deletions src/test/__contracts/mockAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
export const mockAddresses = {
MockHook: "0xFeBc971f01c1e7ae22A47315Ac29C6B5ceb0aaf0",
Stakeable: "0x33F4F96959eC465DBEee63CdEc09fc1a224bCE15",
NexusAccountFactory: "0xBd81E2BA07B9c75c5d13da1dbFB351486Bd5bB0d",
NexusAccountFactory: "0xdC65a6859f64b0C52Fc3FC9f3445d891dFCDe566",
BiconomyMetaFactory: "0x3bCF58bbEfD78C2445d883127946Edd1D3544073",
NexusBootstrap: "0x28EFe9A6C5ea4a1f0129c13F21eCf87D3fb76390",
NexusBootstrap: "0xf7666822b3a25c0C2f31EFb6854d485f3eb036bE",
Counter: "0x2b4e7a9e2040729933D3C8284a95e460fBB2257E",
MockValidator: "0x659C27db68Af99C8bEF9c458F2aB2495806b2EA4",
MockToken: "0x419b892F2b67586a7341dBAd3Bb8d7Fe8321cb96",
BootstrapLib: "0xdA7dF1B7CA57d0E4e6E2F61aC0995533648Fc2F0",
BootstrapLib: "0xece570B53c831a95E22b48E4169578A6ea31675E",
MockRegistry: "0xFA344eABd10bedfa29A3BDC549fB246D48998f8A",
MockHandler: "0x81e4C1C3F6d903F11993d22D0Dc92903F29d8b77",
TokenWithPermit: "0xe2195b42CBC7Cd5072b0D95FB91350fC41f0da18",
MockExecutor: "0x4eC7afF8dd67c2fC8178D139725C7118D5A56ECb"
MockExecutor: "0xb936a975a1B14018B0e4c8Cf8d73194044EE4dFd"
} as const
export default mockAddresses
12 changes: 4 additions & 8 deletions src/test/playground.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe.skipIf(!playgroundTrue())("playground", () => {
let nexusClient: NexusClient
let nexusAccountAddress: Address

const index = 4n
const index = 6n

beforeAll(async () => {
network = await toNetwork("PUBLIC_TESTNET")
Expand Down Expand Up @@ -89,9 +89,7 @@ describe.skipIf(!playgroundTrue())("playground", () => {
})
: undefined,
index,
...testParams,
k1ValidatorAddress: "0x000000000EE7335c268e8225fcce3E913B8b30FE",
factoryAddress: "0x0000000000D8BA042724b13e85B5f40C715A5702"
...testParams
})
})

Expand Down Expand Up @@ -223,7 +221,7 @@ describe.skipIf(!playgroundTrue())("playground", () => {
granter: nexusClient.account.address,
sessionPublicKey: eoaAccount.address,
moduleData: {
permissionIds: createSessionsResponse.permissionIds,
...createSessionsResponse,
mode: SmartSessionMode.USE
}
}
Expand All @@ -235,9 +233,7 @@ describe.skipIf(!playgroundTrue())("playground", () => {
transport: http(),
bundlerTransport: http(bundlerUrl),
index,
...testParams,
k1ValidatorAddress: "0x000000000EE7335c268e8225fcce3E913B8b30FE",
factoryAddress: "0x0000000000D8BA042724b13e85B5f40C715A5702"
...testParams
})

const usePermissionsModule = toSmartSessionsValidator({
Expand Down

0 comments on commit d30b0dc

Please sign in to comment.