@hot-labs/kit 1.1.2 → 1.2.0-alpha.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/README.md +9 -2
- package/package.json +4 -8
- package/src/HotConnector.ts +31 -21
- package/src/OmniConnector.ts +9 -10
- package/src/OmniWallet.ts +25 -24
- package/src/core/Intents.ts +151 -222
- package/src/core/api.ts +4 -37
- package/src/core/bridge.ts +2 -3
- package/src/core/index.ts +1 -1
- package/src/{near/rpc.ts → core/nearRpc.ts} +11 -4
- package/src/core/types.ts +0 -21
- package/src/core/utils.ts +1 -17
- package/src/cosmos/connector.ts +26 -22
- package/src/cosmos/wallet.ts +8 -3
- package/src/evm/connector.ts +0 -5
- package/src/evm/wallet.ts +6 -9
- package/src/exchange.ts +30 -24
- package/src/hot-wallet/google.ts +5 -12
- package/src/index.ts +0 -2
- package/src/near/connector.ts +2 -2
- package/src/near/wallet.ts +9 -4
- package/src/solana/connector.ts +8 -9
- package/src/solana/injected/solana-wallet.ts +6 -6
- package/src/solana/{WalletStandard.ts → protocol.ts} +4 -2
- package/src/solana/wallet.ts +20 -11
- package/src/stellar/connector.ts +6 -1
- package/src/stellar/wallet.ts +17 -17
- package/src/ton/connector.ts +5 -1
- package/src/ton/wallet.ts +3 -3
- package/src/ui/Popup.tsx +4 -12
- package/src/ui/connect/AuthPopup.tsx +1 -2
- package/src/ui/connect/ConnectWallet.tsx +6 -12
- package/src/ui/icons/arrow-right.tsx +2 -2
- package/src/ui/icons/close.tsx +1 -1
- package/src/ui/icons/exchange.tsx +4 -4
- package/src/ui/icons/logout.tsx +6 -6
- package/src/ui/icons/pending.tsx +4 -2
- package/src/ui/icons/qr.tsx +2 -1
- package/src/ui/icons/search.tsx +4 -4
- package/src/ui/icons/switch.tsx +4 -4
- package/src/ui/icons/wallet.tsx +4 -2
- package/src/ui/payment/Bridge.tsx +6 -25
- package/src/ui/payment/Payment.tsx +46 -241
- package/src/ui/payment/Profile.tsx +8 -10
- package/src/ui/payment/SelectToken.tsx +1 -1
- package/src/ui/payment/TokenCard.tsx +18 -22
- package/src/ui/router.tsx +16 -56
- package/src/ui/styles.ts +0 -2
- package/build/HotConnector.d.ts +0 -103
- package/build/HotConnector.js +0 -300
- package/build/HotConnector.js.map +0 -1
- package/build/OmniConnector.d.ts +0 -90
- package/build/OmniConnector.js +0 -121
- package/build/OmniConnector.js.map +0 -1
- package/build/OmniWallet.d.ts +0 -35
- package/build/OmniWallet.js +0 -56
- package/build/OmniWallet.js.map +0 -1
- package/build/activity.d.ts +0 -18
- package/build/activity.js +0 -87
- package/build/activity.js.map +0 -1
- package/build/core/Intents.d.ts +0 -100
- package/build/core/Intents.js +0 -472
- package/build/core/Intents.js.map +0 -1
- package/build/core/api.d.ts +0 -48
- package/build/core/api.js +0 -93
- package/build/core/api.js.map +0 -1
- package/build/core/bridge.d.ts +0 -3
- package/build/core/bridge.js +0 -36
- package/build/core/bridge.js.map +0 -1
- package/build/core/chains.d.ts +0 -115
- package/build/core/chains.js +0 -381
- package/build/core/chains.js.map +0 -1
- package/build/core/defaultTokens.d.ts +0 -17
- package/build/core/defaultTokens.js +0 -1079
- package/build/core/defaultTokens.js.map +0 -1
- package/build/core/events.d.ts +0 -42
- package/build/core/events.js +0 -64
- package/build/core/events.js.map +0 -1
- package/build/core/index.d.ts +0 -10
- package/build/core/index.js +0 -11
- package/build/core/index.js.map +0 -1
- package/build/core/recipient.d.ts +0 -10
- package/build/core/recipient.js +0 -40
- package/build/core/recipient.js.map +0 -1
- package/build/core/token.d.ts +0 -36
- package/build/core/token.js +0 -103
- package/build/core/token.js.map +0 -1
- package/build/core/tokens.d.ts +0 -14
- package/build/core/tokens.js +0 -59
- package/build/core/tokens.js.map +0 -1
- package/build/core/types.d.ts +0 -60
- package/build/core/types.js +0 -2
- package/build/core/types.js.map +0 -1
- package/build/core/utils.d.ts +0 -25
- package/build/core/utils.js +0 -170
- package/build/core/utils.js.map +0 -1
- package/build/cosmos/connector.d.ts +0 -36
- package/build/cosmos/connector.js +0 -211
- package/build/cosmos/connector.js.map +0 -1
- package/build/cosmos/helpers.d.ts +0 -2
- package/build/cosmos/helpers.js +0 -29
- package/build/cosmos/helpers.js.map +0 -1
- package/build/cosmos/index.d.ts +0 -6
- package/build/cosmos/index.js +0 -5
- package/build/cosmos/index.js.map +0 -1
- package/build/cosmos/wallet.d.ts +0 -26
- package/build/cosmos/wallet.js +0 -51
- package/build/cosmos/wallet.js.map +0 -1
- package/build/defaults.d.ts +0 -1
- package/build/defaults.js +0 -7
- package/build/defaults.js.map +0 -1
- package/build/evm/abi.d.ts +0 -17
- package/build/evm/abi.js +0 -38
- package/build/evm/abi.js.map +0 -1
- package/build/evm/connector.d.ts +0 -29
- package/build/evm/connector.js +0 -118
- package/build/evm/connector.js.map +0 -1
- package/build/evm/index.d.ts +0 -6
- package/build/evm/index.js +0 -5
- package/build/evm/index.js.map +0 -1
- package/build/evm/injected.d.ts +0 -1
- package/build/evm/injected.js +0 -33
- package/build/evm/injected.js.map +0 -1
- package/build/evm/wallet.d.ts +0 -42
- package/build/evm/wallet.js +0 -130
- package/build/evm/wallet.js.map +0 -1
- package/build/exchange.d.ts +0 -68
- package/build/exchange.js +0 -384
- package/build/exchange.js.map +0 -1
- package/build/hot-wallet/google.d.ts +0 -25
- package/build/hot-wallet/google.js +0 -117
- package/build/hot-wallet/google.js.map +0 -1
- package/build/hot-wallet/iframe.d.ts +0 -36
- package/build/hot-wallet/iframe.js +0 -140
- package/build/hot-wallet/iframe.js.map +0 -1
- package/build/hot-wallet/index.d.ts +0 -5
- package/build/hot-wallet/index.js +0 -4
- package/build/hot-wallet/index.js.map +0 -1
- package/build/hot-wallet/proxy.d.ts +0 -8
- package/build/hot-wallet/proxy.js +0 -45
- package/build/hot-wallet/proxy.js.map +0 -1
- package/build/index.d.ts +0 -6
- package/build/index.js +0 -7
- package/build/index.js.map +0 -1
- package/build/near/connector.d.ts +0 -18
- package/build/near/connector.js +0 -58
- package/build/near/connector.js.map +0 -1
- package/build/near/index.d.ts +0 -7
- package/build/near/index.js +0 -5
- package/build/near/index.js.map +0 -1
- package/build/near/rpc.d.ts +0 -23
- package/build/near/rpc.js +0 -161
- package/build/near/rpc.js.map +0 -1
- package/build/near/wallet.d.ts +0 -53
- package/build/near/wallet.js +0 -190
- package/build/near/wallet.js.map +0 -1
- package/build/solana/WalletStandard.d.ts +0 -25
- package/build/solana/WalletStandard.js +0 -56
- package/build/solana/WalletStandard.js.map +0 -1
- package/build/solana/connector.d.ts +0 -30
- package/build/solana/connector.js +0 -139
- package/build/solana/connector.js.map +0 -1
- package/build/solana/index.d.ts +0 -6
- package/build/solana/index.js +0 -5
- package/build/solana/index.js.map +0 -1
- package/build/solana/injected/account.d.ts +0 -11
- package/build/solana/injected/account.js +0 -41
- package/build/solana/injected/account.js.map +0 -1
- package/build/solana/injected/index.d.ts +0 -1
- package/build/solana/injected/index.js +0 -82
- package/build/solana/injected/index.js.map +0 -1
- package/build/solana/injected/register.d.ts +0 -2
- package/build/solana/injected/register.js +0 -41
- package/build/solana/injected/register.js.map +0 -1
- package/build/solana/injected/solana-wallet.d.ts +0 -34
- package/build/solana/injected/solana-wallet.js +0 -223
- package/build/solana/injected/solana-wallet.js.map +0 -1
- package/build/solana/injected/utils.d.ts +0 -32
- package/build/solana/injected/utils.js +0 -36
- package/build/solana/injected/utils.js.map +0 -1
- package/build/solana/wallet.d.ts +0 -40
- package/build/solana/wallet.js +0 -181
- package/build/solana/wallet.js.map +0 -1
- package/build/solana/walletStandartList.d.ts +0 -102
- package/build/solana/walletStandartList.js +0 -150
- package/build/solana/walletStandartList.js.map +0 -1
- package/build/stellar/connector.d.ts +0 -29
- package/build/stellar/connector.js +0 -64
- package/build/stellar/connector.js.map +0 -1
- package/build/stellar/freigher.d.ts +0 -46
- package/build/stellar/freigher.js +0 -110
- package/build/stellar/freigher.js.map +0 -1
- package/build/stellar/hotWallet.d.ts +0 -33
- package/build/stellar/hotWallet.js +0 -28
- package/build/stellar/hotWallet.js.map +0 -1
- package/build/stellar/index.d.ts +0 -6
- package/build/stellar/index.js +0 -5
- package/build/stellar/index.js.map +0 -1
- package/build/stellar/wallet.d.ts +0 -67
- package/build/stellar/wallet.js +0 -212
- package/build/stellar/wallet.js.map +0 -1
- package/build/storage.d.ts +0 -10
- package/build/storage.js +0 -12
- package/build/storage.js.map +0 -1
- package/build/ton/connector.d.ts +0 -24
- package/build/ton/connector.js +0 -111
- package/build/ton/connector.js.map +0 -1
- package/build/ton/index.d.ts +0 -7
- package/build/ton/index.js +0 -5
- package/build/ton/index.js.map +0 -1
- package/build/ton/injected.d.ts +0 -1
- package/build/ton/injected.js +0 -49
- package/build/ton/injected.js.map +0 -1
- package/build/ton/utils.d.ts +0 -45
- package/build/ton/utils.js +0 -63
- package/build/ton/utils.js.map +0 -1
- package/build/ton/wallet.d.ts +0 -54
- package/build/ton/wallet.js +0 -138
- package/build/ton/wallet.js.map +0 -1
- package/build/tron/connector.d.ts +0 -51
- package/build/tron/connector.js +0 -65
- package/build/tron/connector.js.map +0 -1
- package/build/tron/index.d.ts +0 -6
- package/build/tron/index.js +0 -5
- package/build/tron/index.js.map +0 -1
- package/build/tron/wallet.d.ts +0 -52
- package/build/tron/wallet.js +0 -122
- package/build/tron/wallet.js.map +0 -1
- package/build/ui/Popup.d.ts +0 -12
- package/build/ui/Popup.js +0 -43
- package/build/ui/Popup.js.map +0 -1
- package/build/ui/Toast.d.ts +0 -4
- package/build/ui/Toast.js +0 -33
- package/build/ui/Toast.js.map +0 -1
- package/build/ui/connect/AuthPopup.d.ts +0 -2
- package/build/ui/connect/AuthPopup.js +0 -48
- package/build/ui/connect/AuthPopup.js.map +0 -1
- package/build/ui/connect/ConnectWallet.d.ts +0 -14
- package/build/ui/connect/ConnectWallet.js +0 -22
- package/build/ui/connect/ConnectWallet.js.map +0 -1
- package/build/ui/connect/LogoutPopup.d.ts +0 -10
- package/build/ui/connect/LogoutPopup.js +0 -8
- package/build/ui/connect/LogoutPopup.js.map +0 -1
- package/build/ui/connect/PrimaryWallet.d.ts +0 -6
- package/build/ui/connect/PrimaryWallet.js +0 -18
- package/build/ui/connect/PrimaryWallet.js.map +0 -1
- package/build/ui/connect/WCPopup.d.ts +0 -13
- package/build/ui/connect/WCPopup.js +0 -81
- package/build/ui/connect/WCPopup.js.map +0 -1
- package/build/ui/connect/WCRequest.d.ts +0 -9
- package/build/ui/connect/WCRequest.js +0 -13
- package/build/ui/connect/WCRequest.js.map +0 -1
- package/build/ui/connect/WalletPicker.d.ts +0 -11
- package/build/ui/connect/WalletPicker.js +0 -48
- package/build/ui/connect/WalletPicker.js.map +0 -1
- package/build/ui/icons/arrow-right.d.ts +0 -1
- package/build/ui/icons/arrow-right.js +0 -5
- package/build/ui/icons/arrow-right.js.map +0 -1
- package/build/ui/icons/close.d.ts +0 -1
- package/build/ui/icons/close.js +0 -5
- package/build/ui/icons/close.js.map +0 -1
- package/build/ui/icons/exchange.d.ts +0 -6
- package/build/ui/icons/exchange.js +0 -6
- package/build/ui/icons/exchange.js.map +0 -1
- package/build/ui/icons/logout.d.ts +0 -1
- package/build/ui/icons/logout.js +0 -3
- package/build/ui/icons/logout.js.map +0 -1
- package/build/ui/icons/pending.d.ts +0 -1
- package/build/ui/icons/pending.js +0 -5
- package/build/ui/icons/pending.js.map +0 -1
- package/build/ui/icons/qr.d.ts +0 -1
- package/build/ui/icons/qr.js +0 -5
- package/build/ui/icons/qr.js.map +0 -1
- package/build/ui/icons/search.d.ts +0 -1
- package/build/ui/icons/search.js +0 -5
- package/build/ui/icons/search.js.map +0 -1
- package/build/ui/icons/switch.d.ts +0 -1
- package/build/ui/icons/switch.js +0 -5
- package/build/ui/icons/switch.js.map +0 -1
- package/build/ui/icons/wallet.d.ts +0 -1
- package/build/ui/icons/wallet.js +0 -5
- package/build/ui/icons/wallet.js.map +0 -1
- package/build/ui/payment/Bridge.d.ts +0 -29
- package/build/ui/payment/Bridge.js +0 -373
- package/build/ui/payment/Bridge.js.map +0 -1
- package/build/ui/payment/DepositQR.d.ts +0 -9
- package/build/ui/payment/DepositQR.js +0 -56
- package/build/ui/payment/DepositQR.js.map +0 -1
- package/build/ui/payment/Payment.d.ts +0 -23
- package/build/ui/payment/Payment.js +0 -136
- package/build/ui/payment/Payment.js.map +0 -1
- package/build/ui/payment/Profile.d.ts +0 -8
- package/build/ui/payment/Profile.js +0 -110
- package/build/ui/payment/Profile.js.map +0 -1
- package/build/ui/payment/SelectRecipient.d.ts +0 -14
- package/build/ui/payment/SelectRecipient.js +0 -68
- package/build/ui/payment/SelectRecipient.js.map +0 -1
- package/build/ui/payment/SelectSender.d.ts +0 -13
- package/build/ui/payment/SelectSender.js +0 -23
- package/build/ui/payment/SelectSender.js.map +0 -1
- package/build/ui/payment/SelectToken.d.ts +0 -13
- package/build/ui/payment/SelectToken.js +0 -92
- package/build/ui/payment/SelectToken.js.map +0 -1
- package/build/ui/payment/Stepper.d.ts +0 -13
- package/build/ui/payment/Stepper.js +0 -22
- package/build/ui/payment/Stepper.js.map +0 -1
- package/build/ui/payment/TokenCard.d.ts +0 -25
- package/build/ui/payment/TokenCard.js +0 -63
- package/build/ui/payment/TokenCard.js.map +0 -1
- package/build/ui/router.d.ts +0 -51
- package/build/ui/router.js +0 -68
- package/build/ui/router.js.map +0 -1
- package/build/ui/styles.d.ts +0 -13
- package/build/ui/styles.js +0 -290
- package/build/ui/styles.js.map +0 -1
- package/src/tron/connector.ts +0 -89
- package/src/tron/index.ts +0 -7
- package/src/tron/wallet.ts +0 -146
- package/src/ui/Toast.tsx +0 -45
- package/src/ui/connect/PrimaryWallet.tsx +0 -65
- package/src/ui/payment/Stepper.tsx +0 -50
- /package/src/solana/{walletStandartList.ts → wallets.ts} +0 -0
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import type { Wallet } from "@wallet-standard/base";
|
|
2
|
-
/**
|
|
3
|
-
* Get an API for {@link Wallets.get | getting}, {@link Wallets.on | listening for}, and
|
|
4
|
-
* {@link Wallets.register | registering} {@link "@wallet-standard/base".Wallet | Wallets}.
|
|
5
|
-
*
|
|
6
|
-
* When called for the first time --
|
|
7
|
-
*
|
|
8
|
-
* This dispatches a {@link "@wallet-standard/base".WindowAppReadyEvent} to notify each Wallet that the app is ready
|
|
9
|
-
* to register it.
|
|
10
|
-
*
|
|
11
|
-
* This also adds a listener for {@link "@wallet-standard/base".WindowRegisterWalletEvent} to listen for a notification
|
|
12
|
-
* from each Wallet that the Wallet is ready to be registered by the app.
|
|
13
|
-
*
|
|
14
|
-
* This combination of event dispatch and listener guarantees that each Wallet will be registered synchronously as soon
|
|
15
|
-
* as the app is ready whether the app loads before or after each Wallet.
|
|
16
|
-
*
|
|
17
|
-
* @return API for getting, listening for, and registering Wallets.
|
|
18
|
-
*
|
|
19
|
-
* @group App
|
|
20
|
-
*/
|
|
21
|
-
export declare function getWallets(): Wallets;
|
|
22
|
-
/**
|
|
23
|
-
* API for {@link Wallets.get | getting}, {@link Wallets.on | listening for}, and
|
|
24
|
-
* {@link Wallets.register | registering} {@link "@wallet-standard/base".Wallet | Wallets}.
|
|
25
|
-
*
|
|
26
|
-
* @group App
|
|
27
|
-
*/
|
|
28
|
-
export interface Wallets {
|
|
29
|
-
/**
|
|
30
|
-
* Get all Wallets that have been registered.
|
|
31
|
-
*
|
|
32
|
-
* @return Registered Wallets.
|
|
33
|
-
*/
|
|
34
|
-
get(): readonly (Wallet & {
|
|
35
|
-
url?: string;
|
|
36
|
-
})[];
|
|
37
|
-
/**
|
|
38
|
-
* Add an event listener and subscribe to events for Wallets that are
|
|
39
|
-
* {@link WalletsEventsListeners.register | registered} and
|
|
40
|
-
* {@link WalletsEventsListeners.unregister | unregistered}.
|
|
41
|
-
*
|
|
42
|
-
* @param event Event type to listen for. {@link WalletsEventsListeners.register | `register`} and
|
|
43
|
-
* {@link WalletsEventsListeners.unregister | `unregister`} are the only event types.
|
|
44
|
-
* @param listener Function that will be called when an event of the type is emitted.
|
|
45
|
-
*
|
|
46
|
-
* @return
|
|
47
|
-
* `off` function which may be called to remove the event listener and unsubscribe from events.
|
|
48
|
-
*
|
|
49
|
-
* As with all event listeners, be careful to avoid memory leaks.
|
|
50
|
-
*/
|
|
51
|
-
on<E extends WalletsEventNames>(event: E, listener: WalletsEventsListeners[E]): () => void;
|
|
52
|
-
/**
|
|
53
|
-
* Register Wallets. This can be used to programmatically wrap non-standard wallets as Standard Wallets.
|
|
54
|
-
*
|
|
55
|
-
* Apps generally do not need to, and should not, call this.
|
|
56
|
-
*
|
|
57
|
-
* @param wallets Wallets to register.
|
|
58
|
-
*
|
|
59
|
-
* @return
|
|
60
|
-
* `unregister` function which may be called to programmatically unregister the registered Wallets.
|
|
61
|
-
*
|
|
62
|
-
* Apps generally do not need to, and should not, call this.
|
|
63
|
-
*/
|
|
64
|
-
register(...wallets: Wallet[]): () => void;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Types of event listeners of the {@link Wallets} API.
|
|
68
|
-
*
|
|
69
|
-
* @group App
|
|
70
|
-
*/
|
|
71
|
-
export interface WalletsEventsListeners {
|
|
72
|
-
/**
|
|
73
|
-
* Emitted when Wallets are registered.
|
|
74
|
-
*
|
|
75
|
-
* @param wallets Wallets that were registered.
|
|
76
|
-
*/
|
|
77
|
-
register(...wallets: Wallet[]): void;
|
|
78
|
-
/**
|
|
79
|
-
* Emitted when Wallets are unregistered.
|
|
80
|
-
*
|
|
81
|
-
* @param wallets Wallets that were unregistered.
|
|
82
|
-
*/
|
|
83
|
-
unregister(...wallets: Wallet[]): void;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Names of {@link WalletsEventsListeners} that can be listened for.
|
|
87
|
-
*
|
|
88
|
-
* @group App
|
|
89
|
-
*/
|
|
90
|
-
export type WalletsEventNames = keyof WalletsEventsListeners;
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated Use {@link WalletsEventsListeners} instead.
|
|
93
|
-
*
|
|
94
|
-
* @group Deprecated
|
|
95
|
-
*/
|
|
96
|
-
export type WalletsEvents = WalletsEventsListeners;
|
|
97
|
-
/**
|
|
98
|
-
* @deprecated Use {@link getWallets} instead.
|
|
99
|
-
*
|
|
100
|
-
* @group Deprecated
|
|
101
|
-
*/
|
|
102
|
-
export declare function DEPRECATED_getWallets(): Wallets;
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
let wallets = undefined;
|
|
2
|
-
const registeredWalletsSet = new Set();
|
|
3
|
-
function addRegisteredWallet(wallet) {
|
|
4
|
-
cachedWalletsArray = undefined;
|
|
5
|
-
registeredWalletsSet.add(wallet);
|
|
6
|
-
}
|
|
7
|
-
function removeRegisteredWallet(wallet) {
|
|
8
|
-
cachedWalletsArray = undefined;
|
|
9
|
-
registeredWalletsSet.delete(wallet);
|
|
10
|
-
}
|
|
11
|
-
const listeners = {};
|
|
12
|
-
/**
|
|
13
|
-
* Get an API for {@link Wallets.get | getting}, {@link Wallets.on | listening for}, and
|
|
14
|
-
* {@link Wallets.register | registering} {@link "@wallet-standard/base".Wallet | Wallets}.
|
|
15
|
-
*
|
|
16
|
-
* When called for the first time --
|
|
17
|
-
*
|
|
18
|
-
* This dispatches a {@link "@wallet-standard/base".WindowAppReadyEvent} to notify each Wallet that the app is ready
|
|
19
|
-
* to register it.
|
|
20
|
-
*
|
|
21
|
-
* This also adds a listener for {@link "@wallet-standard/base".WindowRegisterWalletEvent} to listen for a notification
|
|
22
|
-
* from each Wallet that the Wallet is ready to be registered by the app.
|
|
23
|
-
*
|
|
24
|
-
* This combination of event dispatch and listener guarantees that each Wallet will be registered synchronously as soon
|
|
25
|
-
* as the app is ready whether the app loads before or after each Wallet.
|
|
26
|
-
*
|
|
27
|
-
* @return API for getting, listening for, and registering Wallets.
|
|
28
|
-
*
|
|
29
|
-
* @group App
|
|
30
|
-
*/
|
|
31
|
-
export function getWallets() {
|
|
32
|
-
if (wallets)
|
|
33
|
-
return wallets;
|
|
34
|
-
wallets = Object.freeze({ register, get, on });
|
|
35
|
-
if (typeof window === "undefined")
|
|
36
|
-
return wallets;
|
|
37
|
-
const api = Object.freeze({ register });
|
|
38
|
-
try {
|
|
39
|
-
window.addEventListener("wallet-standard:register-wallet", ({ detail: callback }) => callback(api));
|
|
40
|
-
}
|
|
41
|
-
catch (error) {
|
|
42
|
-
console.error("wallet-standard:register-wallet event listener could not be added\n", error);
|
|
43
|
-
}
|
|
44
|
-
try {
|
|
45
|
-
window.dispatchEvent(new AppReadyEvent(api));
|
|
46
|
-
}
|
|
47
|
-
catch (error) {
|
|
48
|
-
console.error("wallet-standard:app-ready event could not be dispatched\n", error);
|
|
49
|
-
}
|
|
50
|
-
return wallets;
|
|
51
|
-
}
|
|
52
|
-
function register(...wallets) {
|
|
53
|
-
// Filter out wallets that have already been registered.
|
|
54
|
-
// This prevents the same wallet from being registered twice, but it also prevents wallets from being
|
|
55
|
-
// unregistered by reusing a reference to the wallet to obtain the unregister function for it.
|
|
56
|
-
wallets = wallets.filter((wallet) => !registeredWalletsSet.has(wallet));
|
|
57
|
-
// If there are no new wallets to register, just return a no-op unregister function.
|
|
58
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
59
|
-
if (!wallets.length)
|
|
60
|
-
return () => { };
|
|
61
|
-
wallets.forEach((wallet) => addRegisteredWallet(wallet));
|
|
62
|
-
listeners["register"]?.forEach((listener) => guard(() => listener(...wallets)));
|
|
63
|
-
// Return a function that unregisters the registered wallets.
|
|
64
|
-
return function unregister() {
|
|
65
|
-
wallets.forEach((wallet) => removeRegisteredWallet(wallet));
|
|
66
|
-
listeners["unregister"]?.forEach((listener) => guard(() => listener(...wallets)));
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
let cachedWalletsArray;
|
|
70
|
-
function get() {
|
|
71
|
-
if (!cachedWalletsArray) {
|
|
72
|
-
cachedWalletsArray = [...registeredWalletsSet];
|
|
73
|
-
}
|
|
74
|
-
return cachedWalletsArray;
|
|
75
|
-
}
|
|
76
|
-
function on(event, listener) {
|
|
77
|
-
listeners[event]?.push(listener) || (listeners[event] = [listener]);
|
|
78
|
-
// Return a function that removes the event listener.
|
|
79
|
-
return function off() {
|
|
80
|
-
listeners[event] = listeners[event]?.filter((existingListener) => listener !== existingListener);
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
function guard(callback) {
|
|
84
|
-
try {
|
|
85
|
-
callback();
|
|
86
|
-
}
|
|
87
|
-
catch (error) {
|
|
88
|
-
console.error(error);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
class AppReadyEvent extends Event {
|
|
92
|
-
#detail;
|
|
93
|
-
get detail() {
|
|
94
|
-
return this.#detail;
|
|
95
|
-
}
|
|
96
|
-
get type() {
|
|
97
|
-
return "wallet-standard:app-ready";
|
|
98
|
-
}
|
|
99
|
-
constructor(api) {
|
|
100
|
-
super("wallet-standard:app-ready", {
|
|
101
|
-
bubbles: false,
|
|
102
|
-
cancelable: false,
|
|
103
|
-
composed: false,
|
|
104
|
-
});
|
|
105
|
-
this.#detail = api;
|
|
106
|
-
}
|
|
107
|
-
/** @deprecated */
|
|
108
|
-
preventDefault() {
|
|
109
|
-
throw new Error("preventDefault cannot be called");
|
|
110
|
-
}
|
|
111
|
-
/** @deprecated */
|
|
112
|
-
stopImmediatePropagation() {
|
|
113
|
-
throw new Error("stopImmediatePropagation cannot be called");
|
|
114
|
-
}
|
|
115
|
-
/** @deprecated */
|
|
116
|
-
stopPropagation() {
|
|
117
|
-
throw new Error("stopPropagation cannot be called");
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* @deprecated Use {@link getWallets} instead.
|
|
122
|
-
*
|
|
123
|
-
* @group Deprecated
|
|
124
|
-
*/
|
|
125
|
-
export function DEPRECATED_getWallets() {
|
|
126
|
-
if (wallets)
|
|
127
|
-
return wallets;
|
|
128
|
-
wallets = getWallets();
|
|
129
|
-
if (typeof window === "undefined")
|
|
130
|
-
return wallets;
|
|
131
|
-
const callbacks = window.navigator.wallets || [];
|
|
132
|
-
if (!Array.isArray(callbacks)) {
|
|
133
|
-
console.error("window.navigator.wallets is not an array");
|
|
134
|
-
return wallets;
|
|
135
|
-
}
|
|
136
|
-
const { register } = wallets;
|
|
137
|
-
const push = (...callbacks) => callbacks.forEach((callback) => guard(() => callback({ register })));
|
|
138
|
-
try {
|
|
139
|
-
Object.defineProperty(window.navigator, "wallets", {
|
|
140
|
-
value: Object.freeze({ push }),
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
catch (error) {
|
|
144
|
-
console.error("window.navigator.wallets could not be set");
|
|
145
|
-
return wallets;
|
|
146
|
-
}
|
|
147
|
-
push(...callbacks);
|
|
148
|
-
return wallets;
|
|
149
|
-
}
|
|
150
|
-
//# sourceMappingURL=walletStandartList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"walletStandartList.js","sourceRoot":"","sources":["../../src/solana/walletStandartList.ts"],"names":[],"mappings":"AAEA,IAAI,OAAO,GAAwB,SAAS,CAAC;AAC7C,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAU,CAAC;AAC/C,SAAS,mBAAmB,CAAC,MAAc;IACzC,kBAAkB,GAAG,SAAS,CAAC;IAC/B,oBAAoB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,sBAAsB,CAAC,MAAc;IAC5C,kBAAkB,GAAG,SAAS,CAAC;IAC/B,oBAAoB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,SAAS,GAA+D,EAAE,CAAC;AAEjF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,UAAU;IACxB,IAAI,OAAO;QAAE,OAAO,OAAO,CAAC;IAC5B,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/C,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,OAAO,OAAO,CAAC;IAElD,MAAM,GAAG,GA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CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;QAC3D,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;IACnB,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { WalletType } from "../core/chains";
|
|
2
|
-
import { HotConnector } from "../HotConnector";
|
|
3
|
-
import { ConnectorType, OmniConnector } from "../OmniConnector";
|
|
4
|
-
import { FreighterModule } from "./freigher";
|
|
5
|
-
import { HotWalletModule } from "./hotWallet";
|
|
6
|
-
import StellarWallet from "./wallet";
|
|
7
|
-
declare class StellarConnector extends OmniConnector<StellarWallet> {
|
|
8
|
-
icon: string;
|
|
9
|
-
walletTypes: WalletType[];
|
|
10
|
-
type: ConnectorType;
|
|
11
|
-
name: string;
|
|
12
|
-
id: string;
|
|
13
|
-
modules: {
|
|
14
|
-
hotWallet: HotWalletModule;
|
|
15
|
-
freighter: FreighterModule;
|
|
16
|
-
};
|
|
17
|
-
constructor(wibe3: HotConnector);
|
|
18
|
-
getWallet(id: string): FreighterModule | HotWalletModule | null;
|
|
19
|
-
getConnectedWallet(): Promise<{
|
|
20
|
-
type?: string;
|
|
21
|
-
id?: string;
|
|
22
|
-
address?: string;
|
|
23
|
-
publicKey?: string;
|
|
24
|
-
}>;
|
|
25
|
-
selectWallet(address: string, wallet: HotWalletModule | FreighterModule): Promise<StellarWallet>;
|
|
26
|
-
connect(id: string): Promise<StellarWallet>;
|
|
27
|
-
disconnect(): Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
export default StellarConnector;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import HOT from "../hot-wallet/iframe";
|
|
2
|
-
import { WalletType } from "../core/chains";
|
|
3
|
-
import { ConnectorType, OmniConnector } from "../OmniConnector";
|
|
4
|
-
import { FreighterModule } from "./freigher";
|
|
5
|
-
import { HotWalletModule } from "./hotWallet";
|
|
6
|
-
import StellarWallet from "./wallet";
|
|
7
|
-
class StellarConnector extends OmniConnector {
|
|
8
|
-
icon = "https://storage.herewallet.app/upload/1469894e53ca248ac6adceb2194e6950a13a52d972beb378a20bce7815ba01a4.png";
|
|
9
|
-
walletTypes = [WalletType.STELLAR, WalletType.OMNI];
|
|
10
|
-
type = ConnectorType.WALLET;
|
|
11
|
-
name = "Stellar Wallet";
|
|
12
|
-
id = "stellar";
|
|
13
|
-
modules = {
|
|
14
|
-
hotWallet: new HotWalletModule(),
|
|
15
|
-
freighter: new FreighterModule(),
|
|
16
|
-
};
|
|
17
|
-
constructor(wibe3) {
|
|
18
|
-
super(wibe3);
|
|
19
|
-
this.options = Object.values(this.modules).map((module) => ({
|
|
20
|
-
type: "external",
|
|
21
|
-
name: module.productName,
|
|
22
|
-
icon: module.productIcon,
|
|
23
|
-
download: module.productUrl,
|
|
24
|
-
id: module.productId,
|
|
25
|
-
}));
|
|
26
|
-
this.getConnectedWallet().then(async ({ id, address }) => {
|
|
27
|
-
if (!id || !address)
|
|
28
|
-
return;
|
|
29
|
-
const wallet = this.getWallet(id);
|
|
30
|
-
const isAvailable = await wallet?.isAvailable();
|
|
31
|
-
if (isAvailable && wallet)
|
|
32
|
-
this.selectWallet(address, wallet);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
getWallet(id) {
|
|
36
|
-
return Object.values(this.modules).find((module) => module.productId === id) || null;
|
|
37
|
-
}
|
|
38
|
-
async getConnectedWallet() {
|
|
39
|
-
if (HOT.isInjected) {
|
|
40
|
-
const { address } = await this.modules.hotWallet.getAddress();
|
|
41
|
-
return { type: "wallet", id: this.modules.hotWallet.productId, address };
|
|
42
|
-
}
|
|
43
|
-
return await this.getStorage();
|
|
44
|
-
}
|
|
45
|
-
async selectWallet(address, wallet) {
|
|
46
|
-
const signMessage = async (message) => wallet.signMessage(message);
|
|
47
|
-
const signTransaction = async (transaction) => wallet.signTransaction(transaction.toXDR());
|
|
48
|
-
return this.setWallet(new StellarWallet({ address, rpc: this.wibe3.hotBridge.stellar, signMessage, signTransaction }));
|
|
49
|
-
}
|
|
50
|
-
async connect(id) {
|
|
51
|
-
const wallet = this.getWallet(id);
|
|
52
|
-
if (!wallet)
|
|
53
|
-
throw new Error("Wallet not found");
|
|
54
|
-
const { address } = await wallet.getAddress();
|
|
55
|
-
this.setStorage({ type: "wallet", id, address });
|
|
56
|
-
return this.selectWallet(address, wallet);
|
|
57
|
-
}
|
|
58
|
-
async disconnect() {
|
|
59
|
-
super.disconnect();
|
|
60
|
-
this.removeStorage();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
export default StellarConnector;
|
|
64
|
-
//# sourceMappingURL=connector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../../src/stellar/connector.ts"],"names":[],"mappings":"AAEA,OAAO,GAAG,MAAM,sBAAsB,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,aAAa,MAAM,UAAU,CAAC;AAErC,MAAM,gBAAiB,SAAQ,aAA4B;IACzD,IAAI,GAAG,4GAA4G,CAAC;IACpH,WAAW,GAAG,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,GAAG,aAAa,CAAC,MAAM,CAAC;IAC5B,IAAI,GAAG,gBAAgB,CAAC;IACxB,EAAE,GAAG,SAAS,CAAC;IAEf,OAAO,GAAG;QACR,SAAS,EAAE,IAAI,eAAe,EAAE;QAChC,SAAS,EAAE,IAAI,eAAe,EAAE;KACjC,CAAC;IAEF,YAAY,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
-
provider: string;
|
|
5
|
-
platform: string;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export declare class FreighterModule {
|
|
10
|
-
productId: string;
|
|
11
|
-
productName: string;
|
|
12
|
-
productUrl: string;
|
|
13
|
-
productIcon: string;
|
|
14
|
-
runChecks(): Promise<void>;
|
|
15
|
-
isAvailable(): Promise<boolean>;
|
|
16
|
-
getAddress(params?: {
|
|
17
|
-
skipRequestAccess?: boolean;
|
|
18
|
-
}): Promise<{
|
|
19
|
-
address: string;
|
|
20
|
-
}>;
|
|
21
|
-
signTransaction(xdr: string, opts?: {
|
|
22
|
-
address?: string;
|
|
23
|
-
networkPassphrase?: string;
|
|
24
|
-
}): Promise<{
|
|
25
|
-
signedTxXdr: string;
|
|
26
|
-
signerAddress?: string;
|
|
27
|
-
}>;
|
|
28
|
-
signAuthEntry(authEntry: string, opts?: {
|
|
29
|
-
address?: string;
|
|
30
|
-
networkPassphrase?: string;
|
|
31
|
-
}): Promise<{
|
|
32
|
-
signedAuthEntry: string;
|
|
33
|
-
signerAddress?: string;
|
|
34
|
-
}>;
|
|
35
|
-
signMessage(message: string, opts?: {
|
|
36
|
-
address?: string;
|
|
37
|
-
networkPassphrase?: string;
|
|
38
|
-
}): Promise<{
|
|
39
|
-
signedMessage: string;
|
|
40
|
-
signerAddress?: string;
|
|
41
|
-
}>;
|
|
42
|
-
getNetwork(): Promise<{
|
|
43
|
-
network: string;
|
|
44
|
-
networkPassphrase: string;
|
|
45
|
-
}>;
|
|
46
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { isConnected, requestAccess, getAddress, signTransaction, signAuthEntry, signMessage, getNetwork } from "@stellar/freighter-api";
|
|
2
|
-
function parseError(e) {
|
|
3
|
-
return {
|
|
4
|
-
code: e?.error?.code || e?.code || -1,
|
|
5
|
-
message: e?.error?.message || e?.message || (typeof e === "string" && e) || "Unhandled error from the wallet",
|
|
6
|
-
ext: e?.error?.ext || e?.ext,
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
const FREIGHTER_ID = "freighter";
|
|
10
|
-
export class FreighterModule {
|
|
11
|
-
productId = FREIGHTER_ID;
|
|
12
|
-
productName = "Freighter";
|
|
13
|
-
productUrl = "https://freighter.app";
|
|
14
|
-
productIcon = "https://stellar.creit.tech/wallet-icons/freighter.png";
|
|
15
|
-
async runChecks() {
|
|
16
|
-
if (!(await this.isAvailable())) {
|
|
17
|
-
throw new Error("Freighter is not connected");
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
async isAvailable() {
|
|
21
|
-
if (window.stellar?.provider === "freighter" && window.stellar?.platform === "mobile")
|
|
22
|
-
return false;
|
|
23
|
-
return isConnected()
|
|
24
|
-
.then(({ isConnected: isConnected2, error }) => !error && isConnected2)
|
|
25
|
-
.catch(() => false);
|
|
26
|
-
}
|
|
27
|
-
async getAddress(params) {
|
|
28
|
-
return this.runChecks()
|
|
29
|
-
.then(async () => {
|
|
30
|
-
if (params?.skipRequestAccess)
|
|
31
|
-
return true;
|
|
32
|
-
return requestAccess();
|
|
33
|
-
})
|
|
34
|
-
.then(() => getAddress())
|
|
35
|
-
.then(({ address, error }) => {
|
|
36
|
-
if (error)
|
|
37
|
-
throw error;
|
|
38
|
-
if (!address)
|
|
39
|
-
throw {
|
|
40
|
-
code: -3,
|
|
41
|
-
message: "Getting the address is not allowed, please request access first.",
|
|
42
|
-
};
|
|
43
|
-
return { address };
|
|
44
|
-
})
|
|
45
|
-
.catch((e) => {
|
|
46
|
-
throw parseError(e);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
async signTransaction(xdr, opts) {
|
|
50
|
-
return this.runChecks()
|
|
51
|
-
.then(async () => {
|
|
52
|
-
const { signedTxXdr, signerAddress, error } = await signTransaction(xdr, {
|
|
53
|
-
address: opts?.address,
|
|
54
|
-
networkPassphrase: opts?.networkPassphrase,
|
|
55
|
-
});
|
|
56
|
-
if (error)
|
|
57
|
-
throw error;
|
|
58
|
-
return { signedTxXdr, signerAddress };
|
|
59
|
-
})
|
|
60
|
-
.catch((e) => {
|
|
61
|
-
throw parseError(e);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
async signAuthEntry(authEntry, opts) {
|
|
65
|
-
return this.runChecks()
|
|
66
|
-
.then(async () => {
|
|
67
|
-
const { signedAuthEntry, signerAddress, error } = await signAuthEntry(authEntry, {
|
|
68
|
-
address: opts?.address,
|
|
69
|
-
networkPassphrase: opts?.networkPassphrase,
|
|
70
|
-
});
|
|
71
|
-
if (error || !signedAuthEntry)
|
|
72
|
-
throw error;
|
|
73
|
-
return { signedAuthEntry: Buffer.from(signedAuthEntry).toString("base64"), signerAddress };
|
|
74
|
-
})
|
|
75
|
-
.catch((e) => {
|
|
76
|
-
throw parseError(e);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
async signMessage(message, opts) {
|
|
80
|
-
return this.runChecks()
|
|
81
|
-
.then(async () => {
|
|
82
|
-
const { signedMessage, signerAddress, error } = await signMessage(message, {
|
|
83
|
-
address: opts?.address,
|
|
84
|
-
networkPassphrase: opts?.networkPassphrase,
|
|
85
|
-
});
|
|
86
|
-
if (error || !signedMessage)
|
|
87
|
-
throw error;
|
|
88
|
-
return {
|
|
89
|
-
signedMessage: typeof signedMessage === "string" ? signedMessage : Buffer.from(signedMessage).toString("base64"),
|
|
90
|
-
signerAddress,
|
|
91
|
-
};
|
|
92
|
-
})
|
|
93
|
-
.catch((e) => {
|
|
94
|
-
throw parseError(e);
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
async getNetwork() {
|
|
98
|
-
return this.runChecks()
|
|
99
|
-
.then(async () => {
|
|
100
|
-
const { network, networkPassphrase, error } = await getNetwork();
|
|
101
|
-
if (error)
|
|
102
|
-
throw error;
|
|
103
|
-
return { network, networkPassphrase };
|
|
104
|
-
})
|
|
105
|
-
.catch((e) => {
|
|
106
|
-
throw parseError(e);
|
|
107
|
-
});
|
|
108
|
-
}
|
|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AC,QAAQ,CAAC;gBAChH,aAAa;aACd,CAAC;QACJ,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,MAAM,UAAU,CAAC,CAAC,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,UAAU;QACd,OAAO,IAAI,CAAC,SAAS,EAAE;aACpB,IAAI,CAAC,KAAK,IAAI,EAAE;YACf,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,MAAM,UAAU,EAAE,CAAC;YACjE,IAAI,KAAK;gBAAE,MAAM,KAAK,CAAC;YACvB,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;QACxC,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,MAAM,UAAU,CAAC,CAAC,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;IACP,CAAC;CACF"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const HOTWALLET_ID: string;
|
|
2
|
-
export declare class HotWalletModule {
|
|
3
|
-
productId: string;
|
|
4
|
-
productName: string;
|
|
5
|
-
productUrl: string;
|
|
6
|
-
productIcon: string;
|
|
7
|
-
isAvailable(): Promise<boolean>;
|
|
8
|
-
getAddress(): Promise<{
|
|
9
|
-
address: string;
|
|
10
|
-
}>;
|
|
11
|
-
signTransaction(xdr: string, opts?: {
|
|
12
|
-
address?: string;
|
|
13
|
-
}): Promise<{
|
|
14
|
-
signedTxXdr: string;
|
|
15
|
-
signerAddress?: string;
|
|
16
|
-
}>;
|
|
17
|
-
signAuthEntry(authEntry: string, opts?: {
|
|
18
|
-
address?: string;
|
|
19
|
-
}): Promise<{
|
|
20
|
-
signedAuthEntry: string;
|
|
21
|
-
signerAddress?: string;
|
|
22
|
-
}>;
|
|
23
|
-
signMessage(message: string, opts?: {
|
|
24
|
-
address?: string;
|
|
25
|
-
}): Promise<{
|
|
26
|
-
signedMessage: string;
|
|
27
|
-
signerAddress?: string;
|
|
28
|
-
}>;
|
|
29
|
-
getNetwork(): Promise<{
|
|
30
|
-
network: string;
|
|
31
|
-
networkPassphrase: string;
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Networks } from "@stellar/stellar-sdk";
|
|
2
|
-
import HOT from "../hot-wallet/iframe";
|
|
3
|
-
export const HOTWALLET_ID = "hot-wallet";
|
|
4
|
-
export class HotWalletModule {
|
|
5
|
-
productId = HOTWALLET_ID;
|
|
6
|
-
productName = "HOT Wallet";
|
|
7
|
-
productUrl = "https://hot-labs.org/wallet";
|
|
8
|
-
productIcon = "https://storage.herewallet.app/logo.png";
|
|
9
|
-
async isAvailable() {
|
|
10
|
-
return true;
|
|
11
|
-
}
|
|
12
|
-
async getAddress() {
|
|
13
|
-
return await HOT.request("stellar:getAddress", {});
|
|
14
|
-
}
|
|
15
|
-
async signTransaction(xdr, opts) {
|
|
16
|
-
return await HOT.request("stellar:signTransaction", { xdr, accountToSign: opts?.address });
|
|
17
|
-
}
|
|
18
|
-
async signAuthEntry(authEntry, opts) {
|
|
19
|
-
return await HOT.request("stellar:signAuthEntry", { authEntry, accountToSign: opts?.address });
|
|
20
|
-
}
|
|
21
|
-
async signMessage(message, opts) {
|
|
22
|
-
return await HOT.request("stellar:signMessage", { message, accountToSign: opts?.address });
|
|
23
|
-
}
|
|
24
|
-
async getNetwork() {
|
|
25
|
-
return { network: "mainnet", networkPassphrase: Networks.PUBLIC };
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=hotWallet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hotWallet.js","sourceRoot":"","sources":["../../src/stellar/hotWallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,GAAG,MAAM,sBAAsB,CAAC;AAEvC,MAAM,CAAC,MAAM,YAAY,GAAW,YAAY,CAAC;AAEjD,MAAM,OAAO,eAAe;IAC1B,SAAS,GAAW,YAAY,CAAC;IACjC,WAAW,GAAW,YAAY,CAAC;IACnC,UAAU,GAAW,6BAA6B,CAAC;IACnD,WAAW,GAAW,yCAAyC,CAAC;IAEhE,KAAK,CAAC,WAAW;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,UAAU;QACd,OAAO,MAAM,GAAG,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,GAAW,EAAE,IAA2B;QAC5D,OAAO,MAAM,GAAG,CAAC,OAAO,CAAC,yBAAyB,EAAE,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,SAAiB,EAAE,IAA2B;QAChE,OAAO,MAAM,GAAG,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAAe,EAAE,IAA2B;QAC5D,OAAO,MAAM,GAAG,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED,KAAK,CAAC,UAAU;QACd,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;IACpE,CAAC;CACF"}
|
package/build/stellar/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import StellarConnector from "./connector";
|
|
2
|
-
import StellarWallet from "./wallet";
|
|
3
|
-
import { HotConnector } from "../HotConnector";
|
|
4
|
-
export { StellarConnector, StellarWallet };
|
|
5
|
-
declare const _default: () => (wibe3: HotConnector) => Promise<StellarConnector>;
|
|
6
|
-
export default _default;
|
package/build/stellar/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stellar/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,aAAa,MAAM,UAAU,CAAC;AAGrC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,CAAC;AAE3C,eAAe,GAAG,EAAE,CAAC,KAAK,EAAE,KAAmB,EAAE,EAAE,CAAC,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC"}
|