Skip to content

Commit

Permalink
chore: Remove DVN sorting and convert JavaScript to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista committed Jan 31, 2024
1 parent 35258d4 commit f36e2a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions examples/oapp/layerzero.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const mumbaiContract = {
contractName: 'MyOApp',
}

module.exports = {
export default {
contracts: [
{
contract: fujiContract,
Expand Down Expand Up @@ -43,7 +43,7 @@ module.exports = {
optionalDVNs: [
'0xe9dCF5771a48f8DC70337303AbB84032F8F5bE3E',
'0x0AD50201807B615a71a39c775089C9261A667780',
].sort(),
],
optionalDVNThreshold: 2,
},
},
Expand All @@ -54,7 +54,7 @@ module.exports = {
optionalDVNs: [
'0x3Eb0093E079EF3F3FC58C41e13FF46c55dcb5D0a',
'0x0AD50201807B615a71a39c775089C9261A667780',
].sort(),
],
optionalDVNThreshold: 2,
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { EndpointId } = require('@layerzerolabs/lz-definitions');
import { EndpointId } from '@layerzerolabs/lz-definitions'

const sepoliaContract = {
eid: EndpointId.ETHEREUM_V2_TESTNET,
contractName: 'MyOFT',
};
}

const fujiContract = {
eid: EndpointId.AVALANCHE_V2_TESTNET,
contractName: 'MyOFT',
};
}

const mumbaiContract = {
eid: EndpointId.POLYGON_V2_TESTNET,
contractName: 'MyOFT',
};
}

module.exports = {
export default {
contracts: [
{
contract: fujiContract,
Expand Down Expand Up @@ -55,4 +55,4 @@ module.exports = {
to: fujiContract,
},
],
};
}

0 comments on commit f36e2a9

Please sign in to comment.