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

396 Commits

Author SHA1 Message Date
85df6a27b9 update metadata interface 2019-04-30 11:41:54 +02:00
Pedro Gutiérrez
bb1a02a5d1 Fix differences between implementation on DDO generation. 2019-04-30 11:38:11 +02:00
Pedro Gutiérrez
c8411e29d2 Add more events on order execution. 2019-04-25 20:20:24 +02:00
Pedro Gutiérrez
4c4a4f64ce Detect error inside the executor of SubscribableObserver if it returns a promise. 2019-04-25 20:20:24 +02:00
Pedro Gutiérrez
e76c152bfc Fix linter errors. 2019-04-25 20:20:24 +02:00
Pedro Gutiérrez
5b5ad23d7a Emit the progress of ordering a asset. #202 2019-04-25 20:20:24 +02:00
Pedro Gutiérrez
2e8e3d9a8f Create SuscribiblePromise class. 2019-04-25 20:20:24 +02:00
Pedro Gutiérrez
4438206914 Send the DID registry transaction before send the DDO to Aquarius. #200 2019-04-23 12:46:52 +02:00
Pedro Gutiérrez
c116cde4ca Allow create a Ocean instance in wrong network. #188 2019-04-23 12:46:52 +02:00
Pedro Gutiérrez
8f8766d700 Generate the download asset folder name in the same way than squid-py. 2019-04-23 12:46:52 +02:00
Pedro Gutiérrez
b36e3a4f06 Add consumerAssets method to assets module. 2019-04-17 13:54:33 +02:00
Pedro Gutiérrez
47ced8af1b Add ownerAssets method to assets module. 2019-04-17 13:54:33 +02:00
Pedro Gutiérrez
652d4e7575 Add owner method on assets module. 2019-04-17 13:54:33 +02:00
ae4fe65b0e
fix page number in all search queries 2019-04-16 19:01:11 +02:00
Pedro Gutiérrez
b6af27a523 Use only the agreementId on status method of agreements module. 2019-04-16 14:33:42 +02:00
Pedro Gutiérrez
398ec203c1 Add status method to agreements module. 2019-04-16 14:01:30 +02:00
Pedro Gutiérrez
1e94e27f81 Fix wrong prepare output. 2019-04-15 23:17:51 +02:00
Pedro Gutiérrez
29ea28cf90 Fix bug on order assets that was stopping the flow after paying. 2019-04-15 13:33:25 +02:00
Pedro Gutiérrez
c2de39769b Use save-file to download assets on browser. 2019-04-10 16:10:40 +02:00
Jernej Pregelj
304fda8820 lint fixes 2019-04-10 12:30:17 +02:00
Jernej Pregelj
26a721f754 await chaining to Promise.all 2019-04-10 12:28:51 +02:00
Pedro Gutiérrez
78ab06bf9a Fix lint errors. 2019-04-09 16:57:16 +02:00
Pedro Gutiérrez
dde934543c Add consume support for browsers. 2019-04-09 16:57:16 +02:00
Pedro Gutiérrez
c90f9cea80 Add the correct name to consumed assets. 2019-04-09 16:57:16 +02:00
Pedro Gutiérrez
b8fec2d084 Use the new Aquarius response type. 2019-04-05 16:11:04 +02:00
Pedro Gutiérrez
3dbc1b90d7 Be able to download a specific file of an asset. 2019-04-04 10:08:03 +02:00
Pedro Gutiérrez
b5727bb8dc Fix lint errors. 2019-04-01 17:41:43 +02:00
Pedro Gutiérrez
c632307646 Upgrade to Keeper 0.9.0 and Secret Store access way. 2019-04-01 17:41:43 +02:00
Pedro Gutiérrez
c5e78899f0 Upgrade to Keeper 0.8.7 2019-04-01 17:41:43 +02:00
Pedro Gutiérrez
a931fe5a42 Move helpers/utils that needs web3 or ocean instance to instantiable classes. 2019-04-01 10:33:38 +02:00
Pedro Gutiérrez
f569957058 Fix search integration tests. 2019-03-29 11:58:29 +01:00
Jernej Pregelj
b38df5d5ed fix search query 2019-03-29 11:58:29 +01:00
Pedro Gutiérrez
7a9cdf6966 Add metadata fields on files. 2019-03-29 11:35:24 +01:00
Jernej Pregelj
77dfb3aab0 blob to arraybuffer 2019-03-28 15:40:39 +01:00
Jernej Pregelj
8d0002d5f4 buffer to blob 2019-03-26 16:13:24 +01:00
Pedro Gutiérrez
05ca0da57f Fix linter errors. 2019-03-25 15:21:23 +01:00
Pedro Gutiérrez
7a13ad8daa Be able to create different Ocean instances with different config. 2019-03-25 15:21:23 +01:00
Pedro Gutiérrez
ea16729d86 Replace the main Logger for a instantiable class. 2019-03-25 15:21:23 +01:00
Pedro Gutiérrez
5402d421c8 Remove default exports of Ocean modules. 2019-03-25 15:21:23 +01:00
Pedro Gutiérrez
780475b35f Remove OceanBase. 2019-03-25 15:21:23 +01:00
Pedro Gutiérrez
f3599a5d7f Remove --no-acl-contractflag. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
b821d6c6e0 Remove not needed awaits. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
cf99c9ff64 Fix all ignored tests. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
eaac2f4f68 Fix linter errors. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
01465dc164 Fix Reward condition pointing. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
f002e5d616 Fix on unit tests. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
c976d52378 Upgrade asset.create, asset.order and agreement related methods to work with Keeper 0.8.x. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
b1715be11a Fix agreement status generation. 2019-03-18 13:37:49 +01:00
Pedro Gutiérrez
4f469b2ab5 Use condition contracts hash generation to generate the signature. 2019-03-18 13:37:49 +01:00
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