Git Product home page Git Product logo

greenfield's Introduction

Greenfield

banner

Official Golang implementation of the Greenfield Blockchain. It uses cometbft for consensus and build on cosmos-sdk.

BNB Greenfield aims to facilitate the decentralized data economy by simplifying the process of storing and managing data access, as well as linking data ownership with the massive DeFi context of the BNB Smart Chain (BSC).

BNB Greenfield operates through three core components, which distinguish it from existing centralized and decentralized storage systems::

  • It enables Ethereum-compatible addresses to create and manage data and token assets seamlessly.
  • It natively links data permissions and management logic onto BSC as exchangeable assets and smart contract programs, thereby providing developers with a more efficient and flexible way of managing their data and permissions.
  • It provides similar API primitives and performance as popular existing Web2 cloud storage systems.

These features offer a novel and innovative approach to decentralized data management and ownership in the DeFi space. Overall, BNB Greenfield presents a promising solution for bringing greater flexibility, control, and efficiency to users in the decentralized data economy.

Disclaimer

The software and related documentation are under active development, all subject to potential future change without notification and not ready for production use. The code and security audit have not been fully completed and not ready for any bug bounty. We advise you to be careful and experiment on the network at your own risk. Stay safe out there.

Greenfield Core

The center of BNB Greenfield are two layers:

  1. A new storage-oriented blockchain, and
  2. network composed of "storage providers".

This repo is the official implementation of Greenfield blockchain.

The blockchain of BNB Greenfield serves a dual purpose of maintaining the ledger for users as well as the storage metadata as common blockchain state data. The blockchain has its native token, BNB, which is transferred from the BNB Smart Chain, and is utilized for gas and governance functionalities. Governance is further enabled through the staking logic that is unique to the BNB Greenfield blockchain.

The Greenfield blockchain has two categories of states that are stored on-chain:

  1. The ledger of accounts and their BNB balance

  2. The metadata of the object storage system and service providers, along with the metadata of the objects stored on the storage system, permission and billing information pertaining to the storage system.

Transactions on the Greenfield blockchain have the ability to modify the aforementioned on-chain states. These states and the transactions that affect them are at the core of the economic data on the BNB Greenfield platform.

Users looking to create or access data on Greenfield may do so by engaging with the BNB Greenfield Core Infrastructure through decentralized applications known as BNB Greenfield dApps. These dApps provide a user-friendly interface for interacting with the platform, enabling users to create and manipulate data in a secure and decentralized environment.

Documentation

Visit our official documentation site for more info.

Quick Started

Note: Requires Go 1.20+

## Build from source
make build

## start a private network with 3 validators and 3 storage providers
$ bash ./deployment/localup/localup.sh all  3 3

## query the key of the first validator
$ ./build/bin/gnfd keys list --home   $(pwd)/deployment/localup/.local/validator0   --keyring-backend test

## get the balance of an account
$ addr=`./build/bin/gnfd keys list --home   $(pwd)/deployment/localup/.local/validator0   --keyring-backend test|grep address|awk '{print $3}'`
$ ./build/bin/gnfd q bank balances $addr  --node tcp://127.0.0.1:26750 

## send BNB
$ ./build/bin/gnfd tx bank send validator0 0x73a4Cf67b46D7E4efbb95Fc6F59D64129299c2E3 100000000000000000000BNB --from validator0 -y --node tcp://127.0.0.1:26750 --home $(pwd)/deployment/localup/.local/validator0 --keyring-backend test  --broadcast-mode block

## stop the private chain
$ bash ./deployment/localup/localup.sh stop 

## restart the private chain
bash ./deployment/localup/localup.sh start 3 3

More advanced script and command line usage, please refer to the Tutorial.

Key Modules

  • x/bridge: provide the cross-chain token transfer function, enabling BNB to flow freely between Greenfield and BSC network with native support.
  • x/challenge: generate random data challenge events or accept user's data challenge requests.
  • x/payment: handle the billing and payment of the storage module. User fees are paid through "Stream" on Greenfield, with a constant rate of payment from users to Storage Providers (SP) with charges applied every second of usage.
  • x/sp: manage the various storage providers within the network.
  • x/storage: users can manage their storage data through this module, like create/delete bucket, create/delete storage object.
  • x/permission: user can manage its resource permission through this module, like put/delete policy for storage object.

And the following modules are in cosmos-sdk:

  • x/crosschain: manage the cross chain packages, like store/query/update the cross chain package, channels, sequences.
  • x/gashub: provide a governable and predictable fee charge mechanism.
  • x/oracle: provide a secure runtime for cross chain packages.
  • x/staking: based on the Proof-of-Stake logic. The elected validators are responsible for the security of the Greenfield blockchain. They get involved in the governance and staking of the blockchain.

Refer to the docs to dive deep into these modules.

Running node

Related Projects

Contribution

Thank you for expressing your willingness to contribute to the Greenfield source code. We deeply appreciate any help, no matter how small the fix. We welcome contributions from anyone on the internet, and we value your input.

If you're interested in contributing to Greenfield, please follow these steps:

  1. Fork the project on GitHub.
  2. Fix the issue.
  3. Commit the changes.
  4. Send a pull request for the maintainers to review and merge into the main codebase.

If you're planning to submit more complex changes, we kindly suggest that you reach out to the core developers first. This could be done through a GitHub issue or our upcoming Discord channel. By doing so, you could ensure that your changes are aligned with the project's general philosophy, and you can receive valuable feedback that will make your efforts lighter as well as our review and merge procedures quick and simple.

Once again, thank you for your willingness to contribute to the Greenfield project. We look forward to working with you!

Licence

The greenfield library (i.e. all code outside the cmd directory) is licensed under the GNU Lesser General Public License v3.0, also included in our repository in the COPYING.LESSER file.

The greenfield binaries (i.e. all code inside the cmd directory) is licensed under the GNU Affero General Public License v3.0, also included in our repository in the COPYING file.

greenfield's People

Contributors

alexgao001 avatar andywkh avatar annielz avatar barrytong65 avatar constwz avatar cosinlink avatar forcodedancing avatar fynnss avatar iakisme avatar j75689 avatar jingjunli avatar keefel avatar owen-reorg avatar pythonberg1997 avatar randyahx avatar ruojunm avatar rylzxc avatar unclezoro avatar yutianwu 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

greenfield's Issues

gnfd start, no witnesses connected

gnfd version
Version: v0.1.2
Git Commit: 42ff263960cb3aa450d6df5dace24c2c8e5a03cc
Git Commit Date: 20230421
Architecture: amd64
Go Version: go1.20.3

start-up command : gnfd start

get error logs:

5:13PM INF Added peer module=p2p peer={"Data":{},"Logger":{}}
5:13PM INF error from light block request from primary, removing... error="client provided bad signed header: expected validator hash of header to match validator set hash (DA613BCA8158608F5BB32AF1A6561F4142807D4B8C957B5AB173FB49AF3CF952 != BB218DF7DE45D9F7C5E158A78E99C5FB25F455500121084219D393E761723BC1)" height=300000 module=light primary={}
5:13PM ERR error on light block request from witness, removing... error="client provided bad signed header: expected validator hash of header to match validator set hash (DA613BCA8158608F5BB32AF1A6561F4142807D4B8C957B5AB173FB49AF3CF952 != BB218DF7DE45D9F7C5E158A78E99C5FB25F455500121084219D393E761723BC1)" module=light primary={}
5:13PM ERR failed to remove witnesses err="no witnesses connected. please reset light client" module=light witnessesToRemove=[0]
Error: failed to start state sync: failed to set up light client state provider: client provided bad signed header: expected validator hash of header to match validator set hash (DA613BCA8158608F5BB32AF1A6561F4142807D4B8C957B5AB173FB49AF3CF952 != BB218DF7DE45D9F7C5E158A78E99C5FB25F455500121084219D393E761723BC1)

Stopping peer for error

gnfd version

Version: v0.1.1-5-g2a39d52
Git Commit: 2a39d52ed956e947b9cf685a5c84ecd66429cb1c
Git Commit Date: 20230504
Architecture: amd64
Go Version: go1.20.3
Operating System: linux

logs:

May 06 15:09:03 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:03.582 INF service start impl=MConn{35.76.22.132:26656} module=p2p msg={} peer={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656}
May 06 15:09:03 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:03.582 INF Added peer module=p2p peer={"Data":{},"Logger":{}}
May 06 15:09:03 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:03.917 INF invalid peer blockHeight=884872 module=blockchain peer=f811d0f87415bcc5daba37ec925b137a1b403372
May 06 15:09:03 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:03.917 ERR Stopping peer for error err="error with peer f811d0f87415bcc5daba37ec925b137a1b403372: invalid peer" module=p2p peer={"Data":{},"Logger":{}}
May 06 15:09:03 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:03.917 INF service stop impl={"Data":{},"Logger":{}} module=p2p msg={} peer={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656}
May 06 15:09:03 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:03.917 INF service stop impl={"Logger":{}} module=p2p msg={} peer={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656}
May 06 15:09:03 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:03.917 INF Reconnecting to peer addr={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656} module=p2p
May 06 15:09:03 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:03.917 INF Dialing peer address={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656} module=p2p
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.082 INF service start impl="Peer{MConn{35.76.22.132:26656} f811d0f87415bcc5daba37ec925b137a1b403372 out}" module=p2p msg={} peer={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656}
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.083 INF service start impl=MConn{35.76.22.132:26656} module=p2p msg={} peer={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656}
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.083 INF Added peer module=p2p peer={"Data":{},"Logger":{}}
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.465 INF invalid peer blockHeight=885125 module=blockchain peer=f811d0f87415bcc5daba37ec925b137a1b403372
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.465 INF invalid peer blockHeight=885058 module=blockchain peer=f811d0f87415bcc5daba37ec925b137a1b403372
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.465 ERR Stopping peer for error err="error with peer f811d0f87415bcc5daba37ec925b137a1b403372: invalid peer" module=p2p peer={"Data":{},"Logger":{}}
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.465 INF service stop impl={"Logger":{}} module=p2p msg={} peer={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656}
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.465 ERR Stopping peer for error err="read tcp 10.7.36.157:52828->35.76.22.132:26656: use of closed network connection" module=p2p peer={"Data":{},"Logger":{}}
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.465 INF service stop impl={"Data":{},"Logger":{}} module=p2p msg={} peer={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656}
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.465 ERR error while stopping peer error="already stopped" module=p2p
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.465 ERR Cannot unsubscribe events event={} module=votepool peer=f811d0f87415bcc5daba37ec925b137a1b403372
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.465 INF Reconnecting to peer addr={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656} module=p2p
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.465 INF Dialing peer address={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656} module=p2p
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.634 INF service start impl="Peer{MConn{35.76.22.132:26656} f811d0f87415bcc5daba37ec925b137a1b403372 out}" module=p2p msg={} peer={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656}
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.634 INF service start impl=MConn{35.76.22.132:26656} module=p2p msg={} peer={"id":"f811d0f87415bcc5daba37ec925b137a1b403372","ip":"35.76.22.132","port":26656}
May 06 15:09:04 10-7-36-157 gnfd[753096]: 2023-05-06T15:09:04.634 INF Added peer module=p2p peer={"Data":{},"Logger":{}}

Upload file to my SP failed

Hi team. Please help us check out how to proceed next.

  • What we wanted:
    upload file to SP via gnfd-cmd (v0.0.8)

  • Result:
    failed, multiple attempts

  • What we have checked:
    used following codes

> gnfd-cmd object put ./helloh9.txt gnfd://felixtest1/test5.txt
create object test5.txt on chain finish, txn Hash: 225BC73D1B1D7E1008E6D3E4443AFC817EFF3035A58144E191BE03FA1ED706B6
{"level":"error","time":"2023-07-11T19:35:16+08:00","message":"do API error, url: https://felixtest1.gnfd-sp-testnet.hashcell.link/test5.txt?upload-progress=, err: statusCode 500 : code : 95202  request-id  (Message: server slipped away, try again later)"}

Log:
"caller":"p2p/p2p_task.go:39","msg":"failed to get sufficient approvals as secondary sp","task_key":"ReplicatePieceApproval-bucket:felixtest1-object:test5.txt-id:296261","accept":0,"min":6,"max":6}

The file has been uploaded to S3 and can be viewed in the background of AWS.

Please assist:

  1. Did we miss out on the config?
  2. Or shall we be added to your whitelist manually on your end?

Thanks!

Encode events in transactions into greenfield/proto/greenfield events

Rationale

When developers handle the events from transactions, there isn't such a function that can decode the event in transactions into greenfield/proto/greenfield event. Therefore developers should write related decoding function for greenfield/proto/greenfield event one by one. This is very inconvenient。

I think if there is such functions would be great.

failed to print unsigned std tx: post failed: Post "http://localhost:26657"

  1. follow the Setup Local Chain: https://github.com/bnb-chain/greenfield/tree/master/deployment
  2. run step 1~4 completed
  3. run step 5 raise an error: Error: failed to print unsigned std tx: post failed: Post "http://localhost:26657": dial tcp 127.0.0.1:26657: connect: connection refused

./build/bin/gnfd gentx validator 10000000000000000000000000BNB $VALIDATOR $RELAYER $CHALLENGER $BLS --keyring-backend=test --chain-id=greenfield_9000-121 \ --moniker="validator" \ --commission-max-change-rate=0.01 \ --commission-max-rate=1.0 \ --commission-rate=0.07
image

Provide the API version in an endpoint

It would be great if you provide a get_info endpoint where you get the API version and maybe other data. The current get_node_info doesn't provide the greenfield version but only the tendermint core version (version: 0.34.24).

Use case:

You have a library/SDK compatible with v0.1.0 and the node gets updated to v0.1.2. The SDK that connects to the v0.1.2 should present a warning or directly not work on the new version.

File upload issue in Greenfield CLI :

System information

Greenfield version: gnfd-cmd version v1.0.1
OS & Version: Ubuntu LTS

Expected behaviour

Succesful file upload when calling this command:
gnfd-cmd object put --visibility private ./random_file gnfd://greenfieldtutorial/FirstDemo/randomfile

Actual behaviour

Getting this error : run command error: fail to load the segment hash

Steps to reproduce the behaviour

Launch a AWS EC2 instance of Ubuntu type (Free tier)
Install Go go version go1.21.5 linux/amd64
Install gnfd-cmd gnfd-cmd v1.0.1 by downloading tar.gz file , extract it .
cd greenfield-cmd-1.0.1 and make build
create config.toml file as mentioned in docs for testnet.
import a metamask account set it as default
create a bucket named greenfieldtutorial and upload file using : gnfd-cmd object put ./random_file gnfd://greenfieldtutorial/randomfile

Bnb

System information

Greenfield version: gnfd version
OS & Version: Windows/Linux/OSX
Commit hash : (if develop)

Expected behaviour

Actual behaviour

Steps to reproduce the behaviour

Backtrace

[backtrace]

When submitting logs: please submit them as text and not screenshots.

Can users grant permission to others to write objects to a bucket?

In the test for greenfield-go-sdk, specifically test-example, ACTION_CREATE_OBJECT is granted during PutBucketPolicy. However, according to greenfield-cmd, the bucket policy actions can be "update" or "delete". I am unsure which one is correct. Also, I would like to know if users can grant permission to others to write objects to a bucket.

proof length is invalid 0: validator bls proof is invalid

  1. exec condition:
    MacOS M1
    testnet_config.zip from https://github.com/bnb-chain/greenfield/releases/tag/v0.2.3-alpha.5

  2. gnfd version:

Version: v0.2.3-alpha.5
Git Commit: d3bebb2
Git Commit Date: 20230713
Architecture: arm64
Go Version: go1.19.4
Operating System: darwin%

  1. run:

./gnfd start --home ~/company_project/.gnfd

  1. happened:

2:09PM INF starting node with ABCI Tendermint in-process module=server
2:09PM INF service start impl=multiAppConn module=proxy msg={}
2:09PM INF service start connection=query impl=localClient module=abci-client msg={}
2:09PM INF service start connection=snapshot impl=localClient module=abci-client msg={}
2:09PM INF service start connection=mempool impl=localClient module=abci-client msg={}
2:09PM INF service start connection=consensus impl=localClient module=abci-client msg={}
2:09PM INF service start connection=eth_query impl=localClient module=abci-client msg={}
2:09PM INF service start connection=prefetch impl=localClient module=abci-client msg={}
2:09PM INF service start impl=EventBus module=events msg={}
2:09PM INF service start impl=PubSub module=pubsub msg={}
2:09PM INF service start impl=IndexerService module=txindex msg={}
2:09PM INF ABCI Handshake App Info hash= height=0 module=consensus protocol-version=0 software-version=v0.2.3-alpha.5
2:09PM INF ABCI Replay Blocks appHeight=0 module=consensus stateHeight=0 storeHeight=0
2:09PM INF InitChain chainID=greenfield_5600-1 initialHeight=1 module=server
2:09PM INF initializing blockchain state from genesis.json module=server
panic: failed to execute DeliverTx for '{
"body": {
"messages": [
{
"@type": "/cosmos.staking.v1beta1.MsgCreateValidator",
"description": {
"moniker": "Alpha-5",
"identity": "",
"website": "",
"security_contact": "",
"details": "Alpha-5"
},
"commission": {
"rate": "0.000000000000000000",
"max_rate": "1.000000000000000000",
"max_change_rate": "0.010000000000000000"
},
"min_self_delegation": "1000000000000000000000",
"delegator_address": "0xd232339d21D20673CAb8c7EA2b7e96B1Ceb702C5",
"validator_address": "0xd232339d21D20673CAb8c7EA2b7e96B1Ceb702C5",
"pubkey": {
"@type": "/cosmos.crypto.ed25519.PubKey",
"key": "h3HfJh6R8nAMKVw1Lmp19B0qSZhnthqyErmLG0gm1nI="
},
"value": {
"denom": "BNB",
"amount": "1000000000000000000000"
},
"from": "0xd232339d21D20673CAb8c7EA2b7e96B1Ceb702C5",
"relayer_address": "0x2283a68aa25e372eAdfE76adF604388C7b8EE10d",
"challenger_address": "0x65460A347cD5244350B46343D3F961f0fC3B3Bfa",
"bls_key": "b7130fb95ceb93c201e504bf5de99f7e2ccec983d6a59d5a2600a62dd87f89baf404ebaf60cdda9f7d28651819dd4c8f"
}
],
"memo": "[email protected]:26656",
"timeout_height": "0",
"extension_options": [],
"non_critical_extension_options": []
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"@type": "/cosmos.crypto.eth.ethsecp256k1.PubKey",
"key": "A5obp2TBEg3VjAJ0E386eR8l5vhhH4LTl6eyDV/yjwUP"
},
"mode_info": {
"single": {
"mode": "SIGN_MODE_EIP_712"
}
},
"sequence": "0"
}
],
"fee": {
"amount": [],
"gas_limit": "200000000",
"payer": "",
"granter": ""
},
"tip": null
},
"signatures": [
"xNERDpPkdQoz2G4aF6KbaATjg6xOjyNJzhLRVEmVvbtsCbC5+zrtCXkeRQQ5JqYK02ZO6izARPSa7LFnvN5ImgA="
]
}': proof length is invalid 0: validator bls proof is invalid

goroutine 14 [running]:
github.com/cosmos/cosmos-sdk/x/genutil.AppModule.InitGenesis({{}, {, }, {, }, , {, }}, {{0x106bcdb68, 0x140002f0230}, ...}, ...)
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/x/genutil/module.go:115 +0x118
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(
, {{0x106bcdb68, 0x140002f0230}, {0x106bdff40, 0x140006a75c0}, {{0x0, 0x0}, {0x14002348048, 0x11}, 0x0, ...}, ...}, ...)
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/types/module/module.go:357 +0x348
github.com/bnb-chain/greenfield/app.(*App).InitChainer(
, {{0x106bcdb68, 0x140002f0230}, {0x106bdff40, 0x140006a75c0}, {{0x0, 0x0}, {0x14002348048, 0x11}, 0x0, ...}, ...}, ...)
/Users/fqw/company_project/greenfield/app/app.go:780 +0x514
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0x140013b4480, {{0x2d71aea8, 0xedc29a080, 0x0}, {0x14002348048, 0x11}, 0x14000f4f640, {0x107db55d8, 0x0, 0x0}, ...})
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/baseapp/abci.go:93 +0x470
github.com/cometbft/cometbft/abci/client.(*localClient).InitChainSync(0x140023b7260, {{0x2d71aea8, 0xedc29a080, 0x0}, {0x14002348048, 0x11}, 0x14000f4f640, {0x107db55d8, 0x0, 0x0}, ...})
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/abci/client/local_client.go:265 +0x18c
github.com/cometbft/cometbft/proxy.(*appConnConsensus).InitChainSync(0x14002343ce0, {{0x2d71aea8, 0xedc29a080, 0x0}, {0x14002348048, 0x11}, 0x14000f4f640, {0x107db55d8, 0x0, 0x0}, ...})
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/proxy/app_conn.go:97 +0x170
github.com/cometbft/cometbft/consensus.(*Handshaker).ReplayBlocks(, {{{0xb, 0x0}, {0x10592bc65, 0x6}}, {0x14002348048, 0x11}, 0x1, 0x0, {{0x0, ...}, ...}, ...}, ...)
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/consensus/replay.go:319 +0xae8
github.com/cometbft/cometbft/consensus.(*Handshaker).Handshake(0x1400145bc18, {0x106bea358, 0x14001516000})
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/consensus/replay.go:268 +0x38c
github.com/cometbft/cometbft/node.doHandshake({
, }, {{{0xb, 0x0}, {0x10592bc65, 0x6}}, {0x14002348048, 0x11}, 0x1, 0x0, ...}, ...)
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/node/node.go:344 +0x104
github.com/cometbft/cometbft/node.NewNode(0x140001789a0, {0x106bcdee8, 0x14002293720}, 0x1400231b860, {0x106bac0e0, 0x140023426c0}, 0x140013ff890?, 0x1?, 0x1400238ea30, {0x106bceea8, ...}, ...)
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/node/node.go:821 +0x3f0
github.com/cosmos/cosmos-sdk/server.startInProcess(
, {{0x0, 0x0, 0x0}, {0x106be1600, 0x14001211860}, 0x0, {0x14000488708, 0x11}, {0x106beac80, ...}, ...}, ...)
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/server/start.go:365 +0x6f4
github.com/cosmos/cosmos-sdk/server.StartCmd.func2.2()
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/server/start.go:162 +0x48
github.com/cosmos/cosmos-sdk/server.wrapCPUProfile.func2()
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/server/start.go:602 +0x30
created by github.com/cosmos/cosmos-sdk/server.wrapCPUProfile
/Users/fqw/go/pkg/mod/github.com/bnb-chain/[email protected]/server/start.go:601 +0x1e4

Failed to grant gov module to create my validator

I got this error when granting gov module to create my validator

$ gnfd tx authz grant 0x7b5Fe22B5446f7C62Ea27B8BD71CeF94e03f3dF2 delegate --spend-limit 1000000000000000000000BNB --allowed-validators ${VALIDATOR_ADDR} --from ${VALIDATOR_ADDR} --keyring-backend test --node "https://gnfd-testnet-fullnode-tendermint-us.bnbchain.org:443" --yes
Error: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account 0x3Fe5Bd46A7EC803e51bdEbe8dB0063f4f6a63ca8 not found: key not found

$ gnfd version
Version: v0.1.1-1-g2a15a10
Git Commit: 2a15a10f2ff6984449f2bc90bf07a76e70551499
Git Commit Date: 20230410
Architecture: amd64
Go Version: go1.19.6

MODULE_NOT_FOUND for @bnb-chain/greenfiled-file-handle using pnpm

System information

OS & Version: Windows 11

Expected behaviour

trying to run the nodejs storage.js to create a bucket in the dceller.

I tried to use pnpm install but the issue still coming. I have installed pnpm in my system. even tried to install the particular package, i.e. @bnb-chain/greenfiled-file-handle

Actual behaviour

throwing this error=>

node:internal/modules/cjs/loader:573
      throw e;
      ^

Error: Cannot find module 'C:\Users\Himanshu Chauhan\OneDrive\Desktop\work\greenfield-js-sdk\examples\nodejs\node_modules\@bnb-chain\greenfiled-file-handle\dist\node\index.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1098:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1091:15)
    at resolveExports (node:internal/modules/cjs/loader:567:14)
    at Module._findPath (node:internal/modules/cjs/loader:636:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (C:\Users\Himanshu Chauhan\OneDrive\Desktop\work\greenfield-js-sdk\examples\nodejs\storage.js:4:26)
    at Module._compile (node:internal/modules/cjs/loader:1256:14) {
  code: 'MODULE_NOT_FOUND',
  path: 'C:\\Users\\Himanshu Chauhan\\OneDrive\\Desktop\\work\\greenfield-js-sdk\\examples\\nodejs\\node_modules\\@bnb-chain\\greenfiled-file-handle\\package.json'        
}

Industriasonline

System information

Greenfield version: gnfd version
OS & Version: Windows/Linux/OSX
Commit hash : (if develop)

Expected behaviour

Actual behaviour

Steps to reproduce the behaviour

Backtrace

[backtrace]

When submitting logs: please submit them as text and not screenshots.

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.