Skip to content

Commit

Permalink
Feature/fixes to manual test for local chronicle node (#218)
Browse files Browse the repository at this point in the history
* added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica

* debug: false
  • Loading branch information
glitch003 authored Sep 19, 2023
1 parent 69a5a8d commit baa4ddf
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 26 deletions.
4 changes: 2 additions & 2 deletions apps/html/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Fri, 15 Sep 2023 22:51:26 GMT -->
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Tue, 19 Sep 2023 03:23:58 GMT -->
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -62,7 +62,7 @@
</style>
</head>
<body>
(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

<!-- ==================== ALL EXPORTED VANILLA LIBRARIES ==================== -->
<script src="dist/packages/access-control-conditions-vanilla/access-control-conditions.js"></script>
Expand Down
7 changes: 6 additions & 1 deletion apps/nodejs/manual-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion apps/react/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
<div id="root"></div>
<pre><code id="result"></code></pre>
</>
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/Allowlist.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const allowlist = {
"address": "0x9fb501502402Fe4A8CE44c8C39a5d63787ED653c",
"address": "0xdC64eb11db44cc82f8d83Dce298392C6cB33Ee9A",
"abi": [
{
"inputs": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/ContractResolver.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const contractResolver = {
"address": "0x53Df74f2Ca020ab439002158e6De0A32b1AA66D1",
"address": "0xFe65755d391ecB3Ad1c7EC22D9fA6b05075bEa46",
"abi": [
{
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/Multisender.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const multisender = {
"address": "0xacAe3822240234d8Ebbb591787a2E2b6247Ce63e",
"address": "0xC79aC01f32C78c27dbF5aD4651758A7E897A078d",
"abi": [
{
"anonymous": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/PKPHelper.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const pkpHelper = {
"address": "0x0600cBB5dc983A970b165390Da00e699E5baeDD1",
"address": "0x7761B2D43b12b9Cf28a8F0487bc346ee4a94184d",
"abi": [
{
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/PKPNFT.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const pkpNft = {
"address": "0x0122829576DDd317c44364238f5DDe205d6da25F",
"address": "0x0307016Ca61e09E386D2a456715983e26986F6e3",
"abi": [
{
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/PKPNFTMetadata.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const pkpNftMetadata = {
"address": "0xFB7eeE9859eA34D06962f4362FA7B4E294039B05",
"address": "0x849f0f42613b0f94a4dF391EF94909bAD0Ac3013",
"abi": [
{
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/PKPPermissions.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const pkpPermissions = {
"address": "0x05A6d463c73adA7A0D3Af317Cd68271e5E34bCd4",
"address": "0x6F67eE92Abb6b7DD0DF551F6e5A2435D02F49e96",
"abi": [
{
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/PubkeyRouter.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const pubkeyRouter = {
"address": "0x9da98532bd3b7cDDA18ae34DFeCdeBBb75AC3F7D",
"address": "0x2FdDf6a0A95ACdbeEc464d6C743A9Ca11C40f042",
"abi": [
{
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/RateLimitNFT.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const rateLimitNft = {
"address": "0x4B15DAC8f60fC2B5A691A13bD5eC26aaa0f50a0b",
"address": "0xD7c9174Fb8f14064f2d71866aF267Bec097D39a2",
"abi": [
{
"inputs": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/Staking.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const staking = {
"address": "0x187e8770A9ad58a83b3A619ba9bb3629dA6E25B1",
"address": "0x1259026e2fE6d6b0fFb09d0a7c0d1c53CFA645c1",
"abi": [
{
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/abis/StakingBalances.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const stakingBalances = {
"address": "0x23Ab8F5cD37be7B6036a17fD75A842533d2D39d0",
"address": "0x96f2Bc561685eBCeCAba3f03703cfC4c5dd79C47",
"abi": [
{
"inputs": [
Expand Down
22 changes: 11 additions & 11 deletions packages/contracts-sdk/src/deployed-contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
]

0 comments on commit baa4ddf

Please sign in to comment.