@openfort/openfort-js 0.8.19 → 0.8.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +66 -11
- package/dist/index.js +66 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3339,7 +3339,7 @@ class KeyPair extends signingKey.SigningKey {
|
|
|
3339
3339
|
}
|
|
3340
3340
|
}
|
|
3341
3341
|
|
|
3342
|
-
const VERSION = '0.8.
|
|
3342
|
+
const VERSION = '0.8.20';
|
|
3343
3343
|
|
|
3344
3344
|
var Event;
|
|
3345
3345
|
(function (Event) {
|
|
@@ -5022,8 +5022,8 @@ const sendTransaction = async ({ params, signer, account, authentication, backen
|
|
|
5022
5022
|
let response;
|
|
5023
5023
|
if (openfortTransaction?.nextAction?.payload?.signableHash) {
|
|
5024
5024
|
let signature;
|
|
5025
|
-
//
|
|
5026
|
-
if ([300, 531050104].includes(account.chainId)) {
|
|
5025
|
+
// zkSync and Sophon test need a different signature
|
|
5026
|
+
if ([300, 531050104, 324, 50104].includes(account.chainId)) {
|
|
5027
5027
|
signature = await signer.sign(openfortTransaction.nextAction.payload.signableHash, false, false);
|
|
5028
5028
|
}
|
|
5029
5029
|
else {
|
|
@@ -5142,7 +5142,7 @@ class TypedEventEmitter {
|
|
|
5142
5142
|
}
|
|
5143
5143
|
}
|
|
5144
5144
|
|
|
5145
|
-
const chain$
|
|
5145
|
+
const chain$t = {
|
|
5146
5146
|
name: 'ZKsync Sepolia Testnet',
|
|
5147
5147
|
title: 'ZKsync Sepolia Testnet',
|
|
5148
5148
|
chain: 'zksync-sepolia-testnet',
|
|
@@ -5170,6 +5170,34 @@ const chain$s = {
|
|
|
5170
5170
|
slug: 'zksync-sepolia-testnet',
|
|
5171
5171
|
};
|
|
5172
5172
|
|
|
5173
|
+
const chain$s = {
|
|
5174
|
+
name: 'ZKsync Era',
|
|
5175
|
+
title: 'ZKsync Era',
|
|
5176
|
+
chain: 'zksync-era',
|
|
5177
|
+
rpc: ['https://mainnet.era.zksync.io'],
|
|
5178
|
+
nativeCurrency: {
|
|
5179
|
+
name: 'Ether',
|
|
5180
|
+
symbol: 'ETH',
|
|
5181
|
+
decimals: 18,
|
|
5182
|
+
},
|
|
5183
|
+
shortName: 'zksync-era',
|
|
5184
|
+
chainId: 324,
|
|
5185
|
+
explorers: [
|
|
5186
|
+
{
|
|
5187
|
+
name: 'Etherscan',
|
|
5188
|
+
url: 'https://era.zksync.network/',
|
|
5189
|
+
standard: 'EIP3091',
|
|
5190
|
+
},
|
|
5191
|
+
{
|
|
5192
|
+
name: 'ZKsync Explorer',
|
|
5193
|
+
url: 'https://explorer.zksync.io/',
|
|
5194
|
+
standard: 'EIP3091',
|
|
5195
|
+
},
|
|
5196
|
+
],
|
|
5197
|
+
testnet: false,
|
|
5198
|
+
slug: 'zksync-era',
|
|
5199
|
+
};
|
|
5200
|
+
|
|
5173
5201
|
const chain$r = {
|
|
5174
5202
|
chain: 'BSC',
|
|
5175
5203
|
chainId: 56,
|
|
@@ -6295,6 +6323,29 @@ const sophonTestnet = {
|
|
|
6295
6323
|
slug: 'sophon-testnet',
|
|
6296
6324
|
};
|
|
6297
6325
|
|
|
6326
|
+
const sophonMainnet = {
|
|
6327
|
+
name: 'Sophon',
|
|
6328
|
+
title: 'Sophon',
|
|
6329
|
+
chain: 'sophon',
|
|
6330
|
+
rpc: ['https://rpc.sophon.xyz'],
|
|
6331
|
+
nativeCurrency: {
|
|
6332
|
+
name: 'Sophon',
|
|
6333
|
+
symbol: 'SOPH',
|
|
6334
|
+
decimals: 18,
|
|
6335
|
+
},
|
|
6336
|
+
shortName: 'sophon',
|
|
6337
|
+
chainId: 50104,
|
|
6338
|
+
explorers: [
|
|
6339
|
+
{
|
|
6340
|
+
name: 'Sophon Block Explorer',
|
|
6341
|
+
url: 'https://explorer.sophon.xyz',
|
|
6342
|
+
standard: 'EIP3091',
|
|
6343
|
+
},
|
|
6344
|
+
],
|
|
6345
|
+
testnet: false,
|
|
6346
|
+
slug: 'sophon',
|
|
6347
|
+
};
|
|
6348
|
+
|
|
6298
6349
|
const chain$1 = {
|
|
6299
6350
|
chainId: 2358,
|
|
6300
6351
|
name: 'Kroma Sepolia',
|
|
@@ -6335,7 +6386,9 @@ const chainMap = {
|
|
|
6335
6386
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6336
6387
|
1: chain$j,
|
|
6337
6388
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6338
|
-
300: chain$
|
|
6389
|
+
300: chain$t,
|
|
6390
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6391
|
+
324: chain$s,
|
|
6339
6392
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6340
6393
|
56: chain$r,
|
|
6341
6394
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -6393,6 +6446,8 @@ const chainMap = {
|
|
|
6393
6446
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6394
6447
|
531050104: sophonTestnet,
|
|
6395
6448
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6449
|
+
50104: sophonMainnet,
|
|
6450
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6396
6451
|
2358: chain$1,
|
|
6397
6452
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6398
6453
|
255: chain,
|
|
@@ -6576,8 +6631,8 @@ const registerSession = async ({ params, signer, account, authentication, backen
|
|
|
6576
6631
|
let response;
|
|
6577
6632
|
if (openfortTransaction?.nextAction?.payload?.signableHash) {
|
|
6578
6633
|
let signature;
|
|
6579
|
-
//
|
|
6580
|
-
if ([300, 531050104].includes(account.chainId)) {
|
|
6634
|
+
// zkSync and Sophon test need a different signature
|
|
6635
|
+
if ([300, 531050104, 324, 50104].includes(account.chainId)) {
|
|
6581
6636
|
signature = await signer.sign(openfortTransaction.nextAction.payload.signableHash, false, false);
|
|
6582
6637
|
}
|
|
6583
6638
|
else {
|
|
@@ -6633,8 +6688,8 @@ const revokeSession = async ({ params, signer, account, authentication, backendC
|
|
|
6633
6688
|
let response;
|
|
6634
6689
|
if (openfortTransaction?.nextAction?.payload?.signableHash) {
|
|
6635
6690
|
let signature;
|
|
6636
|
-
//
|
|
6637
|
-
if ([300, 531050104].includes(account.chainId)) {
|
|
6691
|
+
// zkSync and Sophon test need a different signature
|
|
6692
|
+
if ([300, 531050104, 324, 50104].includes(account.chainId)) {
|
|
6638
6693
|
signature = await signer.sign(openfortTransaction.nextAction.payload.signableHash, false, false);
|
|
6639
6694
|
}
|
|
6640
6695
|
else {
|
|
@@ -6694,8 +6749,8 @@ const sendCalls = async ({ params, signer, account, authentication, backendClien
|
|
|
6694
6749
|
let response;
|
|
6695
6750
|
if (openfortTransaction?.nextAction?.payload?.signableHash) {
|
|
6696
6751
|
let signature;
|
|
6697
|
-
//
|
|
6698
|
-
if ([300, 531050104].includes(account.chainId)) {
|
|
6752
|
+
// zkSync and Sophon test need a different signature
|
|
6753
|
+
if ([300, 531050104, 324, 50104].includes(account.chainId)) {
|
|
6699
6754
|
signature = await signer.sign(openfortTransaction.nextAction.payload.signableHash, false, false);
|
|
6700
6755
|
}
|
|
6701
6756
|
else {
|
package/dist/index.js
CHANGED
|
@@ -3316,7 +3316,7 @@ class KeyPair extends SigningKey {
|
|
|
3316
3316
|
}
|
|
3317
3317
|
}
|
|
3318
3318
|
|
|
3319
|
-
const VERSION = '0.8.
|
|
3319
|
+
const VERSION = '0.8.20';
|
|
3320
3320
|
|
|
3321
3321
|
var Event;
|
|
3322
3322
|
(function (Event) {
|
|
@@ -4999,8 +4999,8 @@ const sendTransaction = async ({ params, signer, account, authentication, backen
|
|
|
4999
4999
|
let response;
|
|
5000
5000
|
if (openfortTransaction?.nextAction?.payload?.signableHash) {
|
|
5001
5001
|
let signature;
|
|
5002
|
-
//
|
|
5003
|
-
if ([300, 531050104].includes(account.chainId)) {
|
|
5002
|
+
// zkSync and Sophon test need a different signature
|
|
5003
|
+
if ([300, 531050104, 324, 50104].includes(account.chainId)) {
|
|
5004
5004
|
signature = await signer.sign(openfortTransaction.nextAction.payload.signableHash, false, false);
|
|
5005
5005
|
}
|
|
5006
5006
|
else {
|
|
@@ -5119,7 +5119,7 @@ class TypedEventEmitter {
|
|
|
5119
5119
|
}
|
|
5120
5120
|
}
|
|
5121
5121
|
|
|
5122
|
-
const chain$
|
|
5122
|
+
const chain$t = {
|
|
5123
5123
|
name: 'ZKsync Sepolia Testnet',
|
|
5124
5124
|
title: 'ZKsync Sepolia Testnet',
|
|
5125
5125
|
chain: 'zksync-sepolia-testnet',
|
|
@@ -5147,6 +5147,34 @@ const chain$s = {
|
|
|
5147
5147
|
slug: 'zksync-sepolia-testnet',
|
|
5148
5148
|
};
|
|
5149
5149
|
|
|
5150
|
+
const chain$s = {
|
|
5151
|
+
name: 'ZKsync Era',
|
|
5152
|
+
title: 'ZKsync Era',
|
|
5153
|
+
chain: 'zksync-era',
|
|
5154
|
+
rpc: ['https://mainnet.era.zksync.io'],
|
|
5155
|
+
nativeCurrency: {
|
|
5156
|
+
name: 'Ether',
|
|
5157
|
+
symbol: 'ETH',
|
|
5158
|
+
decimals: 18,
|
|
5159
|
+
},
|
|
5160
|
+
shortName: 'zksync-era',
|
|
5161
|
+
chainId: 324,
|
|
5162
|
+
explorers: [
|
|
5163
|
+
{
|
|
5164
|
+
name: 'Etherscan',
|
|
5165
|
+
url: 'https://era.zksync.network/',
|
|
5166
|
+
standard: 'EIP3091',
|
|
5167
|
+
},
|
|
5168
|
+
{
|
|
5169
|
+
name: 'ZKsync Explorer',
|
|
5170
|
+
url: 'https://explorer.zksync.io/',
|
|
5171
|
+
standard: 'EIP3091',
|
|
5172
|
+
},
|
|
5173
|
+
],
|
|
5174
|
+
testnet: false,
|
|
5175
|
+
slug: 'zksync-era',
|
|
5176
|
+
};
|
|
5177
|
+
|
|
5150
5178
|
const chain$r = {
|
|
5151
5179
|
chain: 'BSC',
|
|
5152
5180
|
chainId: 56,
|
|
@@ -6272,6 +6300,29 @@ const sophonTestnet = {
|
|
|
6272
6300
|
slug: 'sophon-testnet',
|
|
6273
6301
|
};
|
|
6274
6302
|
|
|
6303
|
+
const sophonMainnet = {
|
|
6304
|
+
name: 'Sophon',
|
|
6305
|
+
title: 'Sophon',
|
|
6306
|
+
chain: 'sophon',
|
|
6307
|
+
rpc: ['https://rpc.sophon.xyz'],
|
|
6308
|
+
nativeCurrency: {
|
|
6309
|
+
name: 'Sophon',
|
|
6310
|
+
symbol: 'SOPH',
|
|
6311
|
+
decimals: 18,
|
|
6312
|
+
},
|
|
6313
|
+
shortName: 'sophon',
|
|
6314
|
+
chainId: 50104,
|
|
6315
|
+
explorers: [
|
|
6316
|
+
{
|
|
6317
|
+
name: 'Sophon Block Explorer',
|
|
6318
|
+
url: 'https://explorer.sophon.xyz',
|
|
6319
|
+
standard: 'EIP3091',
|
|
6320
|
+
},
|
|
6321
|
+
],
|
|
6322
|
+
testnet: false,
|
|
6323
|
+
slug: 'sophon',
|
|
6324
|
+
};
|
|
6325
|
+
|
|
6275
6326
|
const chain$1 = {
|
|
6276
6327
|
chainId: 2358,
|
|
6277
6328
|
name: 'Kroma Sepolia',
|
|
@@ -6312,7 +6363,9 @@ const chainMap = {
|
|
|
6312
6363
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6313
6364
|
1: chain$j,
|
|
6314
6365
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6315
|
-
300: chain$
|
|
6366
|
+
300: chain$t,
|
|
6367
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6368
|
+
324: chain$s,
|
|
6316
6369
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6317
6370
|
56: chain$r,
|
|
6318
6371
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -6370,6 +6423,8 @@ const chainMap = {
|
|
|
6370
6423
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6371
6424
|
531050104: sophonTestnet,
|
|
6372
6425
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6426
|
+
50104: sophonMainnet,
|
|
6427
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6373
6428
|
2358: chain$1,
|
|
6374
6429
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6375
6430
|
255: chain,
|
|
@@ -6553,8 +6608,8 @@ const registerSession = async ({ params, signer, account, authentication, backen
|
|
|
6553
6608
|
let response;
|
|
6554
6609
|
if (openfortTransaction?.nextAction?.payload?.signableHash) {
|
|
6555
6610
|
let signature;
|
|
6556
|
-
//
|
|
6557
|
-
if ([300, 531050104].includes(account.chainId)) {
|
|
6611
|
+
// zkSync and Sophon test need a different signature
|
|
6612
|
+
if ([300, 531050104, 324, 50104].includes(account.chainId)) {
|
|
6558
6613
|
signature = await signer.sign(openfortTransaction.nextAction.payload.signableHash, false, false);
|
|
6559
6614
|
}
|
|
6560
6615
|
else {
|
|
@@ -6610,8 +6665,8 @@ const revokeSession = async ({ params, signer, account, authentication, backendC
|
|
|
6610
6665
|
let response;
|
|
6611
6666
|
if (openfortTransaction?.nextAction?.payload?.signableHash) {
|
|
6612
6667
|
let signature;
|
|
6613
|
-
//
|
|
6614
|
-
if ([300, 531050104].includes(account.chainId)) {
|
|
6668
|
+
// zkSync and Sophon test need a different signature
|
|
6669
|
+
if ([300, 531050104, 324, 50104].includes(account.chainId)) {
|
|
6615
6670
|
signature = await signer.sign(openfortTransaction.nextAction.payload.signableHash, false, false);
|
|
6616
6671
|
}
|
|
6617
6672
|
else {
|
|
@@ -6671,8 +6726,8 @@ const sendCalls = async ({ params, signer, account, authentication, backendClien
|
|
|
6671
6726
|
let response;
|
|
6672
6727
|
if (openfortTransaction?.nextAction?.payload?.signableHash) {
|
|
6673
6728
|
let signature;
|
|
6674
|
-
//
|
|
6675
|
-
if ([300, 531050104].includes(account.chainId)) {
|
|
6729
|
+
// zkSync and Sophon test need a different signature
|
|
6730
|
+
if ([300, 531050104, 324, 50104].includes(account.chainId)) {
|
|
6676
6731
|
signature = await signer.sign(openfortTransaction.nextAction.payload.signableHash, false, false);
|
|
6677
6732
|
}
|
|
6678
6733
|
else {
|
package/package.json
CHANGED