Skip to main content

Smart Contracts for Nevermined Data platform

Project description

banner

Nevermined Smart Contracts

💧 Smart Contracts implementation of Nevermined in Solidity nevermined.io

Docker Build Status Build NPM Package Pypi Package Maven Package

Table of Contents


Get Started

For local development of nevermined-contracts you can either use Docker, or setup the development environment on your machine.

Docker

The simplest way to get started with is using the Nevermined Tools, a docker compose application to run all the Nevermined stack.

Local development

As a pre-requisite, you need:

  • Node.js
  • yarn

Note: For MacOS, make sure to have node@10 installed.

Clone the project and install all dependencies:

git clone git@github.com:nevermined-io/contracts.git
cd nevermined-contracts/

Install dependencies:

yarn

Compile the solidity contracts:

yarn compile

In a new terminal, launch an Ethereum RPC client, e.g. ganache-cli:

npx ganache-cli@~6.9.1 > ganache-cli.log &

Switch back to your other terminal and deploy the contracts:

yarn test:fast

For redeployment run this instead

yarn clean
yarn compile
yarn test:fast

Upgrade contracts [optional]:

yarn upgrade

Testing

Run tests with yarn test, e.g.:

yarn test test/unit/agreements/AgreementStoreManager.Test.js

Code Linting

Linting is setup for JavaScript with ESLint & Solidity with Ethlint.

Code style is enforced through the CI test process, builds will fail if there're any linting errors.

yarn lint

Networks

Testnets

The contract addresses deployed on Nevermined Alfajores Test Network:

Alfajores (Celo) Testnet

Contract Version Address
AccessCondition v1.1.2 0x50A88EFf2Aff3F5bb707978cF88200E3452b9CD3
AccessTemplate v1.1.2 0xe3b491E4a71b2938D3fBD3Bd443dEC3B5B0Be398
AgreementStoreManager v1.1.2 0x3B9d7CdF5047785Dd4083AfE7ea16D9C2a636097
ComputeExecutionCondition v1.1.2 0xf046038FF358cB044001Cce9E27E1c321E79cdDC
ConditionStoreManager v1.1.2 0x4DaA9DA2DA4e73C2C3F65aD5ba92F3313Bf9933f
DIDRegistry v1.1.2 0xa29C331958b6E3d17D139FCC1ecf8378049e8A99
DIDRegistryLibrary v1.1.2 0x3a15F9eCCaEd70bFd580CD2495E869bEFf17CCc6
DIDSalesTemplate v1.1.2 0x1b7bAC94Ead09E45728f3F7473d14C64672FDED2
Dispenser v1.1.2 0xff4d094479909cA80678b361CCCb507a02E4dA1b
EpochLibrary v1.1.2 0xa66AF14D36C485Bd191e5a987DCDA89B6025816B
EscrowComputeExecutionTemplate v1.1.2 0x069f337064c4a999c35d2Fa91dD779D7f9A48915
EscrowPaymentCondition v1.1.2 0xb1cEae41F979fF158Cf6aE818b8Bf03a195b36de
HashLockCondition v1.1.2 0x9f8E5051E3C5c513e081D3Ce070730236935B016
LockPaymentCondition v1.1.2 0x86306d55DE1aD6FcA9d8CCAE5FADADE48Cf00A53
NFT721AccessTemplate v1.1.2 0x28dcE3442e9e8e70e9D994c8d92281DE21fe95EA
NFT721HolderCondition v1.1.2 0xa85c881743f1C9968566070315CE16B1f5d8C684
NFT721SalesTemplate v1.1.2 0xd6f18F5Ed8D680f4Cd54b5Ae06eCdde19EF6C2f9
NFTAccessCondition v1.1.2 0x710EC3BCe198E68600A13F791842b77E5f04B834
NFTAccessTemplate v1.1.2 0xa90a79c5077A1e9c39df0DEC820883CBe4b7c346
NFTHolderCondition v1.1.2 0x3d29428E0e096d8d338e02e3F625313689A627f6
NFTLockCondition v1.1.2 0x82fe00e69b70286cC921ad3F7AACBD9Cb279A085
NFTSalesTemplate v1.1.2 0x2E593dc75F872FEAa9e4A320236fe6417970c894
NeverminedToken v1.1.2 0x9231f93bE0d58741110933434bda7a1b63A6735A
SignCondition v1.1.2 0x7b0F9bADeF03691fEF8086966552eE5D5D48A9Be
TemplateStoreManager v1.1.2 0x3D7213A4aa34856292C79BB5d56252968748a7e2
ThresholdCondition v1.1.2 0x96676E236580464C82fffa26Fb6B5f5a2E2B0E39
TransferDIDOwnershipCondition v1.1.2 0x8C5a3398F493f80e1bd7a9a4d3081e8cF22cF919
TransferNFT721Condition v1.1.2 0x76B56c84a6e64fff8fe6c38fa678d453e6B419F1
TransferNFTCondition v1.1.2 0x72337746b8ad7DE3dAA740a4586E5F3678e5520E
WhitelistingCondition v1.1.2 0xE36f4f38981403C817d81a1f97c790cdcE9E85dD

Bakalva (Celo) Testnet

The contract addresses deployed on Nevermined Baklava Test Network:

Contract Version Address
AccessCondition v1.0.0 0x7ff61090814B4159105B88d057a3e0cc1058ae44
AccessTemplate v1.0.0 0x39fa249ea6519f2076f304F6906c10C1F59B2F3e
AgreementStoreManager v1.0.0 0x02Dd2D50f077C7060E4c3ac9f6487ae83b18Aa18
ComputeExecutionCondition v1.0.0 0x411e198cf1F1274F69C8d9FF50C2A5eef95423B0
ConditionStoreManager v1.0.0 0x028ff50FA80c0c131596A4925baca939E35A6164
DIDRegistry v1.0.0 0xd1Fa86a203902F763D6f710f5B088e5662961c0f
DIDRegistryLibrary v1.0.0 0x93468169aB043284E53fb005Db176c8f3ea1b3AE
DIDSalesTemplate v1.0.0 0x862f483F35B136313786D67c0794E82deeBc850a
Dispenser v1.0.0 0xED520AeF97ca2afc2f477Aab031D9E68BDe722b9
EpochLibrary v1.0.0 0x42623Afd182D3752e2505DaD90563d85B539DD9B
EscrowComputeExecutionTemplate v1.0.0 0xfB5eA07D3071cC75bb22585ceD009a443ed82c6F
EscrowPaymentCondition v1.0.0 0x0C5cCd10a908909CF744a898Adfc299bB330E818
HashLockCondition v1.0.0 0xe565a776996c69E61636907E1159e407E3c8186d
LockPaymentCondition v1.0.0 0x7CAE82F83D01695FE0A31099a5804bdC160b5b36
NFTAccessCondition v1.0.0 0x49b8BAa9Cd224ea5c4488838b0454154cFb60850
NFTAccessTemplate v1.0.0 0x3B2b32cD386DeEcc3a5c9238320577A2432B03C1
NFTHolderCondition v1.0.0 0xa963AcB9d5775DaA6B0189108b0044f83550641b
NFTLockCondition v1.0.0 0xD39e3Eb7A5427ec4BbAf761193ad79F6fCfA3256
NFTSalesTemplate v1.0.0 0xEe41F61E440FC2c92Bc7b0a902C5BcCd222F0233
NeverminedToken v1.0.0 0xEC1032f3cfc8a05c6eB20F69ACc716fA766AEE17
SignCondition v1.0.0 0xb96818dE64C492f4B66B3500F1Ee2b0929C39f6E
TemplateStoreManager v1.0.0 0x4c161ea5784492650993d0BfeB24ff0Ac2bf8437
ThresholdCondition v1.0.0 0x08D93dFe867f4a20830f1570df05d7af278c5236
TransferDIDOwnershipCondition v1.0.0 0xdb6b856F7BEBba870053ba58F6e3eE48448173d3
TransferNFTCondition v1.0.0 0x2de1C38030A4BB0AB4e60E600B3baa98b73400D9
WhitelistingCondition v1.0.0 0x6D8D5FBD139d81dA245C3c215E0a50444434d11D

Rinkeby (Ethereum) Testnet

The contract addresses deployed on Nevermined Rinkeby Test Network:

Contract Version Address
AccessCondition v1.1.2 0x6fD85bdc2181955d1e13e69cF6b7D823065C3Ca7
AccessTemplate v1.1.2 0xb0c62D9396C2FEcBb51eD6EB26c0Ed4f5eA4a346
AgreementStoreManager v1.1.2 0xC2ED028fAf0b638A194C40d7E223088FA4cF85DC
ComputeExecutionCondition v1.1.2 0xA142534b8c7130CFE1bf73128E86ec9c9369Faa4
ConditionStoreManager v1.1.2 0xFc0cA52987D5494eD42B9f317803b54C0161b98D
DIDRegistry v1.1.2 0xC0a99b11eC971fc6041a685fb04DC5A35F65C2FF
DIDRegistryLibrary v1.1.2 0xA72435e7990d4D9b3Bf31aF6da90c5814Ae1799F
DIDSalesTemplate v1.1.2 0x903071Ed3061Ebb36FFc865910D4CfdEfaCfC615
Dispenser v1.1.2 0xfaAF4c7E8a6A7a5598F22559b5c2cdeBEB9e6B0e
EpochLibrary v1.1.2 0x717920AbFBa53187613b3e7AE7b9992F1A7d96ca
EscrowComputeExecutionTemplate v1.1.2 0xEA051aA47feC676F0962fE4EF44D3728f7EB4a0F
EscrowPaymentCondition v1.1.2 0xb7aD2564D07870126fF96A14E2959b16141529C6
HashLockCondition v1.1.2 0x31E11A66E07a17C620A14D554C216c2622be377e
LockPaymentCondition v1.1.2 0x8D2049565125700276f4407dbE269c4b275eE21e
NFT721AccessTemplate v1.1.2 0x8A9f71c256FD31E8b73396316fFB57F70CEE19e1
NFT721HolderCondition v1.1.2 0xAAc307dEC41cFD667f70365A7C51E632eDAAE6F9
NFT721SalesTemplate v1.1.2 0x49AfF1F940C5d8C10FC8b81eD4155BF05dfcb9Ef
NFTAccessCondition v1.1.2 0x6aA035fc4683D413fAa8bAe3f00CaAc712C2A502
NFTAccessTemplate v1.1.2 0x0aDeA2BE5f5E38DC60700e8a3a5203feE02985DB
NFTHolderCondition v1.1.2 0x83342074cAb5b624Ea2361782AcC32da76641F33
NFTLockCondition v1.1.2 0xF951001D5516C682c5aF6DF2cB0250E4addd1252
NFTSalesTemplate v1.1.2 0x24edffc52926739E8403E451b791378349f38818
NeverminedToken v1.1.2 0x937Cc2ec24871eA547F79BE8b47cd88C0958Cc4D
SignCondition v1.1.2 0x287C2FdD23d3E2C18217e7329B62dBa3F8be777c
TemplateStoreManager v1.1.2 0x45eBFAdAdc64D86F2bC7ed756EA2D5AfC0c64e51
ThresholdCondition v1.1.2 0x683132AD20b4048073256484772a9fa6eeccf4e0
TransferDIDOwnershipCondition v1.1.2 0x269Dec0aBCb0232422F5B13cd343e63CdB922818
TransferNFT721Condition v1.1.2 0x5975fE95EABBDe0AAFD879AEEeC2172391d560a5
TransferNFTCondition v1.1.2 0x6e81A4571C35F5786043fC9f6545F95c7B4E90A7
WhitelistingCondition v1.1.2 0x1f361FfdA721eFc38Ca389603E39F31fdEddAbaf

Mumbai (Polygon) Testnet

The contract addresses deployed on Mymbai Polygon Test Network:

Contract Version Address
AccessCondition v1.1.2 0x943C561Be307749f65B8A884A3388B6439dCeeec
AccessTemplate v1.1.2 0x6AdA9cbf75a0f41546C11a1115a94e87e9152666
AgreementStoreManager v1.1.2 0xC57e97bC1602FF9F970B4C94884178134b4CD9De
ComputeExecutionCondition v1.1.2 0x761A7cC5def5C2413141B3Ae0652937A0aB95609
ConditionStoreManager v1.1.2 0x21d13f36c65Bb51764d05b81d2cB2fbabCbc9E8d
DIDRegistry v1.1.2 0x623f78d38C72BbC034B0425aEa5238EB8d1D2d0D
DIDRegistryLibrary v1.1.2 0xCb423e91c53c7A75771b04a5C7CD95Fccb11018b
DIDSalesTemplate v1.1.2 0xe0a5E31eb662876959A03b044224c48ed0f61618
Dispenser v1.1.2 0xa42e0C25Ef78e7DC1676384fecE2e54B291a99fc
EpochLibrary v1.1.2 0x35Ad028C4Ad91978268280967c1db867ba35e323
EscrowComputeExecutionTemplate v1.1.2 0xfBe606e48ca0DD942a1D055DcfD58Fdf507b6725
EscrowPaymentCondition v1.1.2 0xDF2854d1116220C6C9397b592761f8b20D44471a
HashLockCondition v1.1.2 0x2e33C50DBfc7Ee2cf12E118CE09F65c24ed02583
LockPaymentCondition v1.1.2 0x1B62A9418eb908535251dfD15ac252505EB81567
NFT721AccessTemplate v1.1.2 0x29b9de2809b62a7e937E67883eF48CfBCBeA06Bd
NFT721HolderCondition v1.1.2 0x205bC979BC5aF48f7925005b6E1a5E0280bde823
NFT721SalesTemplate v1.1.2 0x6fbEAaeb44c69a009c568495705bD83f1Cf85860
NFTAccessCondition v1.1.2 0xb84cCBb63e37DE7c0AD0eBd9694C5781df8354Df
NFTAccessTemplate v1.1.2 0x88B96A210e8f6f27BA59f0CAF7F39cA2653B647F
NFTHolderCondition v1.1.2 0xFC46F8B2272D1aFbFae4d35357D618F10f7ba11F
NFTLockCondition v1.1.2 0x5DFd35399B64bD8457b3667Ba79D83A31Bc08D28
NFTSalesTemplate v1.1.2 0x51Fdd3C1249CA264916c8E0c013f66A96Aa6c7Df
NeverminedToken v1.1.2 0x7218c9880e139258E6c90C124cde058A6A2dF896
SignCondition v1.1.2 0x19c50775D9B93D6C1b9C0b2Ac9651F9a8281CaFD
TemplateStoreManager v1.1.2 0x3C4C38F5cdBF706a8f6355a60Fbcfd92d58Aad8a
ThresholdCondition v1.1.2 0xE5C62FF3f5fCC3dE062a5002f538a7027c3D355c
TransferDIDOwnershipCondition v1.1.2 0xa99b7B332CFd88b127513A1f55BD13c5d7de4C16
TransferNFT721Condition v1.1.2 0xfBa38fa846E5c38845AA87Eb43Ed571Df6f71938
TransferNFTCondition v1.1.2 0x4d3a045ECec1EA3D9Ee063af7127177958f5cfc6
WhitelistingCondition v1.1.2 0x2d8BCaDdf251384C28644155bB853fd200f2Ff2B

Aurora Testnet

The contract addresses deployed on Aurora Test Network:

Contract Version Address
AccessCondition v1.1.6 0xb9fD8208312ECB87875860c0F109118522885D9E
AccessProofCondition v1.1.6 0x64950B0DF2aBc338b3191cBa0a8a87beBda2A315
AccessProofTemplate v1.1.6 0x774B9A093eeC6e4196Eb82B914d675DCc9d08599
AccessTemplate v1.1.6 0x8353452CEf320A7F280B52dB7B30aA17bF8Fe754
AgreementStoreManager v1.1.6 0x5368E27DBbA96070a3284FD7a79A34bb75b6B464
ComputeExecutionCondition v1.1.6 0xFbf27C54B16679DDbFd8678713C586aD40323461
ConditionStoreManager v1.1.6 0x5e119AddB2bce6cbe7044305915963CC4ab2bB6C
DIDRegistry v1.1.6 0xa389Fbea7Fdd9A052394b36B88e943C2c4c82be0
DIDRegistryLibrary v1.1.6 0xA98A97E2986d81b93C712b836241EaFf6D689AB6
DIDSalesTemplate v1.1.6 0xA3E7F6cb1990b9f1f6b097be6D0905e03f5E1b85
Dispenser v1.1.6 0x7F5AD4E1a5d52A8f26C13d8B0C62BAa23E7bbD98
EpochLibrary v1.1.6 0x8CC543360af2643491788723B48baeBE0a80C8E1
EscrowComputeExecutionTemplate v1.1.6 0xaa2627619d684921468edd8E2F62836749eFf1d4
EscrowPaymentCondition v1.1.6 0x1775c299e68d075B7B6FB96B350dCDC808D1489a
HashLockCondition v1.1.6 0xd7ed0f2967F913c08b48c3494454471dED723297
LockPaymentCondition v1.1.6 0x9Aa8f07dD00E859278822baECcc23F02A031898E
NFT721AccessTemplate v1.1.6 0xca627BEb138F91470ff06AD7D24f3e51996b0653
NFT721HolderCondition v1.1.6 0x3a43FC31E66E3b3545C912DD824790612866Fcd0
NFT721SalesTemplate v1.1.6 0x05679Bea4229C18330fE0AC8679ab93E56F6b7Da
NFTAccessCondition v1.1.6 0x742661264Fc11B909b85B278186e62D2DfE2233f
NFTAccessTemplate v1.1.6 0x80EEA56a10c1020508c13aB86C36c398B45FeF79
NFTHolderCondition v1.1.6 0x5E1AF7dC0B8D461Cd02c80763025C482B3E6B17d
NFTLockCondition v1.1.6 0x34D2F25f967a6F6f87Df7F166BA8cBe3372aA827
NFTSalesTemplate v1.1.6 0x7F4Aab50B4d07493F22668417ef1433469895F51
NeverminedToken v1.1.6 0x43a0Fcde497c2051B8D207afA4145f27a9194d69
PlonkVerifier v1.1.6 0x7B7686C399734Fe082D6f558853992b5368325b8
SignCondition v1.1.6 0x7886DB81c0BD9Da700E8Fd21Ec3f12c5ce8D2a06
TemplateStoreManager v1.1.6 0x780d3Ab357f1C44014d27d60765b7d4F9a7b90Ed
ThresholdCondition v1.1.6 0xFEF1a4F4827F0B3a281700D796D2710Ac2C86105
TransferDIDOwnershipCondition v1.1.6 0xBc331069400E907F33c6280a433552f784567a0c
TransferNFT721Condition v1.1.6 0x144BD5752D3DbF42e9B7aF106FEe8E5160a9CE13
TransferNFTCondition v1.1.6 0x1F66d913AB40095700dbB1a5a1D369996E3Dcb9e
WhitelistingCondition v1.1.6 0x10C7501d55228EE102f403410a9b40f6330669CE

Integration Testnet

The contract addresses deployed on Nevermined Integration Test Network:

Contract Version Address
- - -

Staging Testnet

The contract addresses deployed on Nevermined Staging Test Network:

Contract Version Address
- - -

Mainnets

Ethereum Mainnet

The contract addresses deployed on Production Mainnet:

Contract Version Address
AccessCondition v1.1.2 0xBa635a16ad65fc44776F4577E006e54B739170e1
AccessTemplate v1.1.2 0x5cc43778946671Ab88Be0d98B2Bc25C0c67095bb
AgreementStoreManager v1.1.2 0xD0cFcf159dC1c6573ba203c7f37EF7fAAa9c0E88
ComputeExecutionCondition v1.1.2 0xDc8c172404e3cF4D16Bc0De877656c4ba58f3384
ConditionStoreManager v1.1.2 0x2Da0b5a6B0015B698025Ad164f82BF01E8B43214
DIDRegistry v1.1.2 0xA77b7C01D136694d77494F2de1272a526018B04D
DIDRegistryLibrary v1.1.2 0xA1B7057C80d845Abea287608293930d02197a954
DIDSalesTemplate v1.1.2 0x81a2A6b639E6c3a158368B2fAF72a3F51Fa45B00
EpochLibrary v1.1.2 0x6D77b0aa745D3498a36971a3C0138Ee6c2B947cA
EscrowComputeExecutionTemplate v1.1.2 0x7c912E94aF9e8Bbf1e4Dcf2Cdf5506ea71E084D9
EscrowPaymentCondition v1.1.2 0xc33269A0E2Edca46c3d0b2B2B25aFeEE6F828405
HashLockCondition v1.1.2 0x6B309450FaE559913132585b06CCD5Fe9999037f
LockPaymentCondition v1.1.2 0x611923E1d809a53aB2731Dd872778B3cEdD5C1D4
NFT721AccessTemplate v1.1.2 0x0d9c4CB03fB90ABC58F23C52bD9E3eD27fE55f39
NFT721HolderCondition v1.1.2 0x0a83EDEeB843E9e96f57bf33f53969BF052c2cE4
NFT721SalesTemplate v1.1.2 0xA5BA02CbdC3c005aFC616A53d97488327ef494BE
NFTAccessCondition v1.1.2 0xa2D1D6DA85df69812FF741d77Efb77CAfF1d9dc9
NFTAccessTemplate v1.1.2 0x335E1A2ec8854074BC1b64eFf0FF642a443243a5
NFTHolderCondition v1.1.2 0x9144f4831aa963963bf8737b45C5eea810efB7e7
NFTLockCondition v1.1.2 0x877E2Fd93Eb74095591b90ADc721A128b637b21C
NFTSalesTemplate v1.1.2 0x2b87C77F7023cb3956aeE3490CfC1Da90571E7DB
SignCondition v1.1.2 0x10da0625d8300BF40dE3721a0150F0E724611d44
TemplateStoreManager v1.1.2 0xfD0cf3a91EC3BE427785783EE34a9116AED085b6
ThresholdCondition v1.1.2 0xea8F5b9Ddd826eC48B1e8991A947D6EaAE495213
TransferDIDOwnershipCondition v1.1.2 0xE2AC5Bca96a7f9ECa2037F001AD51C7f37820bAF
TransferNFT721Condition v1.1.2 0x89B39c7b8602778316fA51E00235CE418aC06c2F
TransferNFTCondition v1.1.2 0x3c8D330419f59C1586C1D4F8e4f3f70F09606455
WhitelistingCondition v1.1.2 0x489f500aA3ED426eA0d45FB7769cfba85f1AA737

Aurora Mainnet

The contract addresses deployed on Aurora Mainnet:

Contract Version Address
AccessCondition v1.1.7 0xEA2Ab20CC1c567D9cd56E4561Aa2aebDB60f9a1E
AccessProofCondition v1.1.7 0xa1B731118AcA483f64Ef1FB7008583eC0B35d50D
AccessProofTemplate v1.1.7 0x1a22eB22F726399812Ca3B998C2D09FDf0f3Ac0C
AccessTemplate v1.1.7 0x672Cc04436ADeD82b448B2f6De58267e1809e366
AgreementStoreManager v1.1.7 0xc6Ab25648B0c5a473Bd37D95c60a918fE4aD8c86
ComputeExecutionCondition v1.1.7 0x23C91929eeD7fbe4deEdc0dBe2980A93a02844D2
ConditionStoreManager v1.1.7 0x5CC62ffDA628D60b49C81aeF2d3D87CBb4267174
DIDRegistry v1.1.7 0xb03e4A759763a45e9823082D2c6D8C905A21a8A1
DIDRegistryLibrary v1.1.7 0x09050EA73A24bdD3B96Eb753D8aAcB07238f8E5D
DIDSalesTemplate v1.1.7 0x46A23e3b87E31f74960007a698d5ec70fa0097A3
EpochLibrary v1.1.7 0x2e0c35E54FeeaCb838cDF5c848f27d7163d87f85
EscrowComputeExecutionTemplate v1.1.7 0x5C0C69A8454b91874C029211cFA5DF6a3cFBe182
EscrowPaymentCondition v1.1.7 0xB9f14F8e6b801bAd954bD272cf136Fe04099d9a8
HashLockCondition v1.1.7 0x159B2eF7254051e871b8E3009B8596BFA1F5cE36
LockPaymentCondition v1.1.7 0xcdf2C7178D9f48dcB4a41fd6A63D9C69E859a796
NFT721AccessTemplate v1.1.7 0x168E5D053393E95C8026d4BEEaaDE1CBaCEa4F37
NFT721HolderCondition v1.1.7 0x553B42E76feFF07b9AadaCC5bf1b324663BF8A5E
NFT721SalesTemplate v1.1.7 0x6d8a38D3c18C8658d3c6750aa85Ab20Aff8cFCae
NFTAccessCondition v1.1.7 0xFE6C051Fa306d2c05907D088b27a74E8F7aEF35F
NFTAccessTemplate v1.1.7 0x0B81C7bbfb34BF3215Ac143F69E4C20B879021aE
NFTHolderCondition v1.1.7 0x08BF83818ed6B9432Af5A594C1D8b4E228a0473B
NFTLockCondition v1.1.7 0x8eb87F2eADc51bE42742929D13fbD165C171D18D
NFTSalesTemplate v1.1.7 0x09fB79E828d04F0ADDb0898a47C534935a24663F
PlonkVerifier v1.1.7 0xb0Ee4c6F6E0f15EB20c0930c9C215E964FE83Dfe
SignCondition v1.1.7 0x0D5DA0633b4d32b018F86D1fcF98661Ee60aBEfA
TemplateStoreManager v1.1.7 0x4b3dC484ED5997e930e88BA7A398B3A4C685941c
ThresholdCondition v1.1.7 0xB9319f213617713DbB04dB9696168196792509Bb
TransferDIDOwnershipCondition v1.1.7 0x2023dA12E6b6053B8C98f96828dd68DAAe65BF63
TransferNFT721Condition v1.1.7 0xd5dA61ce4baaB2EaAB0B6740140166b029829EB4
TransferNFTCondition v1.1.7 0x9238fC0F0dfA556e6dcDEaB073B551343b206E3f
WhitelistingCondition v1.1.7 0x8Cc86980a4e5ca39E01A7a927e15bf14aEb6D7e8

Packages

To facilitate the integration of nevermined-contracts there are Python, JavaScript and Java packages ready to be integrated. Those libraries include the Smart Contract ABI's. Using these packages helps to avoid compiling the Smart Contracts and copying the ABI's manually to your project. In that way the integration is cleaner and easier. The packages provided currently are:

The packages contains all the content from the doc/ and artifacts/ folders.

In JavaScript they can be used like this:

Install the nevermined-contracts npm package.

npm install @nevermined-io/contracts

Load the ABI of the NeverminedToken contract on the staging network:

const NeverminedToken = require('@nevermined-io/contracts/artifacts/NeverminedToken.staging.json')

The structure of the artifacts is:

{
  "abi": "...",
  "bytecode": "0x60806040523...",
  "address": "0x45DE141F8Efc355F1451a102FB6225F1EDd2921d",
  "version": "v0.9.1"
}

Documentation

Prior Art

This project builds on top of the work done in open source projects:

Attribution

This project is based in the Ocean Protocol Keeper Contracts. It keeps the same Apache v2 License and adds some improvements. See NOTICE file.

License

Copyright 2020 Keyko GmbH
This product includes software developed at
BigchainDB GmbH and Ocean Protocol (https://www.oceanprotocol.com/)

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

   http://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.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nevermined-contracts-1.1.8.tar.gz (253.7 kB view hashes)

Uploaded Source

Built Distribution

nevermined_contracts-1.1.8-py2.py3-none-any.whl (750.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page