1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
Commit Graph

347 Commits

Author SHA1 Message Date
Pedro Gutiérrez
f8b3d839eb Add a way to get the status of a agreement. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
51fbbc887e Fix dependencies references on Escrow template. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
0ffa0e4204 Add initial condition and agreement store managers. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
6a4df9768a Move signature values generation to template. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
c213a8d3ca Create Signature integration test and fixed/improved the generation of hashes. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
ae070be011 Use the decimals of OceanToken to return the correct balance. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
44a611248e Create helper to fill some common attributes on service agreement template on DDO. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
e7b9f990b6 Add conversion helpers for did:op: prefixes. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
136250b70c Move access service template used on the DDO to each agreement template. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
4f28092014 Improved signature helper using fallback non-personal sign method. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
51aa0fbf64 Clean and simplify template related typings. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
3a5fba6e21 Added tests on Conditions 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
c57121e45b checking the 0x prefix on all the interaction with contracts 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
8a0679b2d4 added a helper to transform 0x prefixed values 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
86906b393f added OceanAgreementsConditions submodule 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
f7cd71ac33 complete Escrow template flow 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
c9b383223b fixed some typing issues 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
5ec624b2a5 initial implementation of templates and conditions 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
5c96be1b0c ignored non stable tests 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
0410793286 linter fixes 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
6d5be0db75 fixed consume flow 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
181940a62c allow having different config in integration test 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
e61e7b8881 improved Logger allowing different log level 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
fce88aa528 added SecretStore integration test 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
dd5c90eb9f added OceanTokens initialization on Ocean 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
fce3a09285 added Ocean.tokens module 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
057714988a added some missed methods on Ocean.accounts module 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
8dcdf0a851 moved ID generator 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
3fd8f995f6 added Ocean.secretStore module 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
42b7c0cced fixed asset.order method behavior 2019-02-26 00:18:07 +01:00
Pedro Gutiérrez
a6d2ce8fde using a SecretStore with custom config 2019-02-20 16:06:04 +01:00
Pedro Gutiérrez
407aba7450 improved Service typing 2019-02-20 16:06:04 +01:00
Pedro Gutiérrez
0a0786a835 be able to use a SecretStore URL defined on the DDO ocean#247 2019-02-20 16:06:04 +01:00
Pedro Gutiérrez
f5ab0e6d05 improved way that is exported Service type 2019-02-20 16:06:04 +01:00
Pedro Gutiérrez
3e50ded2e5 allowing to add new services in the DDO when an asset is created 2019-02-20 16:06:04 +01:00
Pedro Gutiérrez
8fb465fc5b improved Service definition 2019-02-20 16:06:04 +01:00
Pedro Gutiérrez
879921ec0a linter fixes 2019-02-14 12:05:31 +01:00
Pedro Gutiérrez
cfda1e6130 added all necessary methods of Ocean.agreements 2019-02-14 12:05:31 +01:00
Pedro Gutiérrez
05efcc3ff1 added created attribute on DDO 2019-02-14 12:05:31 +01:00
Pedro Gutiérrez
2d4cd891b3 changed returning data of asset.create 2019-02-14 12:05:31 +01:00
Pedro Gutiérrez
14f3955ed0 added Search asset tests 2019-02-14 12:05:31 +01:00
Pedro Gutiérrez
8bce68a3a5 added test of registration of service agreement templates 2019-02-14 12:05:31 +01:00
Pedro Gutiérrez
e1b9197746 added buy asset test 2019-02-14 12:05:31 +01:00
Pedro Gutiérrez
e46ef174a2 initial integration test scaffolding 2019-02-14 12:05:31 +01:00
Pedro Gutiérrez
3cf578cfae using spree for running examples 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
34745f3b66 small changes 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
c56989a710 using files intead of contentUrls on examples ocean#251 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
e88a40dac0 replaces contentUrls by files on DDO ocean#251 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
1336773272 moved checksum length control 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
d51e3f3dbf updated registerAttribute method 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
51cae44be9 using account password from env variable 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
f82b99792f linter fixes 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
749e77cf53 fixed on imports 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
f557fccd29 apply changes on examples 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
c24aea4bda adding proof and checksum on asset creation flow 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
d365650a7a implemented proof generator on DDO 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
494b9e7d1b added helpers to sign and verify the web3 personal signatures 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
518a784554 improved exportation of typings related to DDOs 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
5694ae29b5 changed some methods 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
26e6c534a0 fixed part of the unit test 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
0599ba67fa updated setupTemplate method 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
3364feb9dd removed Auth contract 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
fc46592fe9 replaced OceanMarket with Dispenser 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
64921829f9 changed name of ServiceExecutionAgreement 2019-02-08 17:37:21 +01:00
Pedro Gutiérrez
95a98daa38 moved main methods to modules by scope 2019-01-25 21:23:37 +01:00
Pedro Gutiérrez
380f665256 skipped some integration test are not consistent (temporal) 2019-01-25 16:06:18 +01:00
Pedro Gutiérrez
68d551dc09 improves some error messages 2019-01-25 10:53:53 +01:00
Pedro Gutiérrez
86b406ad2e fixed linter issues 2019-01-24 10:58:05 +01:00
Pedro Gutiérrez
c1c3168c64 improved error detection on integration test #118 2019-01-24 10:48:48 +01:00
Pedro Gutiérrez
83cf56b57e fixed error related to asset consuming #114 2019-01-24 10:48:48 +01:00
Pedro Gutiérrez
1ecbb69937 improved error detection on http requests #118 2019-01-24 10:48:48 +01:00
Pedro Gutiérrez
f71e7e345a linter fixes 2019-01-22 14:18:58 +01:00
Pedro Gutiérrez
5e4a33f4e2 added better DID verification 2019-01-22 14:14:49 +01:00
Pedro Gutiérrez
ff7dc04d28 using a random account (of a list) to run the integration test #107 2019-01-16 13:55:02 +01:00
Pedro Gutiérrez
b6713bfc81 use Barge to run integration tests 2019-01-15 16:09:31 +01:00
Pedro Gutiérrez
21b38402ca changed some methods names and marking as deprectated #65 2019-01-15 11:34:45 +01:00
Pedro Gutiérrez
89dbc10532 added comments to main Ocean class #79 2019-01-09 16:39:18 +01:00
Pedro Gutiérrez
4074d95f1e added comments on some internal classes #79 2019-01-09 16:39:18 +01:00
Pedro Gutiérrez
b2d2271e50 added comment documentation on DDO related classes #79 2019-01-09 16:39:18 +01:00
Sebastian Gerske
b1df2513e2 cleaned packages
updated to web3 1.0 beta 37
2018-12-19 09:00:35 +01:00
Sebastian Gerske
724a29ee80 add detection for meta mask 2018-12-18 15:50:37 +01:00
diminator
800850e288
expose DID and IdGenerator 2018-12-17 22:41:47 +01:00
diminator
e9e1266712 Merge branch 'develop' of github.com:oceanprotocol/squid-js into develop 2018-12-17 18:55:33 +01:00
diminator
53610ed599 Merge branch 'develop' of github.com:oceanprotocol/squid-js into develop 2018-12-17 18:54:34 +01:00
diminator
487d259d1e
merge 2018-12-17 18:46:29 +01:00
Dimitri De Jonghe
3bd8c75db8
Merge branch 'develop' into fix/circular_dep 2018-12-17 18:44:05 +01:00
Jernej Pregelj
e953180700 lint fixes 2018-12-17 17:43:45 +01:00
Sebastian Gerske
dea6ea4770 fix/circular_dep 2018-12-17 17:37:36 +01:00
Jernej Pregelj
81a282af28 return file urls 2018-12-17 16:46:19 +01:00
Sebastian Gerske
6ea480fd47 enhanced did handling 2018-12-17 15:54:58 +01:00
Sebastian Gerske
a0648b4b84 remove 0x prefix from serviceAgreementId 2018-12-17 14:29:09 +01:00
Sebastian Gerske
09191fab59 rollback did containing 0x 2018-12-17 14:17:35 +01:00
Sebastian Gerske
62c3e77b44
Merge branch 'develop' into feature/export-eventlistener 2018-12-17 11:23:56 +01:00
diminator
d73df95563
export EventListener 2018-12-15 15:25:57 +01:00
Sebastian Gerske
d6495036d7
Merge branch 'develop' into fix/file_download 2018-12-14 16:15:36 +01:00
Sebastian Gerske
77a410c607 removed file-saver and added a callback with the content 2018-12-14 16:12:23 +01:00
Sebastian Gerske
85496f7002 added the check for the status of the template that is used to sign the service agreement 2018-12-14 16:11:26 +01:00
ssallam
c2f77295ce Fix tests. 2018-12-14 14:07:41 +01:00
ssallam
233aede5f6 Generate assetId with 0x prefix, update all references to reflect this. This makes it similar to squid-py and fixes an issue in payAsset where the asset id in the condition param had double 0x prefix when paying a service agreement for an asset created in squid-py. 2018-12-14 13:40:08 +01:00
ssallam
968583e2dd Fix brizo purchaseEndpoint. 2018-12-12 20:52:11 +01:00