Skip to content

Commit

Permalink
Merge pull request #165 from open-format/feature/amoy-network-integra…
Browse files Browse the repository at this point in the history
…tion

Feature: Polygon Amoy network integration
  • Loading branch information
nup9151f authored Apr 11, 2024
2 parents e4fd6ed + a6610fc commit c80a32a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/sdk/src/constants/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const appFactoryContracts: ContractData = {
[Chains.polygonMumbai.id]: {
address: '0x429cB2c2A030952D3F5e10B534584aB49c303763',
},
[Chains.polygonAmoy.id]: {
address: '0x542D145f2c66CB9ac58447Fe141BFB12fea7C8bE',
},
[Chains.aurora.id]: {
address: '0xc0553B98d93114FB241196272603DF4543359820',
},
Expand Down
31 changes: 31 additions & 0 deletions packages/sdk/src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,42 @@ export const arbitrumSepolia = {
testnet: true,
};

export const polygonAmoy = {
id: 80002,
name: 'Polygon Amoy',
network: 'amoy',
nativeCurrency: { name: 'MATIC', symbol: 'MATIC', decimals: 18 },
rpcUrls: {
alchemy: {
http: ['https://polygon-amoy.g.alchemy.com/v2'],
webSocket: ['wss://polygon-amoy.g.alchemy.com/v2'],
},
infura: {
http: ['https://polygon-amoy.infura.io/v3'],
webSocket: ['wss://polygon-amoy.infura.io/ws/v3'],
},
default: {
http: ['https://rpc-amoy.polygon.technology'],
},
public: {
http: ['https://rpc-amoy.polygon.technology'],
},
},
blockExplorers: {
default: {
name: 'OkLink',
url: 'https://www.oklink.com/amoy',
},
},
testnet: true,
} as const satisfies Chain;

export const Chains = {
aurora,
auroraTestnet,
foundry,
polygon,
polygonMumbai,
arbitrumSepolia,
polygonAmoy,
};

0 comments on commit c80a32a

Please sign in to comment.