@notifi-network/notifi-frontend-client
Advanced tools
Comparing version 2.2.0 to 2.2.1-alpha.3
@@ -258,3 +258,3 @@ import { Types, Operations, NotifiService } from '@notifi-network/notifi-graphql'; | ||
}> | Readonly<{ | ||
walletBlockchain: 'ETHEREUM' | 'POLYGON' | 'ARBITRUM' | 'AVALANCHE' | 'BINANCE' | 'OSMOSIS' | 'THE_ROOT_NETWORK' | 'ELYS' | 'NEUTRON' | 'ARCHWAY' | 'AXELAR' | 'BERACHAIN' | 'NIBIRU' | 'OPTIMISM' | 'ZKSYNC' | 'INJECTIVE' | 'BASE' | 'BLAST' | 'CELO' | 'MANTLE' | 'LINEA' | 'SCROLL' | 'MANTA' | 'EVMOS' | 'MONAD' | 'AGORIC' | 'ORAI' | 'KAVA' | 'CELESTIA' | 'COSMOS' | 'DYMENSION' | 'PERSISTENCE' | 'DYDX' | 'ARCH' | 'BITCOIN' | 'MOVEMENT'; | ||
walletBlockchain: 'ETHEREUM' | 'POLYGON' | 'ARBITRUM' | 'AVALANCHE' | 'BINANCE' | 'OSMOSIS' | 'THE_ROOT_NETWORK' | 'ELYS' | 'NEUTRON' | 'ARCHWAY' | 'AXELAR' | 'BERACHAIN' | 'NIBIRU' | 'OPTIMISM' | 'ZKSYNC' | 'INJECTIVE' | 'BASE' | 'BLAST' | 'CELO' | 'MANTLE' | 'LINEA' | 'SCROLL' | 'MANTA' | 'EVMOS' | 'MONAD' | 'AGORIC' | 'ORAI' | 'KAVA' | 'CELESTIA' | 'COSMOS' | 'DYMENSION' | 'PERSISTENCE' | 'DYDX' | 'ARCH' | 'BITCOIN'; | ||
signMessage: Uint8SignMessageFunction; | ||
@@ -265,2 +265,5 @@ }> | Readonly<{ | ||
}> | Readonly<{ | ||
walletBlockchain: 'MOVEMENT'; | ||
signMessage: AptosSignMessageFunction; | ||
}> | Readonly<{ | ||
walletBlockchain: 'XION'; | ||
@@ -296,3 +299,3 @@ message: string; | ||
}> & AptosUserParams) | (Readonly<{ | ||
signMessage: Uint8SignMessageFunction; | ||
signMessage: AptosSignMessageFunction; | ||
}> & MovementUserParams) | (Readonly<{ | ||
@@ -299,0 +302,0 @@ signMessage: Uint8SignMessageFunction; |
@@ -82,4 +82,4 @@ import { Types } from '@notifi-network/notifi-graphql'; | ||
| 'ARCH' | ||
| 'BITCOIN' | ||
| 'MOVEMENT'; | ||
| 'BITCOIN'; | ||
signMessage: Uint8SignMessageFunction; | ||
@@ -92,2 +92,6 @@ }> | ||
| Readonly<{ | ||
walletBlockchain: 'MOVEMENT'; | ||
signMessage: AptosSignMessageFunction; | ||
}> | ||
| Readonly<{ | ||
walletBlockchain: 'XION'; | ||
@@ -136,3 +140,3 @@ message: string; | ||
| (Readonly<{ | ||
signMessage: Uint8SignMessageFunction; | ||
signMessage: AptosSignMessageFunction; | ||
}> & | ||
@@ -729,2 +733,3 @@ MovementUserParams) | ||
case 'MOVEMENT': | ||
case 'ARCH': | ||
case 'APTOS': { | ||
@@ -806,4 +811,3 @@ if (typeof signature !== 'string') | ||
case 'THE_ROOT_NETWORK': | ||
case 'OPTIMISM': | ||
case 'MOVEMENT': { | ||
case 'OPTIMISM': { | ||
const { walletPublicKey, tenantId } = this | ||
@@ -880,3 +884,4 @@ ._configuration as NotifiConfigWithPublicKey; | ||
} | ||
case 'APTOS': { | ||
case 'APTOS': | ||
case 'MOVEMENT': { | ||
const signature = await signMessageParams.signMessage( | ||
@@ -991,4 +996,11 @@ SIGNING_MESSAGE, | ||
const hashArray = Array.from(new Uint8Array(hashBuffer)); | ||
let prefix = '0x'; | ||
// TDOO: ⬇ Legacy purpose and will be deprecated after SDK V2. the prefix format will be aligned across all blockchains. | ||
if (walletBlockchain === 'SOLANA' || walletBlockchain === 'OSMOSIS') { | ||
prefix = 'Notifi Auth: 0x'; | ||
} | ||
const logValue = | ||
'0x' + hashArray.map((b) => b.toString(16).padStart(2, '0')).join(''); | ||
prefix + hashArray.map((b) => b.toString(16).padStart(2, '0')).join(''); | ||
return { nonce: logValue }; | ||
@@ -995,0 +1007,0 @@ } |
{ | ||
"name": "@notifi-network/notifi-frontend-client", | ||
"version": "2.2.0", | ||
"version": "2.2.1-alpha.3+e0dd1924", | ||
"description": "The frontend client for Notifi", | ||
@@ -35,7 +35,7 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@notifi-network/notifi-graphql": "^2.1.0", | ||
"@notifi-network/notifi-graphql": "^2.2.1-alpha.3+e0dd1924", | ||
"graphql-request": "^6.0.0", | ||
"localforage": "^1.10.0" | ||
}, | ||
"gitHead": "861cf6d823e4984034821d4b718cf4947ea68afc" | ||
"gitHead": "e0dd1924061d75a5b4494a2d12a495d82391ac34" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
360545
9131
2
3
+ Added@babel/runtime@7.26.7(transitive)
+ Added@notifi-network/notifi-graphql@2.2.1-alpha.15(transitive)
+ Addedasap@2.0.6(transitive)
+ Addedfbjs@3.0.5(transitive)
+ Addedfbjs-css-vars@1.0.2(transitive)
+ Addedinvariant@2.2.4(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedpromise@7.3.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedrelay-runtime@18.2.0(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedua-parser-js@1.0.40(transitive)
- Removed@notifi-network/notifi-graphql@2.1.0(transitive)
Updated@notifi-network/notifi-graphql@^2.2.1-alpha.3+e0dd1924