Skip to content

Commit

Permalink
fix(governance): add base to connext subgraphs (#13873)
Browse files Browse the repository at this point in the history
  • Loading branch information
clemsos committed May 21, 2024
1 parent 99ea92e commit 35fa808
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
31 changes: 19 additions & 12 deletions governance/helpers/bridge/delayMod.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,18 +439,25 @@ const getDelayModule = async (delayModuleAddress) => {
return { delayMod, currentNonce, queueNonce }
}

const logStatus = (transferId, status) => {
const { dest } = status
const { explorer, name, id } = networks[dest.chainId]
console.log(`To ${name} (${id}) https://connextscan.io/tx/${transferId} (${
dest.status
})
- executedTransactionHash: ${explorer.urls.transaction(
dest.executedTransactionHash
)}
- reconciledTransactionHash ${explorer.urls.transaction(
dest.reconciledTransactionHash
)}\n`)
const logStatus = (transferId, { origin, dest }) => {
if (origin) {
const { name, id } = networks[origin.chainId]
console.log(
`From ${name} (${id}) https://connextscan.io/tx/${transferId} - status: ${origin.status}`
)
}
if (dest) {
const { explorer, name, id } = networks[dest.chainId]
console.log(`To ${name} (${id}) https://connextscan.io/tx/${transferId} (${
dest.status
})
- executedTransactionHash: ${explorer.urls.transaction(
dest.executedTransactionHash
)}
- reconciledTransactionHash ${explorer.urls.transaction(
dest.reconciledTransactionHash
)}\n`)
}
}

module.exports = {
Expand Down
1 change: 1 addition & 0 deletions governance/helpers/bridge/xCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const connextSubgraphIds = {
10: `3115xfkzXPrYzbqDHTiWGtzRDYNXBxs8dyitva6J18jf`, //optimims
42161: `F325dMRiLVCJpX8EUFHg3SX8LE3kXBUmrsLRASisPEQ3`, // arb
100: `6oJrPk9YJEU9rWU4DAizjZdALSccxe5ZahBsTtFaGksU`, //gnosis
8453: `4YtEYNhpX6x1G21wra23DQF871yNs62D6H2E98EY3uCd`, // base
}

const connextSubgraphURL = (chainId) => {
Expand Down
2 changes: 1 addition & 1 deletion governance/scripts/bridge/payFee.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const fetchRelayerFee = async ({ originDomain, destinationDomain }) => {

async function main({
// TODO: pass this hash via cli
txId = '0x12d380bb7f995930872122033988524727a9f847687eede0b4e1fb2dcb8fce68',
txId = '0xaa9c5da11ccb270ce2760ddcd64f2be8d56702c7aeaa32ef8da1536e7e7e4e98',
// default to DAO executor multisig
multisig = '0xEFF26E4Cf0a0e71B3c406A763dacB8875469cbb2',
} = {}) {
Expand Down
3 changes: 1 addition & 2 deletions governance/scripts/bridge/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const filepath = './xcalled.json.tmp'

async function main({
// TODO: pass this hash via cli
txId = '0x12d380bb7f995930872122033988524727a9f847687eede0b4e1fb2dcb8fce68',
txId = '0xaa9c5da11ccb270ce2760ddcd64f2be8d56702c7aeaa32ef8da1536e7e7e4e98',
} = {}) {
const xCalls = await getXCalledEventsFromTx(txId)

Expand Down Expand Up @@ -91,7 +91,6 @@ async function main({
}

// log all results

Object.keys(statuses).map((transferId) =>
logStatus(transferId, statuses[transferId])
)
Expand Down

0 comments on commit 35fa808

Please sign in to comment.