@antseed/buyer-core 0.1.26 → 0.1.27
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AbstractProvider, type AbstractSigner, type InterfaceAbi } from 'ethers';
|
|
1
|
+
import { type AbstractProvider, type AbstractSigner, type InterfaceAbi, type TransactionReceipt, type TransactionResponse } from 'ethers';
|
|
2
2
|
export declare const ERC20_ABI: readonly ["function approve(address spender, uint256 amount) external returns (bool)", "function balanceOf(address owner) external view returns (uint256)", "function allowance(address owner, address spender) external view returns (uint256)"];
|
|
3
3
|
export declare abstract class BaseEvmClient {
|
|
4
4
|
protected _provider: AbstractProvider;
|
|
@@ -18,6 +18,16 @@ export declare abstract class BaseEvmClient {
|
|
|
18
18
|
* Approve USDC spending then execute a contract method.
|
|
19
19
|
*/
|
|
20
20
|
protected _approveAndExec(signer: AbstractSigner, usdcAddress: string, amount: bigint, abi: InterfaceAbi, method: string, ...args: unknown[]): Promise<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Wait until `tx` is mined, in place of `tx.wait()`. ethers' wait polls
|
|
23
|
+
* receipts from a block listener whose promise nobody handles, so a single
|
|
24
|
+
* RPC timeout there is an unhandled rejection that exits the process. Here
|
|
25
|
+
* read errors are retried; a revert throws CALL_EXCEPTION like `wait()`,
|
|
26
|
+
* and a tx whose nonce was used by another tx throws as dropped/replaced.
|
|
27
|
+
*/
|
|
28
|
+
protected _waitForReceipt(tx: Pick<TransactionResponse, 'hash' | 'from' | 'nonce'>): Promise<TransactionReceipt>;
|
|
29
|
+
/** The tx's nonce is mined but the tx itself has no receipt (checked after the nonce read, to not race its mining). */
|
|
30
|
+
private _nonceUsedElsewhere;
|
|
21
31
|
/** Apply the gas buffer and broadcast on the signer's next nonce. */
|
|
22
32
|
private _sendBuffered;
|
|
23
33
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-evm-client.d.ts","sourceRoot":"","sources":["../src/base-evm-client.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"base-evm-client.d.ts","sourceRoot":"","sources":["../src/base-evm-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAEnB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EAEvB,KAAK,mBAAmB,EACzB,MAAM,QAAQ,CAAC;AAuChB,eAAO,MAAM,SAAS,mPAIZ,CAAC;AAkBX,8BAAsB,aAAa;IACjC,SAAS,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACtC,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAC5C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;gBAEzB,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM;IAMpG,IAAI,QAAQ,IAAI,gBAAgB,CAA2B;IAE3D;;;OAGG;IACH,YAAY,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI;IAI9C,IAAI,eAAe,IAAI,MAAM,CAAkC;IAE/D,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc;cAKlD,UAAU,CACxB,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,MAAM,EACd,GAAG,IAAI,EAAE,OAAO,EAAE,GACjB,OAAO,CAAC,MAAM,CAAC;IAUlB;;OAEG;cACa,eAAe,CAC7B,MAAM,EAAE,cAAc,EACtB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,MAAM,EACd,GAAG,IAAI,EAAE,OAAO,EAAE,GACjB,OAAO,CAAC,MAAM,CAAC;IAUlB;;;;;;OAMG;cACa,eAAe,CAAC,EAAE,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAqBtH,uHAAuH;YACzG,mBAAmB;IAOjC,qEAAqE;YACvD,aAAa;IAa3B;;;;;;;OAOG;cACa,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAoBnG,OAAO,CAAC,SAAS;CAGlB"}
|
package/dist/base-evm-client.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { Contract, FallbackProvider, FetchRequest, JsonRpcProvider, Network, } from 'ethers';
|
|
1
|
+
import { Contract, FallbackProvider, FetchRequest, JsonRpcProvider, makeError, Network, } from 'ethers';
|
|
2
2
|
const FALLBACK_STALL_TIMEOUT_MS = 750;
|
|
3
3
|
const JSON_RPC_REQUEST_TIMEOUT_MS = 10_000;
|
|
4
|
+
const RECEIPT_POLL_MS = 2_000;
|
|
5
|
+
/** Polls between checks that the tx's nonce was not taken by another tx. */
|
|
6
|
+
const NONCE_CHECK_EVERY_POLLS = 5;
|
|
4
7
|
function createJsonRpcProvider(url, network, opts) {
|
|
5
8
|
const request = new FetchRequest(url);
|
|
6
9
|
request.timeout = JSON_RPC_REQUEST_TIMEOUT_MS;
|
|
@@ -21,6 +24,14 @@ function buildProvider(rpcUrl, fallbackRpcUrls, evmChainId) {
|
|
|
21
24
|
}));
|
|
22
25
|
return new FallbackProvider(configs, network, { quorum: 1 });
|
|
23
26
|
}
|
|
27
|
+
function revertError(receipt) {
|
|
28
|
+
return makeError('transaction execution reverted', 'CALL_EXCEPTION', {
|
|
29
|
+
action: 'sendTransaction',
|
|
30
|
+
data: null, reason: null, invocation: null, revert: null,
|
|
31
|
+
transaction: { to: receipt.to, from: receipt.from, data: '' },
|
|
32
|
+
receipt,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
24
35
|
export const ERC20_ABI = [
|
|
25
36
|
'function approve(address spender, uint256 amount) external returns (bool)',
|
|
26
37
|
'function balanceOf(address owner) external view returns (uint256)',
|
|
@@ -70,9 +81,7 @@ export class BaseEvmClient {
|
|
|
70
81
|
const contract = new Contract(this._contractAddress, abi, connected);
|
|
71
82
|
const populated = await contract.getFunction(method).populateTransaction(...args);
|
|
72
83
|
const tx = await this._sendBuffered(connected, signerAddress, populated);
|
|
73
|
-
const receipt = await
|
|
74
|
-
if (!receipt)
|
|
75
|
-
throw new Error('Transaction was dropped or replaced');
|
|
84
|
+
const receipt = await this._waitForReceipt(tx);
|
|
76
85
|
return receipt.hash;
|
|
77
86
|
}
|
|
78
87
|
/**
|
|
@@ -84,11 +93,47 @@ export class BaseEvmClient {
|
|
|
84
93
|
const usdc = new Contract(usdcAddress, ERC20_ABI, connected);
|
|
85
94
|
const approvePopulated = await usdc.getFunction('approve').populateTransaction(this._contractAddress, amount);
|
|
86
95
|
const approveTx = await this._sendBuffered(connected, signerAddress, approvePopulated);
|
|
87
|
-
|
|
88
|
-
if (!approveReceipt)
|
|
89
|
-
throw new Error('Approve transaction was dropped or replaced');
|
|
96
|
+
await this._waitForReceipt(approveTx);
|
|
90
97
|
return this._execWrite(signer, abi, method, ...args);
|
|
91
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Wait until `tx` is mined, in place of `tx.wait()`. ethers' wait polls
|
|
101
|
+
* receipts from a block listener whose promise nobody handles, so a single
|
|
102
|
+
* RPC timeout there is an unhandled rejection that exits the process. Here
|
|
103
|
+
* read errors are retried; a revert throws CALL_EXCEPTION like `wait()`,
|
|
104
|
+
* and a tx whose nonce was used by another tx throws as dropped/replaced.
|
|
105
|
+
*/
|
|
106
|
+
async _waitForReceipt(tx) {
|
|
107
|
+
for (let poll = 1;; poll += 1) {
|
|
108
|
+
try {
|
|
109
|
+
const receipt = await this._provider.getTransactionReceipt(tx.hash);
|
|
110
|
+
if (receipt) {
|
|
111
|
+
if (receipt.status === 0)
|
|
112
|
+
throw revertError(receipt);
|
|
113
|
+
return receipt;
|
|
114
|
+
}
|
|
115
|
+
if (poll % NONCE_CHECK_EVERY_POLLS === 0 && await this._nonceUsedElsewhere(tx)) {
|
|
116
|
+
throw new Error('Transaction was dropped or replaced');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
catch (err) {
|
|
120
|
+
if (err instanceof Error && (err.code === 'CALL_EXCEPTION' || err.message === 'Transaction was dropped or replaced')) {
|
|
121
|
+
throw err;
|
|
122
|
+
}
|
|
123
|
+
// Transient RPC failure (timeout, 5xx, rate limit): poll again.
|
|
124
|
+
}
|
|
125
|
+
await new Promise((resolve) => setTimeout(resolve, RECEIPT_POLL_MS));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/** The tx's nonce is mined but the tx itself has no receipt (checked after the nonce read, to not race its mining). */
|
|
129
|
+
async _nonceUsedElsewhere(tx) {
|
|
130
|
+
if (!tx.from || typeof tx.nonce !== 'number')
|
|
131
|
+
return false;
|
|
132
|
+
const mined = await this._provider.getTransactionCount(tx.from, 'latest');
|
|
133
|
+
if (mined <= tx.nonce)
|
|
134
|
+
return false;
|
|
135
|
+
return (await this._provider.getTransactionReceipt(tx.hash)) === null;
|
|
136
|
+
}
|
|
92
137
|
/** Apply the gas buffer and broadcast on the signer's next nonce. */
|
|
93
138
|
async _sendBuffered(connected, signerAddress, populated) {
|
|
94
139
|
return this._sendWithNonce(signerAddress, async (nonce) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-evm-client.js","sourceRoot":"","sources":["../src/base-evm-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,OAAO,
|
|
1
|
+
{"version":3,"file":"base-evm-client.js","sourceRoot":"","sources":["../src/base-evm-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,YA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;QACpF,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACpC,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QACtD,IAAI,OAAmB,CAAC;QACxB,MAAM,IAAI,GAAG,IAAI,OAAO,CAAO,CAAC,CAAC,EAAE,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAE1B,MAAM,IAAI,CAAC;QACX,IAAI,CAAC;YACH,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;YAClF,MAAM,UAAU,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACzC,MAAM,KAAK,GAAG,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;YAC3F,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC;YACjC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;YACjC,OAAO,MAAM,CAAC;QAChB,CAAC;gBAAS,CAAC;YACT,OAAQ,EAAE,CAAC;QACb,CAAC;IACH,CAAC;IAEO,SAAS,CAAC,OAAe;QAC/B,OAAO,GAAG,IAAI,CAAC,WAAW,IAAI,OAAO,EAAE,CAAC;IAC1C,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antseed/buyer-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"description": "Transport-agnostic AntSeed buyer machinery: request handling, payment negotiation, channel accounting. Portable — no Node-only dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|