@alephium/web3 0.3.0-rc.5 → 0.3.0-rc.8

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.
@@ -48,21 +48,16 @@ const elliptic_1 = require("elliptic");
48
48
  const api_1 = require("../api");
49
49
  const utils = __importStar(require("../utils"));
50
50
  const blakejs_1 = __importDefault(require("blakejs"));
51
+ const tx_builder_1 = require("./tx-builder");
51
52
  const ec = new elliptic_1.ec('secp256k1');
52
- class SignerProviderSimple {
53
+ class SignerProviderSimple extends tx_builder_1.TransactionBuilder {
53
54
  async getSelectedAddress() {
54
55
  const account = await this.getSelectedAccount();
55
56
  return account.address;
56
57
  }
57
- getNodeProvider() {
58
- if (this.nodeProvider === undefined) {
59
- throw Error('The signer does not contain a node provider');
60
- }
61
- return this.nodeProvider;
62
- }
63
58
  async submitTransaction(params) {
64
59
  const data = { unsignedTx: params.unsignedTx, signature: params.signature };
65
- return this.getNodeProvider().transactions.postTransactionsSubmit(data);
60
+ return this.nodeProvider.transactions.postTransactionsSubmit(data);
66
61
  }
67
62
  async signAndSubmitTransferTx(params) {
68
63
  const signResult = await this.signTransferTx(params);
@@ -92,61 +87,33 @@ class SignerProviderSimple {
92
87
  async signTransferTx(params) {
93
88
  const response = await this.buildTransferTx(params);
94
89
  const signature = await this.signRaw(params.signerAddress, response.txId);
95
- return { ...response, signature, gasPrice: (0, api_1.fromApiNumber256)(response.gasPrice) };
90
+ return { signature, ...response };
96
91
  }
97
92
  async buildTransferTx(params) {
98
- const data = {
99
- ...(await this.usePublicKey(params)),
100
- destinations: toApiDestinations(params.destinations),
101
- gasPrice: (0, api_1.toApiNumber256Optional)(params.gasPrice)
102
- };
103
- return this.getNodeProvider().transactions.postTransactionsBuild(data);
93
+ return super.buildTransferTx(params, await this.getPublicKey(params.signerAddress));
104
94
  }
105
95
  async signDeployContractTx(params) {
106
- const response = await this.buildContractCreationTx(params);
96
+ const response = await this.buildDeployContractTx(params);
107
97
  const signature = await this.signRaw(params.signerAddress, response.txId);
108
- const contractId = utils.binToHex(utils.contractIdFromAddress(response.contractAddress));
109
- return { ...response, contractId, signature, gasPrice: (0, api_1.fromApiNumber256)(response.gasPrice) };
110
- }
111
- async buildContractCreationTx(params) {
112
- const data = {
113
- ...(await this.usePublicKey(params)),
114
- initialAttoAlphAmount: (0, api_1.toApiNumber256Optional)(params.initialAttoAlphAmount),
115
- initialTokenAmounts: (0, api_1.toApiTokens)(params.initialTokenAmounts),
116
- issueTokenAmount: (0, api_1.toApiNumber256Optional)(params.issueTokenAmount),
117
- gasPrice: (0, api_1.toApiNumber256Optional)(params.gasPrice)
118
- };
119
- return this.getNodeProvider().contracts.postContractsUnsignedTxDeployContract(data);
98
+ return { signature, ...response };
99
+ }
100
+ async buildDeployContractTx(params) {
101
+ return super.buildDeployContractTx(params, await this.getPublicKey(params.signerAddress));
120
102
  }
121
103
  async signExecuteScriptTx(params) {
122
- const response = await this.buildScriptTx(params);
104
+ const response = await this.buildExecuteScriptTx(params);
123
105
  const signature = await this.signRaw(params.signerAddress, response.txId);
124
- return { ...response, signature, gasPrice: (0, api_1.fromApiNumber256)(response.gasPrice) };
106
+ return { signature, ...response };
125
107
  }
126
- async buildScriptTx(params) {
127
- const data = {
128
- ...(await this.usePublicKey(params)),
129
- attoAlphAmount: (0, api_1.toApiNumber256Optional)(params.attoAlphAmount),
130
- tokens: (0, api_1.toApiTokens)(params.tokens),
131
- gasPrice: (0, api_1.toApiNumber256Optional)(params.gasPrice)
132
- };
133
- return this.getNodeProvider().contracts.postContractsUnsignedTxExecuteScript(data);
108
+ async buildExecuteScriptTx(params) {
109
+ return super.buildExecuteScriptTx(params, await this.getPublicKey(params.signerAddress));
134
110
  }
135
111
  // in general, wallet should show the decoded information to user for confirmation
136
112
  // please overwrite this function for real wallet
137
113
  async signUnsignedTx(params) {
138
- const data = { unsignedTx: params.unsignedTx };
139
- const decoded = await this.getNodeProvider().transactions.postTransactionsDecodeUnsignedTx(data);
140
- const signature = await this.signRaw(params.signerAddress, decoded.unsignedTx.txId);
141
- return {
142
- fromGroup: decoded.fromGroup,
143
- toGroup: decoded.toGroup,
144
- unsignedTx: params.unsignedTx,
145
- txId: decoded.unsignedTx.txId,
146
- signature,
147
- gasAmount: decoded.unsignedTx.gasAmount,
148
- gasPrice: (0, api_1.fromApiNumber256)(decoded.unsignedTx.gasPrice)
149
- };
114
+ const response = await this.buildUnsignedTx(params);
115
+ const signature = await this.signRaw(params.signerAddress, response.txId);
116
+ return { signature, ...response };
150
117
  }
151
118
  async signMessage(params) {
152
119
  const extendedMessage = extendMessage(params.message);
@@ -0,0 +1,17 @@
1
+ import { NodeProvider } from '../api';
2
+ import { SignDeployContractTxParams, SignDeployContractTxResult, SignExecuteScriptTxParams, SignExecuteScriptTxResult, SignTransferTxParams, SignTransferTxResult, SignUnsignedTxParams, SignUnsignedTxResult } from './types';
3
+ export declare abstract class TransactionBuilder {
4
+ abstract get nodeProvider(): NodeProvider;
5
+ static create(baseUrl: string, apiKey?: string): {
6
+ readonly nodeProvider: NodeProvider;
7
+ buildTransferTx(params: SignTransferTxParams, publicKey: string): Promise<Omit<SignTransferTxResult, "signature">>;
8
+ buildDeployContractTx(params: SignDeployContractTxParams, publicKey: string): Promise<Omit<SignDeployContractTxResult, "signature">>;
9
+ buildExecuteScriptTx(params: SignExecuteScriptTxParams, publicKey: string): Promise<Omit<SignExecuteScriptTxResult, "signature">>;
10
+ buildUnsignedTx(params: SignUnsignedTxParams): Promise<Omit<SignUnsignedTxResult, "signature">>;
11
+ };
12
+ private static validatePublicKey;
13
+ buildTransferTx(params: SignTransferTxParams, publicKey: string): Promise<Omit<SignTransferTxResult, 'signature'>>;
14
+ buildDeployContractTx(params: SignDeployContractTxParams, publicKey: string): Promise<Omit<SignDeployContractTxResult, 'signature'>>;
15
+ buildExecuteScriptTx(params: SignExecuteScriptTxParams, publicKey: string): Promise<Omit<SignExecuteScriptTxResult, 'signature'>>;
16
+ buildUnsignedTx(params: SignUnsignedTxParams): Promise<Omit<SignUnsignedTxResult, 'signature'>>;
17
+ }
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2018 - 2022 The Alephium Authors
4
+ This file is part of the alephium project.
5
+
6
+ The library is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU Lesser General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ The library is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU Lesser General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Lesser General Public License
17
+ along with the library. If not, see <http://www.gnu.org/licenses/>.
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.TransactionBuilder = void 0;
21
+ const __1 = require("..");
22
+ const api_1 = require("../api");
23
+ const utils_1 = require("../utils");
24
+ const signer_1 = require("./signer");
25
+ class TransactionBuilder {
26
+ static create(baseUrl, apiKey) {
27
+ const nodeProvider = new api_1.NodeProvider(baseUrl, apiKey);
28
+ return new (class extends TransactionBuilder {
29
+ get nodeProvider() {
30
+ return nodeProvider;
31
+ }
32
+ })();
33
+ }
34
+ static validatePublicKey(params, publicKey) {
35
+ const address = (0, utils_1.addressFromPublicKey)(publicKey);
36
+ if (address !== params.signerAddress) {
37
+ throw new Error('Unmatched public key');
38
+ }
39
+ }
40
+ async buildTransferTx(params, publicKey) {
41
+ TransactionBuilder.validatePublicKey(params, publicKey);
42
+ const { destinations, gasPrice, ...rest } = params;
43
+ const data = {
44
+ fromPublicKey: publicKey,
45
+ destinations: (0, signer_1.toApiDestinations)(destinations),
46
+ gasPrice: (0, api_1.toApiNumber256Optional)(gasPrice),
47
+ ...rest
48
+ };
49
+ const response = await this.nodeProvider.transactions.postTransactionsBuild(data);
50
+ return { ...response, gasPrice: (0, api_1.fromApiNumber256)(response.gasPrice) };
51
+ }
52
+ async buildDeployContractTx(params, publicKey) {
53
+ TransactionBuilder.validatePublicKey(params, publicKey);
54
+ const { initialAttoAlphAmount, initialTokenAmounts, issueTokenAmount, gasPrice, ...rest } = params;
55
+ const data = {
56
+ fromPublicKey: publicKey,
57
+ initialAttoAlphAmount: (0, api_1.toApiNumber256Optional)(initialAttoAlphAmount),
58
+ initialTokenAmounts: (0, api_1.toApiTokens)(initialTokenAmounts),
59
+ issueTokenAmount: (0, api_1.toApiNumber256Optional)(issueTokenAmount),
60
+ gasPrice: (0, api_1.toApiNumber256Optional)(gasPrice),
61
+ ...rest
62
+ };
63
+ const response = await this.nodeProvider.contracts.postContractsUnsignedTxDeployContract(data);
64
+ const contractId = __1.utils.binToHex(__1.utils.contractIdFromAddress(response.contractAddress));
65
+ return { ...response, contractId, gasPrice: (0, api_1.fromApiNumber256)(response.gasPrice) };
66
+ }
67
+ async buildExecuteScriptTx(params, publicKey) {
68
+ TransactionBuilder.validatePublicKey(params, publicKey);
69
+ const { attoAlphAmount, tokens, gasPrice, ...rest } = params;
70
+ const data = {
71
+ fromPublicKey: publicKey,
72
+ attoAlphAmount: (0, api_1.toApiNumber256Optional)(attoAlphAmount),
73
+ tokens: (0, api_1.toApiTokens)(tokens),
74
+ gasPrice: (0, api_1.toApiNumber256Optional)(gasPrice),
75
+ ...rest
76
+ };
77
+ const response = await this.nodeProvider.contracts.postContractsUnsignedTxExecuteScript(data);
78
+ return { ...response, gasPrice: (0, api_1.fromApiNumber256)(response.gasPrice) };
79
+ }
80
+ async buildUnsignedTx(params) {
81
+ const data = { unsignedTx: params.unsignedTx };
82
+ const decoded = await this.nodeProvider.transactions.postTransactionsDecodeUnsignedTx(data);
83
+ return {
84
+ fromGroup: decoded.fromGroup,
85
+ toGroup: decoded.toGroup,
86
+ unsignedTx: params.unsignedTx,
87
+ txId: decoded.unsignedTx.txId,
88
+ gasAmount: decoded.unsignedTx.gasAmount,
89
+ gasPrice: (0, api_1.fromApiNumber256)(decoded.unsignedTx.gasPrice)
90
+ };
91
+ }
92
+ }
93
+ exports.TransactionBuilder = TransactionBuilder;
@@ -101,9 +101,21 @@ export interface SubmissionResult {
101
101
  }
102
102
  export interface EnableOptionsBase {
103
103
  chainGroup?: number;
104
+ networkId: string;
104
105
  onDisconnected: () => Promise<void>;
105
- onNetworkChanged: (network: {
106
- networkName: string;
107
- networkId: number;
108
- }) => Promise<void>;
109
106
  }
107
+ export declare type ExtSignTransferTxParams = SignTransferTxParams & {
108
+ networkId: string;
109
+ };
110
+ export declare type ExtSignDeployContractTxParams = SignDeployContractTxParams & {
111
+ networkId: string;
112
+ };
113
+ export declare type ExtSignExecuteScriptTxParams = SignExecuteScriptTxParams & {
114
+ networkId: string;
115
+ };
116
+ export declare type ExtSignUnsignedTxParams = SignUnsignedTxParams & {
117
+ networkId: string;
118
+ };
119
+ export declare type ExtSignMessageParams = SignMessageParams & {
120
+ networkId: string;
121
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "0.3.0-rc.5",
3
+ "version": "0.3.0-rc.8",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "author": "Alephium dev <dev@alephium.org>",
29
29
  "config": {
30
- "alephium_version": "1.6.1",
31
- "explorer_backend_version": "1.11.2"
30
+ "alephium_version": "1.6.4",
31
+ "explorer_backend_version": "1.12.0-rc2"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "rm -rf dist/* && npx tsc --build . && webpack",
@@ -1332,7 +1332,7 @@ export class HttpClient<SecurityDataType = unknown> {
1332
1332
 
1333
1333
  /**
1334
1334
  * @title Alephium API
1335
- * @version 1.6.1
1335
+ * @version 1.6.4
1336
1336
  * @baseUrl ../
1337
1337
  */
1338
1338
  export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -96,6 +96,7 @@ export interface ConfirmedTransaction {
96
96
 
97
97
  /** @format uint256 */
98
98
  gasPrice: string
99
+ coinbase: boolean
99
100
  type: string
100
101
  }
101
102
 
@@ -116,6 +117,20 @@ export interface ContractOutput {
116
117
  type: string
117
118
  }
118
119
 
120
+ export interface Event {
121
+ /** @format block-hash */
122
+ blockHash: string
123
+
124
+ /** @format 32-byte-hash */
125
+ txHash: string
126
+ contractAddress: string
127
+ inputAddress?: string
128
+
129
+ /** @format int32 */
130
+ eventIndex: number
131
+ fields?: Val[]
132
+ }
133
+
119
134
  export interface ExplorerInfo {
120
135
  releaseVersion: string
121
136
  commit: string
@@ -147,6 +162,11 @@ export interface InternalServerError {
147
162
  detail: string
148
163
  }
149
164
 
165
+ export enum IntervalType {
166
+ Daily = 'daily',
167
+ Hourly = 'hourly'
168
+ }
169
+
150
170
  export interface ListBlocks {
151
171
  /** @format int32 */
152
172
  total: number
@@ -275,6 +295,7 @@ export interface Transaction {
275
295
 
276
296
  /** @format uint256 */
277
297
  gasPrice: string
298
+ coinbase: boolean
278
299
  }
279
300
 
280
301
  export type TransactionLike = ConfirmedTransaction | UnconfirmedTransaction
@@ -306,6 +327,42 @@ export interface UnconfirmedTransaction {
306
327
  type: string
307
328
  }
308
329
 
330
+ export type Val = ValAddress | ValArray | ValBool | ValByteVec | ValI256 | ValU256
331
+
332
+ export interface ValAddress {
333
+ /** @format address */
334
+ value: string
335
+ type: string
336
+ }
337
+
338
+ export interface ValArray {
339
+ value: Val[]
340
+ type: string
341
+ }
342
+
343
+ export interface ValBool {
344
+ value: boolean
345
+ type: string
346
+ }
347
+
348
+ export interface ValByteVec {
349
+ /** @format hex-string */
350
+ value: string
351
+ type: string
352
+ }
353
+
354
+ export interface ValI256 {
355
+ /** @format bigint */
356
+ value: string
357
+ type: string
358
+ }
359
+
360
+ export interface ValU256 {
361
+ /** @format uint256 */
362
+ value: string
363
+ type: string
364
+ }
365
+
309
366
  import 'cross-fetch/polyfill'
310
367
  import { convertHttpResponse } from './utils'
311
368
 
@@ -587,21 +644,6 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
587
644
  method: 'GET',
588
645
  format: 'json',
589
646
  ...params
590
- }).then(convertHttpResponse),
591
-
592
- /**
593
- * @description Get a transaction from a output reference key
594
- *
595
- * @tags Transactions
596
- * @name GetTransactionsByOutputRefKeyOutputRefKey
597
- * @request GET:/transactions/by/output-ref-key/{output_ref_key}
598
- */
599
- getTransactionsByOutputRefKeyOutputRefKey: (outputRefKey: string, params: RequestParams = {}) =>
600
- this.request<Transaction, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
601
- path: `/transactions/by/output-ref-key/${outputRefKey}`,
602
- method: 'GET',
603
- format: 'json',
604
- ...params
605
647
  }).then(convertHttpResponse)
606
648
  }
607
649
  addresses = {
@@ -778,6 +820,23 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
778
820
  ...params
779
821
  }).then(convertHttpResponse),
780
822
 
823
+ /**
824
+ * @description Are the addresses used (at least 1 transaction)
825
+ *
826
+ * @tags Addresses, Addresses
827
+ * @name PostAddressesUsed
828
+ * @request POST:/addresses/used
829
+ */
830
+ postAddressesUsed: (data?: string[], params: RequestParams = {}) =>
831
+ this.request<boolean[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
832
+ path: `/addresses/used`,
833
+ method: 'POST',
834
+ body: data,
835
+ type: ContentType.Json,
836
+ format: 'json',
837
+ ...params
838
+ }).then(convertHttpResponse),
839
+
781
840
  /**
782
841
  * No description
783
842
  *
@@ -797,24 +856,6 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
797
856
  ...params
798
857
  }).then(convertHttpResponse)
799
858
  }
800
- addressesActive = {
801
- /**
802
- * @description Are the addresses active (at least 1 transaction)
803
- *
804
- * @tags Addresses
805
- * @name PostAddressesActive
806
- * @request POST:/addresses-active
807
- */
808
- postAddressesActive: (data?: string[], params: RequestParams = {}) =>
809
- this.request<boolean[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
810
- path: `/addresses-active`,
811
- method: 'POST',
812
- body: data,
813
- type: ContentType.Json,
814
- format: 'json',
815
- ...params
816
- }).then(convertHttpResponse)
817
- }
818
859
  infos = {
819
860
  /**
820
861
  * @description Get explorer informations
@@ -1016,7 +1057,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1016
1057
  * @request GET:/charts/hashrates
1017
1058
  */
1018
1059
  getChartsHashrates: (
1019
- query: { fromTs: number; toTs: number; 'interval-type': string },
1060
+ query: { fromTs: number; toTs: number; 'interval-type': IntervalType },
1020
1061
  params: RequestParams = {}
1021
1062
  ) =>
1022
1063
  this.request<Hashrate[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
@@ -1036,7 +1077,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1036
1077
  * @request GET:/charts/transactions-count
1037
1078
  */
1038
1079
  getChartsTransactionsCount: (
1039
- query: { fromTs: number; toTs: number; 'interval-type': string },
1080
+ query: { fromTs: number; toTs: number; 'interval-type': IntervalType },
1040
1081
  params: RequestParams = {}
1041
1082
  ) =>
1042
1083
  this.request<TimedCount[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
@@ -1056,7 +1097,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1056
1097
  * @request GET:/charts/transactions-count-per-chain
1057
1098
  */
1058
1099
  getChartsTransactionsCountPerChain: (
1059
- query: { fromTs: number; toTs: number; 'interval-type': string },
1100
+ query: { fromTs: number; toTs: number; 'interval-type': IntervalType },
1060
1101
  params: RequestParams = {}
1061
1102
  ) =>
1062
1103
  this.request<
@@ -1070,6 +1111,63 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1070
1111
  ...params
1071
1112
  }).then(convertHttpResponse)
1072
1113
  }
1114
+ contractEvents = {
1115
+ /**
1116
+ * @description Get contract events by transaction id
1117
+ *
1118
+ * @tags Contract events
1119
+ * @name GetContractEventsTransactionIdTransactionId
1120
+ * @request GET:/contract-events/transaction-id/{transaction_id}
1121
+ */
1122
+ getContractEventsTransactionIdTransactionId: (transactionId: string, params: RequestParams = {}) =>
1123
+ this.request<Event[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1124
+ path: `/contract-events/transaction-id/${transactionId}`,
1125
+ method: 'GET',
1126
+ format: 'json',
1127
+ ...params
1128
+ }).then(convertHttpResponse),
1129
+
1130
+ /**
1131
+ * @description Get contract events by contract address
1132
+ *
1133
+ * @tags Contract events
1134
+ * @name GetContractEventsContractAddressContractAddress
1135
+ * @request GET:/contract-events/contract-address/{contract_address}
1136
+ */
1137
+ getContractEventsContractAddressContractAddress: (
1138
+ contractAddress: string,
1139
+ query?: { page?: number; limit?: number; reverse?: boolean },
1140
+ params: RequestParams = {}
1141
+ ) =>
1142
+ this.request<Event[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1143
+ path: `/contract-events/contract-address/${contractAddress}`,
1144
+ method: 'GET',
1145
+ query: query,
1146
+ format: 'json',
1147
+ ...params
1148
+ }).then(convertHttpResponse),
1149
+
1150
+ /**
1151
+ * @description Get contract events by contract and input addresses
1152
+ *
1153
+ * @tags Contract events
1154
+ * @name GetContractEventsContractAddressContractAddressInputAddressInputAddress
1155
+ * @request GET:/contract-events/contract-address/{contract_address}/input-address/{input_address}
1156
+ */
1157
+ getContractEventsContractAddressContractAddressInputAddressInputAddress: (
1158
+ contractAddress: string,
1159
+ inputAddress: string,
1160
+ query?: { page?: number; limit?: number; reverse?: boolean },
1161
+ params: RequestParams = {}
1162
+ ) =>
1163
+ this.request<Event[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1164
+ path: `/contract-events/contract-address/${contractAddress}/input-address/${inputAddress}`,
1165
+ method: 'GET',
1166
+ query: query,
1167
+ format: 'json',
1168
+ ...params
1169
+ }).then(convertHttpResponse)
1170
+ }
1073
1171
  utils = {
1074
1172
  /**
1075
1173
  * @description Perform a sanity check
package/src/api/index.ts CHANGED
@@ -118,7 +118,6 @@ export class ExplorerProvider {
118
118
  readonly blocks = ExplorerApi['blocks']
119
119
  readonly transactions = ExplorerApi['transactions']
120
120
  readonly addresses = ExplorerApi['addresses']
121
- readonly addressesActive = ExplorerApi['addressesActive']
122
121
  readonly infos = ExplorerApi['infos']
123
122
  readonly unconfirmedTransactions = ExplorerApi['unconfirmedTransactions']
124
123
  readonly tokens = ExplorerApi['tokens']
@@ -142,7 +141,6 @@ export class ExplorerProvider {
142
141
  this.blocks = { ...explorerApi.blocks }
143
142
  this.transactions = { ...explorerApi.transactions }
144
143
  this.addresses = { ...explorerApi.addresses }
145
- this.addressesActive = { ...explorerApi.addressesActive }
146
144
  this.infos = { ...explorerApi.infos }
147
145
  this.unconfirmedTransactions = { ...explorerApi.unconfirmedTransactions }
148
146
  this.tokens = { ...explorerApi.tokens }