Compare commits
No commits in common. "419cbde251bbee77834eecd3cb6cc2d2e09e58e7" and "a2a4b86ccc418b3b76c4ce5e5ea738e325abad62" have entirely different histories.
419cbde251
...
a2a4b86ccc
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.4.6",
|
"version": "0.4.4",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -129,18 +129,10 @@ const Bridge = ({ chainId, address, config, connect }) => {
|
|||||||
});
|
});
|
||||||
const blockCommitments = useBlockCommitments({ evmChainId: chainId });
|
const blockCommitments = useBlockCommitments({ evmChainId: chainId });
|
||||||
const disabledValidators = useDisabledValidators();
|
const disabledValidators = useDisabledValidators();
|
||||||
const transactionApplausedDirect = useApplauseDetails({
|
const transactionApplaused = useApplauseDetails({
|
||||||
currentSession: watchTransaction?.sessionIndex ?? currentSession,
|
currentSession: watchTransaction?.sessionIndex ?? currentSession,
|
||||||
argsHash: hashedArguments
|
argsHash: hashedArguments
|
||||||
});
|
});
|
||||||
const transactionApplausedIncremented = useApplauseDetails({
|
|
||||||
currentSession: watchTransaction ? watchTransaction.sessionIndex + 1 : undefined,
|
|
||||||
argsHash: hashedArguments
|
|
||||||
});
|
|
||||||
|
|
||||||
const transactionApplaused = useMemo(() => {
|
|
||||||
return transactionApplausedDirect || transactionApplausedIncremented;
|
|
||||||
}, [transactionApplausedDirect, transactionApplausedIncremented])
|
|
||||||
|
|
||||||
const finalityDelay = Number(evmNetwork?.finality_delay ?? 0n);
|
const finalityDelay = Number(evmNetwork?.finality_delay ?? 0n);
|
||||||
|
|
||||||
@ -280,11 +272,8 @@ const Bridge = ({ chainId, address, config, connect }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const storeTransactionHash = (txHash, receiver, amount) => {
|
const storeTransactionHash = (txHash, receiver, amount) => {
|
||||||
const expectedSessionIndex = (currentSession ?? 0) + (evmNetwork
|
|
||||||
? Number((evmNetwork.avg_block_speed * evmNetwork.finality_delay) / (1000n * 14400n))
|
|
||||||
: 0);
|
|
||||||
const transaction = {
|
const transaction = {
|
||||||
sessionIndex: expectedSessionIndex,
|
sessionIndex: currentSession ?? 0,
|
||||||
transactionHash: txHash,
|
transactionHash: txHash,
|
||||||
receiverAddress: receiver,
|
receiverAddress: receiver,
|
||||||
amount: amount,
|
amount: amount,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user