PrimeDAO / prime-launch-dapp

https://launch.prime.xyz
6 stars 13 forks source link

Checkout Celo addition from the Kolektivo repo #761

Open hiaux0 opened 2 years ago

hiaux0 commented 2 years ago
giladt commented 1 year ago

Networks:

Endpoints:

WalletConnect config:

walletconnect: {
 package: WalletConnectProvider, // required
 options: {
   rpc: {
     CELO_MAINNET_CHAIN_ID: this.endpoints[Networks.Celo],
     CELO_ALFAJORES_CHAIN_ID: this.endpoints[Networks.Alfajores],
   },
 },
},

Celo-Tools

https://www.npmjs.com/package/@celo-tools/celo-ethers-wrapper CeloProvider is a wrapper that enables Ethersjs to work with the Celo network. Specific for launch it might solve the getBlock workaround, since Celo is not supporting gasLimit. It is implemented to create the readOnlyProvider in EthereumService.

Quick test to implement Celo-Tools in prime-launch ended with an error:

this.readOnlyProvider = new CeloProvider(...);

image.png

giladt commented 1 year ago

Other than the use of Celo-Tools, no significant differences were found in the implementation of the Celo network.