Skip to content

dazhlord/DataExchange-Contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Exchange Agreements (DEXA) Smart Contracts

AboutRelease StatusContributingLicensing

About

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.

Release Status

Not released, work in progress.

Contract Deployments

Network Name name chainId hexChainId Registry Address
Goerli rinkeby 5 0x5 0xFCeE40992B9Bff888d2Faa0691878AD8D7567BA7
Mumbai mumbai 80001 0x13881 0xFCeE40992B9Bff888d2Faa0691878AD8D7567BA7
Sepolia sepolia 11155111 0x11155111 0x4700b9C4A340959AABb0da3FfCeb24123EE9FED6

Compile and deploy the contract

From source

Follow the instructions as given below:

  1. Run git clone [email protected]:dazhlord/DataExchange-Contract.git to clone the repository.
  2. cd dexa-smartcontracts in to the cloned folder
  3. Run poetry shell to setup a python virtual environment.
  4. Run poetry install to install the dependencies.
  5. Configure the following environment variables.
    1. ETH_NODE_RPC - Blockchain node RPC endpoint
    2. INTERMEDIARY_ETH_PRIVATE_KEY - Private key associated with the contract creator account address
    3. INTERMEDIARY_ETH_ACCOUNT_ADDRESS - Contract creator account address
  6. python scripts/compile_and_deploy.py to compile and deploy.
  7. If the script successfully executes, contract address is displayed in the terminal.

Using docker

Follow the instructions as given below:

  1. Run git clone [email protected]:dazhlord/DataExchange-Contract.git to clone the repository.
  2. cd dexa-smartcontracts in to the cloned folder
  3. Run the below command to build the docker image.
$ docker build -t igrantio/DataExchange-Contract:0.1.0 -f docker/Dockerfile .
  1. 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

Contributing

Feel free to improve the plugin and send us a pull request. If you found any problems, please create an issue in this repo.

Licensing

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.

About

Data Exchange Agreements (DEXA) Smart Contracts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •