Skip to content

Commit

Permalink
Merge pull request #64 from LayerZero-Labs/jan/linea
Browse files Browse the repository at this point in the history
feat: Add addresses for Linea
  • Loading branch information
janjakubnanista authored Aug 15, 2023
2 parents ae5789c + 7365f9d commit 82fc592
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/sg-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@layerzerolabs/sg-sdk",
"version": "0.5.2",
"version": "0.5.3",
"license": "BUSL-1.1",
"description": "Stargate SDK",
"type": "module",
Expand Down Expand Up @@ -33,13 +33,13 @@
"@ethersproject/address": "^5.0.2",
"@layerzerolabs/lz-sdk": "~0.0.33",
"@layerzerolabs/tsup-config": "~0.0.4",
"@layerzerolabs/ui-core": "~0.2.5",
"@layerzerolabs/ui-core": "~0.2.12",
"vitest": "^0.31.2"
},
"peerDependencies": {
"@ethersproject/address": "^5.0.2",
"@layerzerolabs/lz-sdk": "~0.0.33",
"@layerzerolabs/ui-core": "~0.2.5"
"@layerzerolabs/ui-core": "~0.2.12"
},
"engines": {
"node": ">=10"
Expand Down
5 changes: 5 additions & 0 deletions packages/sg-sdk/src/constants/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const ROUTER_ADDRESS: { [chainId: number]: string } = {
[ChainId.METIS]: "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590",
[ChainId.METIS_TESTNET]: "0x62273145f80EB808EeF539Ed3ea21f4440CEBB18",
[ChainId.BASE]: "0x45f1A95A4D3f3836523F5c83673c797f4d4d263B",
[ChainId.ZKCONSENSYS]: "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590",
}

export const ROUTER_ETH_ADDRESS: { [chainId: number]: string } = {
Expand All @@ -33,6 +34,7 @@ export const ROUTER_ETH_ADDRESS: { [chainId: number]: string } = {
[ChainId.OPTIMISM]: "0xB49c4e680174E331CB0A7fF3Ab58afC9738d5F8b",
[ChainId.OPTIMISM_KOVAN]: "0x8637D51086D1a7A9d25b8dc233551C54fF8Ee49A",
[ChainId.BASE]: "0x50B6EbC2103BFEc165949CC946d739d5650d7ae4",
[ChainId.ZKCONSENSYS]: "0x8731d54E9D02c286767d56ac03e8037C07e01e98",
}

// Stargate Bridge.sol addresses
Expand All @@ -54,6 +56,7 @@ export const BRIDGE_ADDRESS: { [chainId: number]: string } = {
[ChainId.FANTOM_TESTNET]: "0xb97948ad8805174e0CB27cAf0115e5eA5e02F3A7",
[ChainId.METIS]: "0x45f1A95A4D3f3836523F5c83673c797f4d4d263B",
[ChainId.BASE]: "0xAF54BE5B6eEc24d6BFACf1cce4eaF680A8239398",
[ChainId.ZKCONSENSYS]: "0x45f1A95A4D3f3836523F5c83673c797f4d4d263B",
}

// StargateToken.sol instances
Expand All @@ -74,6 +77,7 @@ export const STG_ADDRESS: { [chainId: number]: string } = {
[ChainId.FANTOM]: "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590",
[ChainId.FANTOM_TESTNET]: "0x8678A0cF61896CdAF4e3cD60c57D23d22B519B80",
[ChainId.BASE]: "0xE3B53AF74a4BF62Ae5511055290838050bf764Df",
[ChainId.ZKCONSENSYS]: "0x808d7c71ad2ba3FA531b068a2417C63106BC0949",
}

// LPStaking.sol contract addresses (This does emissions)
Expand Down Expand Up @@ -105,6 +109,7 @@ export const FARM_TIME_ADDRESS: { [chainId: number]: string } = {
[ChainId.METIS]: "0x45A01E4e04F14f7A4a6702c74187c5F6222033cd",
[ChainId.METIS_TESTNET]: "0x8f337D230a5088E2a448515Eab263735181A9039",
[ChainId.BASE]: "0x06Eb48763f117c7Be887296CDcdfad2E4092739C",
[ChainId.ZKCONSENSYS]: "0x4a364f8c717cAAD9A442737Eb7b8A55cc6cf18D8",
}

export const BONDING_ADDRESS: { [tokenSymbol in TokenSymbol]?: { [chainId: number]: string } } = {
Expand Down
21 changes: 17 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,13 @@
resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796"
integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==

"@layerzerolabs/lz-definitions@^1.5.33":
version "1.5.33"
resolved "https://registry.yarnpkg.com/@layerzerolabs/lz-definitions/-/lz-definitions-1.5.33.tgz#f769dbd0f0241aa81e734631aaea2ac1cad5b56a"
integrity sha512-UgYjLXruuO07VMKBph0OuD9+dVmC+taM0X7AuTfNaf4HA30/4hyFKvwq259n0WXqefRoN6gIR1/FvqUZz9nZyA==
dependencies:
tiny-invariant "^1.3.1"

"@layerzerolabs/tsup-config@~0.0.4":
version "0.0.4"
resolved "https://registry.yarnpkg.com/@layerzerolabs/tsup-config/-/tsup-config-0.0.4.tgz#49fabde8235fc32bd218c7abd70046e10a6b08dc"
Expand All @@ -1799,11 +1806,12 @@
esbuild-node-externals "^1.7.0"
tsup "^6.7.0"

"@layerzerolabs/ui-core@~0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@layerzerolabs/ui-core/-/ui-core-0.1.0.tgz#0cbd821d509e7d05e6d6cdee53958098c06381df"
integrity sha512-Nnq/K9lzA/ZZuabw700o1ozDfS1wZl35+s97UoLgvHxpzw8YLztFVRRX4w0I0EePJ46kQcUsVdkeNDT7ZGTPsA==
"@layerzerolabs/ui-core@~0.2.12":
version "0.2.12"
resolved "https://registry.yarnpkg.com/@layerzerolabs/ui-core/-/ui-core-0.2.12.tgz#bc29ead8fb67d3dfea55399252d7aafe7b69e2a8"
integrity sha512-O+CKF7q8P5Qcdkgb2H5ZjV5r/kIinHtgp4iXjHJ04SJp/TqNhg1Rnd6y7/qH4qimEUaeYyNpaSUna+BtfohkaA==
dependencies:
"@layerzerolabs/lz-definitions" "^1.5.33"
big.js "^5.2.2"
decimal.js-light "^2.5.0"
toformat "^2.0.0"
Expand Down Expand Up @@ -11664,6 +11672,11 @@ tiny-glob@^0.2.6:
globalyzer "0.1.0"
globrex "^0.1.2"

tiny-invariant@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.1.tgz#8560808c916ef02ecfd55e66090df23a4b7aa642"
integrity sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==

tinybench@^2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/tinybench/-/tinybench-2.5.0.tgz#4711c99bbf6f3e986f67eb722fed9cddb3a68ba5"
Expand Down

0 comments on commit 82fc592

Please sign in to comment.