About • Release Status • Contributing • Licensing
This repository hosts the source code for DEXA smartcontracts and is part of the deliverables for Provenance services with smart data agreement (PS-SDA) project that has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 957338. It implements DEXA smart contracts that can be deployed to locally or to cloud infrastructure with an Ethereum blockchain configured.
Not released, work in progress.
Network Name | name | chainId | hexChainId | Registry Address |
---|---|---|---|---|
Goerli | rinkeby | 5 | 0x5 | 0xFCeE40992B9Bff888d2Faa0691878AD8D7567BA7 |
Mumbai | mumbai | 80001 | 0x13881 | 0xFCeE40992B9Bff888d2Faa0691878AD8D7567BA7 |
Sepolia | sepolia | 11155111 | 0x11155111 | 0x4700b9C4A340959AABb0da3FfCeb24123EE9FED6 |
Follow the instructions as given below:
- Run
git clone git@github.com:decentralised-dataexchange/dexa-smartcontracts.git
to clone the repository. cd dexa-smartcontracts
in to the cloned folder- Run
poetry shell
to setup a python virtual environment. - Run
poetry install
to install the dependencies. - Configure the following environment variables.
ETH_NODE_RPC
- Blockchain node RPC endpointINTERMEDIARY_ETH_PRIVATE_KEY
- Private key associated with the contract creator account addressINTERMEDIARY_ETH_ACCOUNT_ADDRESS
- Contract creator account address
python scripts/compile_and_deploy.py
to compile and deploy.- If the script successfully executes, contract address is displayed in the terminal.
Follow the instructions as given below:
- Run
git clone git@github.com:decentralised-dataexchange/dexa-smartcontracts.git
to clone the repository. cd dexa-smartcontracts
in to the cloned folder- Run the below command to build the docker image.
$ docker build -t igrantio/dexa-smartcontracts:0.1.0 -f docker/Dockerfile .
- Run the below command to compile and deploy the smart contract
$ docker run -e ETH_NODE_RPC='' -e INTERMEDIARY_ETH_PRIVATE_KEY='' -e INTERMEDIARY_ETH_ACCOUNT_ADDRESS='' -it igrantio/dexa-smartcontracts:0.1.0
Feel free to improve the plugin and send us a pull request. If you found any problems, please create an issue in this repo.
Copyright (c) 2022-25 LCubed AB (iGrant.io), Sweden
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the LICENSE for the specific language governing permissions and limitations under the License.