forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(examples): add carbon-account-app hyperledger-cacti#540
WORK IN PROGRESS Fixes hyperledger-cacti#540 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information
Showing
87 changed files
with
259,532 additions
and
4,056 deletions.
There are no files selected for viewing
696 changes: 696 additions & 0 deletions
696
examples/cactus-carbon-accounting-backend/cache/solidity-files-cache.json
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
examples/cactus-carbon-accounting-backend/hardhat.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
9,034
examples/cactus-carbon-accounting-backend/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
...ntracts-upgradeable/access/AccessControlUpgradeable.sol/AccessControlUpgradeable.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/0491b426f474e9f39ff17a1b59f43cee.json" | ||
} |
239 changes: 239 additions & 0 deletions
239
...n/contracts-upgradeable/access/AccessControlUpgradeable.sol/AccessControlUpgradeable.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} |
4 changes: 4 additions & 0 deletions
4
...elin/contracts-upgradeable/introspection/ERC165Upgradeable.sol/ERC165Upgradeable.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/0491b426f474e9f39ff17a1b59f43cee.json" | ||
} |
Oops, something went wrong.