Comments (2)
Hey @0xWhiteleaf, for what it's worth I found myself in a similar situation as you described.
Eventually what I missed was setting up Proxy factories and Safe master copies for my custom chain. After adding these, the indexing started working properly.
Hope this helps 👍
from safe-infrastructure.
Hey @leopaul36
It did the job! Thanks a lot for this 👍
I'm adding something else also, if you use a custom Layer 2 with a custom token as gas token, you'll also need to patch the configuration.js
file inside the cgw-web
in order to avoid an error when you land on your Safe dashboard (allow the Safe Client Gateway to resolve your native token price).
It's located here inside the container: dist/config/entities/configuration.js
You'll need to add a key to the balances.providers.safe.prices.chains
property, like what we did for Arianee:
...
prices: {
baseUri: process.env.PRICES_PROVIDER_API_BASE_URI ||
'https://api.coingecko.com/api/v3',
apiKey: process.env.PRICES_PROVIDER_API_KEY,
...
chains: {
1: { nativeCoin: 'ethereum', chainName: 'ethereum' },
10: { nativeCoin: 'ethereum', chainName: 'optimistic-ethereum' },
100: { nativeCoin: 'xdai', chainName: 'xdai' },
1101: { nativeCoin: 'ethereum', chainName: 'polygon-zkevm' },
11155111: { nativeCoin: 'ethereum', chainName: 'ethereum' },
1313161554: { nativeCoin: 'ethereum', chainName: 'aurora' },
137: { nativeCoin: 'matic-network', chainName: 'polygon-pos' },
324: { nativeCoin: 'ethereum', chainName: 'zksync' },
42161: { nativeCoin: 'ethereum', chainName: 'arbitrum-one' },
42220: { nativeCoin: 'celo', chainName: 'celo' },
43114: { nativeCoin: 'avalanche-2', chainName: 'avalanche' },
5: { nativeCoin: 'ethereum', chainName: 'ethereum' },
56: { nativeCoin: 'binancecoin', chainName: 'binance-smart-chain' },
8453: { nativeCoin: 'ethereum', chainName: 'base' },
84531: { nativeCoin: 'ethereum', chainName: 'base' },
11891: { nativeCoin: 'arianee', chainName: 'arianee' }, <-- This is the key
},
},
...
PS: You native coin needs to be listed on CoinGecko
Hope this helps next adventurers
from safe-infrastructure.
Related Issues (20)
- Add safe-events-service to infrastructure HOT 4
- Programmatic configuration of safe master copy HOT 6
- Update url to production chain config
- Update Docker Compose file to improve service startup dependencies
- Unable to access UI at http://localhost:8080 HOT 3
- Unable to start Transaction Service locally HOT 3
- could not get messages HOT 2
- Update diagram of infrastructure
- cgw service /v1/chains/:chainId/safes/:safeAddress 503 error HOT 1
- safe-infra helm chart available? HOT 1
- No web UI on 8080 locally HOT 1
- Web UI with local install HOT 4
- Error while running safe locally HOT 3
- Issue to deploy safe infrastructure on a new chain HOT 11
- Add new chains automatically HOT 1
- Cant add new chain HOT 3
- Additional steps to fully launch on a new chain HOT 4
- First execution does not work as tx service migrations need to be run first HOT 1
- Add new client-gateway
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from safe-infrastructure.