GithubHelp home page GithubHelp logo

clover's Introduction

Substrate version Contributors Forks Stargazers Issues GPLV3 License


Clover Network - An Open DeFi Platform

Clover network is a connector between decentralized assets and centralized exchanges. Powered by Polkadot parachain technology, Clover provides a platform for DeFi applications and cross-chain asset interactions.
Explore the docs »

Report Bug · Request Feature

Built With

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GPL V3 License. See LICENSE for more information.

clover's People

Contributors

fanxy1995 avatar gavfu avatar ldy0909061 avatar pangwa avatar superpw avatar werlandy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clover's Issues

1337 Unable to retrieve chain ID. Is your RPC URL correct?

Description

Tell us what happened. In particular, be specific about any changes you made to this template.
Ideally, provide a link to your project's GitHub repository. Please note that we are not able to
support all conceivable changes to this template project, but the more information you are able to
provide the more equipped we will be to help.

Steps to Reproduce

Replace the example steps below with actual steps to reproduce the bug you're reporting.

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected vs. Actual Behavior

What did you expect to happen after you followed the steps you described in the last section? What
actually happened?

Environment

Describe the environment in which you encountered this bug. Use the list below as a starting point
and add additional information if you think it's relevant.

  • Operating system:
  • Template version/tag:
  • Rust version (run rustup show):

Logs, Errors or Screenshots

Please provide the text of any logs or errors that you experienced; if
applicable, provide screenshots to help illustrate the problem.

Additional Information

Please add any other details that you think may help us solve your problem.

Node startup failure

version:cloverio/clover-para:v0.1.24
I downloaded the trunk link snapshot of the node, but the node startup error
截屏2023-06-09 22 01 54

Failed to obtain trace data

Startup parameters include --ethapi=debug,trace

curl -s -X POST -H "Content-Type: application/json" -d '{"method":"debug_traceBlockByNumber","params":["0x451558", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' http://127.0.0.1:9933 | jq
{
"jsonrpc": "2.0",
"error": {
"code": -32603,
"message": ""Trace result is empty.""
},
"id": 1
}

node say like this

this problem or not ?
Verification failed for block 0x26f071d875dff16a0b2ac9aecc661f79cf7af2014d410744e786ad8fccd27ff4 received from peer: 12D3KooWDDG2xjeEJ827tzb7WiwgBF5mx6Ygz1RxTYDg1B14iauj, "Header 0x26f071d875dff16a0b2ac9aecc661f79cf7af2014d410744e786ad8fccd27ff4 rejected: too far in the future"

Build failed with `CHAIN_ID` error

 error[E0425]: cannot find value `CHAIN_ID` in this scope
     --> /home/nkt/git/clover/runtime/src/lib.rs:383:28
      |
  383 |   pub const ChainId: u64 = CHAIN_ID;
      |                            ^^^^^^^^ not found in this scope

  error: aborting due to previous error

  For more information about this error, try `rustc --explain E0425`.
  error: could not compile `clover-runtime`

  To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...

out-of-box build fails

Description

Tell us what happened. In particular, be specific about any changes you made to this template.
Ideally, provide a link to your project's GitHub repository. Please note that we are not able to
support all conceivable changes to this template project, but the more information you are able to
provide the more equipped we will be to help.

Following steps from this page fails 2 ways.
first way
running scripts/init.sh fails with a number of rust errors, most of which are error[E0658]: const generics are unstable.
This can be overcome by using the latest nightly of rust instead of the specified version in init.sh

second way
Using the latest nightly of rust, running cargo build --release gives us the error:

error: failed to download `parity-db v0.2.3`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/home/mattrose/.cargo/registry/src/github.com-1ecc6299db9ec823/parity-db-0.2.3/Cargo.toml`

Caused by:
  failed to parse the version requirement `0.11	` for dependency `parking_lot`

Caused by:
  expected comma after minor version number, found '\t'

This can be overcome with cargo update -p parity-db to update parity-db to latest version.
Additional failures continue with substrate libs, of which there are too many to fix/update.

Any help getting a node up and running would be appreciated.

Steps to Reproduce

Replace the example steps below with actual steps to reproduce the bug you're reporting.

  1. Go to this link https://docs.clover.finance/quick-start/local-node/setting-up-a-node
  2. Try to run step 3, assuming you have pre-requisite software installed
  3. See errors mentioned above

Expected vs. Actual Behavior
Expected - clover would build and I could run a local node
Actual - a bunch of errors and clover did not build

Environment

Describe the environment in which you encountered this bug. Use the` list below as a starting point
and add additional information if you think it's relevant.

  • Operating system:
    • uname -a -> Linux 5.7.0+ #1 SMP Sun Nov 29 20:42:36 CST 2020 x86_64 x86_64 x86_64 GNU/Linux
  • Template version/tag:
  • Rust version (run rustup show): tried nightly-x86_64-unknown-linux-gnu and nightly-2020-09-25-x86_64-unknown-linux-gnu, the one set by init.sh. Neither worked.

Logs, Errors or Screenshots

Please provide the text of any logs or errors that you experienced; if
applicable, provide screenshots to help illustrate the problem.

Errors listed earlier.

Additional Information

Please add any other details that you think may help us solve your problem.
Update substrate and clover dependencies to match

if there is a function to genereate address startwith 5? or more rpc method just like polkadot?

i found that there are some demo for js about how to transfer,but there is no demo about how to generate new address ,the docs said clv is based on polkadot ,but there are a lot of ETH method are allowed ,and dot method are not allowed just like 'dot_new_account' , as a python dev i wonder if there is a way to generate new address , if there is a method like 'clv_new_account' for me to generate new address ? if i want to transfer i need to use the address start with 0x or 5 ? ,if i want to generate address startwith 5 how can i do? hope your answer, thanks .

cargo build --release //error

error[E0425]: cannot find value CHAIN_ID in this scope
--> /mnt/c/Users/..../clover/runtime/src/lib.rs:384:28
|
384 | pub const ChainId: u64 = CHAIN_ID;
| ^^^^^^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try rustc --explain E0425.
error: could not compile clover-runtime

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

How to ifx ?

Sakura node RPC endpoint

Hi guys, I am trying to connect to Sakura node using wss://api-sakura.clover.finance, but it does not work. Are there any other endpoints available? Thanks

Build failed on Mac M1

Description

Build failed

error[E0609]: no field `__rip` on type `__darwin_arm_thread_state64`
   --> /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-runtime-0.22.0/src/traphandlers.rs:169:44
    |
169 |                     (*cx.uc_mcontext).__ss.__rip as *const u8
    |                                            ^^^^^ unknown field
    |
    = note: available fields are: `__x`, `__fp`, `__lr`, `__sp`, `__pc` ... and 2 others

For more information about this error, try `rustc --explain E0609`.
error: could not compile `wasmtime-runtime` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Steps to Reproduce

I'm following this link to build a node to run on local https://docs.clover.finance/quick-start/using-local-node

git clone [email protected]:clover-network/clover.git
cd clover

cargo build --release --features clover-testnet

Expected vs. Actual Behavior

Build successfully

Environment

  • Operating system: MacOS Monterey
  • Template version/tag: develop
  • Rust version (run rustup show):
Default host: aarch64-apple-darwin
rustup home:  /Users/xxx/.rustup

installed toolchains
--------------------

stable-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin

active toolchain
----------------

stable-aarch64-apple-darwin (default)
rustc 1.57.0 (f1edd0429 2021-11-29)

Logs, Errors or Screenshots

   Compiling wasmtime-debug v0.22.0
error[E0609]: no field `__rip` on type `__darwin_arm_thread_state64`
   --> /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-runtime-0.22.0/src/traphandlers.rs:169:44
    |
169 |                     (*cx.uc_mcontext).__ss.__rip as *const u8
    |                                            ^^^^^ unknown field
    |
    = note: available fields are: `__x`, `__fp`, `__lr`, `__sp`, `__pc` ... and 2 others

For more information about this error, try `rustc --explain E0609`.
error: could not compile `wasmtime-runtime` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Additional Information

Build latest substrate-node-template successfully

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.