From 21e35e1900975137cd8f8a93603650f136610e88 Mon Sep 17 00:00:00 2001 From: venuswhispers Date: Fri, 20 Dec 2024 02:45:22 +0800 Subject: [PATCH] updated: ton utila --- .../lux/teleport/constants/settings.ts | 15 +- app/server/src/config/constants.ts | 1 + app/server/src/settings/mainnet/networks.json | 225 +++++++++++++++++- contracts/contracts/lux/LDOGS.sol | 19 ++ contracts/contracts/lux/LMRB.sol | 19 ++ contracts/contracts/lux/LNOT.sol | 19 ++ contracts/contracts/lux/LREDO.sol | 19 ++ contracts/contracts/zoo/ZDOGS.sol | 19 ++ contracts/contracts/zoo/ZMRB.sol | 19 ++ contracts/contracts/zoo/ZNOT.sol | 19 ++ contracts/contracts/zoo/ZREDO.sol | 19 ++ .../docker/common/node/src/config/settings.ts | 63 ++++- 12 files changed, 450 insertions(+), 6 deletions(-) create mode 100644 contracts/contracts/lux/LDOGS.sol create mode 100644 contracts/contracts/lux/LMRB.sol create mode 100644 contracts/contracts/lux/LNOT.sol create mode 100644 contracts/contracts/lux/LREDO.sol create mode 100644 contracts/contracts/zoo/ZDOGS.sol create mode 100644 contracts/contracts/zoo/ZMRB.sol create mode 100644 contracts/contracts/zoo/ZNOT.sol create mode 100644 contracts/contracts/zoo/ZREDO.sol diff --git a/app/bridge/src/components/lux/teleport/constants/settings.ts b/app/bridge/src/components/lux/teleport/constants/settings.ts index 2ddd81c5..857fb757 100644 --- a/app/bridge/src/components/lux/teleport/constants/settings.ts +++ b/app/bridge/src/components/lux/teleport/constants/settings.ts @@ -162,6 +162,10 @@ export const SWAP_PAIRS: Record = { LFWOG: ['ZFWOG'], LMOODENG: ['ZMOODENG'], LPONKE: ['ZPONKE'], + LNOT: ['ZNOT'], + LDOGS: ['ZDOGS'], + LMRB: ['ZMRB'], + LREDO: ['ZREDO'], // Zoo tokens ZOO: ['LZOO'], ZBTC: ['WBTC', 'LBTC'], @@ -189,6 +193,10 @@ export const SWAP_PAIRS: Record = { ZFWOG: ['LFWOG'], ZMOODENG: ['LMOODENG'], ZPONKE: ['LPONKE'], + ZNOT: ['LNOT'], + ZDOGS: ['LDOGS'], + ZMRB: ['LMRB'], + ZREDO: ['LREDO'], // Evm tokens ETH: ['LETH', 'ZETH'], WETH: ['LETH', 'ZETH'], @@ -220,5 +228,10 @@ export const SWAP_PAIRS: Record = { AI16Z: ['LAI16Z', 'ZAI16Z'], FWOG: ['LFWOG', 'ZFWOG'], MOODENG: ['LMOODENG', 'ZMOODENG'], - PONKE: ['LPONKE', 'ZPONKE'] + PONKE: ['LPONKE', 'ZPONKE'], + // Ton tokens + NOT: ['LNOT', 'ZNOT'], + DOGS: ['LDOGS', 'ZDOGS'], + MRB: ['LMRB', 'ZMRB'], + REDO: ['LREDO', 'ZREDO'] } diff --git a/app/server/src/config/constants.ts b/app/server/src/config/constants.ts index 2f0b029f..1cf52d16 100644 --- a/app/server/src/config/constants.ts +++ b/app/server/src/config/constants.ts @@ -532,6 +532,7 @@ export const UTILA_NETWORKS: Record = { }, assets: { "SOL": "assets/native.solana-mainnet", + "USDC": "assets/spl-token.solana-mainnet.EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "SIXR": "assets/spl-token.solana-mainnet.blabla", "BONK": "assets/spl-token.solana-mainnet.DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263", "WIF": "assets/spl-token.solana-mainnet.Bpt5okWXXrEk7WmnfaWFSUUrXb74CJjZZUL7NJ2NUx5k", diff --git a/app/server/src/settings/mainnet/networks.json b/app/server/src/settings/mainnet/networks.json index 20a030f6..751d81c4 100644 --- a/app/server/src/settings/mainnet/networks.json +++ b/app/server/src/settings/mainnet/networks.json @@ -89,7 +89,7 @@ "logo": "https://cdn.lux.network/bridge/currencies/usdc.png", "contract_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "decimals": 6, - "status": "active", + "status": "inactive", "is_deposit_enabled": false, "is_withdrawal_enabled": true, "is_refuel_enabled": false, @@ -342,9 +342,26 @@ "destination_base_fee": 0, "is_native": true }, + { + "name": "SIXR", + "asset": "SIXR", + "logo": "https://cdn.lux.network/bridge/currencies/usdc.png", + "contract_address": "", + "decimals": 8, + "status": "inactive", + "is_deposit_enabled": false, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 0, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false + }, { "name": "jUSDC", - "asset": "jUSDC", + "asset": "USDC", "logo": "https://cdn.lux.network/bridge/currencies/usdc.png", "contract_address": "EQB-MPwrd1G6WKNkLz_VnV6WqBDd142KMQv-g1O-8QUA3728", "decimals": 8, @@ -358,6 +375,74 @@ "source_base_fee": 0, "destination_base_fee": 0, "is_native": false + }, + { + "name": "Notcoin", + "asset": "NOT", + "logo": "https://cdn.lux.network/bridge/currencies/not.svg", + "contract_address": "EQAvlWFDxGF2lXm67y4yzC17wYKD9A0guwPkMs1gOsM__NOT", + "decimals": 9, + "status": "active", + "is_deposit_enabled": false, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 0, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false + }, + { + "name": "Dogs", + "asset": "DOGS", + "logo": "https://cdn.lux.network/bridge/currencies/dogs.svg", + "contract_address": "EQCvxJy4eG8hyHBFsZ7eePxrRsUQSFE_jpptRAYBmcG_DOGS", + "decimals": 9, + "status": "active", + "is_deposit_enabled": false, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 0, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false + }, + { + "name": "MoonRabbits", + "asset": "MRB", + "logo": "https://cdn.lux.network/bridge/currencies/mrb.svg", + "contract_address": "EQBtFLv5YbHRVr0PSb6KgmQztRK4N2BQ7alxp6mYOBxa-r18", + "decimals": 9, + "status": "active", + "is_deposit_enabled": false, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 0, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false + }, + { + "name": "Resistance Dog", + "asset": "REDO", + "logo": "https://cdn.lux.network/bridge/currencies/redo.svg", + "contract_address": "EQBZ_cafPyDr5KUTs0aNxh0ZTDhkpEZONmLJA2SNGlLm4Cko", + "decimals": 9, + "status": "active", + "is_deposit_enabled": false, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 0, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false } ], "metadata": null, @@ -1128,6 +1213,74 @@ "source_base_fee": 0, "destination_base_fee": 0, "is_native": false + }, + { + "name": "Liquid NOT", + "asset": "LNOT", + "logo": "https://cdn.lux.network/bridge/currencies/lux/lnot.svg", + "contract_address": "0x79b2A7FA60Ff6f328f6F5eb7Bc332CEFECEa0C93", + "decimals": 18, + "status": "active", + "is_deposit_enabled": true, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 1, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false + }, + { + "name": "Liquid DOGS", + "asset": "LDOGS", + "logo": "https://cdn.lux.network/bridge/currencies/lux/ldogs.svg", + "contract_address": "0xC7bDfc60267649C99a86a701Fc3418b7f0C3D043", + "decimals": 18, + "status": "active", + "is_deposit_enabled": true, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 1, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false + }, + { + "name": "Liquid MRB", + "asset": "LMRB", + "logo": "https://cdn.lux.network/bridge/currencies/lux/lmrb.svg", + "contract_address": "0x9cb1eDe76970E1d696D5aa6B4f65491478035271", + "decimals": 18, + "status": "active", + "is_deposit_enabled": true, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 1, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false + }, + { + "name": "Liquid REDO", + "asset": "LREDO", + "logo": "https://cdn.lux.network/bridge/currencies/lux/lredo.svg", + "contract_address": "0x408E5681E209d37FD52c76cF9ee7EfFA8476cd9a", + "decimals": 18, + "status": "active", + "is_deposit_enabled": true, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 1, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false } ], "metadata": null, @@ -1659,6 +1812,74 @@ "source_base_fee": 0, "destination_base_fee": 0, "is_native": false + }, + { + "name": "Zoo NOT", + "asset": "ZNOT", + "logo": "https://cdn.lux.network/bridge/currencies/zoo/znot.svg", + "contract_address": "0xdfCAdda48DbbA09f5678aE31734193F7CCA7f20d", + "decimals": 18, + "status": "active", + "is_deposit_enabled": true, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 1, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false + }, + { + "name": "Zoo DOGS", + "asset": "ZDOGS", + "logo": "https://cdn.lux.network/bridge/currencies/zoo/zdogs.svg", + "contract_address": "0x0b0FF795d0A1C162b44CdC35D8f4DCbC2b4B9170", + "decimals": 18, + "status": "active", + "is_deposit_enabled": true, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 1, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false + }, + { + "name": "Zoo MRB", + "asset": "ZMRB", + "logo": "https://cdn.lux.network/bridge/currencies/zoo/zmrb.svg", + "contract_address": "0x3FfA9267739C04554C1fe640F79651333A2040e1", + "decimals": 18, + "status": "active", + "is_deposit_enabled": true, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 1, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false + }, + { + "name": "Zoo REDO", + "asset": "ZREDO", + "logo": "https://cdn.lux.network/bridge/currencies/zoo/zredo.svg", + "contract_address": "0x137747A15dE042Cd01fCB41a5F3C7391d932750B", + "decimals": 18, + "status": "active", + "is_deposit_enabled": true, + "is_withdrawal_enabled": true, + "is_refuel_enabled": false, + "max_withdrawal_amount": 1, + "deposit_fee": 0, + "withdrawal_fee": 0.01, + "source_base_fee": 0, + "destination_base_fee": 0, + "is_native": false } ], "metadata": null, diff --git a/contracts/contracts/lux/LDOGS.sol b/contracts/contracts/lux/LDOGS.sol new file mode 100644 index 00000000..ae111786 --- /dev/null +++ b/contracts/contracts/lux/LDOGS.sol @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.20; + +import "../ERC20B.sol"; + +contract LuxDOGS is ERC20B { + string public constant _name = "Lux DOGS"; + string public constant _symbol = "LDOGS"; + + constructor() ERC20B(_name, _symbol) {} + + function mint(address account, uint256 amount) public { + _mint(account, amount); + } + + function burn(address account, uint256 amount) public { + _burn(account, amount); + } +} diff --git a/contracts/contracts/lux/LMRB.sol b/contracts/contracts/lux/LMRB.sol new file mode 100644 index 00000000..745a536d --- /dev/null +++ b/contracts/contracts/lux/LMRB.sol @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.20; + +import "../ERC20B.sol"; + +contract LuxMRB is ERC20B { + string public constant _name = "Lux MoonRabbits"; + string public constant _symbol = "LMRB"; + + constructor() ERC20B(_name, _symbol) {} + + function mint(address account, uint256 amount) public { + _mint(account, amount); + } + + function burn(address account, uint256 amount) public { + _burn(account, amount); + } +} diff --git a/contracts/contracts/lux/LNOT.sol b/contracts/contracts/lux/LNOT.sol new file mode 100644 index 00000000..1226c073 --- /dev/null +++ b/contracts/contracts/lux/LNOT.sol @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.20; + +import "../ERC20B.sol"; + +contract LuxNOT is ERC20B { + string public constant _name = "Lux Notcoin"; + string public constant _symbol = "LNOT"; + + constructor() ERC20B(_name, _symbol) {} + + function mint(address account, uint256 amount) public { + _mint(account, amount); + } + + function burn(address account, uint256 amount) public { + _burn(account, amount); + } +} diff --git a/contracts/contracts/lux/LREDO.sol b/contracts/contracts/lux/LREDO.sol new file mode 100644 index 00000000..097408e0 --- /dev/null +++ b/contracts/contracts/lux/LREDO.sol @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.20; + +import "../ERC20B.sol"; + +contract LuxREDO is ERC20B { + string public constant _name = "Lux Resistance Dog"; + string public constant _symbol = "LREDO"; + + constructor() ERC20B(_name, _symbol) {} + + function mint(address account, uint256 amount) public { + _mint(account, amount); + } + + function burn(address account, uint256 amount) public { + _burn(account, amount); + } +} diff --git a/contracts/contracts/zoo/ZDOGS.sol b/contracts/contracts/zoo/ZDOGS.sol new file mode 100644 index 00000000..53937c8d --- /dev/null +++ b/contracts/contracts/zoo/ZDOGS.sol @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.20; + +import "../ERC20B.sol"; + +contract ZooDOGS is ERC20B { + string public constant _name = "Zoo DOGS"; + string public constant _symbol = "ZDOGS"; + + constructor() ERC20B(_name, _symbol) {} + + function mint(address account, uint256 amount) public { + _mint(account, amount); + } + + function burn(address account, uint256 amount) public { + _burn(account, amount); + } +} diff --git a/contracts/contracts/zoo/ZMRB.sol b/contracts/contracts/zoo/ZMRB.sol new file mode 100644 index 00000000..9491a2fa --- /dev/null +++ b/contracts/contracts/zoo/ZMRB.sol @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.20; + +import "../ERC20B.sol"; + +contract ZooMRB is ERC20B { + string public constant _name = "Zoo MoonRabbits"; + string public constant _symbol = "ZMRB"; + + constructor() ERC20B(_name, _symbol) {} + + function mint(address account, uint256 amount) public { + _mint(account, amount); + } + + function burn(address account, uint256 amount) public { + _burn(account, amount); + } +} diff --git a/contracts/contracts/zoo/ZNOT.sol b/contracts/contracts/zoo/ZNOT.sol new file mode 100644 index 00000000..105b2eb4 --- /dev/null +++ b/contracts/contracts/zoo/ZNOT.sol @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.20; + +import "../ERC20B.sol"; + +contract ZooNOT is ERC20B { + string public constant _name = "Zoo Notcoin"; + string public constant _symbol = "ZNOT"; + + constructor() ERC20B(_name, _symbol) {} + + function mint(address account, uint256 amount) public { + _mint(account, amount); + } + + function burn(address account, uint256 amount) public { + _burn(account, amount); + } +} diff --git a/contracts/contracts/zoo/ZREDO.sol b/contracts/contracts/zoo/ZREDO.sol new file mode 100644 index 00000000..bf3fe005 --- /dev/null +++ b/contracts/contracts/zoo/ZREDO.sol @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.20; + +import "../ERC20B.sol"; + +contract ZooREDO is ERC20B { + string public constant _name = "Zoo Resistance Dog"; + string public constant _symbol = "ZREDO"; + + constructor() ERC20B(_name, _symbol) {} + + function mint(address account, uint256 amount) public { + _mint(account, amount); + } + + function burn(address account, uint256 amount) public { + _burn(account, amount); + } +} diff --git a/mpc-nodes/docker/common/node/src/config/settings.ts b/mpc-nodes/docker/common/node/src/config/settings.ts index dd08f108..bd486759 100644 --- a/mpc-nodes/docker/common/node/src/config/settings.ts +++ b/mpc-nodes/docker/common/node/src/config/settings.ts @@ -236,9 +236,30 @@ export const MAIN_NETWORKS: NETWORK[] = [ is_native: false }, { - name: "Lux PONKE", - asset: "LPONKE", - contract_address: "0xb33c37c72B06770b2D0A26C38E6CfD9795D0D206", + name: "Lux NOT", + asset: "LNOT", + contract_address: "0x79b2A7FA60Ff6f328f6F5eb7Bc332CEFECEa0C93", + decimals: 18, + is_native: false + }, + { + name: "Lux DOGS", + asset: "LDOGS", + contract_address: "0xC7bDfc60267649C99a86a701Fc3418b7f0C3D043", + decimals: 18, + is_native: false + }, + { + name: "Lux MRB", + asset: "LMRB", + contract_address: "0x9cb1eDe76970E1d696D5aa6B4f65491478035271", + decimals: 18, + is_native: false + }, + { + name: "Lux REDO", + asset: "LREDO", + contract_address: "0x408E5681E209d37FD52c76cF9ee7EfFA8476cd9a", decimals: 18, is_native: false } @@ -464,6 +485,34 @@ export const MAIN_NETWORKS: NETWORK[] = [ contract_address: "0xDF7740fCC9B244c192CfFF7b6553a3eEee0f4898", decimals: 18, is_native: false + }, + { + name: "Zoo NOT", + asset: "ZNOT", + contract_address: "0xdfCAdda48DbbA09f5678aE31734193F7CCA7f20d", + decimals: 18, + is_native: false + }, + { + name: "Zoo DOGS", + asset: "ZDOGS", + contract_address: "0x0b0FF795d0A1C162b44CdC35D8f4DCbC2b4B9170", + decimals: 18, + is_native: false + }, + { + name: "Zoo MRB", + asset: "ZMRB", + contract_address: "0x3FfA9267739C04554C1fe640F79651333A2040e1", + decimals: 18, + is_native: false + }, + { + name: "Zoo REDO", + asset: "ZREDO", + contract_address: "0x137747A15dE042Cd01fCB41a5F3C7391d932750B", + decimals: 18, + is_native: false } ] }, @@ -1724,6 +1773,10 @@ export const SWAP_PAIRS: Record = { LFWOG: ["ZFWOG"], LMOODENG: ["ZMOODENG"], LPONKE: ["ZPONKE"], + LNOT: ["ZNOT"], + LDOGS: ["ZDOGS"], + LMRB: ["ZMRB"], + LREDO: ["ZREDO"], // Zoo tokens ZOO: ["LZOO"], @@ -1752,6 +1805,10 @@ export const SWAP_PAIRS: Record = { ZFWOG: ["LFWOG"], ZMOODENG: ["LMOODENG"], ZPONKE: ["LPONKE"], + ZNOT: ["LNOT"], + ZDOGS: ["LDOGS"], + ZMRB: ["LMRB"], + ZREDO: ["LREDO"], // Evm tokens ETH: ["LETH", "ZETH"],