Skip to content

Commit

Permalink
Merge pull request #122 from valory-xyz/tanya/mode
Browse files Browse the repository at this point in the history
Support Mode in Registry and Operate
  • Loading branch information
DavidMinarsch authored Oct 23, 2024
2 parents b2889fe + bec478b commit cf27dda
Show file tree
Hide file tree
Showing 16 changed files with 199 additions and 166 deletions.
8 changes: 7 additions & 1 deletion .gitleaksignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,10 @@ c286a015e94a4abfa474749e6d0d38d944b25e8b:apps/govern/common-util/Contracts/addre
6cf8d7df061c4bdb1e3ccbb8dbf3585b715ad874:apps/bond/components/BondingProducts/Bonding/TokenManagement/hooks/useWsolDeposit.jsx:generic-api-key:53
dcc2ad3b708d9ac49cf82b6e0401fdf78531fa05:apps/bond/components/BondingProducts/Bonding/TokenManagement/hooks/useWsolDeposit.jsx:generic-api-key:53
bc71dcb01b1c2619cc3805ad410fabc6f97b6e6d:apps/bond/components/Paths/data.json:generic-api-key:208
613a7a61c1721d690c3ab3055e8fe97471c91a58:apps/bond/components/Paths/data.json:generic-api-key:168
613a7a61c1721d690c3ab3055e8fe97471c91a58:apps/bond/components/Paths/data.json:generic-api-key:168
d8375c535fba0ffcd1161714448dc92a84b17858:apps/autonolas-registry/common-util/Contracts/addresses.tsx:generic-api-key:63
d8375c535fba0ffcd1161714448dc92a84b17858:apps/autonolas-registry/common-util/Contracts/addresses.tsx:generic-api-key:65
d8375c535fba0ffcd1161714448dc92a84b17858:apps/autonolas-registry/common-util/Contracts/addresses.tsx:generic-api-key:125
d8375c535fba0ffcd1161714448dc92a84b17858:apps/autonolas-registry/common-util/Contracts/addresses.tsx:generic-api-key:127
d8375c535fba0ffcd1161714448dc92a84b17858:apps/autonolas-registry/common-util/Contracts/addresses.tsx:generic-api-key:131
d8375c535fba0ffcd1161714448dc92a84b17858:apps/autonolas-registry/common-util/Contracts/addresses.tsx:generic-api-key:133
209 changes: 113 additions & 96 deletions apps/autonolas-registry/common-util/Contracts/addresses.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
import { Address } from 'viem';
import { LOCAL_FORK_ID, LOCAL_FORK_ID_GNOSIS, LOCAL_FORK_ID_POLYGON } from '../../util/constants';
import {
arbitrum,
arbitrumSepolia,
base,
baseSepolia,
celo,
celoAlfajores,
gnosis,
gnosisChiado,
goerli,
mainnet,
mode,
optimism,
optimismSepolia,
polygon,
polygonMumbai,
} from 'viem/chains';

type Addresses = {
serviceManagerToken: Address;
Expand Down Expand Up @@ -42,6 +59,13 @@ const POLYGON_ADDRESSES: Addresses = {
operatorWhitelist: '0x526E064cB694E8f5B7DB299158e17F33055B3943',
};

const MODE_ADDRESSES: Addresses = {
serviceManagerToken: '0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b',
serviceRegistryL2: '0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE',
serviceRegistryTokenUtility: '0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5',
operatorWhitelist: '0x3d77596beb0f130a4415df3D2D8232B3d3D31e44',
};

/**
* Addresses for testing for networks
* - sepolia
Expand All @@ -59,71 +83,60 @@ const COMMON_TEST_ADDRESSES: Addresses = {
// TODO: add testcases for all networks
// get addresses from scripts/deployment folder in autonolas-registries repo
export const ADDRESSES = {
1: MAINNET_ADDRESSES,
// goerli
5: {
agentRegistry: '0xEB5638eefE289691EcE01943f768EDBF96258a80',
componentRegistry: '0x7Fd1F4b764fA41d19fe3f63C85d12bf64d2bbf68',
registriesManager: '0x10c5525F77F13b28f42c5626240c001c2D57CAd4',
serviceManagerToken: '0x1d333b46dB6e8FFd271b6C2D2B254868BD9A2dbd',
serviceRegistry: '0x1cEe30D08943EB58EFF84DD1AB44a6ee6FEff63a',
serviceRegistryTokenUtility: '0x6d9b08701Af43D68D991c074A27E4d90Af7f2276',
operatorWhitelist: '0x0338893fB1A1D9Df03F72CC53D8f786487d3D03E',
},
// optimistic
10: {
[mainnet.id]: MAINNET_ADDRESSES,
[optimism.id]: {
serviceManagerToken: '0xFbBEc0C8b13B38a9aC0499694A69a10204c5E2aB',
serviceRegistryL2: '0x3d77596beb0f130a4415df3D2D8232B3d3D31e44',
serviceRegistryTokenUtility: '0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac',
operatorWhitelist: '0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b',
},
// gnosis
100: GNOSIS_ADDRESSES,
// polygon
137: POLYGON_ADDRESSES,
// base
8453: {
[gnosis.id]: GNOSIS_ADDRESSES,
[polygon.id]: POLYGON_ADDRESSES,
[base.id]: {
serviceManagerToken: '0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b',
serviceRegistryL2: '0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE',
serviceRegistryTokenUtility: '0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5',
operatorWhitelist: '0x3d77596beb0f130a4415df3D2D8232B3d3D31e44',
},
// chiado
10200: {
serviceManagerToken: '0xc965a32185590Eb5a5fffDba29E96126b7650eDe',
serviceRegistryL2: '0x31D3202d8744B16A120117A053459DDFAE93c855',
serviceRegistryTokenUtility: '0xc2c7E40674f1C7Bb99eFe5680Efd79842502bED4',
operatorWhitelist: '0x6f7661F52fE1919996d0A4F68D09B344093a349d',
},
// arbitrum
42161: {
[arbitrum.id]: {
serviceManagerToken: '0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5',
serviceRegistryL2: '0xE3607b00E75f6405248323A9417ff6b39B244b50',
serviceRegistryTokenUtility: '0x3d77596beb0f130a4415df3D2D8232B3d3D31e44',
operatorWhitelist: '0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE',
},
// celo
42220: {
[celo.id]: {
serviceManagerToken: '0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5',
serviceRegistryL2: '0xE3607b00E75f6405248323A9417ff6b39B244b50',
serviceRegistryTokenUtility: '0x3d77596beb0f130a4415df3D2D8232B3d3D31e44',
operatorWhitelist: '0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE',
},
// polygon mumbai - testnet for polygon
80001: {
[mode.id]: MODE_ADDRESSES,
// Test nets
[polygonMumbai.id]: {
serviceManagerToken: '0xE16adc7777B7C2a0d35033bd3504C028AB28EE8b',
serviceRegistryL2: '0xf805DfF246CC208CD2F08ffaD242b7C32bc93623',
serviceRegistryTokenUtility: '0x131b5551c81e9B3E89E9ACE30A5B3D45144E3e42',
operatorWhitelist: '0x118173028162C1b7c6Bf8488bd5dA2abd7c30F9D',
},
// base sepolia - testnet for base
84532: COMMON_TEST_ADDRESSES,
// arbitrum sepolia - testnet for arbitrum
421614: COMMON_TEST_ADDRESSES,
// optimistic sepolia - testnet for optimistic
11155420: COMMON_TEST_ADDRESSES,
// celo alfajores - testnet for celo
44787: COMMON_TEST_ADDRESSES,
[goerli.id]: {
agentRegistry: '0xEB5638eefE289691EcE01943f768EDBF96258a80',
componentRegistry: '0x7Fd1F4b764fA41d19fe3f63C85d12bf64d2bbf68',
registriesManager: '0x10c5525F77F13b28f42c5626240c001c2D57CAd4',
serviceManagerToken: '0x1d333b46dB6e8FFd271b6C2D2B254868BD9A2dbd',
serviceRegistry: '0x1cEe30D08943EB58EFF84DD1AB44a6ee6FEff63a',
serviceRegistryTokenUtility: '0x6d9b08701Af43D68D991c074A27E4d90Af7f2276',
operatorWhitelist: '0x0338893fB1A1D9Df03F72CC53D8f786487d3D03E',
},
[gnosisChiado.id]: {
serviceManagerToken: '0xc965a32185590Eb5a5fffDba29E96126b7650eDe',
serviceRegistryL2: '0x31D3202d8744B16A120117A053459DDFAE93c855',
serviceRegistryTokenUtility: '0xc2c7E40674f1C7Bb99eFe5680Efd79842502bED4',
operatorWhitelist: '0x6f7661F52fE1919996d0A4F68D09B344093a349d',
},
[baseSepolia.id]: COMMON_TEST_ADDRESSES,
[arbitrumSepolia.id]: COMMON_TEST_ADDRESSES,
[optimismSepolia.id]: COMMON_TEST_ADDRESSES,
[celoAlfajores.id]: COMMON_TEST_ADDRESSES,
[LOCAL_FORK_ID]: MAINNET_ADDRESSES,
[LOCAL_FORK_ID_GNOSIS]: GNOSIS_ADDRESSES,
[LOCAL_FORK_ID_POLYGON]: POLYGON_ADDRESSES,
Expand All @@ -140,20 +153,21 @@ type MultisigAddress = {
* Addresses: https://github.com/valory-xyz/autonolas-registries/blob/main/docs/configuration.json
*/
export const multisigAddresses: MultisigAddress = {
1: ['0x46C0D07F55d4F9B5Eed2Fc9680B5953e5fd7b461'],
5: ['0x65dD51b02049ad1B6FF7fa9Ea3322E1D2CAb1176'],
10: ['0xE43d4F4103b623B61E095E8bEA34e1bc8979e168'],
100: ['0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE'],
137: ['0x3d77596beb0f130a4415df3D2D8232B3d3D31e44'],
8453: ['0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac'],
10200: ['0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994'],
80001: ['0x9dEc6B62c197268242A768dc3b153AE7a2701396'],
84532: ['0x19936159B528C66750992C3cBcEd2e71cF4E4824'],
42161: ['0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b'],
42220: ['0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b'],
421614: ['0x19936159B528C66750992C3cBcEd2e71cF4E4824'],
11155420: ['0x19936159B528C66750992C3cBcEd2e71cF4E4824'],
44787: ['0x19936159B528C66750992C3cBcEd2e71cF4E4824'],
[mainnet.id]: ['0x46C0D07F55d4F9B5Eed2Fc9680B5953e5fd7b461'],
[optimism.id]: ['0xE43d4F4103b623B61E095E8bEA34e1bc8979e168'],
[gnosis.id]: ['0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE'],
[polygon.id]: ['0x3d77596beb0f130a4415df3D2D8232B3d3D31e44'],
[base.id]: ['0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac'],
[arbitrum.id]: ['0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b'],
[celo.id]: ['0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b'],
[mode.id]: ['0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac'],
[goerli.id]: ['0x65dD51b02049ad1B6FF7fa9Ea3322E1D2CAb1176'],
[gnosisChiado.id]: ['0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994'],
[polygonMumbai.id]: ['0x9dEc6B62c197268242A768dc3b153AE7a2701396'],
[baseSepolia.id]: ['0x19936159B528C66750992C3cBcEd2e71cF4E4824'],
[arbitrumSepolia.id]: ['0x19936159B528C66750992C3cBcEd2e71cF4E4824'],
[optimismSepolia.id]: ['0x19936159B528C66750992C3cBcEd2e71cF4E4824'],
[celoAlfajores.id]: ['0x19936159B528C66750992C3cBcEd2e71cF4E4824'],
[LOCAL_FORK_ID]: ['0x46C0D07F55d4F9B5Eed2Fc9680B5953e5fd7b461'],
[LOCAL_FORK_ID_GNOSIS]: ['0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE'],
[LOCAL_FORK_ID_POLYGON]: ['0x3d77596beb0f130a4415df3D2D8232B3d3D31e44'],
Expand All @@ -164,20 +178,21 @@ export const multisigAddresses: MultisigAddress = {
* Addresses: https://github.com/valory-xyz/autonolas-registries/blob/main/docs/configuration.json
*/
export const multisigSameAddresses: MultisigAddress = {
1: ['0xfa517d01DaA100cB1932FA4345F68874f7E7eF46'],
5: ['0x06467Cb835da623384a22aa902647784C1c9f5Ae'],
10: ['0xb09CcF0Dbf0C178806Aaee28956c74bd66d21f73'],
100: ['0x6e7f594f680f7aBad18b7a63de50F0FeE47dfD06'],
137: ['0xd8BCC126ff31d2582018715d5291A508530587b0'],
10200: ['0xE16adc7777B7C2a0d35033bd3504C028AB28EE8b'],
8453: ['0xFbBEc0C8b13B38a9aC0499694A69a10204c5E2aB'],
80001: ['0xd6AA4Ec948d84f6Db8EEf25104CeE0Ecd280C74e'],
84532: ['0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2'],
42161: ['0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac'],
42220: ['0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac'],
421614: ['0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2'],
11155420: ['0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2'],
44787: ['0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2'],
[mainnet.id]: ['0xfa517d01DaA100cB1932FA4345F68874f7E7eF46'],
[optimism.id]: ['0xb09CcF0Dbf0C178806Aaee28956c74bd66d21f73'],
[gnosis.id]: ['0x6e7f594f680f7aBad18b7a63de50F0FeE47dfD06'],
[polygon.id]: ['0xd8BCC126ff31d2582018715d5291A508530587b0'],
[base.id]: ['0xFbBEc0C8b13B38a9aC0499694A69a10204c5E2aB'],
[arbitrum.id]: ['0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac'],
[celo.id]: ['0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac'],
[mode.id]: ['0xFbBEc0C8b13B38a9aC0499694A69a10204c5E2aB'],
[goerli.id]: ['0x06467Cb835da623384a22aa902647784C1c9f5Ae'],
[gnosisChiado.id]: ['0xE16adc7777B7C2a0d35033bd3504C028AB28EE8b'],
[polygonMumbai.id]: ['0xd6AA4Ec948d84f6Db8EEf25104CeE0Ecd280C74e'],
[baseSepolia.id]: ['0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2'],
[arbitrumSepolia.id]: ['0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2'],
[optimismSepolia.id]: ['0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2'],
[celoAlfajores.id]: ['0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2'],
[LOCAL_FORK_ID]: ['0xfa517d01DaA100cB1932FA4345F68874f7E7eF46'],
[LOCAL_FORK_ID_GNOSIS]: ['0x6e7f594f680f7aBad18b7a63de50F0FeE47dfD06'],
[LOCAL_FORK_ID_POLYGON]: ['0xd8BCC126ff31d2582018715d5291A508530587b0'],
Expand All @@ -188,20 +203,21 @@ export const multisigSameAddresses: MultisigAddress = {
* https://github.com/safe-global/safe-deployments/blob/main/src/assets/v1.3.0/multi_send_call_only.json
*/
export const safeMultiSend: MultisigAddress = {
1: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
5: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
10: ['0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B'],
100: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
137: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
8453: ['0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B'],
10200: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
80001: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
84532: ['0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B'],
42161: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
42220: ['0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B'],
421614: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
11155420: ['0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B'],
44787: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[mainnet.id]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[optimism.id]: ['0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B'],
[gnosis.id]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[polygon.id]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[base.id]: ['0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B'],
[arbitrum.id]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[celo.id]: ['0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B'],
[mode.id]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[goerli.id]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[gnosisChiado.id]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[polygonMumbai.id]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[baseSepolia.id]: ['0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B'],
[arbitrumSepolia.id]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[optimismSepolia.id]: ['0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B'],
[celoAlfajores.id]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[LOCAL_FORK_ID]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[LOCAL_FORK_ID_GNOSIS]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
[LOCAL_FORK_ID_POLYGON]: ['0x40A2aCCbd92BCA938b02010E17A5b8929b49130D'],
Expand All @@ -214,20 +230,21 @@ export const safeMultiSend: MultisigAddress = {
export const FALLBACK_HANDLER: {
[chainId in ChainIds]: Address;
} = {
1: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
5: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
10: '0x017062a1dE2FE6b99BE3d9d37841FeD19F573804',
100: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
137: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
8453: '0x017062a1dE2FE6b99BE3d9d37841FeD19F573804',
10200: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
80001: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
84532: '0x017062a1dE2FE6b99BE3d9d37841FeD19F573804',
42161: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
42220: '0x017062a1dE2FE6b99BE3d9d37841FeD19F573804',
421614: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
11155420: '0x017062a1dE2FE6b99BE3d9d37841FeD19F573804',
44787: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[mainnet.id]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[optimism.id]: '0x017062a1dE2FE6b99BE3d9d37841FeD19F573804',
[gnosis.id]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[polygon.id]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[base.id]: '0x017062a1dE2FE6b99BE3d9d37841FeD19F573804',
[arbitrum.id]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[celo.id]: '0x017062a1dE2FE6b99BE3d9d37841FeD19F573804',
[mode.id]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[goerli.id]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[gnosisChiado.id]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[polygonMumbai.id]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[baseSepolia.id]: '0x017062a1dE2FE6b99BE3d9d37841FeD19F573804',
[arbitrumSepolia.id]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[optimismSepolia.id]: '0x017062a1dE2FE6b99BE3d9d37841FeD19F573804',
[celoAlfajores.id]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[LOCAL_FORK_ID]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[LOCAL_FORK_ID_GNOSIS]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
[LOCAL_FORK_ID_POLYGON]: '0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4',
Expand Down
1 change: 1 addition & 0 deletions apps/autonolas-registry/common-util/Contracts/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const RPC_URLS = {
137: process.env.NEXT_PUBLIC_POLYGON_URL,
8453: process.env.NEXT_PUBLIC_BASE_URL,
10200: process.env.NEXT_PUBLIC_GNOSIS_CHIADO_URL,
34443: process.env.NEXT_PUBLIC_MODE_URL,
42220: process.env.NEXT_PUBLIC_CELO_URL,
44787: process.env.NEXT_PUBLIC_CELO_ALFAJORES_URL,
80001: process.env.NEXT_PUBLIC_POLYGON_MUMBAI_URL,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Button, Space } from 'antd';

import { AddressLink, NA, areAddressesEqual } from '@autonolas/frontend-library';
import { AddressLink as AddressLinkSimple } from 'libs/ui-components/src';

import {
HASH_PREFIX,
Expand Down Expand Up @@ -145,9 +146,9 @@ export const getTableColumns = (
dataIndex: 'owner',
key: 'owner',
width: 200,
render: (text) => {
render: (text, record) => {
if (!text || text === NA) return NA;
return <AddressLink {...addressLinkProps} text={text} chainName={chainName} />;
return <AddressLinkSimple address={record.owner} chainId={chainId} />;
},
};

Expand Down
3 changes: 3 additions & 0 deletions apps/autonolas-registry/common-util/Login/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
optimismSepolia,
polygon,
polygonMumbai,
mode,
} from 'wagmi/chains';

import { RPC_URLS } from 'common-util/Contracts';
Expand All @@ -37,6 +38,7 @@ export const SUPPORTED_CHAINS: Chain[] = [
optimismSepolia,
celo,
celoAlfajores,
mode,
].map((chain) => {
const defaultRpc = RPC_URLS[chain.id] || chain.rpcUrls.default.http[0];
return {
Expand Down Expand Up @@ -150,6 +152,7 @@ export const ALL_SUPPORTED_CHAINS = [...EVM_SUPPORTED_CHAINS, ...SVM_SUPPORTED_C
'Base',
'Optimism',
'Celo',
'Mode Mainnet',
'Goerli',
'Gnosis Chiado',
'Polygon Mumbai',
Expand Down
Loading

0 comments on commit cf27dda

Please sign in to comment.