Skip to content

Commit abf8a55

Browse files
committed
dist
1 parent 6ecb743 commit abf8a55

File tree

7 files changed

+88
-1
lines changed

7 files changed

+88
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
node_modules
2-
dist

dist/index.d.mts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import React from 'react';
2+
import { WalletSelector, AccountState, VerifyOwnerParams, VerifiedOwner, WalletModuleFactory } from '@near-wallet-selector/core';
3+
export { Account, BrowserWallet, Wallet, WalletBehaviourFactory, WalletModule, WalletModuleFactory } from '@near-wallet-selector/core';
4+
import { WalletSelectorModal } from '@near-wallet-selector/modal-ui';
5+
6+
interface ContextProviderType {
7+
children: React.ReactNode;
8+
network?: 'testnet' | 'mainnet';
9+
onlyMbWallet?: boolean;
10+
contractAddress?: string;
11+
additionalWallets?: Array<WalletModuleFactory>;
12+
onlyBitteWallet?: boolean;
13+
walletUrl?: string;
14+
}
15+
type BitteWalletContext = {
16+
selector: WalletSelector;
17+
modal: WalletSelectorModal | undefined;
18+
accounts: AccountState[];
19+
activeAccountId: string | null;
20+
isConnected: boolean;
21+
isWaitingForConnection: boolean;
22+
isWalletSelectorSetup: boolean;
23+
errorMessage: string | null;
24+
connect: () => Promise<void>;
25+
disconnect: () => Promise<void>;
26+
signMessage: (params: VerifyOwnerParams) => Promise<VerifiedOwner>;
27+
};
28+
declare const BitteWalletContext: React.Context<BitteWalletContext | null>;
29+
declare const BitteWalletContextProvider: React.FC<ContextProviderType>;
30+
declare const useBitteWallet: () => BitteWalletContext;
31+
32+
type UseNearPriceReturn = {
33+
nearPrice: number;
34+
error: string | null;
35+
};
36+
declare const useNearPrice: () => UseNearPriceReturn;
37+
38+
export { BitteWalletContext, BitteWalletContextProvider, useBitteWallet, useNearPrice };

dist/index.d.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import React from 'react';
2+
import { WalletSelector, AccountState, VerifyOwnerParams, VerifiedOwner, WalletModuleFactory } from '@near-wallet-selector/core';
3+
export { Account, BrowserWallet, Wallet, WalletBehaviourFactory, WalletModule, WalletModuleFactory } from '@near-wallet-selector/core';
4+
import { WalletSelectorModal } from '@near-wallet-selector/modal-ui';
5+
6+
interface ContextProviderType {
7+
children: React.ReactNode;
8+
network?: 'testnet' | 'mainnet';
9+
onlyMbWallet?: boolean;
10+
contractAddress?: string;
11+
additionalWallets?: Array<WalletModuleFactory>;
12+
onlyBitteWallet?: boolean;
13+
walletUrl?: string;
14+
}
15+
type BitteWalletContext = {
16+
selector: WalletSelector;
17+
modal: WalletSelectorModal | undefined;
18+
accounts: AccountState[];
19+
activeAccountId: string | null;
20+
isConnected: boolean;
21+
isWaitingForConnection: boolean;
22+
isWalletSelectorSetup: boolean;
23+
errorMessage: string | null;
24+
connect: () => Promise<void>;
25+
disconnect: () => Promise<void>;
26+
signMessage: (params: VerifyOwnerParams) => Promise<VerifiedOwner>;
27+
};
28+
declare const BitteWalletContext: React.Context<BitteWalletContext | null>;
29+
declare const BitteWalletContextProvider: React.FC<ContextProviderType>;
30+
declare const useBitteWallet: () => BitteWalletContext;
31+
32+
type UseNearPriceReturn = {
33+
nearPrice: number;
34+
error: string | null;
35+
};
36+
declare const useNearPrice: () => UseNearPriceReturn;
37+
38+
export { BitteWalletContext, BitteWalletContextProvider, useBitteWallet, useNearPrice };

dist/index.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.mjs

Lines changed: 5 additions & 0 deletions
Large diffs are not rendered by default.

dist/index.mjs.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)