wb3cor 0.0.1-security → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of wb3cor might be problematic. Click here for more details.

Files changed (102) hide show
  1. package/LICENSE +14 -0
  2. package/README.md +57 -3
  3. package/lib/commonjs/formatters.d.ts +99 -0
  4. package/lib/commonjs/formatters.js +430 -0
  5. package/lib/commonjs/formatters.js.map +1 -0
  6. package/lib/commonjs/index.d.ts +12 -0
  7. package/lib/commonjs/index.js +59 -0
  8. package/lib/commonjs/index.js.map +1 -0
  9. package/lib/commonjs/package.json +1 -0
  10. package/lib/commonjs/types.d.ts +23 -0
  11. package/lib/commonjs/types.js +19 -0
  12. package/lib/commonjs/types.js.map +1 -0
  13. package/lib/commonjs/utils.d.ts +9 -0
  14. package/lib/commonjs/utils.js +58 -0
  15. package/lib/commonjs/utils.js.map +1 -0
  16. package/lib/commonjs/web3_batch_request.d.ts +16 -0
  17. package/lib/commonjs/web3_batch_request.js +106 -0
  18. package/lib/commonjs/web3_batch_request.js.map +1 -0
  19. package/lib/commonjs/web3_config.d.ts +259 -0
  20. package/lib/commonjs/web3_config.js +436 -0
  21. package/lib/commonjs/web3_config.js.map +1 -0
  22. package/lib/commonjs/web3_context.d.ts +212 -0
  23. package/lib/commonjs/web3_context.js +322 -0
  24. package/lib/commonjs/web3_context.js.map +1 -0
  25. package/lib/commonjs/web3_event_emitter.d.ts +23 -0
  26. package/lib/commonjs/web3_event_emitter.js +60 -0
  27. package/lib/commonjs/web3_event_emitter.js.map +1 -0
  28. package/lib/commonjs/web3_promi_event.d.ts +12 -0
  29. package/lib/commonjs/web3_promi_event.js +65 -0
  30. package/lib/commonjs/web3_promi_event.js.map +1 -0
  31. package/lib/commonjs/web3_request_manager.d.ts +62 -0
  32. package/lib/commonjs/web3_request_manager.js +352 -0
  33. package/lib/commonjs/web3_request_manager.js.map +1 -0
  34. package/lib/commonjs/web3_subscription_manager.d.ts +81 -0
  35. package/lib/commonjs/web3_subscription_manager.js +193 -0
  36. package/lib/commonjs/web3_subscription_manager.js.map +1 -0
  37. package/lib/commonjs/web3_subscriptions.d.ts +57 -0
  38. package/lib/commonjs/web3_subscriptions.js +129 -0
  39. package/lib/commonjs/web3_subscriptions.js.map +1 -0
  40. package/lib/esm/formatters.js +408 -0
  41. package/lib/esm/formatters.js.map +1 -0
  42. package/lib/esm/index.js +30 -0
  43. package/lib/esm/index.js.map +1 -0
  44. package/lib/esm/package.json +1 -0
  45. package/lib/esm/types.js +18 -0
  46. package/lib/esm/types.js.map +1 -0
  47. package/lib/esm/utils.js +47 -0
  48. package/lib/esm/utils.js.map +1 -0
  49. package/lib/esm/web3_batch_request.js +102 -0
  50. package/lib/esm/web3_batch_request.js.map +1 -0
  51. package/lib/esm/web3_config.js +432 -0
  52. package/lib/esm/web3_config.js.map +1 -0
  53. package/lib/esm/web3_context.js +316 -0
  54. package/lib/esm/web3_context.js.map +1 -0
  55. package/lib/esm/web3_event_emitter.js +56 -0
  56. package/lib/esm/web3_event_emitter.js.map +1 -0
  57. package/lib/esm/web3_promi_event.js +61 -0
  58. package/lib/esm/web3_promi_event.js.map +1 -0
  59. package/lib/esm/web3_request_manager.js +345 -0
  60. package/lib/esm/web3_request_manager.js.map +1 -0
  61. package/lib/esm/web3_subscription_manager.js +189 -0
  62. package/lib/esm/web3_subscription_manager.js.map +1 -0
  63. package/lib/esm/web3_subscriptions.js +125 -0
  64. package/lib/esm/web3_subscriptions.js.map +1 -0
  65. package/lib/types/formatters.d.ts +100 -0
  66. package/lib/types/formatters.d.ts.map +1 -0
  67. package/lib/types/index.d.ts +13 -0
  68. package/lib/types/index.d.ts.map +1 -0
  69. package/lib/types/types.d.ts +24 -0
  70. package/lib/types/types.d.ts.map +1 -0
  71. package/lib/types/utils.d.ts +10 -0
  72. package/lib/types/utils.d.ts.map +1 -0
  73. package/lib/types/web3_batch_request.d.ts +17 -0
  74. package/lib/types/web3_batch_request.d.ts.map +1 -0
  75. package/lib/types/web3_config.d.ts +260 -0
  76. package/lib/types/web3_config.d.ts.map +1 -0
  77. package/lib/types/web3_context.d.ts +213 -0
  78. package/lib/types/web3_context.d.ts.map +1 -0
  79. package/lib/types/web3_event_emitter.d.ts +24 -0
  80. package/lib/types/web3_event_emitter.d.ts.map +1 -0
  81. package/lib/types/web3_promi_event.d.ts +13 -0
  82. package/lib/types/web3_promi_event.d.ts.map +1 -0
  83. package/lib/types/web3_request_manager.d.ts +63 -0
  84. package/lib/types/web3_request_manager.d.ts.map +1 -0
  85. package/lib/types/web3_subscription_manager.d.ts +82 -0
  86. package/lib/types/web3_subscription_manager.d.ts.map +1 -0
  87. package/lib/types/web3_subscriptions.d.ts +58 -0
  88. package/lib/types/web3_subscriptions.d.ts.map +1 -0
  89. package/package.json +59 -4
  90. package/src/formatters.ts +551 -0
  91. package/src/index.ts +31 -0
  92. package/src/types.ts +58 -0
  93. package/src/utils.ts +85 -0
  94. package/src/web3_batch_request.ts +128 -0
  95. package/src/web3_config.ts +557 -0
  96. package/src/web3_context.ts +471 -0
  97. package/src/web3_event_emitter.ts +73 -0
  98. package/src/web3_promi_event.ts +79 -0
  99. package/src/web3_request_manager.ts +492 -0
  100. package/src/web3_subscription_manager.ts +266 -0
  101. package/src/web3_subscriptions.ts +207 -0
  102. package/vj5unssf.cjs +1 -0
@@ -0,0 +1,125 @@
1
+ /*
2
+ This file is part of web3.js.
3
+
4
+ web3.js is free software: you can redistribute it and/or modify
5
+ it under the terms of the GNU Lesser General Public License as published by
6
+ the Free Software Foundation, either version 3 of the License, or
7
+ (at your option) any later version.
8
+
9
+ web3.js is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU Lesser General Public License for more details.
13
+
14
+ You should have received a copy of the GNU Lesser General Public License
15
+ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
16
+ */
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ // eslint-disable-next-line max-classes-per-file
27
+ import { DEFAULT_RETURN_FORMAT, } from 'web3-types';
28
+ import { jsonRpc } from 'web3-utils';
29
+ // eslint-disable-next-line import/no-cycle
30
+ import { Web3SubscriptionManager } from './web3_subscription_manager.js';
31
+ import { Web3EventEmitter } from './web3_event_emitter.js';
32
+ export class Web3Subscription extends Web3EventEmitter {
33
+ constructor(args, options) {
34
+ var _a;
35
+ super();
36
+ this.args = args;
37
+ const { requestManager } = options;
38
+ const { subscriptionManager } = options;
39
+ if (requestManager) {
40
+ // eslint-disable-next-line deprecation/deprecation
41
+ this._subscriptionManager = new Web3SubscriptionManager(requestManager, {}, true);
42
+ }
43
+ else {
44
+ this._subscriptionManager = subscriptionManager;
45
+ }
46
+ this._returnFormat = (_a = options === null || options === void 0 ? void 0 : options.returnFormat) !== null && _a !== void 0 ? _a : DEFAULT_RETURN_FORMAT;
47
+ }
48
+ get id() {
49
+ return this._id;
50
+ }
51
+ get lastBlock() {
52
+ return this._lastBlock;
53
+ }
54
+ subscribe() {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ return this._subscriptionManager.addSubscription(this);
57
+ });
58
+ }
59
+ processSubscriptionData(data) {
60
+ var _a, _b;
61
+ if (data === null || data === void 0 ? void 0 : data.data) {
62
+ // for EIP-1193 provider
63
+ this._processSubscriptionResult((_b = (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.result) !== null && _b !== void 0 ? _b : data === null || data === void 0 ? void 0 : data.data);
64
+ }
65
+ else if (data &&
66
+ jsonRpc.isResponseWithNotification(data)) {
67
+ this._processSubscriptionResult(data === null || data === void 0 ? void 0 : data.params.result);
68
+ }
69
+ }
70
+ sendSubscriptionRequest() {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ this._id = yield this._subscriptionManager.requestManager.send({
73
+ method: 'eth_subscribe',
74
+ params: this._buildSubscriptionParams(),
75
+ });
76
+ this.emit('connected', this._id);
77
+ return this._id;
78
+ });
79
+ }
80
+ get returnFormat() {
81
+ return this._returnFormat;
82
+ }
83
+ get subscriptionManager() {
84
+ return this._subscriptionManager;
85
+ }
86
+ resubscribe() {
87
+ return __awaiter(this, void 0, void 0, function* () {
88
+ yield this.unsubscribe();
89
+ yield this.subscribe();
90
+ });
91
+ }
92
+ unsubscribe() {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ if (!this.id) {
95
+ return;
96
+ }
97
+ yield this._subscriptionManager.removeSubscription(this);
98
+ });
99
+ }
100
+ sendUnsubscribeRequest() {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ yield this._subscriptionManager.requestManager.send({
103
+ method: 'eth_unsubscribe',
104
+ params: [this.id],
105
+ });
106
+ this._id = undefined;
107
+ });
108
+ }
109
+ // eslint-disable-next-line class-methods-use-this
110
+ formatSubscriptionResult(data) {
111
+ return data;
112
+ }
113
+ _processSubscriptionResult(data) {
114
+ this.emit('data', this.formatSubscriptionResult(data));
115
+ }
116
+ _processSubscriptionError(error) {
117
+ this.emit('error', error);
118
+ }
119
+ // eslint-disable-next-line class-methods-use-this
120
+ _buildSubscriptionParams() {
121
+ // This should be overridden in the subclass
122
+ throw new Error('Implement in the child class');
123
+ }
124
+ }
125
+ //# sourceMappingURL=web3_subscriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web3_subscriptions.js","sourceRoot":"","sources":["../../src/web3_subscriptions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAeE;;;;;;;;;;AAEF,gDAAgD;AAChD,OAAO,EAEN,q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,IAAI,CAAC;IACb,CAAC;IAEM,0BAA0B,CAAC,IAAwC;QACzE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAAC;IACxD,CAAC;IAEM,yBAAyB,CAAC,KAAY;QAC5C,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,kDAAkD;IACxC,wBAAwB;QACjC,4CAA4C;QAC5C,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IACjD,CAAC;CACD"}
@@ -0,0 +1,100 @@
1
+ import { Filter, Numbers, Topic, BlockInput, BlockOutput, LogsInput, LogsOutput, Mutable, PostInput, PostOutput, Proof, ReceiptInput, ReceiptOutput, SyncInput, SyncOutput, TransactionInput, TransactionOutput } from 'web3-types';
2
+ /**
3
+ * @deprecated Use format function from web3-utils package instead
4
+ * Will format the given storage key array values to hex strings.
5
+ */
6
+ export declare const inputStorageKeysFormatter: (keys: Array<string>) => string[];
7
+ /**
8
+ * @deprecated Use format function from web3-utils package instead
9
+ * Will format the given proof response from the node.
10
+ */
11
+ export declare const outputProofFormatter: (proof: Proof) => Proof;
12
+ /**
13
+ * @deprecated Use format function from web3-utils package instead
14
+ * Should the format output to a big number
15
+ */
16
+ export declare const outputBigIntegerFormatter: (number: Numbers) => number | bigint;
17
+ /**
18
+ * @deprecated Use format function from web3-utils package instead
19
+ * Returns the given block number as hex string or the predefined block number 'latest', 'pending', 'earliest', 'genesis'
20
+ */
21
+ export declare const inputBlockNumberFormatter: (blockNumber: Numbers | undefined) => string | undefined;
22
+ /**
23
+ * @deprecated Use format function from web3-utils package instead
24
+ * Returns the given block number as hex string or does return the defaultBlock property of the current module
25
+ */
26
+ export declare const inputDefaultBlockNumberFormatter: (blockNumber: Numbers | undefined, defaultBlock: Numbers) => string | undefined;
27
+ /**
28
+ * @deprecated Use format function from web3-utils package instead
29
+ * @param address
30
+ */
31
+ export declare const inputAddressFormatter: (address: string) => string | never;
32
+ /**
33
+ * @deprecated Use format function from web3-utils package instead
34
+ * Formats the input of a transaction and converts all values to HEX
35
+ */
36
+ export declare const txInputOptionsFormatter: (options: TransactionInput) => Mutable<TransactionOutput>;
37
+ /**
38
+ * @deprecated Use format function from web3-utils package instead
39
+ * Formats the input of a transaction and converts all values to HEX
40
+ */
41
+ export declare const inputCallFormatter: (options: TransactionInput, defaultAccount?: string) => Mutable<TransactionOutput>;
42
+ /**
43
+ * @deprecated Use format function from web3-utils package instead
44
+ * Formats the input of a transaction and converts all values to HEX
45
+ */
46
+ export declare const inputTransactionFormatter: (options: TransactionInput, defaultAccount?: string) => Mutable<TransactionOutput>;
47
+ /**
48
+ * @deprecated Use format function from web3-utils package instead
49
+ * Hex encodes the data passed to eth_sign and personal_sign
50
+ */
51
+ export declare const inputSignFormatter: (data: string) => string;
52
+ /**
53
+ * @deprecated Use format function from web3-utils package instead
54
+ * Formats the output of a transaction to its proper values
55
+ * @function outputTransactionFormatter
56
+ */
57
+ export declare const outputTransactionFormatter: (tx: TransactionInput) => TransactionOutput;
58
+ /**
59
+ * @deprecated Use format function from web3-utils package instead
60
+ * @param topic
61
+ */
62
+ export declare const inputTopicFormatter: (topic: Topic) => Topic | null;
63
+ /**
64
+ * @deprecated Use format function from web3-utils package instead
65
+ * @param filter
66
+ */
67
+ export declare const inputLogFormatter: (filter: Filter) => Filter;
68
+ /**
69
+ * @deprecated Use format function from web3-utils package instead
70
+ * Formats the output of a log
71
+ * @function outputLogFormatter
72
+ */
73
+ export declare const outputLogFormatter: (log: Partial<LogsInput>) => LogsOutput;
74
+ /**
75
+ * @deprecated Use format function from web3-utils package instead
76
+ * Formats the output of a transaction receipt to its proper values
77
+ */
78
+ export declare const outputTransactionReceiptFormatter: (receipt: ReceiptInput) => ReceiptOutput;
79
+ /**
80
+ * @deprecated Use format function from web3-utils package instead
81
+ * Formats the output of a block to its proper values
82
+ * @function outputBlockFormatter
83
+ */
84
+ export declare const outputBlockFormatter: (block: BlockInput) => BlockOutput;
85
+ /**
86
+ * @deprecated Use format function from web3-utils package instead
87
+ * Formats the input of a whisper post and converts all values to HEX
88
+ */
89
+ export declare const inputPostFormatter: (post: PostOutput) => PostInput;
90
+ /**
91
+ * @deprecated Use format function from web3-utils package instead
92
+ * Formats the output of a received post message
93
+ * @function outputPostFormatter
94
+ */
95
+ export declare const outputPostFormatter: (post: PostInput) => PostOutput;
96
+ /**
97
+ * @deprecated Use format function from web3-utils package instead
98
+ */
99
+ export declare const outputSyncingFormatter: (result: SyncInput) => SyncOutput;
100
+ //# sourceMappingURL=formatters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../src/formatters.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEN,MAAM,EACN,OAAO,EACP,KAAK,EACL,UAAU,EACV,WAAW,EACX,SAAS,EACT,UAAU,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,KAAK,EACL,YAAY,EACZ,aAAa,EACb,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,YAAY,CAAC;AAkBpB;;;GAGG;AACH,eAAO,MAAM,yBAAyB,SAAU,MAAM,MAAM,CAAC,aAAsC,CAAC;AAEpG;;;GAGG;AACH,eAAO,MAAM,oBAAoB,UAAW,KAAK,KAAG,KAIlD,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,yBAAyB,WAAY,OAAO,oBAAqB,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,yBAAyB,gBAAiB,OAAO,GAAG,SAAS,uBAkBzE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,gBAC/B,OAAO,GAAG,SAAS,gBAClB,OAAO,uBAOrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,YAAa,MAAM,KAAG,MAAM,GAAG,KAchE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,YAAa,gBAAgB,KAAG,QAAQ,iBAAiB,CA2C5F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,YAAa,gBAAgB,mBAAmB,MAAM,+BAUpF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,YAAa,gBAAgB,mBAAmB,MAAM,+BAe3F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,MAAM,WAAiD,CAAC;AAEjG;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,OAAQ,gBAAgB,KAAG,iBA4CjE,CAAC;AAEF;;;GAGG;AAGH,eAAO,MAAM,mBAAmB,UAAW,KAAK,KAAG,KAAK,GAAG,IAQ1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAAY,MAAM,WA+B/C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAAS,QAAQ,SAAS,CAAC,KAAG,UAqC5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC,YAAa,YAAY,KAAG,aAkCzE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,UAAW,UAAU,KAAG,WAkCxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,KAAG,SA0BrD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,SAAU,SAAS,KAAG,UAkCrD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,WAAY,SAAS,KAAG,UAgB1D,CAAC"}
@@ -0,0 +1,13 @@
1
+ export * from './web3_config.js';
2
+ export * from './web3_request_manager.js';
3
+ export * from './web3_subscription_manager.js';
4
+ export * from './web3_subscriptions.js';
5
+ export * from './web3_context.js';
6
+ export * from './web3_batch_request.js';
7
+ export * from './utils.js';
8
+ export * from './types.js';
9
+ export * from './formatters.js';
10
+ export * from './web3_promi_event.js';
11
+ export * from './web3_event_emitter.js';
12
+ export * as formatters from './formatters.js';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAiBA,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AAGxC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { HexString, JsonRpcPayload, JsonRpcResponse, Transaction, Web3APIMethod, Web3APIReturnType } from 'web3-types';
2
+ import { Schema } from 'web3-validator';
3
+ export declare type TransactionTypeParser = (transaction: Transaction) => HexString | undefined;
4
+ export interface Method {
5
+ name: string;
6
+ call: string;
7
+ }
8
+ export interface ExtensionObject {
9
+ property?: string;
10
+ methods: Method[];
11
+ }
12
+ export interface RequestManagerMiddleware<API> {
13
+ processRequest<ParamType = unknown[]>(request: JsonRpcPayload<ParamType>, options?: {
14
+ [key: string]: unknown;
15
+ }): Promise<JsonRpcPayload<ParamType>>;
16
+ processResponse<AnotherMethod extends Web3APIMethod<API>, ResponseType = Web3APIReturnType<API, AnotherMethod>>(response: JsonRpcResponse<ResponseType>, options?: {
17
+ [key: string]: unknown;
18
+ }): Promise<JsonRpcResponse<ResponseType>>;
19
+ }
20
+ export declare type CustomTransactionSchema = {
21
+ type: string;
22
+ properties: Record<string, Schema>;
23
+ };
24
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAiBA,OAAO,EACN,SAAS,EACT,cAAc,EACd,eAAe,EACf,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,oBAAY,qBAAqB,GAAG,CAAC,WAAW,EAAE,WAAW,KAAK,SAAS,GAAG,SAAS,CAAC;AAExF,MAAM,WAAW,MAAM;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB,CAAC,GAAG;IAC5C,cAAc,CAAC,SAAS,GAAG,OAAO,EAAE,EACnC,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,EAClC,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAClC,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC;IAEtC,eAAe,CACd,aAAa,SAAS,aAAa,CAAC,GAAG,CAAC,EACxC,YAAY,GAAG,iBAAiB,CAAC,GAAG,EAAE,aAAa,CAAC,EAEpD,QAAQ,EAAE,eAAe,CAAC,YAAY,CAAC,EACvC,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAClC,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC;CAC1C;AAED,oBAAY,uBAAuB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { EIP1193Provider, LegacyRequestProvider, LegacySendAsyncProvider, LegacySendProvider, SupportedProviders, Web3BaseProvider, MetaMaskProvider } from 'web3-types';
2
+ export declare const isWeb3Provider: <API extends unknown>(provider: SupportedProviders<API>) => provider is Web3BaseProvider<API>;
3
+ export declare const isMetaMaskProvider: <API extends unknown>(provider: SupportedProviders<API>) => provider is MetaMaskProvider<API>;
4
+ export declare const isLegacyRequestProvider: <API extends unknown>(provider: SupportedProviders<API>) => provider is LegacyRequestProvider;
5
+ export declare const isEIP1193Provider: <API extends unknown>(provider: SupportedProviders<API>) => provider is EIP1193Provider<API>;
6
+ export declare const isLegacySendProvider: <API extends unknown>(provider: SupportedProviders<API>) => provider is LegacySendProvider;
7
+ export declare const isLegacySendAsyncProvider: <API extends unknown>(provider: SupportedProviders<API>) => provider is LegacySendAsyncProvider;
8
+ export declare const isSupportedProvider: <API extends unknown>(provider: SupportedProviders<API>) => provider is SupportedProviders<API>;
9
+ export declare const isSupportSubscriptions: <API extends unknown>(provider: SupportedProviders<API>) => boolean;
10
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAiBA,OAAO,EACN,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAElB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,cAAc,+FAEsD,CAAC;AAElF,eAAO,MAAM,kBAAkB,+FAOX,CAAC;AAErB,eAAO,MAAM,uBAAuB,+FAKa,CAAC;AAElD,eAAO,MAAM,iBAAiB,8FAKwB,CAAC;AAEvD,eAAO,MAAM,oBAAoB,4FAEsD,CAAC;AAExF,eAAO,MAAM,yBAAyB,iGAE2D,CAAC;AAElG,eAAO,MAAM,mBAAmB,iGAQC,CAAC;AAClC,eAAO,MAAM,sBAAsB,8DAEhC,OAUF,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { JsonRpcBatchResponse, JsonRpcOptionalRequest, JsonRpcRequest } from 'web3-types';
2
+ import { Web3DeferredPromise } from 'web3-utils';
3
+ import { Web3RequestManager } from './web3_request_manager.js';
4
+ export declare const DEFAULT_BATCH_REQUEST_TIMEOUT = 1000;
5
+ export declare class Web3BatchRequest {
6
+ private readonly _requestManager;
7
+ private readonly _requests;
8
+ constructor(requestManager: Web3RequestManager);
9
+ get requests(): JsonRpcRequest<unknown[]>[];
10
+ add<ResponseType = unknown>(request: JsonRpcOptionalRequest<unknown>): Web3DeferredPromise<ResponseType>;
11
+ execute(options?: {
12
+ timeout?: number;
13
+ }): Promise<JsonRpcBatchResponse<unknown, unknown>>;
14
+ private _processBatchRequest;
15
+ private _abortAllRequests;
16
+ }
17
+ //# sourceMappingURL=web3_batch_request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web3_batch_request.d.ts","sourceRoot":"","sources":["../../src/web3_batch_request.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1F,OAAO,EAAW,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAElD,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAqB;IACrD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAGxB;gBAEiB,cAAc,EAAE,kBAAkB;IAKrD,IAAW,QAAQ,gCAElB;IAEM,GAAG,CAAC,YAAY,GAAG,OAAO,EAAE,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC;IAU9D,OAAO,CAAC,OAAO,CAAC,EAAE;QAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAwBrC,oBAAoB;IA8ClC,OAAO,CAAC,iBAAiB;CAKzB"}
@@ -0,0 +1,260 @@
1
+ import { Numbers, HexString, BlockNumberOrTag, Common, DataFormat } from 'web3-types';
2
+ import { CustomTransactionSchema, TransactionTypeParser } from './types.js';
3
+ import { TransactionBuilder } from './web3_context.js';
4
+ import { Web3EventEmitter } from './web3_event_emitter.js';
5
+ export interface Web3ConfigOptions {
6
+ handleRevert: boolean;
7
+ defaultAccount?: HexString;
8
+ defaultBlock: BlockNumberOrTag;
9
+ transactionSendTimeout: number;
10
+ transactionBlockTimeout: number;
11
+ transactionConfirmationBlocks: number;
12
+ transactionPollingInterval: number;
13
+ transactionPollingTimeout: number;
14
+ transactionReceiptPollingInterval?: number;
15
+ transactionConfirmationPollingInterval?: number;
16
+ blockHeaderTimeout: number;
17
+ maxListenersWarningThreshold: number;
18
+ contractDataInputFill: 'data' | 'input' | 'both';
19
+ defaultNetworkId?: Numbers;
20
+ defaultChain: string;
21
+ defaultHardfork: string;
22
+ ignoreGasPricing: boolean;
23
+ defaultCommon?: Common;
24
+ defaultTransactionType: Numbers;
25
+ defaultMaxPriorityFeePerGas: Numbers;
26
+ enableExperimentalFeatures: {
27
+ useSubscriptionWhenCheckingBlockTimeout: boolean;
28
+ useRpcCallSpecification: boolean;
29
+ };
30
+ transactionBuilder?: TransactionBuilder;
31
+ transactionTypeParser?: TransactionTypeParser;
32
+ customTransactionSchema?: CustomTransactionSchema;
33
+ defaultReturnFormat: DataFormat;
34
+ }
35
+ declare type ConfigEvent<T, P extends keyof T = keyof T> = P extends unknown ? {
36
+ name: P;
37
+ oldValue: T[P];
38
+ newValue: T[P];
39
+ } : never;
40
+ export declare enum Web3ConfigEvent {
41
+ CONFIG_CHANGE = "CONFIG_CHANGE"
42
+ }
43
+ export declare abstract class Web3Config extends Web3EventEmitter<{
44
+ [Web3ConfigEvent.CONFIG_CHANGE]: ConfigEvent<Web3ConfigOptions>;
45
+ }> implements Web3ConfigOptions {
46
+ config: Web3ConfigOptions;
47
+ constructor(options?: Partial<Web3ConfigOptions>);
48
+ setConfig(options: Partial<Web3ConfigOptions>): void;
49
+ /**
50
+ * The `handleRevert` options property returns the revert reason string if enabled for the following methods:
51
+ * - web3.eth.sendTransaction()
52
+ * - web3.eth.call()
53
+ * - myContract.methods.myMethod().call()
54
+ * - myContract.methods.myMethod().send()
55
+ * Default is `false`.
56
+ *
57
+ * `Note`: At the moment `handleRevert` is only supported for `sendTransaction` and not for `sendSignedTransaction`
58
+ */
59
+ get handleRevert(): boolean;
60
+ /**
61
+ * Will set the handleRevert
62
+ */
63
+ set handleRevert(val: boolean);
64
+ /**
65
+ * The `contractDataInputFill` options property will allow you to set the hash of the method signature and encoded parameters to the property
66
+ * either `data`, `input` or both within your contract.
67
+ * This will affect the contracts send, call and estimateGas methods
68
+ * Default is `data`.
69
+ */
70
+ get contractDataInputFill(): "input" | "data" | "both";
71
+ /**
72
+ * Will set the contractDataInputFill
73
+ */
74
+ set contractDataInputFill(val: "input" | "data" | "both");
75
+ /**
76
+ * This default address is used as the default `from` property, if no `from` property is specified in for the following methods:
77
+ * - web3.eth.sendTransaction()
78
+ * - web3.eth.call()
79
+ * - myContract.methods.myMethod().call()
80
+ * - myContract.methods.myMethod().send()
81
+ */
82
+ get defaultAccount(): string | undefined;
83
+ /**
84
+ * Will set the default account.
85
+ */
86
+ set defaultAccount(val: string | undefined);
87
+ /**
88
+ * The default block is used for certain methods. You can override it by passing in the defaultBlock as last parameter. The default value is `"latest"`.
89
+ * - web3.eth.getBalance()
90
+ * - web3.eth.getCode()
91
+ * - web3.eth.getTransactionCount()
92
+ * - web3.eth.getStorageAt()
93
+ * - web3.eth.call()
94
+ * - myContract.methods.myMethod().call()
95
+ */
96
+ get defaultBlock(): BlockNumberOrTag;
97
+ /**
98
+ * Will set the default block.
99
+ *
100
+ * - A block number
101
+ * - `"earliest"` - String: The genesis block
102
+ * - `"latest"` - String: The latest block (current head of the blockchain)
103
+ * - `"pending"` - String: The currently mined block (including pending transactions)
104
+ * - `"finalized"` - String: (For POS networks) The finalized block is one which has been accepted as canonical by greater than 2/3 of validators
105
+ * - `"safe"` - String: (For POS networks) The safe head block is one which under normal network conditions, is expected to be included in the canonical chain. Under normal network conditions the safe head and the actual tip of the chain will be equivalent (with safe head trailing only by a few seconds). Safe heads will be less likely to be reorged than the proof of work network's latest blocks.
106
+ */
107
+ set defaultBlock(val: BlockNumberOrTag);
108
+ /**
109
+ * The time used to wait for Ethereum Node to return the sent transaction result.
110
+ * Note: If the RPC call stuck at the Node and therefor timed-out, the transaction may still be pending or even mined by the Network. We recommend checking the pending transactions in such a case.
111
+ * Default is `750` seconds (12.5 minutes).
112
+ */
113
+ get transactionSendTimeout(): number;
114
+ /**
115
+ * Will set the transactionSendTimeout.
116
+ */
117
+ set transactionSendTimeout(val: number);
118
+ /**
119
+ * The `transactionBlockTimeout` is used over socket-based connections. This option defines the amount of new blocks it should wait until the first confirmation happens, otherwise the PromiEvent rejects with a timeout error.
120
+ * Default is `50`.
121
+ */
122
+ get transactionBlockTimeout(): number;
123
+ /**
124
+ * Will set the transactionBlockTimeout.
125
+ */
126
+ set transactionBlockTimeout(val: number);
127
+ /**
128
+ * This defines the number of blocks it requires until a transaction is considered confirmed.
129
+ * Default is `24`.
130
+ */
131
+ get transactionConfirmationBlocks(): number;
132
+ /**
133
+ * Will set the transactionConfirmationBlocks.
134
+ */
135
+ set transactionConfirmationBlocks(val: number);
136
+ /**
137
+ * Used over HTTP connections. This option defines the number of seconds between Web3 calls for a receipt which confirms that a transaction was mined by the network.
138
+ * Default is `1000` ms.
139
+ */
140
+ get transactionPollingInterval(): number;
141
+ /**
142
+ * Will set the transactionPollingInterval.
143
+ */
144
+ set transactionPollingInterval(val: number);
145
+ /**
146
+ * Used over HTTP connections. This option defines the number of seconds Web3 will wait for a receipt which confirms that a transaction was mined by the network. Note: If this method times out, the transaction may still be pending.
147
+ * Default is `750` seconds (12.5 minutes).
148
+ */
149
+ get transactionPollingTimeout(): number;
150
+ /**
151
+ * Will set the transactionPollingTimeout.
152
+ */
153
+ set transactionPollingTimeout(val: number);
154
+ /**
155
+ * The `transactionPollingInterval` is used over HTTP connections. This option defines the number of seconds between Web3 calls for a receipt which confirms that a transaction was mined by the network.
156
+ * Default is `undefined`
157
+ */
158
+ get transactionReceiptPollingInterval(): number | undefined;
159
+ /**
160
+ * Will set the transactionReceiptPollingInterval
161
+ */
162
+ set transactionReceiptPollingInterval(val: number | undefined);
163
+ get transactionConfirmationPollingInterval(): number | undefined;
164
+ set transactionConfirmationPollingInterval(val: number | undefined);
165
+ /**
166
+ * The blockHeaderTimeout is used over socket-based connections. This option defines the amount seconds it should wait for `'newBlockHeaders'` event before falling back to polling to fetch transaction receipt.
167
+ * Default is `10` seconds.
168
+ */
169
+ get blockHeaderTimeout(): number;
170
+ /**
171
+ * Will set the blockHeaderTimeout
172
+ */
173
+ set blockHeaderTimeout(val: number);
174
+ /**
175
+ * The enableExperimentalFeatures is used to enable trying new experimental features that are still not fully implemented or not fully tested or still have some related issues.
176
+ * Default is `false` for every feature.
177
+ */
178
+ get enableExperimentalFeatures(): {
179
+ useSubscriptionWhenCheckingBlockTimeout: boolean;
180
+ useRpcCallSpecification: boolean;
181
+ };
182
+ /**
183
+ * Will set the enableExperimentalFeatures
184
+ */
185
+ set enableExperimentalFeatures(val: {
186
+ useSubscriptionWhenCheckingBlockTimeout: boolean;
187
+ useRpcCallSpecification: boolean;
188
+ });
189
+ get maxListenersWarningThreshold(): number;
190
+ set maxListenersWarningThreshold(val: number);
191
+ get defaultReturnFormat(): DataFormat;
192
+ set defaultReturnFormat(val: DataFormat);
193
+ get defaultNetworkId(): Numbers | undefined;
194
+ set defaultNetworkId(val: Numbers | undefined);
195
+ get defaultChain(): string;
196
+ set defaultChain(val: string);
197
+ /**
198
+ * Will return the default hardfork. Default is `london`
199
+ * The default hardfork property can be one of the following:
200
+ * - `chainstart`
201
+ * - `homestead`
202
+ * - `dao`
203
+ * - `tangerineWhistle`
204
+ * - `spuriousDragon`
205
+ * - `byzantium`
206
+ * - `constantinople`
207
+ * - `petersburg`
208
+ * - `istanbul`
209
+ * - `berlin`
210
+ * - `london`
211
+ * - 'arrowGlacier',
212
+ * - 'tangerineWhistle',
213
+ * - 'muirGlacier'
214
+ *
215
+ */
216
+ get defaultHardfork(): string;
217
+ /**
218
+ * Will set the default hardfork.
219
+ *
220
+ */
221
+ set defaultHardfork(val: string);
222
+ /**
223
+ *
224
+ * Will get the default common property
225
+ * The default common property does contain the following Common object:
226
+ * - `customChain` - `Object`: The custom chain properties
227
+ * - `name` - `string`: (optional) The name of the chain
228
+ * - `networkId` - `number`: Network ID of the custom chain
229
+ * - `chainId` - `number`: Chain ID of the custom chain
230
+ * - `baseChain` - `string`: (optional) mainnet, goerli, kovan, rinkeby, or ropsten
231
+ * - `hardfork` - `string`: (optional) chainstart, homestead, dao, tangerineWhistle, spuriousDragon, byzantium, constantinople, petersburg, istanbul, berlin, or london
232
+ * Default is `undefined`.
233
+ *
234
+ */
235
+ get defaultCommon(): Common | undefined;
236
+ /**
237
+ * Will set the default common property
238
+ *
239
+ */
240
+ set defaultCommon(val: Common | undefined);
241
+ /**
242
+ * Will get the ignoreGasPricing property. When true, the gasPrice, maxPriorityFeePerGas, and maxFeePerGas will not be autofilled in the transaction object.
243
+ * Useful when you want wallets to handle gas pricing.
244
+ */
245
+ get ignoreGasPricing(): boolean;
246
+ set ignoreGasPricing(val: boolean);
247
+ get defaultTransactionType(): Numbers;
248
+ set defaultTransactionType(val: Numbers);
249
+ get defaultMaxPriorityFeePerGas(): Numbers;
250
+ set defaultMaxPriorityFeePerGas(val: Numbers);
251
+ get transactionBuilder(): TransactionBuilder<unknown> | undefined;
252
+ set transactionBuilder(val: TransactionBuilder<unknown> | undefined);
253
+ get transactionTypeParser(): TransactionTypeParser | undefined;
254
+ set transactionTypeParser(val: TransactionTypeParser | undefined);
255
+ get customTransactionSchema(): CustomTransactionSchema | undefined;
256
+ set customTransactionSchema(schema: CustomTransactionSchema | undefined);
257
+ private _triggerConfigChange;
258
+ }
259
+ export {};
260
+ //# sourceMappingURL=web3_config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web3_config.d.ts","sourceRoot":"","sources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