Skip to content

Commit

Permalink
'bump'
Browse files Browse the repository at this point in the history
  • Loading branch information
tenbits committed Jan 3, 2024
1 parent 7cc8e87 commit aaa2a92
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
18 changes: 16 additions & 2 deletions lib/0xweb.js
Original file line number Diff line number Diff line change
Expand Up @@ -21533,7 +21533,7 @@ var $rpc;
async function waitForReceipt(rpc, hash) {
let knownTx = false;
let startedAt = Date.now();
let MEM_POOL_TIMEOUT = 10000;
let MEM_POOL_TIMEOUT = 30000;
let TX_TIMEOUT = Infinity;
let receipt = await _promise_1.$promise.waitForObject(async () => {
if (knownTx === false) {
Expand Down Expand Up @@ -40295,6 +40295,9 @@ const Web3ClientFactory_1 = _dequanto_src_clients_Web3ClientFactory;
const ContractDeployer_1 = _dequanto_src_contracts_deploy_ContractDeployer;
const _sig_1 = _dequanto_src_utils__sig;
const _address_1 = _dequanto_src_utils__address;
const _promise_1 = _dequanto_src_utils__promise;
const _date_1 = _dequanto_src_utils__date;
const _hex_1 = _dequanto_src_utils__hex;
class HardhatProvider {
constructor() {
/* lazy load */
Expand Down Expand Up @@ -40386,6 +40389,17 @@ class HardhatProvider {
}
let address = _address_1.$address.toChecksum(receipt.contractAddress);
_logger_1.$logger.log(`${receipt.status ? '✅' : '⛔'} Contract bold<${Ctor.name}> deployed to bold<${address}> in tx:${receipt.transactionHash}`);
await _promise_1.$promise.waitForTrue(async () => {
let code = await client.getCode(address);
if (_hex_1.$hex.isEmpty(code)) {
_logger_1.$logger.log(`⏳ Waiting for the contract data to be indexed...`);
return false;
}
return true;
}, {
timeoutMessage: `${receipt.transactionHash} did not deploy in 30s`,
timeoutMs: _date_1.$date.parseTimespan('30s')
});
let contract = new Ctor(address, client);
return {
contract,
Expand Down Expand Up @@ -52527,7 +52541,7 @@ class GnosisSafeFactory {
null);
let tx = await safeFactoryContract.createProxyWithNonce(owner, safeContract.address, // _singleton,
setupData.data, // initializer,
BigInt(params.saltNonce ?? exports.PREDETERMINED_SALT_NONCE));
BigInt(params.saltNonce ?? (BigInt(exports.PREDETERMINED_SALT_NONCE) + BigInt(Date.now()))));
let receipt = await tx.wait();
let logs = safeFactoryContract.extractLogsProxyCreation(receipt);
_require_1.$require.eq(logs.length, 1, `Unexpected ProxyCreation Log count: ${logs.length}. In transaction ${receipt.transactionHash} `);
Expand Down
18 changes: 16 additions & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -21543,7 +21543,7 @@ var $rpc;
async function waitForReceipt(rpc, hash) {
let knownTx = false;
let startedAt = Date.now();
let MEM_POOL_TIMEOUT = 10000;
let MEM_POOL_TIMEOUT = 30000;
let TX_TIMEOUT = Infinity;
let receipt = await _promise_1.$promise.waitForObject(async () => {
if (knownTx === false) {
Expand Down Expand Up @@ -40305,6 +40305,9 @@ const Web3ClientFactory_1 = _dequanto_src_clients_Web3ClientFactory;
const ContractDeployer_1 = _dequanto_src_contracts_deploy_ContractDeployer;
const _sig_1 = _dequanto_src_utils__sig;
const _address_1 = _dequanto_src_utils__address;
const _promise_1 = _dequanto_src_utils__promise;
const _date_1 = _dequanto_src_utils__date;
const _hex_1 = _dequanto_src_utils__hex;
class HardhatProvider {
constructor() {
/* lazy load */
Expand Down Expand Up @@ -40396,6 +40399,17 @@ class HardhatProvider {
}
let address = _address_1.$address.toChecksum(receipt.contractAddress);
_logger_1.$logger.log(`${receipt.status ? '✅' : '⛔'} Contract bold<${Ctor.name}> deployed to bold<${address}> in tx:${receipt.transactionHash}`);
await _promise_1.$promise.waitForTrue(async () => {
let code = await client.getCode(address);
if (_hex_1.$hex.isEmpty(code)) {
_logger_1.$logger.log(`⏳ Waiting for the contract data to be indexed...`);
return false;
}
return true;
}, {
timeoutMessage: `${receipt.transactionHash} did not deploy in 30s`,
timeoutMs: _date_1.$date.parseTimespan('30s')
});
let contract = new Ctor(address, client);
return {
contract,
Expand Down Expand Up @@ -52537,7 +52551,7 @@ class GnosisSafeFactory {
null);
let tx = await safeFactoryContract.createProxyWithNonce(owner, safeContract.address, // _singleton,
setupData.data, // initializer,
BigInt(params.saltNonce ?? exports.PREDETERMINED_SALT_NONCE));
BigInt(params.saltNonce ?? (BigInt(exports.PREDETERMINED_SALT_NONCE) + BigInt(Date.now()))));
let receipt = await tx.wait();
let logs = safeFactoryContract.extractLogsProxyCreation(receipt);
_require_1.$require.eq(logs.length, 1, `Unexpected ProxyCreation Log count: ${logs.length}. In transaction ${receipt.transactionHash} `);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "0xweb",
"description": "Contract package manager and other web3 tools",
"version": "0.10.33",
"version": "0.10.34",
"main": "./lib/0xweb.js",
"types": "./lib/0xweb.d.ts",
"bin": {
Expand Down

0 comments on commit aaa2a92

Please sign in to comment.