@avalabs/bitcoin-module 0.0.22 → 0.1.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/LICENSE +9 -0
- package/dist/index.cjs +7 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +8 -45
- package/dist/index.js.map +1 -1
- package/package.json +12 -3
- package/.turbo/turbo-build.log +0 -22
- package/.turbo/turbo-lint.log +0 -4
- package/.turbo/turbo-test.log +0 -16
- package/CHANGELOG.md +0 -49
- package/jest.config.js +0 -10
- package/src/env.ts +0 -25
- package/src/handlers/get-balances/get-balances.test.ts +0 -181
- package/src/handlers/get-balances/get-balances.ts +0 -108
- package/src/handlers/get-balances/index.ts +0 -1
- package/src/handlers/get-network-fee/get-network-fee.test.ts +0 -67
- package/src/handlers/get-network-fee/get-network-fee.ts +0 -34
- package/src/handlers/get-network-fee/index.ts +0 -1
- package/src/handlers/get-transaction-history/convert-btc-transaction.test.ts +0 -108
- package/src/handlers/get-transaction-history/convert-btc-transaction.ts +0 -36
- package/src/handlers/get-transaction-history/get-transaction-history.test.ts +0 -98
- package/src/handlers/get-transaction-history/get-transaction-history.ts +0 -23
- package/src/handlers/get-transaction-history/index.ts +0 -1
- package/src/index.ts +0 -1
- package/src/module.test.ts +0 -57
- package/src/module.ts +0 -74
- package/src/utils/extract-token-market-data.ts +0 -16
- package/src/utils/get-provider.test.ts +0 -55
- package/src/utils/get-provider.ts +0 -18
- package/tsconfig.jest.json +0 -7
- package/tsconfig.json +0 -14
- package/tsup.config.ts +0 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import * as _metamask_rpc_errors from '@metamask/rpc-errors';
|
|
2
2
|
import * as _avalabs_vm_module_types_dist_transaction_history from '@avalabs/vm-module-types/dist/transaction-history';
|
|
3
3
|
import * as _avalabs_vm_module_types_dist_balance from '@avalabs/vm-module-types/dist/balance';
|
|
4
|
-
import { Module, Environment, GetBalancesParams, Manifest, Network, NetworkFees, GetTransactionHistory, RpcRequest } from '@avalabs/vm-module-types';
|
|
4
|
+
import { Module, Environment, GetAddressParams, GetAddressResponse, GetBalancesParams, Manifest, Network, NetworkFees, GetTransactionHistory, RpcRequest } from '@avalabs/vm-module-types';
|
|
5
5
|
|
|
6
6
|
declare class BitcoinModule implements Module {
|
|
7
7
|
#private;
|
|
8
8
|
constructor({ environment }: {
|
|
9
9
|
environment: Environment;
|
|
10
10
|
});
|
|
11
|
-
getAddress(): Promise<
|
|
12
|
-
getBalances({ addresses, currency, network, storage }: GetBalancesParams): Promise<
|
|
11
|
+
getAddress({ accountIndex, xpub, isTestnet, walletType }: GetAddressParams): Promise<GetAddressResponse>;
|
|
12
|
+
getBalances({ addresses, currency, network, storage }: GetBalancesParams): Promise<{
|
|
13
|
+
[x: string]: Record<string, _avalabs_vm_module_types_dist_balance.TokenWithBalanceBTC>;
|
|
14
|
+
}>;
|
|
13
15
|
getManifest(): Manifest | undefined;
|
|
14
16
|
getNetworkFee(network: Network): Promise<NetworkFees>;
|
|
15
17
|
getTransactionHistory({ address, network }: GetTransactionHistory): Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import * as _metamask_rpc_errors from '@metamask/rpc-errors';
|
|
2
2
|
import * as _avalabs_vm_module_types_dist_transaction_history from '@avalabs/vm-module-types/dist/transaction-history';
|
|
3
3
|
import * as _avalabs_vm_module_types_dist_balance from '@avalabs/vm-module-types/dist/balance';
|
|
4
|
-
import { Module, Environment, GetBalancesParams, Manifest, Network, NetworkFees, GetTransactionHistory, RpcRequest } from '@avalabs/vm-module-types';
|
|
4
|
+
import { Module, Environment, GetAddressParams, GetAddressResponse, GetBalancesParams, Manifest, Network, NetworkFees, GetTransactionHistory, RpcRequest } from '@avalabs/vm-module-types';
|
|
5
5
|
|
|
6
6
|
declare class BitcoinModule implements Module {
|
|
7
7
|
#private;
|
|
8
8
|
constructor({ environment }: {
|
|
9
9
|
environment: Environment;
|
|
10
10
|
});
|
|
11
|
-
getAddress(): Promise<
|
|
12
|
-
getBalances({ addresses, currency, network, storage }: GetBalancesParams): Promise<
|
|
11
|
+
getAddress({ accountIndex, xpub, isTestnet, walletType }: GetAddressParams): Promise<GetAddressResponse>;
|
|
12
|
+
getBalances({ addresses, currency, network, storage }: GetBalancesParams): Promise<{
|
|
13
|
+
[x: string]: Record<string, _avalabs_vm_module_types_dist_balance.TokenWithBalanceBTC>;
|
|
14
|
+
}>;
|
|
13
15
|
getManifest(): Manifest | undefined;
|
|
14
16
|
getNetworkFee(network: Network): Promise<NetworkFees>;
|
|
15
17
|
getTransactionHistory({ address, network }: GetTransactionHistory): Promise<{
|