diff --git a/packages/web3-constants/compile-constants.ts b/packages/web3-constants/compile-constants.ts index b2af541ddf00..5dc5a46aad42 100644 --- a/packages/web3-constants/compile-constants.ts +++ b/packages/web3-constants/compile-constants.ts @@ -18,6 +18,11 @@ async function compileConstants(folderPath: string, names: string[]) { for (const name of names) { pairs.push([name, values[name] ?? defaultValue]) } + pairs.sort((pairA, pairZ) => { + const [nameA] = pairA + const [nameZ] = pairZ + return names.indexOf(nameA) - names.indexOf(nameZ) + }) constants[name] = Object.fromEntries(pairs) } await fs.writeFile(filePath, JSON.stringify(constants, null, 4), 'utf-8') diff --git a/packages/web3-constants/evm/cryptoartai.json b/packages/web3-constants/evm/cryptoartai.json index 01e13450dedf..d4e9200b7a36 100644 --- a/packages/web3-constants/evm/cryptoartai.json +++ b/packages/web3-constants/evm/cryptoartai.json @@ -12,7 +12,8 @@ "Arbitrum": "", "Arbitrum_Rinkeby": "", "xDai": "", - "Celo": "" + "Celo": "", + "Fantom": "" }, "ARTIST_ACCEPTING_BIDS_V2": { "Mainnet": "0x78C889749f29D2965a76Ede3BBb232A9729Ccf0b", @@ -27,7 +28,8 @@ "Arbitrum": "", "Arbitrum_Rinkeby": "", "xDai": "", - "Celo": "" + "Celo": "", + "Fantom": "" }, "CANFT_MARKET": { "Mainnet": "0x72d081953957723e540780a0C6bA31725469238E", @@ -42,6 +44,7 @@ "Arbitrum": "", "Arbitrum_Rinkeby": "", "xDai": "", - "Celo": "" + "Celo": "", + "Fantom": "" } } diff --git a/packages/web3-constants/evm/token.json b/packages/web3-constants/evm/token.json index 0439000d47bc..d0b23bbd8c53 100644 --- a/packages/web3-constants/evm/token.json +++ b/packages/web3-constants/evm/token.json @@ -252,8 +252,8 @@ "Arbitrum": "", "Arbitrum_Rinkeby": "", "xDai": "", - "Fantom": "", - "Celo": "" + "Celo": "", + "Fantom": "" }, "OKB_ADDRESS": { "Mainnet": "0x75231F58b43240C9718Dd58B4967c5114342a86c", @@ -268,8 +268,8 @@ "Arbitrum": "", "Arbitrum_Rinkeby": "", "xDai": "", - "Fantom": "", - "Celo": "" + "Celo": "", + "Fantom": "" }, "UST_ADDRESS": { "Mainnet": "0xa47c8bf37f92aBed4A126BDA807A7b7498661acD", @@ -284,8 +284,8 @@ "Arbitrum": "", "Arbitrum_Rinkeby": "", "xDai": "", - "Fantom": "", - "Celo": "" + "Celo": "", + "Fantom": "" }, "eUSDC_ADDRESS": { "Mainnet": "", @@ -300,8 +300,8 @@ "Arbitrum": "", "Arbitrum_Rinkeby": "", "xDai": "", - "Fantom": "", - "Celo": "" + "Celo": "", + "Fantom": "" }, "eUSDT_ADDRESS": { "Mainnet": "",