From baa4ddfc2db7f94c8f67a28954a289c0aa1fe4c7 Mon Sep 17 00:00:00 2001 From: Chris Cassano <1285652+glitch003@users.noreply.github.com> Date: Tue, 19 Sep 2023 09:37:30 -0700 Subject: [PATCH] Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false --- apps/html/index.html | 4 ++-- apps/nodejs/manual-test.ts | 7 +++++- apps/react/src/app/app.tsx | 2 +- .../contracts-sdk/src/abis/Allowlist.data.ts | 2 +- .../src/abis/ContractResolver.data.ts | 2 +- .../src/abis/Multisender.data.ts | 2 +- .../contracts-sdk/src/abis/PKPHelper.data.ts | 2 +- .../contracts-sdk/src/abis/PKPNFT.data.ts | 2 +- .../src/abis/PKPNFTMetadata.data.ts | 2 +- .../src/abis/PKPPermissions.data.ts | 2 +- .../src/abis/PubkeyRouter.data.ts | 2 +- .../src/abis/RateLimitNFT.data.ts | 2 +- .../contracts-sdk/src/abis/Staking.data.ts | 2 +- .../src/abis/StakingBalances.data.ts | 2 +- .../contracts-sdk/src/deployed-contracts.json | 22 +++++++++---------- 15 files changed, 31 insertions(+), 26 deletions(-) diff --git a/apps/html/index.html b/apps/html/index.html index a7b599aea4..39582142ff 100644 --- a/apps/html/index.html +++ b/apps/html/index.html @@ -1,4 +1,4 @@ - + @@ -62,7 +62,7 @@ - (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Fri, 15 Sep 2023 22:51:26 GMT + (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Tue, 19 Sep 2023 03:23:58 GMT diff --git a/apps/nodejs/manual-test.ts b/apps/nodejs/manual-test.ts index 6db6365b30..b9a065bc57 100644 --- a/apps/nodejs/manual-test.ts +++ b/apps/nodejs/manual-test.ts @@ -313,9 +313,14 @@ const mintPkpAndSign = async () => { const wallet = new ethers.Wallet(privateKey, provider); const authSig = await getAuthSig(wallet); + console.log('Sleeping for 30 seconds so that the chronicle node replica can sync up'); + // Sleep for 30 seconds + await new Promise(resolve => setTimeout(resolve, 30000)); + + let startTime = Date.now(); let allGood = true; - const testCount = 100; + const testCount = 50; for(let i = 0; i < testCount; i++){ console.log(`testing ${i + 1} of ${testCount}`); let result = await pkpSign(client, pkpPubkey, authSig); diff --git a/apps/react/src/app/app.tsx b/apps/react/src/app/app.tsx index 9717295131..806e09ccb0 100644 --- a/apps/react/src/app/app.tsx +++ b/apps/react/src/app/app.tsx @@ -1802,7 +1802,7 @@ pre { `, }} /> - (REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Fri, 15 Sep 2023 22:51:27 GMT + (REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Tue, 19 Sep 2023 03:23:59 GMT
diff --git a/packages/contracts-sdk/src/abis/Allowlist.data.ts b/packages/contracts-sdk/src/abis/Allowlist.data.ts index 1bfa7bf746..eef7d1e2d2 100644 --- a/packages/contracts-sdk/src/abis/Allowlist.data.ts +++ b/packages/contracts-sdk/src/abis/Allowlist.data.ts @@ -1,5 +1,5 @@ export const allowlist = { - "address": "0x9fb501502402Fe4A8CE44c8C39a5d63787ED653c", + "address": "0xdC64eb11db44cc82f8d83Dce298392C6cB33Ee9A", "abi": [ { "inputs": [], diff --git a/packages/contracts-sdk/src/abis/ContractResolver.data.ts b/packages/contracts-sdk/src/abis/ContractResolver.data.ts index 4a4b1e3755..187cad0b7e 100644 --- a/packages/contracts-sdk/src/abis/ContractResolver.data.ts +++ b/packages/contracts-sdk/src/abis/ContractResolver.data.ts @@ -1,5 +1,5 @@ export const contractResolver = { - "address": "0x53Df74f2Ca020ab439002158e6De0A32b1AA66D1", + "address": "0xFe65755d391ecB3Ad1c7EC22D9fA6b05075bEa46", "abi": [ { "inputs": [ diff --git a/packages/contracts-sdk/src/abis/Multisender.data.ts b/packages/contracts-sdk/src/abis/Multisender.data.ts index fb4f0d4602..30be6ad9e5 100644 --- a/packages/contracts-sdk/src/abis/Multisender.data.ts +++ b/packages/contracts-sdk/src/abis/Multisender.data.ts @@ -1,5 +1,5 @@ export const multisender = { - "address": "0xacAe3822240234d8Ebbb591787a2E2b6247Ce63e", + "address": "0xC79aC01f32C78c27dbF5aD4651758A7E897A078d", "abi": [ { "anonymous": false, diff --git a/packages/contracts-sdk/src/abis/PKPHelper.data.ts b/packages/contracts-sdk/src/abis/PKPHelper.data.ts index 38a296906c..8329cffba1 100644 --- a/packages/contracts-sdk/src/abis/PKPHelper.data.ts +++ b/packages/contracts-sdk/src/abis/PKPHelper.data.ts @@ -1,5 +1,5 @@ export const pkpHelper = { - "address": "0x0600cBB5dc983A970b165390Da00e699E5baeDD1", + "address": "0x7761B2D43b12b9Cf28a8F0487bc346ee4a94184d", "abi": [ { "inputs": [ diff --git a/packages/contracts-sdk/src/abis/PKPNFT.data.ts b/packages/contracts-sdk/src/abis/PKPNFT.data.ts index 484a2c089e..2f157c364d 100644 --- a/packages/contracts-sdk/src/abis/PKPNFT.data.ts +++ b/packages/contracts-sdk/src/abis/PKPNFT.data.ts @@ -1,5 +1,5 @@ export const pkpNft = { - "address": "0x0122829576DDd317c44364238f5DDe205d6da25F", + "address": "0x0307016Ca61e09E386D2a456715983e26986F6e3", "abi": [ { "inputs": [ diff --git a/packages/contracts-sdk/src/abis/PKPNFTMetadata.data.ts b/packages/contracts-sdk/src/abis/PKPNFTMetadata.data.ts index 9479797b8b..7c08fe7dbf 100644 --- a/packages/contracts-sdk/src/abis/PKPNFTMetadata.data.ts +++ b/packages/contracts-sdk/src/abis/PKPNFTMetadata.data.ts @@ -1,5 +1,5 @@ export const pkpNftMetadata = { - "address": "0xFB7eeE9859eA34D06962f4362FA7B4E294039B05", + "address": "0x849f0f42613b0f94a4dF391EF94909bAD0Ac3013", "abi": [ { "inputs": [ diff --git a/packages/contracts-sdk/src/abis/PKPPermissions.data.ts b/packages/contracts-sdk/src/abis/PKPPermissions.data.ts index cb8614285d..460ad6ab77 100644 --- a/packages/contracts-sdk/src/abis/PKPPermissions.data.ts +++ b/packages/contracts-sdk/src/abis/PKPPermissions.data.ts @@ -1,5 +1,5 @@ export const pkpPermissions = { - "address": "0x05A6d463c73adA7A0D3Af317Cd68271e5E34bCd4", + "address": "0x6F67eE92Abb6b7DD0DF551F6e5A2435D02F49e96", "abi": [ { "inputs": [ diff --git a/packages/contracts-sdk/src/abis/PubkeyRouter.data.ts b/packages/contracts-sdk/src/abis/PubkeyRouter.data.ts index 2a1972cf76..b1e6e62239 100644 --- a/packages/contracts-sdk/src/abis/PubkeyRouter.data.ts +++ b/packages/contracts-sdk/src/abis/PubkeyRouter.data.ts @@ -1,5 +1,5 @@ export const pubkeyRouter = { - "address": "0x9da98532bd3b7cDDA18ae34DFeCdeBBb75AC3F7D", + "address": "0x2FdDf6a0A95ACdbeEc464d6C743A9Ca11C40f042", "abi": [ { "inputs": [ diff --git a/packages/contracts-sdk/src/abis/RateLimitNFT.data.ts b/packages/contracts-sdk/src/abis/RateLimitNFT.data.ts index 77e7d91070..3356268f0b 100644 --- a/packages/contracts-sdk/src/abis/RateLimitNFT.data.ts +++ b/packages/contracts-sdk/src/abis/RateLimitNFT.data.ts @@ -1,5 +1,5 @@ export const rateLimitNft = { - "address": "0x4B15DAC8f60fC2B5A691A13bD5eC26aaa0f50a0b", + "address": "0xD7c9174Fb8f14064f2d71866aF267Bec097D39a2", "abi": [ { "inputs": [], diff --git a/packages/contracts-sdk/src/abis/Staking.data.ts b/packages/contracts-sdk/src/abis/Staking.data.ts index 084b7b1dd5..7aca554b15 100644 --- a/packages/contracts-sdk/src/abis/Staking.data.ts +++ b/packages/contracts-sdk/src/abis/Staking.data.ts @@ -1,5 +1,5 @@ export const staking = { - "address": "0x187e8770A9ad58a83b3A619ba9bb3629dA6E25B1", + "address": "0x1259026e2fE6d6b0fFb09d0a7c0d1c53CFA645c1", "abi": [ { "inputs": [ diff --git a/packages/contracts-sdk/src/abis/StakingBalances.data.ts b/packages/contracts-sdk/src/abis/StakingBalances.data.ts index 6f6355dc70..3d11ccac79 100644 --- a/packages/contracts-sdk/src/abis/StakingBalances.data.ts +++ b/packages/contracts-sdk/src/abis/StakingBalances.data.ts @@ -1,5 +1,5 @@ export const stakingBalances = { - "address": "0x23Ab8F5cD37be7B6036a17fD75A842533d2D39d0", + "address": "0x96f2Bc561685eBCeCAba3f03703cfC4c5dd79C47", "abi": [ { "inputs": [ diff --git a/packages/contracts-sdk/src/deployed-contracts.json b/packages/contracts-sdk/src/deployed-contracts.json index bba63de850..08f6cf4294 100644 --- a/packages/contracts-sdk/src/deployed-contracts.json +++ b/packages/contracts-sdk/src/deployed-contracts.json @@ -4,21 +4,21 @@ "correctedName": "StakingBalances", "exportName": "stakingBalances", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/StakingBalances.json", - "address": "0x23Ab8F5cD37be7B6036a17fD75A842533d2D39d0" + "address": "0x96f2Bc561685eBCeCAba3f03703cfC4c5dd79C47" }, { "name": "stakingContractAddress", "correctedName": "Staking", "exportName": "staking", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/Staking.json", - "address": "0x187e8770A9ad58a83b3A619ba9bb3629dA6E25B1" + "address": "0x1259026e2fE6d6b0fFb09d0a7c0d1c53CFA645c1" }, { "name": "multisenderContractAddress", "correctedName": "Multisender", "exportName": "multisender", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/Multisender.json", - "address": "0xacAe3822240234d8Ebbb591787a2E2b6247Ce63e" + "address": "0xC79aC01f32C78c27dbF5aD4651758A7E897A078d" }, { "name": "litTokenContractAddress", @@ -32,55 +32,55 @@ "correctedName": "PubkeyRouter", "exportName": "pubkeyRouter", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/PubkeyRouter.json", - "address": "0x9da98532bd3b7cDDA18ae34DFeCdeBBb75AC3F7D" + "address": "0x2FdDf6a0A95ACdbeEc464d6C743A9Ca11C40f042" }, { "name": "pkpNftContractAddress", "correctedName": "PKPNFT", "exportName": "pkpNft", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/PKPNFT.json", - "address": "0x0122829576DDd317c44364238f5DDe205d6da25F" + "address": "0x0307016Ca61e09E386D2a456715983e26986F6e3" }, { "name": "rateLimitNftContractAddress", "correctedName": "RateLimitNFT", "exportName": "rateLimitNft", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/RateLimitNFT.json", - "address": "0x4B15DAC8f60fC2B5A691A13bD5eC26aaa0f50a0b" + "address": "0xD7c9174Fb8f14064f2d71866aF267Bec097D39a2" }, { "name": "pkpHelperContractAddress", "correctedName": "PKPHelper", "exportName": "pkpHelper", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/PKPHelper.json", - "address": "0x0600cBB5dc983A970b165390Da00e699E5baeDD1" + "address": "0x7761B2D43b12b9Cf28a8F0487bc346ee4a94184d" }, { "name": "pkpPermissionsContractAddress", "correctedName": "PKPPermissions", "exportName": "pkpPermissions", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/PKPPermissions.json", - "address": "0x05A6d463c73adA7A0D3Af317Cd68271e5E34bCd4" + "address": "0x6F67eE92Abb6b7DD0DF551F6e5A2435D02F49e96" }, { "name": "pkpNftMetadataContractAddress", "correctedName": "PKPNFTMetadata", "exportName": "pkpNftMetadata", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/PKPNFTMetadata.json", - "address": "0xFB7eeE9859eA34D06962f4362FA7B4E294039B05" + "address": "0x849f0f42613b0f94a4dF391EF94909bAD0Ac3013" }, { "name": "allowlistContractAddress", "correctedName": "Allowlist", "exportName": "allowlist", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/Allowlist.json", - "address": "0x9fb501502402Fe4A8CE44c8C39a5d63787ED653c" + "address": "0xdC64eb11db44cc82f8d83Dce298392C6cB33Ee9A" }, { "name": "resolverContractAddress", "correctedName": "ContractResolver", "exportName": "contractResolver", "abiPath": "../lit-assets/rust/lit-core/lit-blockchain/abis/ContractResolver.json", - "address": "0x53Df74f2Ca020ab439002158e6De0A32b1AA66D1" + "address": "0xFe65755d391ecB3Ad1c7EC22D9fA6b05075bEa46" } ] \ No newline at end of file