@avalabs/vm-module-types 1.9.11 → 1.9.13
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/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/module.d.cts +7 -1
- package/dist/module.d.ts +7 -1
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { RawSimplePriceResponse, RawSimplePriceResponseSchema, SimplePriceRespon
|
|
|
3
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
|
-
export { AppInfo, ConstructorParams, Module, NetworkFeeParam } from './module.cjs';
|
|
6
|
+
export { AppInfo, ConstructorParams, Module, NetworkFeeParam, RuntimeParams } from './module.cjs';
|
|
7
7
|
export { NetworkFees, SuggestGasPriceOptionsResponse } from './network-fee.cjs';
|
|
8
8
|
export { A as AddressItem, i as AddressListItem, s as Alert, r as AlertDetails, q as AlertType, O as ApprovalController, z as ApprovalParams, J as ApprovalResponse, Q as BalanceChange, B as BaseDetailItem, P as BatchApprovalController, G as BatchApprovalParams, K as BatchApprovalResponse, t as BitcoinExecuteTxData, u as BitcoingSignTxData, x as BtcTxUpdateFn, C as CurrencyItem, D as DappInfo, j as DataItem, k as DateItem, o as DetailItem, g as DetailItemType, f as DetailSection, p as DisplayData, E as EvmTxBatchUpdateFn, w as EvmTxUpdateFn, F as FundsRecipientItem, l as LinkItem, L as LinkItemValue, M as MessageTypeProperty, d as MessageTypes, n as NetworkItem, m as NetworkItemValue, N as NodeIDItem, H as RequestPublicKeyParams, b as RpcError, R as RpcMethod, a as RpcRequest, c as RpcResponse, S as SigningData, v as SigningData_EthSendTx, y as SigningRequest, I as SigningResult, h as TextItem, W as TokenApproval, X as TokenApprovals, U as TokenDiff, V as TokenDiffItem, Y as TransactionSimulationResult, T as TypedData, e as TypedDataV1 } from './rpc-a75fe4b4.js';
|
|
9
9
|
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, SPLToken, TokenType } from './token.cjs';
|
|
@@ -15,6 +15,7 @@ import 'zod';
|
|
|
15
15
|
import '@avalabs/glacier-sdk';
|
|
16
16
|
import '@avalabs/core-wallets-sdk';
|
|
17
17
|
import 'hypersdk-client';
|
|
18
|
+
import 'http';
|
|
18
19
|
import 'ethers';
|
|
19
20
|
import '@metamask/rpc-errors';
|
|
20
21
|
import 'events';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { RawSimplePriceResponse, RawSimplePriceResponseSchema, SimplePriceRespon
|
|
|
3
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
|
-
export { AppInfo, ConstructorParams, Module, NetworkFeeParam } from './module.js';
|
|
6
|
+
export { AppInfo, ConstructorParams, Module, NetworkFeeParam, RuntimeParams } from './module.js';
|
|
7
7
|
export { NetworkFees, SuggestGasPriceOptionsResponse } from './network-fee.js';
|
|
8
8
|
export { A as AddressItem, i as AddressListItem, s as Alert, r as AlertDetails, q as AlertType, O as ApprovalController, z as ApprovalParams, J as ApprovalResponse, Q as BalanceChange, B as BaseDetailItem, P as BatchApprovalController, G as BatchApprovalParams, K as BatchApprovalResponse, t as BitcoinExecuteTxData, u as BitcoingSignTxData, x as BtcTxUpdateFn, C as CurrencyItem, D as DappInfo, j as DataItem, k as DateItem, o as DetailItem, g as DetailItemType, f as DetailSection, p as DisplayData, E as EvmTxBatchUpdateFn, w as EvmTxUpdateFn, F as FundsRecipientItem, l as LinkItem, L as LinkItemValue, M as MessageTypeProperty, d as MessageTypes, n as NetworkItem, m as NetworkItemValue, N as NodeIDItem, H as RequestPublicKeyParams, b as RpcError, R as RpcMethod, a as RpcRequest, c as RpcResponse, S as SigningData, v as SigningData_EthSendTx, y as SigningRequest, I as SigningResult, h as TextItem, W as TokenApproval, X as TokenApprovals, U as TokenDiff, V as TokenDiffItem, Y as TransactionSimulationResult, T as TypedData, e as TypedDataV1 } from './rpc-22e53ced.js';
|
|
9
9
|
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, SPLToken, TokenType } from './token.js';
|
|
@@ -15,6 +15,7 @@ import 'zod';
|
|
|
15
15
|
import '@avalabs/glacier-sdk';
|
|
16
16
|
import '@avalabs/core-wallets-sdk';
|
|
17
17
|
import 'hypersdk-client';
|
|
18
|
+
import 'http';
|
|
18
19
|
import 'ethers';
|
|
19
20
|
import '@metamask/rpc-errors';
|
|
20
21
|
import 'events';
|
package/dist/module.d.cts
CHANGED
|
@@ -8,6 +8,7 @@ import { O as ApprovalController, a as RpcRequest, c as RpcResponse } from './rp
|
|
|
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 { Agent } from 'http';
|
|
11
12
|
import './error.cjs';
|
|
12
13
|
import '@avalabs/glacier-sdk';
|
|
13
14
|
import 'zod';
|
|
@@ -22,6 +23,11 @@ type ConstructorParams = {
|
|
|
22
23
|
approvalController: ApprovalController;
|
|
23
24
|
environment: Environment;
|
|
24
25
|
appInfo: AppInfo;
|
|
26
|
+
runtime?: RuntimeParams;
|
|
27
|
+
};
|
|
28
|
+
type RuntimeParams = {
|
|
29
|
+
fetch?: typeof fetch;
|
|
30
|
+
httpAgent?: Agent;
|
|
25
31
|
};
|
|
26
32
|
type NetworkFeeParam = Network & {
|
|
27
33
|
caipId?: string;
|
|
@@ -42,4 +48,4 @@ interface Module {
|
|
|
42
48
|
onRpcRequest: (request: RpcRequest, chain: Network) => Promise<RpcResponse>;
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
export { AppInfo, ConstructorParams, Module, NetworkFeeParam };
|
|
51
|
+
export { AppInfo, ConstructorParams, Module, NetworkFeeParam, RuntimeParams };
|
package/dist/module.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { O as ApprovalController, a as RpcRequest, c as RpcResponse } from './rp
|
|
|
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 { Agent } from 'http';
|
|
11
12
|
import './error.js';
|
|
12
13
|
import '@avalabs/glacier-sdk';
|
|
13
14
|
import 'zod';
|
|
@@ -22,6 +23,11 @@ type ConstructorParams = {
|
|
|
22
23
|
approvalController: ApprovalController;
|
|
23
24
|
environment: Environment;
|
|
24
25
|
appInfo: AppInfo;
|
|
26
|
+
runtime?: RuntimeParams;
|
|
27
|
+
};
|
|
28
|
+
type RuntimeParams = {
|
|
29
|
+
fetch?: typeof fetch;
|
|
30
|
+
httpAgent?: Agent;
|
|
25
31
|
};
|
|
26
32
|
type NetworkFeeParam = Network & {
|
|
27
33
|
caipId?: string;
|
|
@@ -42,4 +48,4 @@ interface Module {
|
|
|
42
48
|
onRpcRequest: (request: RpcRequest, chain: Network) => Promise<RpcResponse>;
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
export { AppInfo, ConstructorParams, Module, NetworkFeeParam };
|
|
51
|
+
export { AppInfo, ConstructorParams, Module, NetworkFeeParam, RuntimeParams };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/vm-module-types",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.13",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"@metamask/rpc-errors": "6.3.0",
|
|
17
17
|
"bitcoinjs-lib": "5.2.0",
|
|
18
18
|
"zod": "3.23.8",
|
|
19
|
-
"hypersdk-client": "0.4.16"
|
|
19
|
+
"hypersdk-client": "0.4.16",
|
|
20
|
+
"@blockaid/client": "0.48.0"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"@types/bn.js": "5.1.5",
|