@notifi-network/notifi-frontend-client
Advanced tools
Comparing version 2.0.1-alpha.8 to 2.1.0
@@ -264,2 +264,5 @@ import { Types, Operations, NotifiService } from '@notifi-network/notifi-graphql'; | ||
}> | Readonly<{ | ||
walletBlockchain: 'MOVEMENT'; | ||
signMessage: MovementSignMessageFunction; | ||
}> | Readonly<{ | ||
walletBlockchain: 'XION'; | ||
@@ -295,2 +298,4 @@ message: string; | ||
}> & AptosUserParams) | (Readonly<{ | ||
signMessage: MovementSignMessageFunction; | ||
}> & MovementUserParams) | (Readonly<{ | ||
signMessage: XionSignMessageFunction; | ||
@@ -340,3 +345,3 @@ message: string; | ||
*/ | ||
type UserParams = SolanaUserParams | XionUserParams | EvmUserParams | AptosUserParams | AcalaUserParams | NearUserParams | SuiUserParams | InjectiveUserParams | ElysUserParams | NeutronUserParams | ArchwayUserParams | AxelarUserParams | AgoricUserParams | OraiUserParams | KavaUserParams | CelestiaUserParams | CosmosUserParams | DymensionUserParams | PersistenceUserParams | DydxUserParams | OffChainUserParams; | ||
type UserParams = SolanaUserParams | XionUserParams | EvmUserParams | AptosUserParams | MovementUserParams | AcalaUserParams | NearUserParams | SuiUserParams | InjectiveUserParams | ElysUserParams | NeutronUserParams | ArchwayUserParams | AxelarUserParams | AgoricUserParams | OraiUserParams | KavaUserParams | CelestiaUserParams | CosmosUserParams | DymensionUserParams | PersistenceUserParams | DydxUserParams | OffChainUserParams; | ||
type SolanaUserParams = Readonly<{ | ||
@@ -355,2 +360,7 @@ walletBlockchain: 'SOLANA'; | ||
}>; | ||
type MovementUserParams = Readonly<{ | ||
walletBlockchain: 'MOVEMENT'; | ||
accountAddress: string; | ||
walletPublicKey: string; | ||
}>; | ||
type XionUserParams = Readonly<{ | ||
@@ -454,2 +464,3 @@ walletBlockchain: 'XION'; | ||
type hexString = `0x${string}`; | ||
type MovementSignMessageFunction = (message: string, nonce: number) => Promise<string>; | ||
type AcalaSignMessageFunction = (acalaAddress: string, message: string) => Promise<hexString>; | ||
@@ -894,2 +905,2 @@ type OidcCredentials = { | ||
export { type AcalaSignMessageFunction, type AcalaUserParams, type AgoricUserParams, type AlertFilter, type AlertFrequency, type AptosSignMessageFunction, type AptosUserParams, type ArchwayUserParams, type AuthenticateResult, type Authorization, type AuthorizationStorage, type AxelarUserParams, type BroadcastEventTypeItem, type CardConfigItemV1, type CardConfigType, type CelestiaUserParams, type CheckRatio, type ConfigFactoryInput, type ConfigFactoryInputDelegated, type ConfigFactoryInputOidc, type ConfigFactoryInputPublicKey, type ConfigFactoryInputPublicKeyAndAddress, type ConnectWalletParams, type ContactInfo, type ContactInfoConfig, type CosmosUserParams, type CountryCode, type CreateFunc, type CustomHealthCheckItem, type CustomInputConstraints, type CustomToggleTypeItem, type CustomTopicTypeItem, type CustomTypeBase, type DeepPartialReadonly, type DirectPushEventTypeItem, type DiscordContactInfo, type DydxUserParams, type DymensionUserParams, type ElysUserParams, type EmailContactInfo, type EnsureWebhookParams$1 as EnsureWebhookParams, type EventTypeConfig, type EventTypeItem, type EvmUserParams, type FetchFunc, type Filter, type FilterBase, type FilterOptions, type FilterType, type FrequencyFilter, type FrontendClientConfigFactory, type FusionEventMetadata, type FusionEventTopic, type FusionEventTypeItem, type FusionFilterOptions, type FusionHealthCheckEventTypeItem, type FusionMultiThreshholdEventTypeItem, type FusionToggleEventTypeItem, type FusionTypeBase, type GetStorageType, type HasStorageType, type HealthCheckEventInputsWithCustomPercentage, type HealthCheckEventInputsWithIndex, type HealthCheckEventTypeItem, type HealthCheckInputs, type IdentifyFunc, type InjectiveUserParams, type InputItem, type InputObject, type InputType, type InputsConfig, type KavaUserParams, type LabelEventTypeItem, type NearUserParams, type NeutronUserParams, type NotifiConfigWithDelegate, type NotifiConfigWithOidc, type NotifiConfigWithPublicKey, type NotifiConfigWithPublicKeyAndAddress, type NotifiEnvironment, type NotifiEnvironmentConfiguration, NotifiFrontendClient, type NotifiFrontendConfiguration, NotifiFrontendStorage, type NotifiStorage, type NumberTypeSelect, type OffChainUserParams, type OidcCredentials, type OidcSignInFunction, type OraiUserParams, type PersistenceUserParams, type PrefixAndSuffix, type PriceChangeDataSource, type PriceChangeEventTypeItem, type RequiredParserVariable, type Roles, type RolesStorage, SIGNING_MESSAGE, type SetStorageType, type SignMessageParams, type SlackContactInfo, type SmsContactInfo, type SolanaUserParams, type StorageDriver, type StorageType, type SuiUserParams, type SupportedCardConfigType, type TelegramContactInfo, type TenantConfig, type ThresholdDirection, type TitleSubtitleConfig, type TitleSubtitleConfigActive, type TitleSubtitleConfigInactive, type TradingPairEventTypeItem, type TradingPairInputs, type UiType, type Uint8SignMessageFunction, type UserInputOptions, type UserInputParam, type UserParams, type UserState, type ValidInputRange, type ValueItemConfig, type ValueOrRef, type ValueTransformFunc, type ValueType, type WalletBalanceEventTypeItem, type WalletContactInfo, type WalletWithSignParams, type WebhookContactInfo, type WebhookHeaders, type XMTPTopicTypeItem, type XionSignMessageFunction, type XionUserParams, checkIsConfigWithDelegate, checkIsConfigWithOidc, checkIsConfigWithPublicKeyAndAddress, createInMemoryStorageDriver, createLocalForageStorageDriver, ensureDiscord, ensureEmail, ensureSlack, ensureSms, ensureSourceAndFilters, ensureTarget, ensureTelegram, ensureWeb3, ensureWebhook, envUrl, instantiateFrontendClient, isEvmChain, newFrontendClient, newFrontendConfig, newNotifiService, newNotifiStorage, normalizeHexString, notNullOrEmpty, objectKeys, packFilterOptions, resolveCheckRatioArrayRef, resolveNumberRef, resolveObjectArrayRef, resolveStringArrayRef, resolveStringRef }; | ||
export { type AcalaSignMessageFunction, type AcalaUserParams, type AgoricUserParams, type AlertFilter, type AlertFrequency, type AptosSignMessageFunction, type AptosUserParams, type ArchwayUserParams, type AuthenticateResult, type Authorization, type AuthorizationStorage, type AxelarUserParams, type BroadcastEventTypeItem, type CardConfigItemV1, type CardConfigType, type CelestiaUserParams, type CheckRatio, type ConfigFactoryInput, type ConfigFactoryInputDelegated, type ConfigFactoryInputOidc, type ConfigFactoryInputPublicKey, type ConfigFactoryInputPublicKeyAndAddress, type ConnectWalletParams, type ContactInfo, type ContactInfoConfig, type CosmosUserParams, type CountryCode, type CreateFunc, type CustomHealthCheckItem, type CustomInputConstraints, type CustomToggleTypeItem, type CustomTopicTypeItem, type CustomTypeBase, type DeepPartialReadonly, type DirectPushEventTypeItem, type DiscordContactInfo, type DydxUserParams, type DymensionUserParams, type ElysUserParams, type EmailContactInfo, type EnsureWebhookParams$1 as EnsureWebhookParams, type EventTypeConfig, type EventTypeItem, type EvmUserParams, type FetchFunc, type Filter, type FilterBase, type FilterOptions, type FilterType, type FrequencyFilter, type FrontendClientConfigFactory, type FusionEventMetadata, type FusionEventTopic, type FusionEventTypeItem, type FusionFilterOptions, type FusionHealthCheckEventTypeItem, type FusionMultiThreshholdEventTypeItem, type FusionToggleEventTypeItem, type FusionTypeBase, type GetStorageType, type HasStorageType, type HealthCheckEventInputsWithCustomPercentage, type HealthCheckEventInputsWithIndex, type HealthCheckEventTypeItem, type HealthCheckInputs, type IdentifyFunc, type InjectiveUserParams, type InputItem, type InputObject, type InputType, type InputsConfig, type KavaUserParams, type LabelEventTypeItem, type MovementSignMessageFunction, type MovementUserParams, type NearUserParams, type NeutronUserParams, type NotifiConfigWithDelegate, type NotifiConfigWithOidc, type NotifiConfigWithPublicKey, type NotifiConfigWithPublicKeyAndAddress, type NotifiEnvironment, type NotifiEnvironmentConfiguration, NotifiFrontendClient, type NotifiFrontendConfiguration, NotifiFrontendStorage, type NotifiStorage, type NumberTypeSelect, type OffChainUserParams, type OidcCredentials, type OidcSignInFunction, type OraiUserParams, type PersistenceUserParams, type PrefixAndSuffix, type PriceChangeDataSource, type PriceChangeEventTypeItem, type RequiredParserVariable, type Roles, type RolesStorage, SIGNING_MESSAGE, type SetStorageType, type SignMessageParams, type SlackContactInfo, type SmsContactInfo, type SolanaUserParams, type StorageDriver, type StorageType, type SuiUserParams, type SupportedCardConfigType, type TelegramContactInfo, type TenantConfig, type ThresholdDirection, type TitleSubtitleConfig, type TitleSubtitleConfigActive, type TitleSubtitleConfigInactive, type TradingPairEventTypeItem, type TradingPairInputs, type UiType, type Uint8SignMessageFunction, type UserInputOptions, type UserInputParam, type UserParams, type UserState, type ValidInputRange, type ValueItemConfig, type ValueOrRef, type ValueTransformFunc, type ValueType, type WalletBalanceEventTypeItem, type WalletContactInfo, type WalletWithSignParams, type WebhookContactInfo, type WebhookHeaders, type XMTPTopicTypeItem, type XionSignMessageFunction, type XionUserParams, checkIsConfigWithDelegate, checkIsConfigWithOidc, checkIsConfigWithPublicKeyAndAddress, createInMemoryStorageDriver, createLocalForageStorageDriver, ensureDiscord, ensureEmail, ensureSlack, ensureSms, ensureSourceAndFilters, ensureTarget, ensureTelegram, ensureWeb3, ensureWebhook, envUrl, instantiateFrontendClient, isEvmChain, newFrontendClient, newFrontendConfig, newNotifiService, newNotifiStorage, normalizeHexString, notNullOrEmpty, objectKeys, packFilterOptions, resolveCheckRatioArrayRef, resolveNumberRef, resolveObjectArrayRef, resolveStringArrayRef, resolveStringRef }; |
@@ -202,2 +202,4 @@ import type { Operations, Types } from '@notifi-network/notifi-graphql'; | ||
return 'APTOS_WALLET'; | ||
case 'MOVEMENT': | ||
return 'MOVEMENT_WALLET'; | ||
case 'ARBITRUM': | ||
@@ -322,2 +324,3 @@ return 'ARBITRUM_WALLET'; | ||
case 'DELTA_PRIME_LENDING_RATES': | ||
case 'MOVEMENT_WALLET': | ||
case 'APTOS_WALLET': | ||
@@ -324,0 +327,0 @@ return normalizeHexString(blockchainAddress); |
@@ -87,2 +87,6 @@ import { Types } from '@notifi-network/notifi-graphql'; | ||
}> | ||
| Readonly<{ | ||
walletBlockchain: 'MOVEMENT'; | ||
signMessage: MovementSignMessageFunction; | ||
}> | ||
| Readonly<{ | ||
@@ -132,2 +136,6 @@ walletBlockchain: 'XION'; | ||
| (Readonly<{ | ||
signMessage: MovementSignMessageFunction; | ||
}> & | ||
MovementUserParams) | ||
| (Readonly<{ | ||
signMessage: XionSignMessageFunction; | ||
@@ -218,2 +226,3 @@ message: string; | ||
| AptosUserParams | ||
| MovementUserParams | ||
| AcalaUserParams | ||
@@ -271,2 +280,8 @@ | NearUserParams | ||
export type MovementUserParams = Readonly<{ | ||
walletBlockchain: 'MOVEMENT'; | ||
accountAddress: string; | ||
walletPublicKey: string; | ||
}>; | ||
export type XionUserParams = Readonly<{ | ||
@@ -396,2 +411,7 @@ walletBlockchain: 'XION'; | ||
type hexString = `0x${string}`; | ||
export type MovementSignMessageFunction = ( | ||
message: string, | ||
nonce: number, | ||
) => Promise<string>; | ||
export type AcalaSignMessageFunction = ( | ||
@@ -693,2 +713,3 @@ acalaAddress: string, | ||
case 'NIBIRU': | ||
case 'MOVEMENT': | ||
case 'APTOS': { | ||
@@ -847,2 +868,9 @@ if (typeof signature !== 'string') | ||
} | ||
case 'MOVEMENT': { | ||
const signature = await signMessageParams.signMessage( | ||
SIGNING_MESSAGE, | ||
timestamp, | ||
); | ||
return signature; | ||
} | ||
case 'SUI': { | ||
@@ -1507,2 +1535,3 @@ const { accountAddress, tenantId } = this | ||
walletBlockchain === 'APTOS' || | ||
walletBlockchain === 'MOVEMENT' || | ||
walletBlockchain === 'ACALA' || | ||
@@ -1509,0 +1538,0 @@ walletBlockchain === 'NEAR' || |
{ | ||
"name": "@notifi-network/notifi-frontend-client", | ||
"version": "2.0.1-alpha.8+442b4e77", | ||
"version": "2.1.0", | ||
"description": "The frontend client for Notifi", | ||
@@ -35,7 +35,7 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@notifi-network/notifi-graphql": "^2.0.1-alpha.8+442b4e77", | ||
"@notifi-network/notifi-graphql": "^2.1.0", | ||
"graphql-request": "^6.0.0", | ||
"localforage": "^1.10.0" | ||
}, | ||
"gitHead": "442b4e777a00faa772deac190b3c6226aabd3b84" | ||
"gitHead": "ded9d4c4fd789332f8403ad3bf9a80d6813001ea" | ||
} |
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
359008
9101
1
2