@alephium/web3 0.8.0 → 0.8.2-test.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.
|
@@ -8,6 +8,8 @@ export declare class ExplorerProvider {
|
|
|
8
8
|
readonly mempool: ExplorerApi<string>['mempool'];
|
|
9
9
|
readonly tokens: ExplorerApi<string>['tokens'];
|
|
10
10
|
readonly charts: ExplorerApi<string>['charts'];
|
|
11
|
+
readonly contractEvents: ExplorerApi<string>['contractEvents'];
|
|
12
|
+
readonly contracts: ExplorerApi<string>['contracts'];
|
|
11
13
|
readonly utils: ExplorerApi<string>['utils'];
|
|
12
14
|
constructor(baseUrl: string, apiKey?: string, customFetch?: typeof fetch);
|
|
13
15
|
constructor(provider: ExplorerProvider);
|
|
@@ -55,6 +55,8 @@ class ExplorerProvider {
|
|
|
55
55
|
this.tokens = { ...explorerApi.tokens };
|
|
56
56
|
this.charts = { ...explorerApi.charts };
|
|
57
57
|
this.utils = { ...explorerApi.utils };
|
|
58
|
+
this.contracts = { ...explorerApi.contracts };
|
|
59
|
+
this.contractEvents = { ...explorerApi.contractEvents };
|
|
58
60
|
}
|
|
59
61
|
// This can prevent the proxied explorer provider from being modified
|
|
60
62
|
static Proxy(explorerProvider) {
|
package/package.json
CHANGED
|
@@ -39,6 +39,8 @@ export class ExplorerProvider {
|
|
|
39
39
|
readonly mempool: ExplorerApi<string>['mempool']
|
|
40
40
|
readonly tokens: ExplorerApi<string>['tokens']
|
|
41
41
|
readonly charts: ExplorerApi<string>['charts']
|
|
42
|
+
readonly contractEvents: ExplorerApi<string>['contractEvents']
|
|
43
|
+
readonly contracts: ExplorerApi<string>['contracts']
|
|
42
44
|
readonly utils: ExplorerApi<string>['utils']
|
|
43
45
|
|
|
44
46
|
constructor(baseUrl: string, apiKey?: string, customFetch?: typeof fetch)
|
|
@@ -63,6 +65,8 @@ export class ExplorerProvider {
|
|
|
63
65
|
this.tokens = { ...explorerApi.tokens }
|
|
64
66
|
this.charts = { ...explorerApi.charts }
|
|
65
67
|
this.utils = { ...explorerApi.utils }
|
|
68
|
+
this.contracts = { ...explorerApi.contracts }
|
|
69
|
+
this.contractEvents = { ...explorerApi.contractEvents }
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
request = (args: ApiRequestArguments): Promise<any> => {
|