-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪚 OmniGraph™ OApp wire task: The saga continues (#102)
- Loading branch information
1 parent
bf95cd1
commit 1185ca7
Showing
13 changed files
with
241 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { EndpointId } from '@layerzerolabs/lz-definitions' | ||
import { createNetworkEnvironmentFactory } from '@layerzerolabs/utils-evm-hardhat' | ||
import deploy from '../../deploy/002_oapp' | ||
|
||
export const deployOApp = async () => { | ||
const environmentFactory = createNetworkEnvironmentFactory() | ||
const eth = await environmentFactory(EndpointId.ETHEREUM_MAINNET) | ||
const avax = await environmentFactory(EndpointId.AVALANCHE_MAINNET) | ||
|
||
await deploy(await environmentFactory(EndpointId.ETHEREUM_MAINNET)) | ||
await deploy(await environmentFactory(EndpointId.AVALANCHE_MAINNET)) | ||
await Promise.all([eth.deployments.fixture('OApp'), avax.deployments.fixture('OApp')]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/ua-utils-evm-hardhat-test/test/task/oapp/__data__/configs/valid.config.connected.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const { EndpointId } = require('@layerzerolabs/lz-definitions'); | ||
|
||
const ethContract = { | ||
eid: EndpointId.ETHEREUM_MAINNET, | ||
contractName: 'DefaultOApp', | ||
}; | ||
|
||
const avaxContract = { | ||
eid: EndpointId.AVALANCHE_MAINNET, | ||
contractName: 'DefaultOApp', | ||
}; | ||
|
||
module.exports = { | ||
contracts: [ | ||
{ | ||
contract: avaxContract, | ||
}, | ||
{ | ||
contract: ethContract, | ||
}, | ||
], | ||
connections: [ | ||
{ | ||
from: avaxContract, | ||
to: ethContract, | ||
}, | ||
{ | ||
from: ethContract, | ||
to: avaxContract, | ||
}, | ||
], | ||
}; |
33 changes: 33 additions & 0 deletions
33
...-utils-evm-hardhat-test/test/task/oapp/__data__/configs/valid.config.misconfigured.001.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const { EndpointId } = require('@layerzerolabs/lz-definitions'); | ||
|
||
const ethContract = { | ||
eid: EndpointId.ETHEREUM_MAINNET, | ||
contractName: 'DefaultOApp', | ||
}; | ||
|
||
const avaxContract = { | ||
eid: EndpointId.AVALANCHE_MAINNET, | ||
contractName: 'NonExistent', | ||
}; | ||
|
||
module.exports = { | ||
contracts: [ | ||
{ | ||
contract: avaxContract, | ||
}, | ||
{ | ||
contract: ethContract, | ||
}, | ||
], | ||
connections: [ | ||
{ | ||
from: avaxContract, | ||
to: ethContract, | ||
}, | ||
{ | ||
from: ethContract, | ||
to: avaxContract, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.