Skip to content

Commit

Permalink
feat: Implements LZv2 for crosschain VeCake
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefCupcake committed Jul 15, 2024
1 parent 39b4f73 commit 4851c1e
Show file tree
Hide file tree
Showing 77 changed files with 88,487 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
abis/
artifacts/
cache/
node_modules/
logs/
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

135 changes: 135 additions & 0 deletions arguments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
// // ------- IFODeployerV7
// module.exports = [];

// // ------- PancakeInfoSender
// module.exports = [
// '0x45c54210128a065de780C4B0Df3d16664f7f859e', // cakePool
// '0x3C458828D1622F5f4d526eb0d24Da8C4Eb8F07b1', // ICake
// '0xDf4dBf6536201370F95e06A0F8a7a70fE40E388a', // pancakeProfile
// '0x3c2269811836af69497E5F486A85D7316753cf62' // LayerZero
// ];

// // ------- PancakeInfoReceiver
// module.exports = [
// //'0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675' // LayerZero Ethereum
// //'0x3c2269811836af69497E5F486A85D7316753cf62' // LayerZero Polygon
// '0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4' // LayerZero
// ]

// ------- PancakeProfileProxy
// module.exports = [
// '0x2ADd97A09B5addc65f0850430f2e05109C9b99Eb', // IFODeployerV7
// '0x9b9811171741Fe837B43eBe05523ED66e3B697C1' // receiver
// ]

// // ------- ICakeProxy
// module.exports = [
// '0x2ADd97A09B5addc65f0850430f2e05109C9b99Eb', // IFODeployerV7
// '0x9b9811171741Fe837B43eBe05523ED66e3B697C1', // receiver
// '0x9645fCDc4f740FdE63388BddA9B7bDDcDE99c9Cc' // admin
// ]


// module.exports = [
// '0x8Cbb3168882Da99e132BBad80312DAe5F2f05634', // IFODeployerV7
// '0xe25f91ba343989F13873560DcbA61c656ACe763b', // receiver
// '0x2d566DdeB8977060688ddf21C6B709551b1AC416' // admin
// ]

// module.exports = [
// '0x5692DB8177a81A6c6afc8084C2976C9933EC1bAB'
// ]

/**
* Test VeCake iCake and IFO contracts
* CakePool:0x1088Fb24053F03802F673b84d16AE1A7023E400b
* Cake:0x8d008B313C1d6C7fE2982F62d32Da7507cF43551
* ProxyForCakePoolFactory:0xEC68548C18ffFAdCB4d00A541006Ee3e321c73e6
* VECake:0x138f8862F0291912Eeb5AaF2ceDAa8206fE4EC1d
*/
// iCakeV3:0x902A7a0a7Be1AEAfF0196c87c3838484E04C7a8C
// IFOV7:0xE1046468532424b43AF8Da1492405498810791dC

// offering TOKEN: 0x6ce8dA28E2f864420840cF74474eFf5fD80E65B8


// module.exports = [
// '0x5692DB8177a81A6c6afc8084C2976C9933EC1bAB', // veCake
// '0x536d7E53D0aDeB1F20E7c81fea45d02eC9dBD698', // router
// '0x404460C6A5EdE2D891e8297795264fDe62ADBB75' // LINK
// ]

// module.exports = [
// '0x0000000000000000000000000000000000000000', // veCake
// '0x0bf3de8c5d3e8a2b34d2beeb17abfcebaf363a59', // router
// '0x779877A7B0D9E8603169DdbD7836e478b4624789' // LINK
// ]

// module.exports = [
// '0x3C3D92629A02a8D95D5CB9650fe49C3544f69B43' // router
// ]

// module.exports = [
// '0x1035cabc275068e0f4b745a29cedf38e13af41b1' // router
// ]

// module.exports = [
// '0x0000000000000000000000000000000000000000', // veCake
// '0x4D147dCb984e6affEEC47e44293DA442580A3Ec0', // router
// '0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6' // gas service
// ]

// module.exports = [
// '0xe432150cce91c13a887f7D836923d5597adD8E31' // router
// ]

// module.exports = [
// '0x5692DB8177a81A6c6afc8084C2976C9933EC1bAB', // veCake
// '0x3c2269811836af69497E5F486A85D7316753cf62' // LayerZero BSC
// ]

// module.exports = [
// '0x3c2269811836af69497E5F486A85D7316753cf62' // LayerZero Arbitrum
// ]

// module.exports = [
// '0x5692DB8177a81A6c6afc8084C2976C9933EC1bAB', // veCake
// '0xDf4dBf6536201370F95e06A0F8a7a70fE40E388a', // pancake profile
// '0x3c2269811836af69497E5F486A85D7316753cf62' // LayerZero BSC
// ]

// module.exports = [
// '0x3c2269811836af69497E5F486A85D7316753cf62' // LayerZero Arbitrum
// ]

// module.exports = [
// '0x78ea748Bb5F8e9298d9077E35dB4E9B3F9Edde86', // IFODeployerV8
// '0xADA56F1d4155E53735331Ad0eE971e4B9b50D4D0' // receiver
// ]

// module.exports = [
// '0x78ea748Bb5F8e9298d9077E35dB4E9B3F9Edde86', // IFODeployerV8
// '0xADA56F1d4155E53735331Ad0eE971e4B9b50D4D0', // receiver
// '0x9645fCDc4f740FdE63388BddA9B7bDDcDE99c9Cc' // admin
// ]

module.exports = [
'0x5692DB8177a81A6c6afc8084C2976C9933EC1bAB', // veCake
'0xDf4dBf6536201370F95e06A0F8a7a70fE40E388a', // pancake profile
'0x1a44076050125825900e736c501f859c50fE728c', // endpoint
'0x9645fCDc4f740FdE63388BddA9B7bDDcDE99c9Cc' // delegate
]

// module.exports = [
// '0x1a44076050125825900e736c501f859c50fE728c', // endpoint
// '0x9645fCDc4f740FdE63388BddA9B7bDDcDE99c9Cc' // delegate
// ]

// module.exports = [
// '0x11b63467Cf299D634d7c1A07221d78c5F08095D7', // IFODeployerV8
// '0x765E5f231FfD9986f888CE6F3c88bBD8FB3f04A7' // receiver
// ]

// module.exports = [
// '0x8095b52D936ACA9867c5773369adD5cbA1519632' // veCakeProxy
// ]
37 changes: 37 additions & 0 deletions config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
exports.default = {
/////////////////////////////////////////////////////////////////////////////////////////

MyOApp: {
"bscTestnet": "0x41d7574573C655b5D9568b4d7ef02E6022B7C481",
"sepolia": "0xb3dF6321C8e3f71bf15Bc8810c26Bd4200BfFdA2"
},

PancakeVeSenderV2: {
"bscMainnet": "0xEF58528Ecb76b69a0F61F65d94797d531B34cf64", //"0x9D8A62E8Cf71ed1A5EbA53290A8b50C03c566c42"
},

PancakeVeReceiverV2: {
"ethereum": "0x1Db3B1092297Bea09C8151e905dF73a285c8a74a", //"0x765E5f231FfD9986f888CE6F3c88bBD8FB3f04A7",
"arbitrum": "0x0276b8b2AA8C698d8301AAbf56852224b454C634", //"0x5bD8a8d023f772ad2b6A181cC0bC2B15D5Be13C7"
},

VECakeProxyFake: {
"ethereum": "0x0aC4ED1D63c51f2b35C555eE09b425f08E6eA556",
"arbitrum": "0xF4C31dfEB3C0A2203472A3e20e49B1EFE4bD588d"
},

IFODeployV8Fake: {
"ethereum": "0x11b63467Cf299D634d7c1A07221d78c5F08095D7",
"arbitrum": "0x78ea748Bb5F8e9298d9077E35dB4E9B3F9Edde86"
},

PancakeProfileProxyV2Fake: {
"ethereum": "0xeA08f9e4267e30721D755A46Bcaddbf993d8C59B",
"arbitrum": "0x5A3526891D6216DAe42d3e17a545A45f854F2213"
},

ICakeV3Fake: {
"ethereum": "0x3D54da368065cee6986C9bb99aB756a92775005E",
"arbitrum": "0x0757bb6F1635116A381FaaAddEC7ce5A2C5088fa"
}
};
Loading

0 comments on commit 4851c1e

Please sign in to comment.