Skip to content

Commit c934591

Browse files
committed
Merge branch 'master' into staging/v7
2 parents f8aaa19 + 99c24d6 commit c934591

File tree

30 files changed

+69
-53
lines changed

30 files changed

+69
-53
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"useNx": true,
44
"useWorkspaces": true,
5-
"version": "6.8.0"
5+
"version": "6.8.1"
66
}

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@
4040
"@cosmjs/proto-signing": "0.30.1",
4141
"@cosmjs/stargate": "0.30.1",
4242
"@dotenvx/dotenvx": "^1.6.4",
43-
"@ethersproject/abi": "^5.7.0",
44-
"@ethersproject/providers": "^5.7.2",
45-
"@lit-protocol/accs-schemas": "^0.0.12",
43+
"@lit-protocol/accs-schemas": "^0.0.13",
4644
"@lit-protocol/contracts": "^0.0.63",
4745
"@metamask/eth-sig-util": "5.0.2",
4846
"@mysten/sui.js": "^0.37.1",

packages/access-control-conditions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"tags": [
2222
"universal"
2323
],
24-
"version": "6.8.0",
24+
"version": "6.8.1",
2525
"main": "./dist/src/index.js",
2626
"typings": "./dist/src/index.d.ts"
2727
}

packages/auth-browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"tags": [
3131
"browser"
3232
],
33-
"version": "6.8.0",
33+
"version": "6.8.1",
3434
"main": "./dist/src/index.js",
3535
"typings": "./dist/src/index.d.ts"
3636
}

packages/auth-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"crypto": false,
2626
"stream": false
2727
},
28-
"version": "6.8.0",
28+
"version": "6.8.1",
2929
"main": "./dist/src/index.js",
3030
"typings": "./dist/src/index.d.ts"
3131
}

packages/constants/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"tags": [
2121
"universal"
2222
],
23-
"version": "6.8.0",
23+
"version": "6.8.1",
2424
"main": "./dist/src/index.js",
2525
"typings": "./dist/src/index.d.ts"
2626
}

packages/constants/src/lib/constants/constants.ts

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,17 @@ export const LIT_CHAINS: LITChain<LITEVMChain> = {
490490
type: null,
491491
vmType: 'EVM',
492492
},
493+
lineaSepolia: {
494+
contractAddress: null,
495+
chainId: 59141,
496+
name: 'Linea Sepolia Testnet',
497+
symbol: 'ETH',
498+
decimals: 18,
499+
rpcUrls: ['https://rpc.sepolia.linea.build'],
500+
blockExplorerUrls: ['https://explorer.sepolia.linea.build'],
501+
type: null,
502+
vmType: 'EVM',
503+
},
493504

494505
/**
495506
* Use this for `>= Datil` network.
@@ -702,6 +713,19 @@ export const LIT_CHAINS: LITChain<LITEVMChain> = {
702713
type: null,
703714
vmType: 'EVM',
704715
},
716+
skaleCalypso: {
717+
contractAddress: null,
718+
chainId: 1564830818,
719+
name: 'SKALE Calypso Hub Mainnet',
720+
symbol: 'sFUEL',
721+
decimals: 18,
722+
rpcUrls: ['https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague'],
723+
blockExplorerUrls: [
724+
'https://giant-half-dual-testnet.explorer.testnet.skalenodes.com/',
725+
],
726+
type: null,
727+
vmType: 'EVM',
728+
},
705729
fhenixHelium: {
706730
contractAddress: null,
707731
chainId: 8008135,
@@ -735,17 +759,6 @@ export const LIT_CHAINS: LITChain<LITEVMChain> = {
735759
type: null,
736760
vmType: 'EVM',
737761
},
738-
kintoTestnet: {
739-
contractAddress: null,
740-
chainId: 88882,
741-
name: 'Kinto Testnet',
742-
symbol: 'ETH',
743-
decimals: 18,
744-
rpcUrls: ['http://35.215.120.180:8545'],
745-
blockExplorerUrls: ['https://kintoscan.io/'],
746-
type: null,
747-
vmType: 'EVM',
748-
},
749762
};
750763

751764
/**
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '6.8.0';
1+
export const version = '6.8.1';

packages/contracts-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"tags": [
2626
"universal"
2727
],
28-
"version": "6.8.0",
28+
"version": "6.8.1",
2929
"main": "./dist/src/index.js",
3030
"typings": "./dist/src/index.d.ts"
3131
}

packages/contracts-sdk/src/lib/contracts-sdk.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export class LitContracts {
361361
(!this.privateKey && this.randomPrivateKey) ||
362362
this.options?.storeOrUseStorageKey
363363
) {
364-
console.warn('THIS.SIGNER:', this.signer);
364+
this.log('THIS.SIGNER:', this.signer);
365365

366366
const STORAGE_KEY = 'lit-contracts-sdk-private-key';
367367

@@ -397,7 +397,7 @@ export class LitContracts {
397397

398398
// -- (OPTION) store private key in local storage
399399
if (this.options?.storeOrUseStorageKey) {
400-
console.warn(
400+
this.log(
401401
"You've set the option to store your private key in local storage."
402402
);
403403
localStorage.setItem(STORAGE_KEY, storagePrivateKey);
@@ -428,12 +428,12 @@ export class LitContracts {
428428
}
429429

430430
this.log('Your Signer:', this.signer);
431-
this.log('Your Provider:', this.provider.connection);
431+
this.log('Your Provider:', this.provider?.connection!);
432432

433433
if (!this.provider) {
434434
this.log('No provider found. Will try to use the one from the signer.');
435435
this.provider = this.signer.provider;
436-
this.log('Your Provider(from signer):', this.provider.connection);
436+
this.log('Your Provider(from signer):', this.provider?.connection!);
437437
}
438438

439439
const addresses: any = await LitContracts.getContractAddresses(
@@ -1344,13 +1344,13 @@ https://developer.litprotocol.com/v3/sdk/wallets/auth-methods/#auth-method-scope
13441344
}
13451345

13461346
const tokenId = events[0].topics[1];
1347-
console.warn('tokenId:', tokenId);
1347+
this.log('tokenId:', tokenId);
13481348
let tries = 0;
13491349
const maxAttempts = 10;
13501350
let publicKey = '';
13511351
while (tries < maxAttempts) {
13521352
publicKey = await this.pkpNftContract.read.getPubkey(tokenId);
1353-
console.log('pkp pub key: ', publicKey);
1353+
this.log('pkp pub key: ', publicKey);
13541354
if (publicKey !== '0x') {
13551355
break;
13561356
}
@@ -1975,15 +1975,15 @@ https://developer.litprotocol.com/v3/sdk/wallets/auth-methods/#auth-method-scope
19751975
const events = 'events' in res ? res.events : res.logs;
19761976

19771977
const tokenIdFromEvent = events[0].topics[1];
1978-
console.warn('tokenIdFromEvent:', tokenIdFromEvent);
1978+
this.log('tokenIdFromEvent:', tokenIdFromEvent);
19791979
let tries = 0;
19801980
const maxAttempts = 10;
19811981
let publicKey = '';
19821982
while (tries < maxAttempts) {
19831983
publicKey = await this.pkpNftContract.read.getPubkey(
19841984
tokenIdFromEvent
19851985
);
1986-
console.log('pkp pub key: ', publicKey);
1986+
this.log('pkp pub key: ', publicKey);
19871987
if (publicKey !== '0x') {
19881988
break;
19891989
}
@@ -1993,7 +1993,7 @@ https://developer.litprotocol.com/v3/sdk/wallets/auth-methods/#auth-method-scope
19931993
});
19941994
}
19951995

1996-
console.warn('public key from token id', publicKey);
1996+
this.log('public key from token id', publicKey);
19971997
if (publicKey.startsWith('0x')) {
19981998
publicKey = publicKey.slice(2);
19991999
}

0 commit comments

Comments
 (0)