@antigane/wallet-adapters 0.0.2 → 0.0.3
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/App.d.ts +2 -0
- package/dist/ConnectButton.d.ts +1 -0
- package/dist/components/ConnectModal.d.ts +8 -0
- package/dist/components/ui/WalletButtonContainer.d.ts +6 -0
- package/dist/index.d.ts +3 -1
- package/dist/main.d.ts +0 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/metamask.d.ts +12 -0
- package/dist/services/peridotwallet.d.ts +1 -0
- package/dist/services/phantom.d.ts +12 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/sign.d.ts +6 -0
- package/dist/types/wallet.d.ts +9 -0
- package/dist/utils/buildChallenge.d.ts +1 -0
- package/dist/utils/cryptoEncoding.d.ts +4 -0
- package/dist/utils/customAccountId.d.ts +1 -0
- package/package.json +1 -1
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ConnectButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SignState } from '../types/sign';
|
|
2
|
+
type Props = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onSigned: (state: SignState) => Promise<void> | void;
|
|
6
|
+
};
|
|
7
|
+
export declare const ConnectModal: ({ open, onClose, onSigned }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface WalletButtonContainerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const WalletButtonContainer: ({ children, className, ...props }: WalletButtonContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
package/dist/index.d.ts
CHANGED
package/dist/main.d.ts
ADDED
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SignState } from '../types/sign';
|
|
2
|
+
export declare class Metamask {
|
|
3
|
+
/**
|
|
4
|
+
* Signs a login message via MetaMask using personal_sign.
|
|
5
|
+
* Note: returning Promise<SignState> is required because wallet calls are async.
|
|
6
|
+
*/
|
|
7
|
+
Login(message: string): Promise<SignState>;
|
|
8
|
+
/**
|
|
9
|
+
* Returns true if MetaMask is installed (or detectable among injected providers).
|
|
10
|
+
*/
|
|
11
|
+
isMetamaskInstalled(): boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SignState } from '../types/sign';
|
|
2
|
+
export declare class Phantom {
|
|
3
|
+
/**
|
|
4
|
+
* Signs a login message via Phantom.
|
|
5
|
+
* Note: returning Promise<SignState> is required because wallet calls are async.
|
|
6
|
+
*/
|
|
7
|
+
Login(message: string): Promise<SignState>;
|
|
8
|
+
/**
|
|
9
|
+
* Returns true if Phantom is installed (or detectable among injected providers).
|
|
10
|
+
*/
|
|
11
|
+
isPhantomInstalled(): boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sign.ts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function buildChallenge(message: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function short(v?: string, head?: number, tail?: number): string;
|