@avalabs/vm-module-types 1.4.6 → 1.6.0
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/account.cjs +2 -2
- package/dist/account.d.cts +29 -2
- package/dist/account.d.ts +29 -2
- package/dist/account.js +1 -1
- package/dist/balance.d.cts +14 -2
- package/dist/balance.d.ts +14 -2
- package/dist/{chunk-JUQZNXAX.cjs → chunk-4NMX4VK7.cjs} +1 -1
- package/dist/{chunk-GHQG4UY4.js.map → chunk-4NMX4VK7.cjs.map} +1 -1
- package/dist/{chunk-GHQG4UY4.js → chunk-6ZLXXGIV.js} +1 -1
- package/dist/{chunk-JUQZNXAX.cjs.map → chunk-6ZLXXGIV.js.map} +1 -1
- package/dist/chunk-E4CYP2GV.js +5 -0
- package/dist/chunk-E4CYP2GV.js.map +1 -0
- package/dist/{chunk-T3QBBZUZ.js → chunk-FTYN6IZV.js} +2 -2
- package/dist/chunk-FTYN6IZV.js.map +1 -0
- package/dist/chunk-GF7C4PA6.js +3 -0
- package/dist/{chunk-7Y6UGMPZ.js → chunk-GMF7R4KJ.js} +2 -2
- package/dist/chunk-GMF7R4KJ.js.map +1 -0
- package/dist/chunk-M2ZWWM4H.js +5 -0
- package/dist/chunk-M2ZWWM4H.js.map +1 -0
- package/dist/{chunk-2KGTZTXY.cjs → chunk-N7PCIGVW.cjs} +2 -2
- package/dist/chunk-N7PCIGVW.cjs.map +1 -0
- package/dist/chunk-SAQJRAJ4.cjs +9 -0
- package/dist/chunk-SAQJRAJ4.cjs.map +1 -0
- package/dist/{chunk-IQHOBS5Y.cjs → chunk-VH6PRR45.cjs} +2 -2
- package/dist/chunk-VH6PRR45.cjs.map +1 -0
- package/dist/chunk-Y465KEXP.cjs +7 -0
- package/dist/chunk-Y465KEXP.cjs.map +1 -0
- package/dist/{chunk-ATL7CLLW.cjs → chunk-YB5EN6FL.cjs} +1 -1
- package/dist/common.cjs +4 -4
- package/dist/common.d.cts +5 -2
- package/dist/common.d.ts +5 -2
- package/dist/common.js +1 -1
- package/dist/index.cjs +15 -15
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +6 -6
- package/dist/module.cjs +2 -2
- package/dist/module.d.cts +9 -5
- package/dist/module.d.ts +9 -5
- package/dist/module.js +2 -2
- package/dist/provider.cjs +2 -2
- package/dist/provider.d.cts +2 -2
- package/dist/provider.d.ts +2 -2
- package/dist/provider.js +1 -1
- package/dist/{rpc-c6776d81.d.ts → rpc-d3af2845.d.ts} +18 -2
- package/dist/{rpc-ab7acd4d.d.ts → rpc-e02a5305.d.ts} +18 -2
- package/dist/rpc.cjs +4 -4
- package/dist/rpc.d.cts +1 -1
- package/dist/rpc.d.ts +1 -1
- package/dist/rpc.js +1 -1
- package/dist/token.cjs +2 -2
- package/dist/token.d.cts +16 -3
- package/dist/token.d.ts +16 -3
- package/dist/token.js +1 -1
- package/dist/transaction-simulation.d.cts +1 -1
- package/dist/transaction-simulation.d.ts +1 -1
- package/package.json +4 -5
- package/dist/chunk-2DSAT5RW.js +0 -3
- package/dist/chunk-2KGTZTXY.cjs.map +0 -1
- package/dist/chunk-6JAA7W6A.cjs +0 -7
- package/dist/chunk-6JAA7W6A.cjs.map +0 -1
- package/dist/chunk-7Y6UGMPZ.js.map +0 -1
- package/dist/chunk-I5OST5LZ.js +0 -5
- package/dist/chunk-I5OST5LZ.js.map +0 -1
- package/dist/chunk-IMMJESZ3.cjs +0 -9
- package/dist/chunk-IMMJESZ3.cjs.map +0 -1
- package/dist/chunk-IQHOBS5Y.cjs.map +0 -1
- package/dist/chunk-T3QBBZUZ.js.map +0 -1
- package/dist/chunk-UN6P2KX4.js +0 -5
- package/dist/chunk-UN6P2KX4.js.map +0 -1
- /package/dist/{chunk-2DSAT5RW.js.map → chunk-GF7C4PA6.js.map} +0 -0
- /package/dist/{chunk-ATL7CLLW.cjs.map → chunk-YB5EN6FL.cjs.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
export { AppName, Caip2ChainId, Environment, Hex, Network, NetworkVMType, Storage } from './common.cjs';
|
|
2
2
|
export { RawSimplePriceResponse, RawSimplePriceResponseSchema, SimplePriceResponse, SimplePriceResponseSchema } from './coingecko.cjs';
|
|
3
|
-
export { GetBalancesParams, GetBalancesResponse, NetworkTokenWithBalance, NftTokenWithBalance, TokenAttribute, TokenBalanceData, TokenMarketData, TokenWithBalance, TokenWithBalanceAVM, TokenWithBalanceBTC, TokenWithBalanceERC20, TokenWithBalanceEVM, TokenWithBalancePVM } from './balance.cjs';
|
|
3
|
+
export { GetBalancesParams, GetBalancesResponse, NetworkTokenWithBalance, NftTokenWithBalance, TokenAttribute, TokenBalanceData, TokenMarketData, TokenWithBalance, TokenWithBalanceAVM, TokenWithBalanceBTC, TokenWithBalanceERC20, TokenWithBalanceEVM, TokenWithBalancePVM, TokenWithBalanceSPL, TokenWithBalanceSVM } from './balance.cjs';
|
|
4
4
|
export { Error } from './error.cjs';
|
|
5
5
|
export { Manifest, parseManifest } from './manifest.cjs';
|
|
6
6
|
export { AppInfo, ConstructorParams, Module, NetworkFeeParam } from './module.cjs';
|
|
7
7
|
export { NetworkFees, SuggestGasPriceOptionsResponse } from './network-fee.cjs';
|
|
8
|
-
export { A as AddressItem, p as Alert, o as AlertDetails, n as AlertType,
|
|
9
|
-
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, TokenType } from './token.cjs';
|
|
8
|
+
export { A as AddressItem, p as Alert, o as AlertDetails, n as AlertType, I as ApprovalController, w as ApprovalParams, G as ApprovalResponse, K as BalanceChange, B as BaseDetailItem, J as BatchApprovalController, x as BatchApprovalParams, H as BatchApprovalResponse, q as BitcoinExecuteTxData, r as BitcoingSignTxData, u as BtcTxUpdateFn, C as CurrencyItem, D as DappInfo, i as DataItem, j as DateItem, l as DetailItem, g as DetailItemType, f as DetailSection, m as DisplayData, E as EvmTxBatchUpdateFn, t as EvmTxUpdateFn, F as FundsRecipientItem, k as LinkItem, L as LinkItemValue, M as MessageTypeProperty, d as MessageTypes, N as NodeIDItem, y as RequestPublicKeyParams, b as RpcError, R as RpcMethod, a as RpcRequest, c as RpcResponse, S as SigningData, s as SigningData_EthSendTx, v as SigningRequest, z as SigningResult, h as TextItem, Q as TokenApproval, U as TokenApprovals, O as TokenDiff, P as TokenDiffItem, V as TransactionSimulationResult, T as TypedData, e as TypedDataV1 } from './rpc-d3af2845.js';
|
|
9
|
+
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, SPLToken, TokenType } from './token.cjs';
|
|
10
10
|
export { GetTransactionHistory, PChainTransactionType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType } from './transaction-history.cjs';
|
|
11
|
-
export { BtcWalletPolicyDetails, GetAddressParams, GetAddressResponse, PubKeyType, WalletType } from './account.cjs';
|
|
11
|
+
export { BtcWalletPolicyDetails, BuildDerivationPathParams, BuildDerivationPathResponse, DerivationPathType, DeriveAddressParams, DeriveAddressResponse, DetailedDeriveAddressParams, GetAddressParams, GetAddressResponse, PubKeyType, SimpleDeriveAddressParams, WalletType } from './account.cjs';
|
|
12
12
|
export { AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, ConvertSubnetToL1Tx, CreateChainTx, CreateSubnetTx, DisableL1ValidatorTx, ExportImportTxDetails, ExportTx, FeeData, ImportTx, IncreaseL1ValidatorBalanceTx, L1Details, RegisterL1ValidatorTx, RemoveSubnetValidatorTx, SetL1ValidatorWeightTx, StakingDetails, SubnetDetails, TxBase, TxDetails, TxType, VM } from './staking.cjs';
|
|
13
13
|
export { AccountsChangedEventData, ChainAgnosticProvider, ChainChangedEventData, DomainMetadata, EIP6963ProviderDetail, EIP6963ProviderInfo, EventNames, JsonRpcRequestPayload, PartialBy, UnlockStateChangedEventData } from './provider.cjs';
|
|
14
14
|
import 'zod';
|
|
15
15
|
import '@avalabs/glacier-sdk';
|
|
16
16
|
import '@avalabs/core-wallets-sdk';
|
|
17
17
|
import 'hypersdk-client';
|
|
18
|
-
import '@solana/rpc';
|
|
19
18
|
import 'ethers';
|
|
20
19
|
import '@metamask/rpc-errors';
|
|
21
20
|
import 'events';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
export { AppName, Caip2ChainId, Environment, Hex, Network, NetworkVMType, Storage } from './common.js';
|
|
2
2
|
export { RawSimplePriceResponse, RawSimplePriceResponseSchema, SimplePriceResponse, SimplePriceResponseSchema } from './coingecko.js';
|
|
3
|
-
export { GetBalancesParams, GetBalancesResponse, NetworkTokenWithBalance, NftTokenWithBalance, TokenAttribute, TokenBalanceData, TokenMarketData, TokenWithBalance, TokenWithBalanceAVM, TokenWithBalanceBTC, TokenWithBalanceERC20, TokenWithBalanceEVM, TokenWithBalancePVM } from './balance.js';
|
|
3
|
+
export { GetBalancesParams, GetBalancesResponse, NetworkTokenWithBalance, NftTokenWithBalance, TokenAttribute, TokenBalanceData, TokenMarketData, TokenWithBalance, TokenWithBalanceAVM, TokenWithBalanceBTC, TokenWithBalanceERC20, TokenWithBalanceEVM, TokenWithBalancePVM, TokenWithBalanceSPL, TokenWithBalanceSVM } from './balance.js';
|
|
4
4
|
export { Error } from './error.js';
|
|
5
5
|
export { Manifest, parseManifest } from './manifest.js';
|
|
6
6
|
export { AppInfo, ConstructorParams, Module, NetworkFeeParam } from './module.js';
|
|
7
7
|
export { NetworkFees, SuggestGasPriceOptionsResponse } from './network-fee.js';
|
|
8
|
-
export { A as AddressItem, p as Alert, o as AlertDetails, n as AlertType,
|
|
9
|
-
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, TokenType } from './token.js';
|
|
8
|
+
export { A as AddressItem, p as Alert, o as AlertDetails, n as AlertType, I as ApprovalController, w as ApprovalParams, G as ApprovalResponse, K as BalanceChange, B as BaseDetailItem, J as BatchApprovalController, x as BatchApprovalParams, H as BatchApprovalResponse, q as BitcoinExecuteTxData, r as BitcoingSignTxData, u as BtcTxUpdateFn, C as CurrencyItem, D as DappInfo, i as DataItem, j as DateItem, l as DetailItem, g as DetailItemType, f as DetailSection, m as DisplayData, E as EvmTxBatchUpdateFn, t as EvmTxUpdateFn, F as FundsRecipientItem, k as LinkItem, L as LinkItemValue, M as MessageTypeProperty, d as MessageTypes, N as NodeIDItem, y as RequestPublicKeyParams, b as RpcError, R as RpcMethod, a as RpcRequest, c as RpcResponse, S as SigningData, s as SigningData_EthSendTx, v as SigningRequest, z as SigningResult, h as TextItem, Q as TokenApproval, U as TokenApprovals, O as TokenDiff, P as TokenDiffItem, V as TransactionSimulationResult, T as TypedData, e as TypedDataV1 } from './rpc-e02a5305.js';
|
|
9
|
+
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, SPLToken, TokenType } from './token.js';
|
|
10
10
|
export { GetTransactionHistory, PChainTransactionType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType } from './transaction-history.js';
|
|
11
|
-
export { BtcWalletPolicyDetails, GetAddressParams, GetAddressResponse, PubKeyType, WalletType } from './account.js';
|
|
11
|
+
export { BtcWalletPolicyDetails, BuildDerivationPathParams, BuildDerivationPathResponse, DerivationPathType, DeriveAddressParams, DeriveAddressResponse, DetailedDeriveAddressParams, GetAddressParams, GetAddressResponse, PubKeyType, SimpleDeriveAddressParams, WalletType } from './account.js';
|
|
12
12
|
export { AddPermissionlessDelegatorTx, AddPermissionlessValidatorTx, AddSubnetValidatorTx, BaseTx, BlockchainDetails, ChainDetails, ConvertSubnetToL1Tx, CreateChainTx, CreateSubnetTx, DisableL1ValidatorTx, ExportImportTxDetails, ExportTx, FeeData, ImportTx, IncreaseL1ValidatorBalanceTx, L1Details, RegisterL1ValidatorTx, RemoveSubnetValidatorTx, SetL1ValidatorWeightTx, StakingDetails, SubnetDetails, TxBase, TxDetails, TxType, VM } from './staking.js';
|
|
13
13
|
export { AccountsChangedEventData, ChainAgnosticProvider, ChainChangedEventData, DomainMetadata, EIP6963ProviderDetail, EIP6963ProviderInfo, EventNames, JsonRpcRequestPayload, PartialBy, UnlockStateChangedEventData } from './provider.js';
|
|
14
14
|
import 'zod';
|
|
15
15
|
import '@avalabs/glacier-sdk';
|
|
16
16
|
import '@avalabs/core-wallets-sdk';
|
|
17
17
|
import 'hypersdk-client';
|
|
18
|
-
import '@solana/rpc';
|
|
19
18
|
import 'ethers';
|
|
20
19
|
import '@metamask/rpc-errors';
|
|
21
20
|
import 'events';
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import './chunk-7U2R34EQ.js';
|
|
2
|
-
export { a as EventNames } from './chunk-
|
|
3
|
-
export { c as AlertType, b as DetailItemType, a as RpcMethod } from './chunk-
|
|
2
|
+
export { a as EventNames } from './chunk-6ZLXXGIV.js';
|
|
3
|
+
export { c as AlertType, b as DetailItemType, a as RpcMethod } from './chunk-FTYN6IZV.js';
|
|
4
4
|
export { a as TxType } from './chunk-FGMDBV23.js';
|
|
5
|
-
export { a as TokenType } from './chunk-
|
|
5
|
+
export { a as TokenType } from './chunk-GMF7R4KJ.js';
|
|
6
6
|
export { b as PChainTransactionType, a as TransactionType, c as XChainTransactionType } from './chunk-7JLXTNPE.js';
|
|
7
7
|
import './chunk-P6AM7I3B.js';
|
|
8
|
-
export { a as WalletType } from './chunk-
|
|
8
|
+
export { a as WalletType } from './chunk-E4CYP2GV.js';
|
|
9
9
|
import './chunk-BHB5UV3J.js';
|
|
10
10
|
export { b as RawSimplePriceResponseSchema, a as SimplePriceResponseSchema } from './chunk-WOO6UGSQ.js';
|
|
11
11
|
import './chunk-REHORWPH.js';
|
|
12
12
|
export { a as parseManifest } from './chunk-RINP3JFP.js';
|
|
13
|
-
import './chunk-
|
|
14
|
-
export { c as AppName, b as Environment, a as NetworkVMType } from './chunk-
|
|
13
|
+
import './chunk-GF7C4PA6.js';
|
|
14
|
+
export { c as AppName, b as Environment, a as NetworkVMType } from './chunk-M2ZWWM4H.js';
|
|
15
15
|
//# sourceMappingURL=out.js.map
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
package/dist/module.cjs
CHANGED
package/dist/module.d.cts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { JsonRpcBatchInternal, BitcoinProvider, Avalanche } from '@avalabs/core-wallets-sdk';
|
|
2
|
-
import { GetAddressParams, GetAddressResponse } from './account.cjs';
|
|
1
|
+
import { JsonRpcBatchInternal, BitcoinProvider, Avalanche, SolanaProvider } from '@avalabs/core-wallets-sdk';
|
|
2
|
+
import { GetAddressParams, GetAddressResponse, DeriveAddressParams, DeriveAddressResponse, BuildDerivationPathParams, BuildDerivationPathResponse } from './account.cjs';
|
|
3
3
|
import { GetBalancesParams, GetBalancesResponse } from './balance.cjs';
|
|
4
4
|
import { AppName, Environment, Network } from './common.cjs';
|
|
5
5
|
import { Manifest } from './manifest.cjs';
|
|
6
6
|
import { NetworkFees } from './network-fee.cjs';
|
|
7
|
-
import {
|
|
7
|
+
import { I as ApprovalController, a as RpcRequest, c as RpcResponse } from './rpc-d3af2845.js';
|
|
8
8
|
import { NetworkContractToken } from './token.cjs';
|
|
9
9
|
import { GetTransactionHistory, TransactionHistoryResponse } from './transaction-history.cjs';
|
|
10
10
|
import { HyperSDKClient } from 'hypersdk-client';
|
|
11
|
-
import { Rpc, SolanaRpcApiMainnet, SolanaRpcApiDevnet } from '@solana/rpc';
|
|
12
11
|
import './error.cjs';
|
|
13
12
|
import '@avalabs/glacier-sdk';
|
|
14
13
|
import 'zod';
|
|
@@ -28,12 +27,17 @@ type NetworkFeeParam = Network & {
|
|
|
28
27
|
caipId?: string;
|
|
29
28
|
};
|
|
30
29
|
interface Module {
|
|
31
|
-
getProvider: (network: Network) => Promise<JsonRpcBatchInternal | BitcoinProvider | Avalanche.JsonRpcProvider | HyperSDKClient |
|
|
30
|
+
getProvider: (network: Network) => Promise<JsonRpcBatchInternal | BitcoinProvider | Avalanche.JsonRpcProvider | HyperSDKClient | SolanaProvider>;
|
|
32
31
|
getManifest: () => Manifest | undefined;
|
|
33
32
|
getBalances: (params: GetBalancesParams) => Promise<GetBalancesResponse>;
|
|
34
33
|
getTransactionHistory: (params: GetTransactionHistory) => Promise<TransactionHistoryResponse>;
|
|
35
34
|
getNetworkFee: (network: NetworkFeeParam) => Promise<NetworkFees>;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Please use `deriveAddress` instead
|
|
37
|
+
*/
|
|
36
38
|
getAddress: (params: GetAddressParams) => Promise<GetAddressResponse>;
|
|
39
|
+
deriveAddress: (params: DeriveAddressParams) => Promise<DeriveAddressResponse>;
|
|
40
|
+
buildDerivationPath: (params: BuildDerivationPathParams) => BuildDerivationPathResponse;
|
|
37
41
|
getTokens: (network: Network) => Promise<NetworkContractToken[]>;
|
|
38
42
|
onRpcRequest: (request: RpcRequest, chain: Network) => Promise<RpcResponse>;
|
|
39
43
|
}
|
package/dist/module.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { JsonRpcBatchInternal, BitcoinProvider, Avalanche } from '@avalabs/core-wallets-sdk';
|
|
2
|
-
import { GetAddressParams, GetAddressResponse } from './account.js';
|
|
1
|
+
import { JsonRpcBatchInternal, BitcoinProvider, Avalanche, SolanaProvider } from '@avalabs/core-wallets-sdk';
|
|
2
|
+
import { GetAddressParams, GetAddressResponse, DeriveAddressParams, DeriveAddressResponse, BuildDerivationPathParams, BuildDerivationPathResponse } from './account.js';
|
|
3
3
|
import { GetBalancesParams, GetBalancesResponse } from './balance.js';
|
|
4
4
|
import { AppName, Environment, Network } from './common.js';
|
|
5
5
|
import { Manifest } from './manifest.js';
|
|
6
6
|
import { NetworkFees } from './network-fee.js';
|
|
7
|
-
import {
|
|
7
|
+
import { I as ApprovalController, a as RpcRequest, c as RpcResponse } from './rpc-e02a5305.js';
|
|
8
8
|
import { NetworkContractToken } from './token.js';
|
|
9
9
|
import { GetTransactionHistory, TransactionHistoryResponse } from './transaction-history.js';
|
|
10
10
|
import { HyperSDKClient } from 'hypersdk-client';
|
|
11
|
-
import { Rpc, SolanaRpcApiMainnet, SolanaRpcApiDevnet } from '@solana/rpc';
|
|
12
11
|
import './error.js';
|
|
13
12
|
import '@avalabs/glacier-sdk';
|
|
14
13
|
import 'zod';
|
|
@@ -28,12 +27,17 @@ type NetworkFeeParam = Network & {
|
|
|
28
27
|
caipId?: string;
|
|
29
28
|
};
|
|
30
29
|
interface Module {
|
|
31
|
-
getProvider: (network: Network) => Promise<JsonRpcBatchInternal | BitcoinProvider | Avalanche.JsonRpcProvider | HyperSDKClient |
|
|
30
|
+
getProvider: (network: Network) => Promise<JsonRpcBatchInternal | BitcoinProvider | Avalanche.JsonRpcProvider | HyperSDKClient | SolanaProvider>;
|
|
32
31
|
getManifest: () => Manifest | undefined;
|
|
33
32
|
getBalances: (params: GetBalancesParams) => Promise<GetBalancesResponse>;
|
|
34
33
|
getTransactionHistory: (params: GetTransactionHistory) => Promise<TransactionHistoryResponse>;
|
|
35
34
|
getNetworkFee: (network: NetworkFeeParam) => Promise<NetworkFees>;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Please use `deriveAddress` instead
|
|
37
|
+
*/
|
|
36
38
|
getAddress: (params: GetAddressParams) => Promise<GetAddressResponse>;
|
|
39
|
+
deriveAddress: (params: DeriveAddressParams) => Promise<DeriveAddressResponse>;
|
|
40
|
+
buildDerivationPath: (params: BuildDerivationPathParams) => BuildDerivationPathResponse;
|
|
37
41
|
getTokens: (network: Network) => Promise<NetworkContractToken[]>;
|
|
38
42
|
onRpcRequest: (request: RpcRequest, chain: Network) => Promise<RpcResponse>;
|
|
39
43
|
}
|
package/dist/module.js
CHANGED
package/dist/provider.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4NMX4VK7_cjs = require('./chunk-4NMX4VK7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, 'EventNames', {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk4NMX4VK7_cjs.a; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=out.js.map
|
|
12
12
|
//# sourceMappingURL=provider.cjs.map
|
package/dist/provider.d.cts
CHANGED
|
@@ -48,11 +48,11 @@ interface JsonRpcRequestPayloadWithoutParams<Method extends string> extends Json
|
|
|
48
48
|
type JsonRpcRequestPayload<Method extends string, Params = unknown> = Params extends undefined ? JsonRpcRequestPayloadWithoutParams<Method> : JsonRpcRequestPayloadWithParams<Method, Params>;
|
|
49
49
|
type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
50
50
|
interface ChainAgnosticProvider extends EventEmitter {
|
|
51
|
-
request({ data, sessionId, scope, }: {
|
|
51
|
+
request<T = unknown>({ data, sessionId, scope, }: {
|
|
52
52
|
data: PartialBy<JsonRpcRequestPayload<string>, 'id' | 'params'>;
|
|
53
53
|
sessionId?: string;
|
|
54
54
|
scope?: string | null;
|
|
55
|
-
}): Promise<
|
|
55
|
+
}): Promise<T>;
|
|
56
56
|
subscribeToMessage(callback: ({ method, params }: {
|
|
57
57
|
method: string;
|
|
58
58
|
params: unknown;
|
package/dist/provider.d.ts
CHANGED
|
@@ -48,11 +48,11 @@ interface JsonRpcRequestPayloadWithoutParams<Method extends string> extends Json
|
|
|
48
48
|
type JsonRpcRequestPayload<Method extends string, Params = unknown> = Params extends undefined ? JsonRpcRequestPayloadWithoutParams<Method> : JsonRpcRequestPayloadWithParams<Method, Params>;
|
|
49
49
|
type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
50
50
|
interface ChainAgnosticProvider extends EventEmitter {
|
|
51
|
-
request({ data, sessionId, scope, }: {
|
|
51
|
+
request<T = unknown>({ data, sessionId, scope, }: {
|
|
52
52
|
data: PartialBy<JsonRpcRequestPayload<string>, 'id' | 'params'>;
|
|
53
53
|
sessionId?: string;
|
|
54
54
|
scope?: string | null;
|
|
55
|
-
}): Promise<
|
|
55
|
+
}): Promise<T>;
|
|
56
56
|
subscribeToMessage(callback: ({ method, params }: {
|
|
57
57
|
method: string;
|
|
58
58
|
params: unknown;
|
package/dist/provider.js
CHANGED
|
@@ -51,7 +51,9 @@ declare enum RpcMethod {
|
|
|
51
51
|
AVALANCHE_SIGN_MESSAGE = "avalanche_signMessage",
|
|
52
52
|
AVALANCHE_SEND_TRANSACTION = "avalanche_sendTransaction",
|
|
53
53
|
AVALANCHE_SIGN_TRANSACTION = "avalanche_signTransaction",
|
|
54
|
-
HVM_SIGN_TRANSACTION = "hvm_signTransaction"
|
|
54
|
+
HVM_SIGN_TRANSACTION = "hvm_signTransaction",
|
|
55
|
+
SOLANA_SIGN_TRANSACTION = "solana_signTransaction",
|
|
56
|
+
SOLANA_SIGN_AND_SEND_TRANSACTION = "solana_signAndSendTransaction"
|
|
55
57
|
}
|
|
56
58
|
type DappInfo = {
|
|
57
59
|
name: string;
|
|
@@ -206,6 +208,14 @@ type BitcoingSignTxData = {
|
|
|
206
208
|
outputs: BitcoinOutputUTXO[];
|
|
207
209
|
};
|
|
208
210
|
type SigningData = {
|
|
211
|
+
type: RpcMethod.SOLANA_SIGN_AND_SEND_TRANSACTION;
|
|
212
|
+
account: string;
|
|
213
|
+
data: string;
|
|
214
|
+
} | {
|
|
215
|
+
type: RpcMethod.SOLANA_SIGN_TRANSACTION;
|
|
216
|
+
account: string;
|
|
217
|
+
data: string;
|
|
218
|
+
} | {
|
|
209
219
|
type: RpcMethod.BITCOIN_SEND_TRANSACTION;
|
|
210
220
|
account: string;
|
|
211
221
|
data: BitcoinExecuteTxData;
|
|
@@ -294,6 +304,11 @@ type BatchApprovalParams = {
|
|
|
294
304
|
displayData: DisplayData;
|
|
295
305
|
updateTx: EvmTxBatchUpdateFn;
|
|
296
306
|
};
|
|
307
|
+
type RequestPublicKeyParams = {
|
|
308
|
+
secretId: string;
|
|
309
|
+
curve: 'secp256k1' | 'ed25519';
|
|
310
|
+
derivationPath?: string;
|
|
311
|
+
};
|
|
297
312
|
/**
|
|
298
313
|
* We want to accept both a signed data (tx/message) and a tx hash as a response
|
|
299
314
|
* coming in from the client apps, hence the XORs here.
|
|
@@ -324,6 +339,7 @@ type BatchApprovalResponse = {
|
|
|
324
339
|
};
|
|
325
340
|
interface ApprovalController {
|
|
326
341
|
requestApproval: (params: ApprovalParams) => Promise<ApprovalResponse>;
|
|
342
|
+
requestPublicKey: (params: RequestPublicKeyParams) => Promise<string>;
|
|
327
343
|
onTransactionConfirmed: (txHash: Hex, requestId: string) => void;
|
|
328
344
|
onTransactionReverted: (txHash: Hex, requestId: string) => void;
|
|
329
345
|
}
|
|
@@ -331,4 +347,4 @@ interface BatchApprovalController extends ApprovalController {
|
|
|
331
347
|
requestBatchApproval: (params: BatchApprovalParams) => Promise<BatchApprovalResponse>;
|
|
332
348
|
}
|
|
333
349
|
|
|
334
|
-
export { AddressItem as A, BaseDetailItem as B, CurrencyItem as C, DappInfo as D, EvmTxBatchUpdateFn as E, FundsRecipientItem as F,
|
|
350
|
+
export { AddressItem as A, BaseDetailItem as B, CurrencyItem as C, DappInfo as D, EvmTxBatchUpdateFn as E, FundsRecipientItem as F, ApprovalResponse as G, BatchApprovalResponse as H, ApprovalController as I, BatchApprovalController as J, BalanceChange as K, LinkItemValue as L, MessageTypeProperty as M, NodeIDItem as N, TokenDiff as O, TokenDiffItem as P, TokenApproval as Q, RpcMethod as R, SigningData as S, TypedData as T, TokenApprovals as U, TransactionSimulationResult as V, RpcRequest as a, RpcError as b, RpcResponse as c, MessageTypes as d, TypedDataV1 as e, DetailSection as f, DetailItemType as g, TextItem as h, DataItem as i, DateItem as j, LinkItem as k, DetailItem as l, DisplayData as m, AlertType as n, AlertDetails as o, Alert as p, BitcoinExecuteTxData as q, BitcoingSignTxData as r, SigningData_EthSendTx as s, EvmTxUpdateFn as t, BtcTxUpdateFn as u, SigningRequest as v, ApprovalParams as w, BatchApprovalParams as x, RequestPublicKeyParams as y, SigningResult as z };
|
|
@@ -51,7 +51,9 @@ declare enum RpcMethod {
|
|
|
51
51
|
AVALANCHE_SIGN_MESSAGE = "avalanche_signMessage",
|
|
52
52
|
AVALANCHE_SEND_TRANSACTION = "avalanche_sendTransaction",
|
|
53
53
|
AVALANCHE_SIGN_TRANSACTION = "avalanche_signTransaction",
|
|
54
|
-
HVM_SIGN_TRANSACTION = "hvm_signTransaction"
|
|
54
|
+
HVM_SIGN_TRANSACTION = "hvm_signTransaction",
|
|
55
|
+
SOLANA_SIGN_TRANSACTION = "solana_signTransaction",
|
|
56
|
+
SOLANA_SIGN_AND_SEND_TRANSACTION = "solana_signAndSendTransaction"
|
|
55
57
|
}
|
|
56
58
|
type DappInfo = {
|
|
57
59
|
name: string;
|
|
@@ -206,6 +208,14 @@ type BitcoingSignTxData = {
|
|
|
206
208
|
outputs: BitcoinOutputUTXO[];
|
|
207
209
|
};
|
|
208
210
|
type SigningData = {
|
|
211
|
+
type: RpcMethod.SOLANA_SIGN_AND_SEND_TRANSACTION;
|
|
212
|
+
account: string;
|
|
213
|
+
data: string;
|
|
214
|
+
} | {
|
|
215
|
+
type: RpcMethod.SOLANA_SIGN_TRANSACTION;
|
|
216
|
+
account: string;
|
|
217
|
+
data: string;
|
|
218
|
+
} | {
|
|
209
219
|
type: RpcMethod.BITCOIN_SEND_TRANSACTION;
|
|
210
220
|
account: string;
|
|
211
221
|
data: BitcoinExecuteTxData;
|
|
@@ -294,6 +304,11 @@ type BatchApprovalParams = {
|
|
|
294
304
|
displayData: DisplayData;
|
|
295
305
|
updateTx: EvmTxBatchUpdateFn;
|
|
296
306
|
};
|
|
307
|
+
type RequestPublicKeyParams = {
|
|
308
|
+
secretId: string;
|
|
309
|
+
curve: 'secp256k1' | 'ed25519';
|
|
310
|
+
derivationPath?: string;
|
|
311
|
+
};
|
|
297
312
|
/**
|
|
298
313
|
* We want to accept both a signed data (tx/message) and a tx hash as a response
|
|
299
314
|
* coming in from the client apps, hence the XORs here.
|
|
@@ -324,6 +339,7 @@ type BatchApprovalResponse = {
|
|
|
324
339
|
};
|
|
325
340
|
interface ApprovalController {
|
|
326
341
|
requestApproval: (params: ApprovalParams) => Promise<ApprovalResponse>;
|
|
342
|
+
requestPublicKey: (params: RequestPublicKeyParams) => Promise<string>;
|
|
327
343
|
onTransactionConfirmed: (txHash: Hex, requestId: string) => void;
|
|
328
344
|
onTransactionReverted: (txHash: Hex, requestId: string) => void;
|
|
329
345
|
}
|
|
@@ -331,4 +347,4 @@ interface BatchApprovalController extends ApprovalController {
|
|
|
331
347
|
requestBatchApproval: (params: BatchApprovalParams) => Promise<BatchApprovalResponse>;
|
|
332
348
|
}
|
|
333
349
|
|
|
334
|
-
export { AddressItem as A, BaseDetailItem as B, CurrencyItem as C, DappInfo as D, EvmTxBatchUpdateFn as E, FundsRecipientItem as F,
|
|
350
|
+
export { AddressItem as A, BaseDetailItem as B, CurrencyItem as C, DappInfo as D, EvmTxBatchUpdateFn as E, FundsRecipientItem as F, ApprovalResponse as G, BatchApprovalResponse as H, ApprovalController as I, BatchApprovalController as J, BalanceChange as K, LinkItemValue as L, MessageTypeProperty as M, NodeIDItem as N, TokenDiff as O, TokenDiffItem as P, TokenApproval as Q, RpcMethod as R, SigningData as S, TypedData as T, TokenApprovals as U, TransactionSimulationResult as V, RpcRequest as a, RpcError as b, RpcResponse as c, MessageTypes as d, TypedDataV1 as e, DetailSection as f, DetailItemType as g, TextItem as h, DataItem as i, DateItem as j, LinkItem as k, DetailItem as l, DisplayData as m, AlertType as n, AlertDetails as o, Alert as p, BitcoinExecuteTxData as q, BitcoingSignTxData as r, SigningData_EthSendTx as s, EvmTxUpdateFn as t, BtcTxUpdateFn as u, SigningRequest as v, ApprovalParams as w, BatchApprovalParams as x, RequestPublicKeyParams as y, SigningResult as z };
|
package/dist/rpc.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVH6PRR45_cjs = require('./chunk-VH6PRR45.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, 'AlertType', {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkVH6PRR45_cjs.c; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, 'DetailItemType', {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkVH6PRR45_cjs.b; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, 'RpcMethod', {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkVH6PRR45_cjs.a; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=out.js.map
|
|
20
20
|
//# sourceMappingURL=rpc.cjs.map
|
package/dist/rpc.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import 'ethers';
|
|
|
2
2
|
import '@avalabs/core-wallets-sdk';
|
|
3
3
|
import './common.cjs';
|
|
4
4
|
import '@metamask/rpc-errors';
|
|
5
|
-
export { A as AddressItem, p as Alert, o as AlertDetails, n as AlertType,
|
|
5
|
+
export { A as AddressItem, p as Alert, o as AlertDetails, n as AlertType, I as ApprovalController, w as ApprovalParams, G as ApprovalResponse, B as BaseDetailItem, J as BatchApprovalController, x as BatchApprovalParams, H as BatchApprovalResponse, q as BitcoinExecuteTxData, r as BitcoingSignTxData, u as BtcTxUpdateFn, C as CurrencyItem, D as DappInfo, i as DataItem, j as DateItem, l as DetailItem, g as DetailItemType, f as DetailSection, m as DisplayData, E as EvmTxBatchUpdateFn, t as EvmTxUpdateFn, F as FundsRecipientItem, k as LinkItem, L as LinkItemValue, M as MessageTypeProperty, d as MessageTypes, N as NodeIDItem, y as RequestPublicKeyParams, b as RpcError, R as RpcMethod, a as RpcRequest, c as RpcResponse, S as SigningData, s as SigningData_EthSendTx, v as SigningRequest, z as SigningResult, h as TextItem, T as TypedData, e as TypedDataV1 } from './rpc-d3af2845.js';
|
|
6
6
|
import './balance.cjs';
|
|
7
7
|
import 'hypersdk-client';
|
|
8
8
|
import './token.cjs';
|
package/dist/rpc.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import 'ethers';
|
|
|
2
2
|
import '@avalabs/core-wallets-sdk';
|
|
3
3
|
import './common.js';
|
|
4
4
|
import '@metamask/rpc-errors';
|
|
5
|
-
export { A as AddressItem, p as Alert, o as AlertDetails, n as AlertType,
|
|
5
|
+
export { A as AddressItem, p as Alert, o as AlertDetails, n as AlertType, I as ApprovalController, w as ApprovalParams, G as ApprovalResponse, B as BaseDetailItem, J as BatchApprovalController, x as BatchApprovalParams, H as BatchApprovalResponse, q as BitcoinExecuteTxData, r as BitcoingSignTxData, u as BtcTxUpdateFn, C as CurrencyItem, D as DappInfo, i as DataItem, j as DateItem, l as DetailItem, g as DetailItemType, f as DetailSection, m as DisplayData, E as EvmTxBatchUpdateFn, t as EvmTxUpdateFn, F as FundsRecipientItem, k as LinkItem, L as LinkItemValue, M as MessageTypeProperty, d as MessageTypes, N as NodeIDItem, y as RequestPublicKeyParams, b as RpcError, R as RpcMethod, a as RpcRequest, c as RpcResponse, S as SigningData, s as SigningData_EthSendTx, v as SigningRequest, z as SigningResult, h as TextItem, T as TypedData, e as TypedDataV1 } from './rpc-e02a5305.js';
|
|
6
6
|
import './balance.js';
|
|
7
7
|
import 'hypersdk-client';
|
|
8
8
|
import './token.js';
|
package/dist/rpc.js
CHANGED
package/dist/token.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkN7PCIGVW_cjs = require('./chunk-N7PCIGVW.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, 'TokenType', {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkN7PCIGVW_cjs.a; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=out.js.map
|
|
12
12
|
//# sourceMappingURL=token.cjs.map
|
package/dist/token.d.cts
CHANGED
|
@@ -3,7 +3,8 @@ declare enum TokenType {
|
|
|
3
3
|
ERC20 = "ERC20",
|
|
4
4
|
ERC721 = "ERC721",
|
|
5
5
|
ERC1155 = "ERC1155",
|
|
6
|
-
NONERC = "NONERC"
|
|
6
|
+
NONERC = "NONERC",
|
|
7
|
+
SPL = "SPL"
|
|
7
8
|
}
|
|
8
9
|
interface NetworkToken {
|
|
9
10
|
name: string;
|
|
@@ -12,7 +13,7 @@ interface NetworkToken {
|
|
|
12
13
|
logoUri?: string;
|
|
13
14
|
description?: string;
|
|
14
15
|
}
|
|
15
|
-
type NetworkContractToken = ERC20Token | ERC1155Token | ERC721Token | NONERCToken;
|
|
16
|
+
type NetworkContractToken = ERC20Token | ERC1155Token | ERC721Token | NONERCToken | SPLToken;
|
|
16
17
|
interface ERC20Token {
|
|
17
18
|
address: string;
|
|
18
19
|
chainId?: number;
|
|
@@ -23,6 +24,18 @@ interface ERC20Token {
|
|
|
23
24
|
name: string;
|
|
24
25
|
symbol: string;
|
|
25
26
|
}
|
|
27
|
+
interface SPLToken {
|
|
28
|
+
address: string;
|
|
29
|
+
name: string;
|
|
30
|
+
symbol: string;
|
|
31
|
+
contractType: TokenType.SPL;
|
|
32
|
+
type: TokenType.SPL;
|
|
33
|
+
caip2Id: string;
|
|
34
|
+
decimals: number;
|
|
35
|
+
chainId?: number;
|
|
36
|
+
logoUri?: string;
|
|
37
|
+
color?: string;
|
|
38
|
+
}
|
|
26
39
|
interface ERC1155Token {
|
|
27
40
|
address: string;
|
|
28
41
|
type: TokenType.ERC1155;
|
|
@@ -45,4 +58,4 @@ interface NONERCToken {
|
|
|
45
58
|
symbol?: string;
|
|
46
59
|
}
|
|
47
60
|
|
|
48
|
-
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, TokenType };
|
|
61
|
+
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, SPLToken, TokenType };
|
package/dist/token.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ declare enum TokenType {
|
|
|
3
3
|
ERC20 = "ERC20",
|
|
4
4
|
ERC721 = "ERC721",
|
|
5
5
|
ERC1155 = "ERC1155",
|
|
6
|
-
NONERC = "NONERC"
|
|
6
|
+
NONERC = "NONERC",
|
|
7
|
+
SPL = "SPL"
|
|
7
8
|
}
|
|
8
9
|
interface NetworkToken {
|
|
9
10
|
name: string;
|
|
@@ -12,7 +13,7 @@ interface NetworkToken {
|
|
|
12
13
|
logoUri?: string;
|
|
13
14
|
description?: string;
|
|
14
15
|
}
|
|
15
|
-
type NetworkContractToken = ERC20Token | ERC1155Token | ERC721Token | NONERCToken;
|
|
16
|
+
type NetworkContractToken = ERC20Token | ERC1155Token | ERC721Token | NONERCToken | SPLToken;
|
|
16
17
|
interface ERC20Token {
|
|
17
18
|
address: string;
|
|
18
19
|
chainId?: number;
|
|
@@ -23,6 +24,18 @@ interface ERC20Token {
|
|
|
23
24
|
name: string;
|
|
24
25
|
symbol: string;
|
|
25
26
|
}
|
|
27
|
+
interface SPLToken {
|
|
28
|
+
address: string;
|
|
29
|
+
name: string;
|
|
30
|
+
symbol: string;
|
|
31
|
+
contractType: TokenType.SPL;
|
|
32
|
+
type: TokenType.SPL;
|
|
33
|
+
caip2Id: string;
|
|
34
|
+
decimals: number;
|
|
35
|
+
chainId?: number;
|
|
36
|
+
logoUri?: string;
|
|
37
|
+
color?: string;
|
|
38
|
+
}
|
|
26
39
|
interface ERC1155Token {
|
|
27
40
|
address: string;
|
|
28
41
|
type: TokenType.ERC1155;
|
|
@@ -45,4 +58,4 @@ interface NONERCToken {
|
|
|
45
58
|
symbol?: string;
|
|
46
59
|
}
|
|
47
60
|
|
|
48
|
-
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, TokenType };
|
|
61
|
+
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, SPLToken, TokenType };
|
package/dist/token.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { K as BalanceChange, Q as TokenApproval, U as TokenApprovals, O as TokenDiff, P as TokenDiffItem, V as TransactionSimulationResult } from './rpc-d3af2845.js';
|
|
2
2
|
import './token.cjs';
|
|
3
3
|
import 'ethers';
|
|
4
4
|
import '@avalabs/core-wallets-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { K as BalanceChange, Q as TokenApproval, U as TokenApprovals, O as TokenDiff, P as TokenDiffItem, V as TransactionSimulationResult } from './rpc-e02a5305.js';
|
|
2
2
|
import './token.js';
|
|
3
3
|
import 'ethers';
|
|
4
4
|
import '@avalabs/core-wallets-sdk';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/vm-module-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -11,20 +11,19 @@
|
|
|
11
11
|
],
|
|
12
12
|
"license": "Limited Ecosystem License",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@avalabs/core-wallets-sdk": "3.1.0-alpha.
|
|
15
|
-
"@avalabs/glacier-sdk": "3.1.0-alpha.
|
|
14
|
+
"@avalabs/core-wallets-sdk": "3.1.0-alpha.44",
|
|
15
|
+
"@avalabs/glacier-sdk": "3.1.0-alpha.44",
|
|
16
16
|
"@metamask/rpc-errors": "6.3.0",
|
|
17
17
|
"bitcoinjs-lib": "5.2.0",
|
|
18
18
|
"zod": "3.23.8",
|
|
19
19
|
"hypersdk-client": "0.4.16"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@solana/rpc": "2.0.0",
|
|
23
22
|
"@types/bn.js": "5.1.5",
|
|
24
23
|
"bn.js": "5.2.1",
|
|
25
24
|
"ethers": "6.13.5",
|
|
26
25
|
"tsup": "7.2.0",
|
|
27
|
-
"@internal/tsup-config": "0.0.
|
|
26
|
+
"@internal/tsup-config": "0.0.2",
|
|
28
27
|
"eslint-config-custom": "0.0.1"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
package/dist/chunk-2DSAT5RW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/token.ts"],"names":["TokenType"],"mappings":"AAAO,IAAKA,OACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,OAAS,SACTA,EAAA,QAAU,UACVA,EAAA,OAAS,SALCA,OAAA","sourcesContent":["export enum TokenType {\n NATIVE = 'NATIVE',\n ERC20 = 'ERC20',\n ERC721 = 'ERC721',\n ERC1155 = 'ERC1155',\n NONERC = 'NONERC',\n}\n\nexport interface NetworkToken {\n name: string;\n symbol: string;\n decimals: number;\n logoUri?: string;\n description?: string;\n}\n\nexport type NetworkContractToken = ERC20Token | ERC1155Token | ERC721Token | NONERCToken;\n\nexport interface ERC20Token {\n address: string;\n chainId?: number;\n color?: string;\n type: TokenType.ERC20;\n decimals: number;\n logoUri?: string;\n name: string;\n symbol: string;\n}\n\nexport interface ERC1155Token {\n address: string;\n type: TokenType.ERC1155;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n\nexport interface ERC721Token {\n address: string;\n type: TokenType.ERC721;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n\nexport interface NONERCToken {\n address: string;\n type: TokenType.NONERC;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n"]}
|
package/dist/chunk-6JAA7W6A.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/account.ts"],"names":["WalletType"],"mappings":"AAEO,IAAKA,OAEVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,cACbA,EAAA,SAAW,WACXA,EAAA,SAAW,WANDA,OAAA","sourcesContent":["import type { Network } from './common';\n\nexport enum WalletType {\n // Primary wallet types\n Mnemonic = 'mnemonic',\n Ledger = 'ledger',\n LedgerLive = 'ledger-live',\n Keystone = 'keystone',\n Seedless = 'seedless',\n}\n\nexport type GetAddressParams = {\n walletType: WalletType;\n accountIndex: number;\n xpub: string;\n network?: Network;\n xpubXP?: string;\n};\n\nexport type GetAddressResponse = Record<string, string>;\n\nexport type PubKeyType = {\n evm: string;\n /**\n * Public keys used for X/P chain are from a different derivation path.\n */\n xp?: string;\n btcWalletPolicyDetails?: BtcWalletPolicyDetails;\n};\n\nexport type BtcWalletPolicyDetails = {\n hmacHex: string;\n /**\n * Extended public key of m/44'/60'/n\n */\n xpub: string;\n masterFingerprint: string;\n name: string;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/token.ts"],"names":["TokenType"],"mappings":"AAAO,IAAKA,OACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,OAAS,SACTA,EAAA,QAAU,UACVA,EAAA,OAAS,SALCA,OAAA","sourcesContent":["export enum TokenType {\n NATIVE = 'NATIVE',\n ERC20 = 'ERC20',\n ERC721 = 'ERC721',\n ERC1155 = 'ERC1155',\n NONERC = 'NONERC',\n}\n\nexport interface NetworkToken {\n name: string;\n symbol: string;\n decimals: number;\n logoUri?: string;\n description?: string;\n}\n\nexport type NetworkContractToken = ERC20Token | ERC1155Token | ERC721Token | NONERCToken;\n\nexport interface ERC20Token {\n address: string;\n chainId?: number;\n color?: string;\n type: TokenType.ERC20;\n decimals: number;\n logoUri?: string;\n name: string;\n symbol: string;\n}\n\nexport interface ERC1155Token {\n address: string;\n type: TokenType.ERC1155;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n\nexport interface ERC721Token {\n address: string;\n type: TokenType.ERC721;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n\nexport interface NONERCToken {\n address: string;\n type: TokenType.NONERC;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n"]}
|
package/dist/chunk-I5OST5LZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/account.ts"],"names":["WalletType"],"mappings":"AAEO,IAAKA,OAEVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,cACbA,EAAA,SAAW,WACXA,EAAA,SAAW,WANDA,OAAA","sourcesContent":["import type { Network } from './common';\n\nexport enum WalletType {\n // Primary wallet types\n Mnemonic = 'mnemonic',\n Ledger = 'ledger',\n LedgerLive = 'ledger-live',\n Keystone = 'keystone',\n Seedless = 'seedless',\n}\n\nexport type GetAddressParams = {\n walletType: WalletType;\n accountIndex: number;\n xpub: string;\n network?: Network;\n xpubXP?: string;\n};\n\nexport type GetAddressResponse = Record<string, string>;\n\nexport type PubKeyType = {\n evm: string;\n /**\n * Public keys used for X/P chain are from a different derivation path.\n */\n xp?: string;\n btcWalletPolicyDetails?: BtcWalletPolicyDetails;\n};\n\nexport type BtcWalletPolicyDetails = {\n hmacHex: string;\n /**\n * Extended public key of m/44'/60'/n\n */\n xpub: string;\n masterFingerprint: string;\n name: string;\n};\n"]}
|
package/dist/chunk-IMMJESZ3.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var t=(r=>(r.EVM="EVM",r.BITCOIN="BITCOIN",r.AVM="AVM",r.PVM="PVM",r.CoreEth="CoreEth",r.HVM="HVM",r))(t||{}),o=(e=>(e.PRODUCTION="production",e.DEV="dev",e))(o||{}),i=(r=>(r.CORE_MOBILE_IOS="core-mobile-ios",r.CORE_MOBILE_ANDROID="core-mobile-android",r.CORE_WEB="core-web",r.CORE_EXTENSION="core-extension",r.EXPLORER="explorer",r.OTHER="other",r))(i||{});
|
|
4
|
-
|
|
5
|
-
exports.a = t;
|
|
6
|
-
exports.b = o;
|
|
7
|
-
exports.c = i;
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-IMMJESZ3.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/common.ts"],"names":["NetworkVMType","Environment","AppName"],"mappings":"AAuBO,IAAKA,OACVA,EAAA,IAAM,MACNA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,IAAM,MACNA,EAAA,QAAU,UACVA,EAAA,IAAM,MANIA,OAAA,IAkBAC,OACVA,EAAA,WAAa,aACbA,EAAA,IAAM,MAFIA,OAAA,IAKAC,OACVA,EAAA,gBAAkB,kBAClBA,EAAA,oBAAsB,sBACtBA,EAAA,SAAW,WACXA,EAAA,eAAiB,iBACjBA,EAAA,SAAW,WACXA,EAAA,MAAQ,QANEA,OAAA","sourcesContent":["import type { NetworkToken } from './token';\n\nexport type Network = {\n isTestnet?: boolean;\n chainId: number;\n chainName: string;\n rpcUrl: string;\n utilityAddresses?: {\n multicall: string;\n };\n networkToken: NetworkToken;\n pricingProviders?: {\n coingecko: {\n assetPlatformId?: string;\n nativeTokenId?: string;\n };\n };\n explorerUrl?: string;\n logoUri?: string;\n vmName: NetworkVMType;\n vmRpcPrefix?: string;\n};\n\nexport enum NetworkVMType {\n EVM = 'EVM',\n BITCOIN = 'BITCOIN',\n AVM = 'AVM',\n PVM = 'PVM',\n CoreEth = 'CoreEth',\n HVM = 'HVM',\n}\n\nexport type Storage = {\n get: <T>(id: string) => T | undefined;\n set: <T>(id: string, data: T) => void;\n};\n\nexport type Caip2ChainId = string;\n\nexport type Hex = `0x${string}`;\n\nexport enum Environment {\n PRODUCTION = 'production',\n DEV = 'dev',\n}\n\nexport enum AppName {\n CORE_MOBILE_IOS = 'core-mobile-ios',\n CORE_MOBILE_ANDROID = 'core-mobile-android',\n CORE_WEB = 'core-web',\n CORE_EXTENSION = 'core-extension',\n EXPLORER = 'explorer',\n OTHER = 'other',\n}\n"]}
|