Skip to content

Commit

Permalink
feat: sepolia support for osnap (snapshot-labs#4624)
Browse files Browse the repository at this point in the history
Signed-off-by: Reinis Martinsons <[email protected]>
  • Loading branch information
Reinis-FRP authored Mar 19, 2024
1 parent b7b57e5 commit ddab3b2
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 4 deletions.
25 changes: 23 additions & 2 deletions src/plugins/oSnap/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ export const EXPLORER_API_URLS = {
'56': 'https://api.bscscan.com/api',
'42161': 'https://api.arbiscan.io/api',
// '1116': Add 'https://openapi.coredao.org/api' if API key requirement is removed
'11155111': 'https://api-sepolia.etherscan.io/api',
} as const;

export const GNOSIS_SAFE_TRANSACTION_API_URLS = {
Expand All @@ -1119,6 +1120,7 @@ export const GNOSIS_SAFE_TRANSACTION_API_URLS = {
'56': 'https://safe-transaction-bsc.safe.global/api',
'42161': 'https://safe-transaction-arbitrum.safe.global/api',
'1116': 'https://safetx.coredao.org/api',
'11155111': 'https://safe-transaction-sepolia.safe.global/api',
} as const;

export const SAFE_APP_URLS = {
Expand All @@ -1130,7 +1132,8 @@ export const SAFE_APP_URLS = {
'137': 'https://app.safe.global/apps/open',
'56': 'https://app.safe.global/apps/open',
'42161': 'https://app.safe.global/apps/open',
'1116': 'https://safe.coredao.org/apps/open'
'1116': 'https://safe.coredao.org/apps/open',
'11155111': 'https://app.safe.global/apps/open',
} as const;

// ABIs
Expand Down Expand Up @@ -1440,6 +1443,15 @@ export const contractData = [
'https://thegraph.coredao.org/subgraphs/name/umaprotocol/core-optimistic-oracle-v3',
deployBlock: 11341063
},
{
// sepolia
network: '11155111',
name: 'OptimisticOracleV3',
address: '0xFd9e2642a170aDD10F53Ee14a93FcF2F31924944',
subgraph:
'https://api.thegraph.com/subgraphs/name/reinis-frp/sepolia-optimistic-oracle-v3',
deployBlock: 5421195
},
{
// mainnet
network: '1',
Expand Down Expand Up @@ -1512,7 +1524,16 @@ export const contractData = [
deployBlock: 11341122,
subgraph:
'https://thegraph.coredao.org/subgraphs/name/umaprotocol/core-optimistic-governor'
}
},
{
// sepolia
network: '11155111',
name: 'OptimisticGovernor',
address: '0x40153DdFAd90C49dbE3F5c9F96f2a5B25ec67461',
deployBlock: 5421242,
subgraph:
'https://api.thegraph.com/subgraphs/name/reinis-frp/sepolia-optimistic-governor'
},
] as const;

export const transactionTypes = [
Expand Down
26 changes: 24 additions & 2 deletions src/plugins/safeSnap/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export const EIP3770_PREFIXES = {
73799: 'vt',
42161: 'arb1',
137: 'matic',
1116: 'core'
1116: 'core',
11155111: 'sep'
};

export const EXPLORER_API_URLS = {
Expand All @@ -32,6 +33,7 @@ export const EXPLORER_API_URLS = {
'56': 'https://api.bscscan.com/api',
'42161': 'https://api.arbiscan.io/api',
// '1116': Add 'https://openapi.coredao.org/api' if API key requirement is removed
'11155111': 'https://api-sepolia.etherscan.io/api',
};

export const GNOSIS_SAFE_TRANSACTION_API_URLS = {
Expand All @@ -44,6 +46,7 @@ export const GNOSIS_SAFE_TRANSACTION_API_URLS = {
'56': 'https://safe-transaction-bsc.safe.global/api',
'42161': 'https://safe-transaction-arbitrum.safe.global/api',
'1116': 'https://safetx.coredao.org/api',
'11155111': 'https://safe-transaction-sepolia.safe.global/api',
};

// ABIs
Expand Down Expand Up @@ -361,6 +364,7 @@ export const MULTI_SEND_V1_3_0 = {
'73799': '0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761',
'80001': '0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761',
'333999': '0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761',
'11155111': '0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761',
'1313161554': '0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761',
'1313161555': '0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761'
};
Expand Down Expand Up @@ -473,6 +477,15 @@ export const contractData: ContractData[] = [
'https://thegraph.coredao.org/subgraphs/name/umaprotocol/core-optimistic-oracle-v3',
deployBlock: 11341063
},
{
// sepolia
network: '11155111',
name: 'OptimisticOracleV3',
address: '0xFd9e2642a170aDD10F53Ee14a93FcF2F31924944',
subgraph:
'https://api.thegraph.com/subgraphs/name/reinis-frp/sepolia-optimistic-oracle-v3',
deployBlock: 5421195
},
{
// mainnet
network: '1',
Expand Down Expand Up @@ -545,5 +558,14 @@ export const contractData: ContractData[] = [
deployBlock: 11341122,
subgraph:
'https://thegraph.coredao.org/subgraphs/name/umaprotocol/core-optimistic-governor'
}
},
{
// sepolia
network: '11155111',
name: 'OptimisticGovernor',
address: '0x40153DdFAd90C49dbE3F5c9F96f2a5B25ec67461',
deployBlock: 5421242,
subgraph:
'https://api.thegraph.com/subgraphs/name/reinis-frp/sepolia-optimistic-governor'
},
];

0 comments on commit ddab3b2

Please sign in to comment.