Skip to content

Commit 510a68b

Browse files
committed
fix: confirmations fixes
1 parent 62e5eee commit 510a68b

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

packages/core/src/lib/constants/chain.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ export const CHAIN_INFO: Record<
143143
chainId: 'TBD',
144144
vm: VM.EVM,
145145
defaultRPC: [''],
146-
confirmations: 6,
146+
confirmations: 1,
147147
fastConfirmations: 0,
148148
timeout: 30000,
149149
},
150150
[CHAIN.PUSH_TESTNET_DONUT]: {
151151
chainId: '42101',
152152
vm: VM.EVM,
153153
defaultRPC: ['https://evm.donut.rpc.push.org/'],
154-
confirmations: 3,
154+
confirmations: 1,
155155
fastConfirmations: 0,
156156
timeout: 30000,
157157
// Push Chain AMM - Uniswap V3
@@ -165,7 +165,7 @@ export const CHAIN_INFO: Record<
165165
chainId: '9000',
166166
vm: VM.EVM,
167167
defaultRPC: ['http://localhost:8545'],
168-
confirmations: 3,
168+
confirmations: 1,
169169
fastConfirmations: 0,
170170
timeout: 30000,
171171
},
@@ -176,7 +176,7 @@ export const CHAIN_INFO: Record<
176176
vm: VM.EVM,
177177
lockerContract: 'TBD',
178178
defaultRPC: [mainnet.rpcUrls.default.http[0]],
179-
confirmations: 2,
179+
confirmations: 1,
180180
fastConfirmations: 0,
181181
timeout: 60000,
182182
},
@@ -185,7 +185,7 @@ export const CHAIN_INFO: Record<
185185
vm: VM.EVM,
186186
lockerContract: '0x05bD7a3D18324c1F7e216f7fBF2b15985aE5281A',
187187
defaultRPC: ['https://ethereum-sepolia-rpc.publicnode.com'],
188-
confirmations: 2,
188+
confirmations: 1,
189189
fastConfirmations: 0,
190190
timeout: 120000,
191191
dex: {
@@ -199,7 +199,7 @@ export const CHAIN_INFO: Record<
199199
vm: VM.EVM,
200200
lockerContract: '0x2cd870e0166Ba458dEC615168Fd659AacD795f34',
201201
defaultRPC: [arbitrumSepolia.rpcUrls.default.http[0]],
202-
confirmations: 2,
202+
confirmations: 1,
203203
fastConfirmations: 0,
204204
timeout: 30000,
205205
dex: {
@@ -213,7 +213,7 @@ export const CHAIN_INFO: Record<
213213
vm: VM.EVM,
214214
lockerContract: '0xFD4fef1F43aFEc8b5bcdEEc47f35a1431479aC16',
215215
defaultRPC: [baseSepolia.rpcUrls.default.http[0]],
216-
confirmations: 2,
216+
confirmations: 1,
217217
fastConfirmations: 0,
218218
timeout: 30000,
219219
dex: {
@@ -227,7 +227,7 @@ export const CHAIN_INFO: Record<
227227
vm: VM.EVM,
228228
lockerContract: '0x44aFFC61983F4348DdddB886349eb992C061EaC0',
229229
defaultRPC: [bscTestnet.rpcUrls.default.http[0]],
230-
confirmations: 2,
230+
confirmations: 1,
231231
fastConfirmations: 0,
232232
timeout: 30000,
233233
},

packages/core/src/lib/push-chain/push-chain.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,7 @@ async function testFeeAbstractionValueOnlyDeployUEA(
19691969
const txHash = await walletClient.sendTransaction({
19701970
to: newAccount.address,
19711971
chain: config.viemChain,
1972-
value: PushChain.utils.helpers.parseUnits('0.00051', 18),
1972+
value: PushChain.utils.helpers.parseUnits('0.001', 18),
19731973
});
19741974

19751975
// Wait for transaction to be mined
@@ -2092,7 +2092,7 @@ async function testFeeAbstractionPayloadOnlyDeployUEA(
20922092
const txHash = await walletClient.sendTransaction({
20932093
to: newAccount.address,
20942094
chain: config.viemChain,
2095-
value: PushChain.utils.helpers.parseUnits('0.00051', 18),
2095+
value: PushChain.utils.helpers.parseUnits('0.001', 18),
20962096
});
20972097

20982098
// Wait for transaction to be mined

packages/core/src/lib/utils.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ describe('Helpers Utils Namespace', () => {
185185
CHAIN.ETHEREUM_SEPOLIA,
186186
CHAIN.ARBITRUM_SEPOLIA,
187187
CHAIN.BASE_SEPOLIA,
188+
CHAIN.BNB_TESTNET,
188189
CHAIN.SOLANA_DEVNET,
189190
],
190191
});
@@ -199,6 +200,7 @@ describe('Helpers Utils Namespace', () => {
199200
CHAIN.ETHEREUM_SEPOLIA,
200201
CHAIN.ARBITRUM_SEPOLIA,
201202
CHAIN.BASE_SEPOLIA,
203+
CHAIN.BNB_TESTNET,
202204
CHAIN.SOLANA_DEVNET,
203205
],
204206
});
@@ -213,6 +215,7 @@ describe('Helpers Utils Namespace', () => {
213215
CHAIN.ETHEREUM_SEPOLIA,
214216
CHAIN.ARBITRUM_SEPOLIA,
215217
CHAIN.BASE_SEPOLIA,
218+
CHAIN.BNB_TESTNET,
216219
CHAIN.SOLANA_DEVNET,
217220
],
218221
});

packages/core/src/lib/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,21 @@ export class Utils {
113113
CHAIN.ETHEREUM_SEPOLIA,
114114
CHAIN.ARBITRUM_SEPOLIA,
115115
CHAIN.BASE_SEPOLIA,
116+
CHAIN.BNB_TESTNET,
116117
CHAIN.SOLANA_DEVNET,
117118
],
118119
[PUSH_NETWORK.TESTNET_DONUT]: [
119120
CHAIN.ETHEREUM_SEPOLIA,
120121
CHAIN.ARBITRUM_SEPOLIA,
121122
CHAIN.BASE_SEPOLIA,
123+
CHAIN.BNB_TESTNET,
122124
CHAIN.SOLANA_DEVNET,
123125
],
124126
[PUSH_NETWORK.LOCALNET]: [
125127
CHAIN.ETHEREUM_SEPOLIA,
126128
CHAIN.ARBITRUM_SEPOLIA,
127129
CHAIN.BASE_SEPOLIA,
130+
CHAIN.BNB_TESTNET,
128131
CHAIN.SOLANA_DEVNET,
129132
],
130133
};

0 commit comments

Comments
 (0)