Skip to content

Commit

Permalink
Add support FRACTION on mainnet (#4368)
Browse files Browse the repository at this point in the history
* feat: add miva and fraction to mainnet prod

* fix: skip canonical domain not hub dopmain on asset config

* fix: logging + account for non-applied changes

* fix: removed unused domains

* fix: xERC20 address added

---------

Co-authored-by: Layne Haber <[email protected]>
Co-authored-by: Prathmesh <[email protected]>
Co-authored-by: Eddie <[email protected]>
  • Loading branch information
4 people authored Nov 13, 2023
1 parent 0773bce commit b9adbe2
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = {
],
// NOTE: ENSURE LPTOKEN AND BRIDGETOKEN NAMES ARE GENERATED CORRECTLY BASED
// ON THE NAME GIVEN IN EACH ASSET ENTRY

assets: [
{
name: "USDT",
Expand Down Expand Up @@ -388,6 +389,41 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = {
},
},
},
{
name: "FRACTION",
canonical: {
domain: "11111",
address: "0x4602e7CFE18d8b16ED13538603B00073F5c28bc8",
decimals: 18,
},
representations: {
// gnosis
"6778479": {
local: "0x4602e7CFE18d8b16ED13538603B00073F5c28bc8",
adopted: "0x4602e7CFE18d8b16ED13538603B00073F5c28bc8",
},
// optimism
"1869640809": {
local: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4",
adopted: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4",
},
// bnb
"6450786": {
local: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4",
adopted: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4",
},
// polygon
"1886350457": {
local: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4",
adopted: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4",
},
// arbtirum-one
"1634886255": {
local: "0x2bF2ba13735160624a0fEaE98f6aC8F70885eA61",
adopted: "0x2bF2ba13735160624a0fEaE98f6aC8F70885eA61",
},
},
},
{
name: "xIXT",
canonical: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const setupAsset = async (args: {
[utils.defaultAbiCoder.encode(["bytes32", "uint32"], [canonical.id, canonical.domain])],
);
console.log(
`\tVerifying asset setup for ${asset.name} (${asset.canonical.address}). Canonical ID: ${canonical.id}; Canonical Domain: ${canonical.domain}; Key: ${key}`,
`\n\tVerifying asset setup for ${asset.name} (${asset.canonical.address}). Canonical ID: ${canonical.id}; Canonical Domain: ${canonical.domain}; Key: ${key}`,
);

// Set up the canonical asset on the canonical domain.
Expand Down
2 changes: 1 addition & 1 deletion packages/deployments/contracts/src/cli/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const sanitizeAndInit = async () => {
};

for (const domain of domains) {
if (domain === hubDomain) continue;
if (+domain === +asset.canonical.domain) continue;
_extracted.representations[domain] = asset.representations[domain];
}

Expand Down

0 comments on commit b9adbe2

Please sign in to comment.