@avalabs/avacloud-waas-react 1.3.1 → 1.4.1
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.d.mts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +840 -532
- package/dist/index.mjs +905 -598
- package/package.json +8 -3
package/dist/index.d.mts
CHANGED
|
@@ -90,6 +90,8 @@ interface OrgConfig {
|
|
|
90
90
|
SKey?: string;
|
|
91
91
|
/** Organization ID */
|
|
92
92
|
orgID?: string;
|
|
93
|
+
/** Cubist organization ID returned by the auth service */
|
|
94
|
+
cubistOrgId?: string;
|
|
93
95
|
/** Wallet provider organization ID used for Cubist */
|
|
94
96
|
walletProviderOrgID?: string;
|
|
95
97
|
/** Admin portal settings */
|
|
@@ -313,7 +315,11 @@ interface AvaCloudWalletContextType {
|
|
|
313
315
|
loginWithCubist: (oidcToken?: string) => Promise<void>;
|
|
314
316
|
cubistClient: CubeSignerClient | null;
|
|
315
317
|
cubistError: Error | null;
|
|
316
|
-
login: (
|
|
318
|
+
login: (params?: {
|
|
319
|
+
email?: string;
|
|
320
|
+
password?: string;
|
|
321
|
+
connection?: string;
|
|
322
|
+
}) => void;
|
|
317
323
|
signup: (email: string, password: string) => void;
|
|
318
324
|
addAccount: (accountIndex: number) => Promise<void>;
|
|
319
325
|
queryClient: QueryClient;
|
|
@@ -573,6 +579,11 @@ interface GaslessConfig {
|
|
|
573
579
|
/** Suffix for the request in format "type name" (e.g. "bytes32 XMKUCJONOFSUSFCYHTYHCLX") */
|
|
574
580
|
suffix?: string;
|
|
575
581
|
}
|
|
582
|
+
interface GaslessContextType {
|
|
583
|
+
isLoading: boolean;
|
|
584
|
+
error: Error | null;
|
|
585
|
+
config: GaslessConfig | null;
|
|
586
|
+
}
|
|
576
587
|
interface FetchGaslessConfigParams {
|
|
577
588
|
orgId: string;
|
|
578
589
|
subnetId: string;
|
|
@@ -594,6 +605,7 @@ interface GaslessProviderProps {
|
|
|
594
605
|
* (relayer URL, forwarder address, etc.) to the browser.
|
|
595
606
|
*/
|
|
596
607
|
declare function GaslessProvider({ children, config, fetchParams }: GaslessProviderProps): react_jsx_runtime.JSX.Element;
|
|
608
|
+
declare function useGaslessConfig(): GaslessContextType;
|
|
597
609
|
|
|
598
610
|
interface GaslessTxState {
|
|
599
611
|
isLoading: boolean;
|
|
@@ -620,4 +632,4 @@ interface UseGaslessTransactionOptions {
|
|
|
620
632
|
}
|
|
621
633
|
declare function useGaslessTransaction({ gaslessConfig, contractAddress: defaultContractAddress, abi: defaultAbi }: UseGaslessTransactionOptions): UseGaslessTransactionReturn;
|
|
622
634
|
|
|
623
|
-
export { type AddAccountMessage, type AdminPortalSettings, type Auth0User, type AuthMessage, type AuthMessagePayload, type AuthStateUpdateMessage, type AuthStatusMessage, type AvaCloudEnvironment, type AvaCloudWalletContextType, AvaCloudWalletProvider, type AvaCloudWalletProviderProps, type BaseAuthMessage, type CheckAuthStatusMessage, type CubistWalletInfo, type ErrorMessage, ExportView, GaslessProvider, type GetOidcMessage, type IframeReadyMessage, LoginButton, type LoginRequestMessage, type LogoutRequestMessage, type MessageType, type OrgConfig, type ReceiveOidcMessage, ReceiveView, type RegisterMessage, type RegisterPayload, type RegisterSuccessMessage, SendView, type SignupRequestMessage, ThemeProvider, TokensView, type UserInfo, UserProfile, VM, WalletButton, WalletCard, WalletDisplay, type WalletInfo, type WalletKeysErrorMessage, type WalletKeysUpdateMessage, avaCloudWallet, useAuth, useAvaCloudWallet, useBlockchain, useChainId, useGaslessTransaction, useGlacier, usePostMessage, useSignMessage, useSignTransaction, useThemeMode, useTransferTokens, useUserWallets };
|
|
635
|
+
export { type AddAccountMessage, type AdminPortalSettings, type Auth0User, type AuthMessage, type AuthMessagePayload, type AuthStateUpdateMessage, type AuthStatusMessage, type AvaCloudEnvironment, type AvaCloudWalletContextType, AvaCloudWalletProvider, type AvaCloudWalletProviderProps, type BaseAuthMessage, type CheckAuthStatusMessage, type CubistWalletInfo, type ErrorMessage, ExportView, type FetchGaslessConfigParams, type GaslessConfig, GaslessProvider, type GaslessProviderProps, type GetOidcMessage, type IframeReadyMessage, LoginButton, type LoginRequestMessage, type LogoutRequestMessage, type MessageType, type OrgConfig, type ReceiveOidcMessage, ReceiveView, type RegisterMessage, type RegisterPayload, type RegisterSuccessMessage, SendView, type SignupRequestMessage, ThemeProvider, TokensView, type UseGaslessTransactionOptions, type UserInfo, UserProfile, VM, WalletButton, WalletCard, WalletDisplay, type WalletInfo, type WalletKeysErrorMessage, type WalletKeysUpdateMessage, avaCloudWallet, useAuth, useAvaCloudWallet, useBlockchain, useChainId, useGaslessConfig, useGaslessTransaction, useGlacier, usePostMessage, useSignMessage, useSignTransaction, useThemeMode, useTransferTokens, useUserWallets };
|
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ interface OrgConfig {
|
|
|
90
90
|
SKey?: string;
|
|
91
91
|
/** Organization ID */
|
|
92
92
|
orgID?: string;
|
|
93
|
+
/** Cubist organization ID returned by the auth service */
|
|
94
|
+
cubistOrgId?: string;
|
|
93
95
|
/** Wallet provider organization ID used for Cubist */
|
|
94
96
|
walletProviderOrgID?: string;
|
|
95
97
|
/** Admin portal settings */
|
|
@@ -313,7 +315,11 @@ interface AvaCloudWalletContextType {
|
|
|
313
315
|
loginWithCubist: (oidcToken?: string) => Promise<void>;
|
|
314
316
|
cubistClient: CubeSignerClient | null;
|
|
315
317
|
cubistError: Error | null;
|
|
316
|
-
login: (
|
|
318
|
+
login: (params?: {
|
|
319
|
+
email?: string;
|
|
320
|
+
password?: string;
|
|
321
|
+
connection?: string;
|
|
322
|
+
}) => void;
|
|
317
323
|
signup: (email: string, password: string) => void;
|
|
318
324
|
addAccount: (accountIndex: number) => Promise<void>;
|
|
319
325
|
queryClient: QueryClient;
|
|
@@ -573,6 +579,11 @@ interface GaslessConfig {
|
|
|
573
579
|
/** Suffix for the request in format "type name" (e.g. "bytes32 XMKUCJONOFSUSFCYHTYHCLX") */
|
|
574
580
|
suffix?: string;
|
|
575
581
|
}
|
|
582
|
+
interface GaslessContextType {
|
|
583
|
+
isLoading: boolean;
|
|
584
|
+
error: Error | null;
|
|
585
|
+
config: GaslessConfig | null;
|
|
586
|
+
}
|
|
576
587
|
interface FetchGaslessConfigParams {
|
|
577
588
|
orgId: string;
|
|
578
589
|
subnetId: string;
|
|
@@ -594,6 +605,7 @@ interface GaslessProviderProps {
|
|
|
594
605
|
* (relayer URL, forwarder address, etc.) to the browser.
|
|
595
606
|
*/
|
|
596
607
|
declare function GaslessProvider({ children, config, fetchParams }: GaslessProviderProps): react_jsx_runtime.JSX.Element;
|
|
608
|
+
declare function useGaslessConfig(): GaslessContextType;
|
|
597
609
|
|
|
598
610
|
interface GaslessTxState {
|
|
599
611
|
isLoading: boolean;
|
|
@@ -620,4 +632,4 @@ interface UseGaslessTransactionOptions {
|
|
|
620
632
|
}
|
|
621
633
|
declare function useGaslessTransaction({ gaslessConfig, contractAddress: defaultContractAddress, abi: defaultAbi }: UseGaslessTransactionOptions): UseGaslessTransactionReturn;
|
|
622
634
|
|
|
623
|
-
export { type AddAccountMessage, type AdminPortalSettings, type Auth0User, type AuthMessage, type AuthMessagePayload, type AuthStateUpdateMessage, type AuthStatusMessage, type AvaCloudEnvironment, type AvaCloudWalletContextType, AvaCloudWalletProvider, type AvaCloudWalletProviderProps, type BaseAuthMessage, type CheckAuthStatusMessage, type CubistWalletInfo, type ErrorMessage, ExportView, GaslessProvider, type GetOidcMessage, type IframeReadyMessage, LoginButton, type LoginRequestMessage, type LogoutRequestMessage, type MessageType, type OrgConfig, type ReceiveOidcMessage, ReceiveView, type RegisterMessage, type RegisterPayload, type RegisterSuccessMessage, SendView, type SignupRequestMessage, ThemeProvider, TokensView, type UserInfo, UserProfile, VM, WalletButton, WalletCard, WalletDisplay, type WalletInfo, type WalletKeysErrorMessage, type WalletKeysUpdateMessage, avaCloudWallet, useAuth, useAvaCloudWallet, useBlockchain, useChainId, useGaslessTransaction, useGlacier, usePostMessage, useSignMessage, useSignTransaction, useThemeMode, useTransferTokens, useUserWallets };
|
|
635
|
+
export { type AddAccountMessage, type AdminPortalSettings, type Auth0User, type AuthMessage, type AuthMessagePayload, type AuthStateUpdateMessage, type AuthStatusMessage, type AvaCloudEnvironment, type AvaCloudWalletContextType, AvaCloudWalletProvider, type AvaCloudWalletProviderProps, type BaseAuthMessage, type CheckAuthStatusMessage, type CubistWalletInfo, type ErrorMessage, ExportView, type FetchGaslessConfigParams, type GaslessConfig, GaslessProvider, type GaslessProviderProps, type GetOidcMessage, type IframeReadyMessage, LoginButton, type LoginRequestMessage, type LogoutRequestMessage, type MessageType, type OrgConfig, type ReceiveOidcMessage, ReceiveView, type RegisterMessage, type RegisterPayload, type RegisterSuccessMessage, SendView, type SignupRequestMessage, ThemeProvider, TokensView, type UseGaslessTransactionOptions, type UserInfo, UserProfile, VM, WalletButton, WalletCard, WalletDisplay, type WalletInfo, type WalletKeysErrorMessage, type WalletKeysUpdateMessage, avaCloudWallet, useAuth, useAvaCloudWallet, useBlockchain, useChainId, useGaslessConfig, useGaslessTransaction, useGlacier, usePostMessage, useSignMessage, useSignTransaction, useThemeMode, useTransferTokens, useUserWallets };
|