Skip to content

Commit

Permalink
docs(examples): add carbon-account-app hyperledger-cacti#540
Browse files Browse the repository at this point in the history
WORK IN PROGRESS

Fixes hyperledger-cacti#540

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Apr 16, 2021
1 parent b5e751e commit fbe7bf8
Show file tree
Hide file tree
Showing 87 changed files with 259,532 additions and 4,056 deletions.

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions examples/cactus-carbon-accounting-backend/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.7.3",
paths: {
sources: "./src/main/solidity",
artifacts: "./src/main/json/generated/",
},
};
9,034 changes: 9,034 additions & 0 deletions examples/cactus-carbon-accounting-backend/package-lock.json

Large diffs are not rendered by default.

114 changes: 114 additions & 0 deletions examples/cactus-carbon-accounting-backend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"name": "@hyperledger/cactus-example-carbon-accounting-backend",
"version": "0.4.1",
"description": "An example application showing how to use Cactus when implementing a supply chain application where two or more blockchains are sharing data with each other to achieve a certain business outcome beneficial to multiple parties (business organizations).",
"main": "dist/lib/main/typescript/index.js",
"mainMinified": "dist/cactus-example-carbon-accounting-backend.node.umd.min.js",
"browser": "dist/cactus-example-carbon-accounting-backend.web.umd.js",
"browserMinified": "dist/cactus-example-carbon-accounting-backend.web.umd.min.js",
"module": "dist/lib/main/typescript/index.js",
"types": "dist/types/main/typescript/index.d.ts",
"files": [
"dist/*"
],
"bin": "./dist/lib/main/typescript/carbon-accounting-app-cli.js",
"scripts": {
"tsc": "tsc --project ./tsconfig.json",
"pretsc": "hardhat compile",
"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev webpack:prod",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
"webpack:dev:web": "webpack --env=dev --target=web --config ../../../../webpack.config.js",
"webpack:dev:node": "webpack --env=dev --target=node --config ../../../../webpack.config.js",
"webpack:prod": "npm-run-all webpack:prod:node webpack:prod:web",
"webpack:prod:web": "webpack --env=prod --target=web --config ../../../../webpack.config.js",
"webpack:prod:node": "webpack --env=prod --target=node --config ../../../../webpack.config.js"
},
"watch": {
"tsc": {
"patterns": [
"src/",
"src/*/json/**/openapi*"
],
"ignore": [
"src/**/generated/*"
],
"extensions": [
"ts",
"json"
],
"quiet": true,
"verbose": false,
"runOnChangeOnly": true
}
},
"engines": {
"node": ">=10",
"npm": ">=6"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyperledger/cactus.git"
},
"keywords": [
"Hyperledger",
"Cactus",
"Integration",
"Blockchain",
"Distributed Ledger Technology"
],
"author": {
"name": "Hyperledger Cactus Contributors",
"email": "cactus@lists.hyperledger.org",
"url": "https://www.hyperledger.org/use/cactus"
},
"contributors": [
{
"name": "Please add yourself to the list of contributors",
"email": "your.name@example.com",
"url": "https://example.com"
},
{
"name": "Peter Somogyvari",
"email": "peter.somogyvari@accenture.com",
"url": "https://accenture.com"
}
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/hyperledger/cactus/issues"
},
"homepage": "https://github.com/hyperledger/cactus#readme",
"dependencies": {
"@hyperledger/cactus-api-client": "0.4.0",
"@hyperledger/cactus-cmd-api-server": "0.4.0",
"@hyperledger/cactus-common": "0.4.0",
"@hyperledger/cactus-core": "0.4.0",
"@hyperledger/cactus-core-api": "0.4.0",
"@hyperledger/cactus-example-supply-chain-business-logic-plugin": "0.4.0",
"@hyperledger/cactus-example-supply-chain-frontend": "0.4.0",
"@hyperledger/cactus-plugin-consortium-manual": "0.4.0",
"@hyperledger/cactus-plugin-keychain-memory": "0.4.0",
"@hyperledger/cactus-plugin-ledger-connector-besu": "0.4.0",
"@hyperledger/cactus-plugin-ledger-connector-fabric": "0.4.0",
"@hyperledger/cactus-plugin-ledger-connector-quorum": "0.4.0",
"@hyperledger/cactus-test-tooling": "0.4.0",
"@openzeppelin/contracts": "3.3.0",
"@openzeppelin/contracts-upgradeable": "3.4.1",
"async-exit-hook": "2.0.1",
"axios": "0.21.1",
"express": "4.17.1",
"fabric-network": "1.4.13",
"jose": "1.28.0",
"openapi-types": "7.0.1",
"solc": "0.7.1",
"typescript-optional": "2.0.1",
"uuid": "8.3.0",
"web3-core": "1.3.0"
},
"devDependencies": {
"@types/express": "4.17.8",
"@types/uuid": "8.0.1",
"hardhat": "2.1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/0491b426f474e9f39ff17a1b59f43cee.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "AccessControlUpgradeable",
"sourceName": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "previousAdminRole",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "newAdminRole",
"type": "bytes32"
}
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "getRoleMember",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleMemberCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/0491b426f474e9f39ff17a1b59f43cee.json"
}
Loading

0 comments on commit fbe7bf8

Please sign in to comment.