@swapkit/wallets 4.2.9 → 4.3.2
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/src/bitget.cjs +4 -0
- package/dist/src/bitget.cjs.map +10 -0
- package/dist/src/bitget.js +4 -0
- package/dist/src/bitget.js.map +10 -0
- package/dist/src/cosmostation.cjs +4 -0
- package/dist/src/cosmostation.cjs.map +10 -0
- package/dist/src/cosmostation.js +4 -0
- package/dist/src/cosmostation.js.map +10 -0
- package/dist/src/ctrl.cjs +4 -0
- package/dist/src/ctrl.cjs.map +10 -0
- package/dist/src/ctrl.js +4 -0
- package/dist/src/ctrl.js.map +10 -0
- package/dist/src/evm-extensions.cjs +4 -0
- package/dist/src/evm-extensions.cjs.map +10 -0
- package/dist/src/evm-extensions.js +4 -0
- package/dist/src/evm-extensions.js.map +10 -0
- package/dist/src/index.cjs +2 -2
- package/dist/src/index.cjs.map +3 -3
- package/dist/src/index.js +2 -2
- package/dist/src/index.js.map +3 -3
- package/dist/src/keepkey-bex.cjs +4 -0
- package/dist/src/keepkey-bex.cjs.map +10 -0
- package/dist/src/keepkey-bex.js +4 -0
- package/dist/src/keepkey-bex.js.map +10 -0
- package/dist/src/keplr.cjs +4 -0
- package/dist/src/keplr.cjs.map +10 -0
- package/dist/src/keplr.js +4 -0
- package/dist/src/keplr.js.map +10 -0
- package/dist/src/okx.cjs +4 -0
- package/dist/src/okx.cjs.map +10 -0
- package/dist/src/okx.js +4 -0
- package/dist/src/okx.js.map +10 -0
- package/dist/src/onekey.cjs +4 -0
- package/dist/src/onekey.cjs.map +10 -0
- package/dist/src/onekey.js +4 -0
- package/dist/src/onekey.js.map +10 -0
- package/dist/src/passkeys/index.cjs +4 -0
- package/dist/src/passkeys/index.cjs.map +10 -0
- package/dist/src/passkeys/index.js +4 -0
- package/dist/src/passkeys/index.js.map +10 -0
- package/dist/src/phantom.cjs +4 -0
- package/dist/src/phantom.cjs.map +10 -0
- package/dist/src/phantom.js +4 -0
- package/dist/src/phantom.js.map +10 -0
- package/dist/src/polkadotjs.cjs +4 -0
- package/dist/src/polkadotjs.cjs.map +10 -0
- package/dist/src/polkadotjs.js +4 -0
- package/dist/src/polkadotjs.js.map +10 -0
- package/dist/src/talisman.cjs +4 -0
- package/dist/src/talisman.cjs.map +10 -0
- package/dist/src/talisman.js +4 -0
- package/dist/src/talisman.js.map +10 -0
- package/dist/src/tronlink.cjs +4 -0
- package/dist/src/tronlink.cjs.map +10 -0
- package/dist/src/tronlink.js +4 -0
- package/dist/src/tronlink.js.map +10 -0
- package/dist/src/vultisig.cjs +4 -0
- package/dist/src/vultisig.cjs.map +10 -0
- package/dist/src/vultisig.js +4 -0
- package/dist/src/vultisig.js.map +10 -0
- package/dist/types/bitget.d.ts +2 -0
- package/dist/types/bitget.d.ts.map +1 -0
- package/dist/types/coinbase/index.d.ts +2 -2
- package/dist/types/coinbase/signer.d.ts +7 -7
- package/dist/types/coinbase/signer.d.ts.map +1 -1
- package/dist/types/cosmostation.d.ts +2 -0
- package/dist/types/cosmostation.d.ts.map +1 -0
- package/dist/types/ctrl.d.ts +2 -0
- package/dist/types/ctrl.d.ts.map +1 -0
- package/dist/types/evm-extensions.d.ts +2 -0
- package/dist/types/evm-extensions.d.ts.map +1 -0
- package/dist/types/keepkey-bex.d.ts +2 -0
- package/dist/types/keepkey-bex.d.ts.map +1 -0
- package/dist/types/keplr.d.ts +2 -0
- package/dist/types/keplr.d.ts.map +1 -0
- package/dist/types/okx.d.ts +2 -0
- package/dist/types/okx.d.ts.map +1 -0
- package/dist/types/onekey.d.ts +2 -0
- package/dist/types/onekey.d.ts.map +1 -0
- package/dist/types/passkeys/index.d.ts +14 -0
- package/dist/types/passkeys/index.d.ts.map +1 -0
- package/dist/types/phantom.d.ts +2 -0
- package/dist/types/phantom.d.ts.map +1 -0
- package/dist/types/polkadotjs.d.ts +2 -0
- package/dist/types/polkadotjs.d.ts.map +1 -0
- package/dist/types/talisman.d.ts +2 -0
- package/dist/types/talisman.d.ts.map +1 -0
- package/dist/types/tronlink.d.ts +2 -0
- package/dist/types/tronlink.d.ts.map +1 -0
- package/dist/types/types.d.ts +19 -180
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/dist/types/vultisig.d.ts +2 -0
- package/dist/types/vultisig.d.ts.map +1 -0
- package/dist/types/walletconnect/helpers.d.ts +1 -1
- package/dist/types/walletconnect/index.d.ts +2 -2
- package/package.json +112 -89
- package/src/bitget.ts +1 -0
- package/src/coinbase/index.ts +44 -0
- package/src/coinbase/signer.ts +77 -0
- package/src/cosmostation.ts +1 -0
- package/src/ctrl.ts +1 -0
- package/src/evm-extensions.ts +1 -0
- package/src/index.ts +3 -0
- package/src/keepkey-bex.ts +1 -0
- package/src/keepkey.ts +1 -0
- package/src/keplr.ts +1 -0
- package/src/keystore.ts +1 -0
- package/src/ledger.ts +1 -0
- package/src/near-wallet-selector/index.ts +115 -0
- package/src/okx.ts +1 -0
- package/src/onekey.ts +1 -0
- package/src/passkeys/index.ts +183 -0
- package/src/phantom.ts +1 -0
- package/src/polkadotjs.ts +1 -0
- package/src/radix/index.ts +189 -0
- package/src/talisman.ts +1 -0
- package/src/trezor.ts +1 -0
- package/src/tronlink.ts +1 -0
- package/src/types.ts +94 -0
- package/src/utils.ts +59 -0
- package/src/vultisig.ts +1 -0
- package/src/walletconnect/constants.ts +102 -0
- package/src/walletconnect/evmSigner.ts +125 -0
- package/src/walletconnect/helpers.ts +70 -0
- package/src/walletconnect/index.ts +390 -0
- package/src/walletconnect/namespaces.ts +80 -0
- package/src/walletconnect/types.ts +6 -0
- package/src/xaman/helpers.ts +54 -0
- package/src/xaman/index.ts +62 -0
- package/src/xaman/types.ts +26 -0
- package/src/xaman/walletMethods.ts +110 -0
- package/dist/chunk-rx1jg8mz.js +0 -4
- package/dist/chunk-rx1jg8mz.js.map +0 -10
- package/dist/chunk-sg1ppebr.js +0 -4
- package/dist/chunk-sg1ppebr.js.map +0 -10
- package/dist/src/bitget/index.cjs +0 -4
- package/dist/src/bitget/index.cjs.map +0 -11
- package/dist/src/bitget/index.js +0 -4
- package/dist/src/bitget/index.js.map +0 -11
- package/dist/src/cosmostation/index.cjs +0 -4
- package/dist/src/cosmostation/index.cjs.map +0 -10
- package/dist/src/cosmostation/index.js +0 -4
- package/dist/src/cosmostation/index.js.map +0 -10
- package/dist/src/ctrl/index.cjs +0 -4
- package/dist/src/ctrl/index.cjs.map +0 -11
- package/dist/src/ctrl/index.js +0 -4
- package/dist/src/ctrl/index.js.map +0 -11
- package/dist/src/evm-extensions/index.cjs +0 -4
- package/dist/src/evm-extensions/index.cjs.map +0 -10
- package/dist/src/evm-extensions/index.js +0 -4
- package/dist/src/evm-extensions/index.js.map +0 -10
- package/dist/src/exodus/index.cjs +0 -4
- package/dist/src/exodus/index.cjs.map +0 -10
- package/dist/src/exodus/index.js +0 -4
- package/dist/src/exodus/index.js.map +0 -10
- package/dist/src/keepkey-bex/index.cjs +0 -4
- package/dist/src/keepkey-bex/index.cjs.map +0 -11
- package/dist/src/keepkey-bex/index.js +0 -4
- package/dist/src/keepkey-bex/index.js.map +0 -11
- package/dist/src/keplr/index.cjs +0 -4
- package/dist/src/keplr/index.cjs.map +0 -11
- package/dist/src/keplr/index.js +0 -4
- package/dist/src/keplr/index.js.map +0 -11
- package/dist/src/okx/index.cjs +0 -4
- package/dist/src/okx/index.cjs.map +0 -11
- package/dist/src/okx/index.js +0 -4
- package/dist/src/okx/index.js.map +0 -11
- package/dist/src/onekey/index.cjs +0 -4
- package/dist/src/onekey/index.cjs.map +0 -10
- package/dist/src/onekey/index.js +0 -4
- package/dist/src/onekey/index.js.map +0 -10
- package/dist/src/phantom/index.cjs +0 -4
- package/dist/src/phantom/index.cjs.map +0 -10
- package/dist/src/phantom/index.js +0 -4
- package/dist/src/phantom/index.js.map +0 -10
- package/dist/src/polkadotjs/index.cjs +0 -4
- package/dist/src/polkadotjs/index.cjs.map +0 -10
- package/dist/src/polkadotjs/index.js +0 -4
- package/dist/src/polkadotjs/index.js.map +0 -10
- package/dist/src/talisman/index.cjs +0 -4
- package/dist/src/talisman/index.cjs.map +0 -10
- package/dist/src/talisman/index.js +0 -4
- package/dist/src/talisman/index.js.map +0 -10
- package/dist/src/tronlink/index.cjs +0 -4
- package/dist/src/tronlink/index.cjs.map +0 -12
- package/dist/src/tronlink/index.js +0 -4
- package/dist/src/tronlink/index.js.map +0 -12
- package/dist/src/vultisig/index.cjs +0 -4
- package/dist/src/vultisig/index.cjs.map +0 -11
- package/dist/src/vultisig/index.js +0 -4
- package/dist/src/vultisig/index.js.map +0 -11
- package/dist/types/bitget/helpers.d.ts +0 -1545
- package/dist/types/bitget/helpers.d.ts.map +0 -1
- package/dist/types/bitget/index.d.ts +0 -11
- package/dist/types/bitget/index.d.ts.map +0 -1
- package/dist/types/cosmostation/index.d.ts +0 -21
- package/dist/types/cosmostation/index.d.ts.map +0 -1
- package/dist/types/ctrl/index.d.ts +0 -11
- package/dist/types/ctrl/index.d.ts.map +0 -1
- package/dist/types/ctrl/walletHelpers.d.ts +0 -18
- package/dist/types/ctrl/walletHelpers.d.ts.map +0 -1
- package/dist/types/evm-extensions/index.d.ts +0 -715
- package/dist/types/evm-extensions/index.d.ts.map +0 -1
- package/dist/types/evm-extensions/types.d.ts +0 -18
- package/dist/types/evm-extensions/types.d.ts.map +0 -1
- package/dist/types/exodus/index.d.ts +0 -14
- package/dist/types/exodus/index.d.ts.map +0 -1
- package/dist/types/helpers/near.d.ts +0 -57
- package/dist/types/helpers/near.d.ts.map +0 -1
- package/dist/types/keepkey-bex/index.d.ts +0 -11
- package/dist/types/keepkey-bex/index.d.ts.map +0 -1
- package/dist/types/keepkey-bex/walletHelpers.d.ts +0 -45
- package/dist/types/keepkey-bex/walletHelpers.d.ts.map +0 -1
- package/dist/types/keplr/chainRegistry.d.ts +0 -4
- package/dist/types/keplr/chainRegistry.d.ts.map +0 -1
- package/dist/types/keplr/index.d.ts +0 -11
- package/dist/types/keplr/index.d.ts.map +0 -1
- package/dist/types/okx/helpers.d.ts +0 -822
- package/dist/types/okx/helpers.d.ts.map +0 -1
- package/dist/types/okx/index.d.ts +0 -11
- package/dist/types/okx/index.d.ts.map +0 -1
- package/dist/types/okx/types.d.ts +0 -104
- package/dist/types/okx/types.d.ts.map +0 -1
- package/dist/types/onekey/evmSigner.d.ts +0 -29
- package/dist/types/onekey/evmSigner.d.ts.map +0 -1
- package/dist/types/onekey/index.d.ts +0 -11
- package/dist/types/onekey/index.d.ts.map +0 -1
- package/dist/types/phantom/index.d.ts +0 -12
- package/dist/types/phantom/index.d.ts.map +0 -1
- package/dist/types/polkadotjs/index.d.ts +0 -11
- package/dist/types/polkadotjs/index.d.ts.map +0 -1
- package/dist/types/talisman/index.d.ts +0 -11
- package/dist/types/talisman/index.d.ts.map +0 -1
- package/dist/types/tronlink/helpers.d.ts +0 -26
- package/dist/types/tronlink/helpers.d.ts.map +0 -1
- package/dist/types/tronlink/index.d.ts +0 -13
- package/dist/types/tronlink/index.d.ts.map +0 -1
- package/dist/types/tronlink/types.d.ts +0 -55
- package/dist/types/tronlink/types.d.ts.map +0 -1
- package/dist/types/vultisig/index.d.ts +0 -11
- package/dist/types/vultisig/index.d.ts.map +0 -1
- package/dist/types/vultisig/walletHelpers.d.ts +0 -34
- package/dist/types/vultisig/walletHelpers.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/okx/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAM3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAc,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAkDrC,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,KAAK;;4CAsDpB,CAAA;;;;;;;;;iIA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;;;;;;;;GAgKlE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Chain } from "@swapkit/helpers";
|
|
2
|
-
export declare const okxWallet: {
|
|
3
|
-
connectOkx: {
|
|
4
|
-
connectWallet: (connectParams: {
|
|
5
|
-
addChain: import("@swapkit/helpers").AddChainType;
|
|
6
|
-
}) => (chains: Chain[]) => Promise<boolean>;
|
|
7
|
-
supportedChains: (Chain.Arbitrum | Chain.Aurora | Chain.Avalanche | Chain.Base | Chain.Berachain | Chain.BinanceSmartChain | Chain.Bitcoin | Chain.Cosmos | Chain.Ethereum | Chain.Gnosis | Chain.XLayer | Chain.Optimism | Chain.Polygon | Chain.Tron)[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const OKX_SUPPORTED_CHAINS: (Chain.Arbitrum | Chain.Aurora | Chain.Avalanche | Chain.Base | Chain.Berachain | Chain.BinanceSmartChain | Chain.Bitcoin | Chain.Cosmos | Chain.Ethereum | Chain.Gnosis | Chain.XLayer | Chain.Optimism | Chain.Polygon | Chain.Tron)[];
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/okx/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAuC,MAAM,kBAAkB,CAAC;AAK9E,eAAO,MAAM,SAAS;;;;;;;CAkCpB,CAAC;AAEH,eAAO,MAAM,oBAAoB,0OAAsC,CAAC"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import type { StdSignDoc } from "@cosmjs/amino";
|
|
2
|
-
export declare enum BroadcastMode {
|
|
3
|
-
/** Return after tx commit */
|
|
4
|
-
Block = "block",
|
|
5
|
-
/** Return after CheckTx */
|
|
6
|
-
Sync = "sync",
|
|
7
|
-
/** Return right away */
|
|
8
|
-
Async = "async"
|
|
9
|
-
}
|
|
10
|
-
export interface Coin {
|
|
11
|
-
readonly denom: string;
|
|
12
|
-
readonly amount: string;
|
|
13
|
-
}
|
|
14
|
-
export interface StdFee {
|
|
15
|
-
readonly amount: readonly Coin[];
|
|
16
|
-
readonly gas: string;
|
|
17
|
-
readonly payer?: string;
|
|
18
|
-
readonly granter?: string;
|
|
19
|
-
readonly feePayer?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface Msg {
|
|
22
|
-
readonly type: string;
|
|
23
|
-
readonly value: any;
|
|
24
|
-
}
|
|
25
|
-
export interface PubKey {
|
|
26
|
-
readonly type: string;
|
|
27
|
-
readonly value: string;
|
|
28
|
-
}
|
|
29
|
-
export interface StdSignature {
|
|
30
|
-
readonly pub_key: PubKey;
|
|
31
|
-
readonly signature: string;
|
|
32
|
-
}
|
|
33
|
-
export interface StdTx {
|
|
34
|
-
readonly msg: readonly Msg[];
|
|
35
|
-
readonly fee: StdFee;
|
|
36
|
-
readonly signatures: readonly StdSignature[];
|
|
37
|
-
readonly memo: string | undefined;
|
|
38
|
-
}
|
|
39
|
-
export interface AminoSignResponse {
|
|
40
|
-
readonly signed: StdSignDoc;
|
|
41
|
-
readonly signature: StdSignature;
|
|
42
|
-
}
|
|
43
|
-
export interface SignDoc {
|
|
44
|
-
/**
|
|
45
|
-
* body_bytes is protobuf serialization of a TxBody that matches the
|
|
46
|
-
* representation in TxRaw.
|
|
47
|
-
*/
|
|
48
|
-
bodyBytes: Uint8Array;
|
|
49
|
-
/**
|
|
50
|
-
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
|
|
51
|
-
* representation in TxRaw.
|
|
52
|
-
*/
|
|
53
|
-
authInfoBytes: Uint8Array;
|
|
54
|
-
/**
|
|
55
|
-
* chain_id is the unique identifier of the chain this transaction targets.
|
|
56
|
-
* It prevents signed transactions from being used on another chain by an
|
|
57
|
-
* attacker
|
|
58
|
-
*/
|
|
59
|
-
chainId: string;
|
|
60
|
-
/** account_number is the account number of the account in state */
|
|
61
|
-
accountNumber: any;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* This is the same as Algo from @cosmjs/launchpad but those might diverge in the future.
|
|
65
|
-
*/
|
|
66
|
-
export type Algo = "secp256k1" | "ed25519" | "sr25519";
|
|
67
|
-
/**
|
|
68
|
-
* This is the same as AccountData from @cosmjs/launchpad but those might diverge in the future.
|
|
69
|
-
*/
|
|
70
|
-
export interface AccountData {
|
|
71
|
-
/** A printable address (typically bech32 encoded) */
|
|
72
|
-
readonly address: string;
|
|
73
|
-
readonly algo: Algo;
|
|
74
|
-
readonly pubkey: Uint8Array;
|
|
75
|
-
}
|
|
76
|
-
export interface DirectSignResponse {
|
|
77
|
-
/**
|
|
78
|
-
* The sign doc that was signed.
|
|
79
|
-
* This may be different from the input signDoc when the signer modifies it as part of the signing process.
|
|
80
|
-
*/
|
|
81
|
-
readonly signed: SignDoc;
|
|
82
|
-
readonly signature: StdSignature;
|
|
83
|
-
}
|
|
84
|
-
export interface OfflineDirectSigner {
|
|
85
|
-
readonly getAccounts: () => Promise<readonly AccountData[]>;
|
|
86
|
-
readonly signDirect: (signerAddress: string, signDoc: SignDoc) => Promise<DirectSignResponse>;
|
|
87
|
-
}
|
|
88
|
-
export interface OfflineAminoSigner {
|
|
89
|
-
/**
|
|
90
|
-
* Get AccountData array from wallet. Rejects if not enabled.
|
|
91
|
-
*/
|
|
92
|
-
readonly getAccounts: () => Promise<readonly AccountData[]>;
|
|
93
|
-
/**
|
|
94
|
-
* Request signature from whichever key corresponds to provided bech32-encoded address. Rejects if not enabled.
|
|
95
|
-
*
|
|
96
|
-
* The signer implementation may offer the user the ability to override parts of the signDoc. It must
|
|
97
|
-
* return the doc that was signed in the response.
|
|
98
|
-
*
|
|
99
|
-
* @param signerAddress The address of the account that should sign the transaction
|
|
100
|
-
* @param signDoc The content that should be signed
|
|
101
|
-
*/
|
|
102
|
-
readonly signAmino: (signerAddress: string, signDoc: StdSignDoc) => Promise<AminoSignResponse>;
|
|
103
|
-
}
|
|
104
|
-
//# sourceMappingURL=types.d.ts.map
|
|
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AAC;CAChG"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Chain, DerivationPathArray } from "@swapkit/helpers";
|
|
2
|
-
import type { JsonRpcProvider, Provider, Signer, TypedDataDomain, TypedDataField } from "ethers";
|
|
3
|
-
type OneKeyEVMSignerParams = {
|
|
4
|
-
chain: Chain;
|
|
5
|
-
derivationPath: DerivationPathArray;
|
|
6
|
-
provider: Provider | JsonRpcProvider;
|
|
7
|
-
};
|
|
8
|
-
export declare function getEVMSigner({ chain, derivationPath, provider }: OneKeyEVMSignerParams): Promise<{
|
|
9
|
-
address: string;
|
|
10
|
-
chain: Chain;
|
|
11
|
-
derivationPath: DerivationPathArray;
|
|
12
|
-
readonly provider: Provider | JsonRpcProvider;
|
|
13
|
-
connect(provider: null | Provider): Signer;
|
|
14
|
-
signTypedData(domain: TypedDataDomain, types: Record<string, TypedDataField[]>, value: Record<string, any>): Promise<string>;
|
|
15
|
-
getAddress: () => Promise<string>;
|
|
16
|
-
signMessage: (message: string) => Promise<string>;
|
|
17
|
-
signTransaction: (transaction: any) => Promise<string>;
|
|
18
|
-
getNonce(blockTag?: import("ethers").BlockTag): Promise<number>;
|
|
19
|
-
populateCall(tx: import("ethers").TransactionRequest): Promise<import("ethers").TransactionLike<string>>;
|
|
20
|
-
populateTransaction(tx: import("ethers").TransactionRequest): Promise<import("ethers").TransactionLike<string>>;
|
|
21
|
-
populateAuthorization(_auth: import("ethers").AuthorizationRequest): Promise<import("ethers").AuthorizationRequest>;
|
|
22
|
-
estimateGas(tx: import("ethers").TransactionRequest): Promise<bigint>;
|
|
23
|
-
call(tx: import("ethers").TransactionRequest): Promise<string>;
|
|
24
|
-
resolveName(name: string): Promise<null | string>;
|
|
25
|
-
sendTransaction(tx: import("ethers").TransactionRequest): Promise<import("ethers").TransactionResponse>;
|
|
26
|
-
authorize(authorization: import("ethers").AuthorizationRequest): Promise<import("ethers").Authorization>;
|
|
27
|
-
}>;
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=evmSigner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evmSigner.d.ts","sourceRoot":"","sources":["../../../src/onekey/evmSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAEjG,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,EAAE,mBAAmB,CAAC;IACpC,QAAQ,EAAE,QAAQ,GAAG,eAAe,CAAC;CACtC,CAAC;AAEF,wBAAsB,YAAY,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,qBAAqB;aAIhF,MAAM;WACR,KAAK;oBACI,mBAAmB;uBAChB,QAAQ,GAAG,eAAe;sBAW3B,IAAI,GAAG,QAAQ,GAAG,MAAM;0BAYhC,eAAe,SAChB,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,SAChC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACzB,OAAO,CAAC,MAAM,CAAC;;kBA8BG,SAAS,MAAM;sBASX,aAAa,GAAG;;;;;;;;;;GA6B5C"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Chain } from "@swapkit/helpers";
|
|
2
|
-
export declare const onekeyWallet: {
|
|
3
|
-
connectOnekeyWallet: {
|
|
4
|
-
connectWallet: (connectParams: {
|
|
5
|
-
addChain: import("@swapkit/helpers").AddChainType;
|
|
6
|
-
}) => (chains: Chain[]) => Promise<boolean>;
|
|
7
|
-
supportedChains: (Chain.Arbitrum | Chain.Aurora | Chain.Avalanche | Chain.Base | Chain.BinanceSmartChain | Chain.Bitcoin | Chain.Ethereum | Chain.Gnosis | Chain.XLayer | Chain.Optimism | Chain.Polygon | Chain.Solana)[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const ONEKEY_WALLET_SUPPORTED_CHAINS: (Chain.Arbitrum | Chain.Aurora | Chain.Avalanche | Chain.Base | Chain.BinanceSmartChain | Chain.Bitcoin | Chain.Ethereum | Chain.Gnosis | Chain.XLayer | Chain.Optimism | Chain.Polygon | Chain.Solana)[];
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/onekey/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EAMN,MAAM,kBAAkB,CAAC;AAkI1B,eAAO,MAAM,YAAY;;;;;;;CAqCvB,CAAC;AAEH,eAAO,MAAM,8BAA8B,2MAAyC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Chain } from "@swapkit/helpers";
|
|
2
|
-
export declare const phantomWallet: {
|
|
3
|
-
connectPhantom: {
|
|
4
|
-
connectWallet: (connectParams: {
|
|
5
|
-
addChain: import("@swapkit/helpers").AddChainType;
|
|
6
|
-
}) => (chains: Chain[]) => Promise<boolean>;
|
|
7
|
-
supportedChains: (Chain.Bitcoin | Chain.Ethereum | Chain.Solana)[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const PHANTOM_SUPPORTED_CHAINS: (Chain.Bitcoin | Chain.Ethereum | Chain.Solana)[];
|
|
11
|
-
export type PhantomSupportedChain = (typeof PHANTOM_SUPPORTED_CHAINS)[number];
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/phantom/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EAKN,MAAM,kBAAkB,CAAC;AAG1B,eAAO,MAAM,aAAa;;;;;;;CAwBxB,CAAC;AAEH,eAAO,MAAM,wBAAwB,mDAA0C,CAAC;AAChF,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Chain } from "@swapkit/helpers";
|
|
2
|
-
export declare const polkadotWallet: {
|
|
3
|
-
connectPolkadotJs: {
|
|
4
|
-
connectWallet: (connectParams: {
|
|
5
|
-
addChain: import("@swapkit/helpers").AddChainType;
|
|
6
|
-
}) => (chains: Chain[]) => Promise<boolean>;
|
|
7
|
-
supportedChains: Chain.Polkadot[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const POLKADOT_SUPPORTED_CHAINS: Chain.Polkadot[];
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/polkadotjs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAqD,MAAM,kBAAkB,CAAC;AAG5F,eAAO,MAAM,cAAc;;;;;;;CAkBzB,CAAC;AAEH,eAAO,MAAM,yBAAyB,kBAA2C,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Chain } from "@swapkit/helpers";
|
|
2
|
-
export declare const talismanWallet: {
|
|
3
|
-
connectTalisman: {
|
|
4
|
-
connectWallet: (connectParams: {
|
|
5
|
-
addChain: import("@swapkit/helpers").AddChainType;
|
|
6
|
-
}) => (chains: Chain[]) => Promise<boolean>;
|
|
7
|
-
supportedChains: (Chain.Arbitrum | Chain.Avalanche | Chain.Base | Chain.BinanceSmartChain | Chain.Ethereum | Chain.XLayer | Chain.Optimism | Chain.Polkadot | Chain.Chainflip | Chain.Polygon)[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const TALISMAN_SUPPORTED_CHAINS: (Chain.Arbitrum | Chain.Avalanche | Chain.Base | Chain.BinanceSmartChain | Chain.Ethereum | Chain.XLayer | Chain.Optimism | Chain.Polkadot | Chain.Chainflip | Chain.Polygon)[];
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/talisman/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAON,MAAM,kBAAkB,CAAC;AAI1B,eAAO,MAAM,cAAc;;;;;;;CA6BzB,CAAC;AAEH,eAAO,MAAM,yBAAyB,iLAA2C,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Chain } from "@swapkit/helpers";
|
|
2
|
-
import { type TronTransaction } from "@swapkit/toolboxes/tron";
|
|
3
|
-
import type { TronLinkWindow } from "./types.js";
|
|
4
|
-
export declare function waitForTronLink(timeout?: number): Promise<TronLinkWindow>;
|
|
5
|
-
export declare function isTronLinkLocked(): Promise<boolean>;
|
|
6
|
-
export declare function getWalletForChain(chain: Chain, expectedNetwork?: string): Promise<{
|
|
7
|
-
address: string;
|
|
8
|
-
tronWeb: import("tronweb").TronWeb;
|
|
9
|
-
getAddress: () => Promise<string>;
|
|
10
|
-
validateAddress: (address: string) => boolean;
|
|
11
|
-
getBalance: (address: string) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
12
|
-
transfer: (params: import("@swapkit/toolboxes/tron").TronTransferParams) => Promise<string>;
|
|
13
|
-
estimateTransactionFee: (params: import("@swapkit/toolboxes/tron").TronTransferParams & {
|
|
14
|
-
sender?: string;
|
|
15
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
16
|
-
createTransaction: (params: import("@swapkit/toolboxes/tron").TronCreateTransactionParams) => Promise<TronTransaction>;
|
|
17
|
-
signTransaction: (transaction: TronTransaction) => Promise<import("@swapkit/toolboxes/tron").TronSignedTransaction>;
|
|
18
|
-
broadcastTransaction: (signedTransaction: import("@swapkit/toolboxes/tron").TronSignedTransaction) => Promise<string>;
|
|
19
|
-
approve: (params: import("@swapkit/toolboxes/tron").TronApproveParams) => Promise<string>;
|
|
20
|
-
isApproved: (params: import("@swapkit/toolboxes/tron").TronIsApprovedParams) => Promise<boolean>;
|
|
21
|
-
getApprovedAmount: (params: import("@swapkit/toolboxes/tron").TronApprovedParams) => Promise<bigint>;
|
|
22
|
-
}>;
|
|
23
|
-
export declare function setupEventListeners(onAccountChange?: (address: string) => void, onNetworkChange?: (network: string) => void): () => void;
|
|
24
|
-
export declare function verifyNetwork(expectedNetwork: string): void;
|
|
25
|
-
export declare function getExpectedTronNetwork(testnet?: boolean): string;
|
|
26
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/tronlink/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAA8B,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD,wBAAgB,eAAe,CAAC,OAAO,SAAO,GAAG,OAAO,CAAC,cAAc,CAAC,CA0BvE;AAED,wBAAsB,gBAAgB,qBAgBrC;AAiBD,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,eAAe,CAAC,EAAE,MAAM;;;;;;;;cArC1E,CAAD;;;;;;;;GA+DF;AAED,wBAAgB,mBAAmB,CACjC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EAC3C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,cA+B5C;AAED,wBAAgB,aAAa,CAAC,eAAe,EAAE,MAAM,QAepD;AAED,wBAAgB,sBAAsB,CAAC,OAAO,UAAQ,GAAG,MAAM,CAE9D"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Chain } from "@swapkit/helpers";
|
|
2
|
-
export declare const tronlinkWallet: {
|
|
3
|
-
connectTronLink: {
|
|
4
|
-
connectWallet: (connectParams: {
|
|
5
|
-
addChain: import("@swapkit/helpers").AddChainType;
|
|
6
|
-
}) => (chains: Chain[]) => Promise<boolean>;
|
|
7
|
-
supportedChains: Chain.Tron[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const TRONLINK_SUPPORTED_CHAINS: Chain.Tron[];
|
|
11
|
-
export * from "./helpers.js";
|
|
12
|
-
export * from "./types.js";
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tronlink/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAuC,MAAM,kBAAkB,CAAC;AAI9E,eAAO,MAAM,cAAc;;;;;;;CAuCzB,CAAC;AAEH,eAAO,MAAM,yBAAyB,cAA2C,CAAC;AAElF,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { TronSignedTransaction, TronTransaction } from "@swapkit/toolboxes/tron";
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
tronLink?: TronLinkWindow;
|
|
5
|
-
tronWeb?: TronLinkWindow["tronWeb"];
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export interface TronLinkWindow {
|
|
9
|
-
ready: boolean;
|
|
10
|
-
request: (args: {
|
|
11
|
-
method: string;
|
|
12
|
-
params?: unknown;
|
|
13
|
-
}) => Promise<TronLinkResponse | "">;
|
|
14
|
-
tronWeb: {
|
|
15
|
-
defaultAddress: {
|
|
16
|
-
base58: string;
|
|
17
|
-
hex: string;
|
|
18
|
-
};
|
|
19
|
-
fullNode?: {
|
|
20
|
-
host: string;
|
|
21
|
-
};
|
|
22
|
-
trx: {
|
|
23
|
-
sign: (transaction: TronTransaction) => Promise<TronSignedTransaction>;
|
|
24
|
-
sendRawTransaction: (signedTx: TronSignedTransaction) => Promise<string>;
|
|
25
|
-
getBalance: (address: string) => Promise<number>;
|
|
26
|
-
getAccountResources: (address: string) => Promise<unknown>;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
sunWeb?: unknown;
|
|
30
|
-
}
|
|
31
|
-
export declare enum TronLinkResponseCode {
|
|
32
|
-
SUCCESS = 200,
|
|
33
|
-
LOCKED = 4000,
|
|
34
|
-
REJECTED = 4001,
|
|
35
|
-
UNAUTHORIZED = 4100,
|
|
36
|
-
UNSUPPORTED_METHOD = 4200,
|
|
37
|
-
DISCONNECTED = 4900,
|
|
38
|
-
CHAIN_DISCONNECTED = 4901
|
|
39
|
-
}
|
|
40
|
-
export interface TronLinkResponse {
|
|
41
|
-
code: TronLinkResponseCode;
|
|
42
|
-
message: string;
|
|
43
|
-
}
|
|
44
|
-
export interface TronLinkEvents {
|
|
45
|
-
setAccount: {
|
|
46
|
-
address: string;
|
|
47
|
-
};
|
|
48
|
-
setNode: {
|
|
49
|
-
node: {
|
|
50
|
-
chain: string;
|
|
51
|
-
fullNode: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/tronlink/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEtF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,QAAQ,CAAC,EAAE,cAAc,CAAC;QAC1B,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;KACrC;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAA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-
connectVultisig: {
|
|
4
|
-
connectWallet: (connectParams: {
|
|
5
|
-
addChain: import("@swapkit/helpers").AddChainType;
|
|
6
|
-
}) => (chains: Chain[]) => Promise<boolean>;
|
|
7
|
-
supportedChains: (Chain.Arbitrum | Chain.Avalanche | Chain.Base | Chain.BinanceSmartChain | Chain.Bitcoin | Chain.BitcoinCash | Chain.Cosmos | Chain.Dash | Chain.Dogecoin | Chain.Ethereum | Chain.Kujira | Chain.XLayer | Chain.Litecoin | Chain.Maya | Chain.Optimism | Chain.Polkadot | Chain.Polygon | Chain.Ripple | Chain.THORChain | Chain.Solana | Chain.Zcash)[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const VULTISIG_SUPPORTED_CHAINS: (Chain.Arbitrum | Chain.Avalanche | Chain.Base | Chain.BinanceSmartChain | Chain.Bitcoin | Chain.BitcoinCash | Chain.Cosmos | Chain.Dash | Chain.Dogecoin | Chain.Ethereum | Chain.Kujira | Chain.XLayer | Chain.Litecoin | Chain.Maya | Chain.Optimism | Chain.Polkadot | Chain.Polygon | Chain.Ripple | Chain.THORChain | Chain.Solana | Chain.Zcash)[];
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vultisig/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAWN,MAAM,kBAAkB,CAAC;AAW1B,eAAO,MAAM,cAAc;;;;;;;CA2DzB,CAAC;AAEH,eAAO,MAAM,yBAAyB,2VAA2C,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type AssetValue, Chain, type CosmosChain, type EVMChain, type FeeOption, type NetworkParams, type UTXOChain } from "@swapkit/helpers";
|
|
2
|
-
import type { getCosmosToolbox } from "@swapkit/toolboxes/cosmos";
|
|
3
|
-
import type { ApproveParams, CallParams, EVMTxParams } from "@swapkit/toolboxes/evm";
|
|
4
|
-
import type { SolanaProvider } from "@swapkit/toolboxes/solana";
|
|
5
|
-
import type { BrowserProvider, Eip1193Provider } from "ethers";
|
|
6
|
-
import type { VultisigCosmosProvider } from "../types";
|
|
7
|
-
type TransactionMethod = "send_transaction" | "deposit_transaction";
|
|
8
|
-
export type WalletTxParams = {
|
|
9
|
-
feeOptionKey?: FeeOption;
|
|
10
|
-
from?: string;
|
|
11
|
-
memo?: string;
|
|
12
|
-
recipient: string;
|
|
13
|
-
assetValue: AssetValue;
|
|
14
|
-
gasLimit?: string | bigint;
|
|
15
|
-
};
|
|
16
|
-
type VultisigProviderType<T> = T extends typeof Chain.Solana ? SolanaProvider : T extends Exclude<CosmosChain, typeof Chain.Noble> ? VultisigCosmosProvider : T extends EVMChain ? Eip1193Provider : T extends typeof Chain.Maya | typeof Chain.THORChain | typeof Chain.Ripple | typeof Chain.Polkadot | UTXOChain ? Eip1193Provider : undefined;
|
|
17
|
-
export declare function getVultisigProvider<T extends Chain>(chain: T): Promise<VultisigProviderType<T>>;
|
|
18
|
-
export declare function getVultisigAddress(chain: Chain): Promise<any>;
|
|
19
|
-
export declare function walletTransfer({ assetValue, recipient, memo, gasLimit }: WalletTxParams, method?: TransactionMethod): Promise<string>;
|
|
20
|
-
export declare function getVultisigMethods(provider: BrowserProvider, chain: EVMChain): {
|
|
21
|
-
approve: ({ assetAddress, spenderAddress, amount, from }: ApproveParams) => Promise<string>;
|
|
22
|
-
call: <T>({ contractAddress, abi, funcName, funcParams, txOverrides }: CallParams) => Promise<T>;
|
|
23
|
-
sendTransaction: (txParams: EVMTxParams) => Promise<string>;
|
|
24
|
-
};
|
|
25
|
-
export declare function switchCosmosWalletNetwork(provider: VultisigCosmosProvider, chain: Exclude<CosmosChain, typeof Chain.Noble>, networkParams?: NetworkParams): Promise<void>;
|
|
26
|
-
export declare function wrapMethodWithNetworkSwitch<T extends (...args: any[]) => any>(func: T, provider: VultisigCosmosProvider, chain: Exclude<CosmosChain, typeof Chain.Noble>): T;
|
|
27
|
-
export declare function prepareNetworkSwitchCosmos<T extends Awaited<ReturnType<typeof getCosmosToolbox>>, M extends keyof T>({ toolbox, chain, provider, methodNames, }: {
|
|
28
|
-
toolbox: T;
|
|
29
|
-
chain: Chain;
|
|
30
|
-
provider?: VultisigCosmosProvider;
|
|
31
|
-
methodNames?: M[];
|
|
32
|
-
}): T & {};
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=walletHelpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"walletHelpers.d.ts","sourceRoot":"","sources":["../../../src/vultisig/walletHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,EAEL,KAAK,WAAW,EAChB,KAAK,QAAQ,EAEb,KAAK,SAAS,EAEd,KAAK,aAAa,EAGlB,KAAK,SAAS,EAEf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD,KAAK,iBAAiB,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAWpE,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAEF,KAAK,oBAAoB,CAAC,CAAC,IAAI,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