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

232 Commits

Author SHA1 Message Date
Sebastian Gerske
70c0b5eaf0 adapt to interface changes 2018-11-16 14:26:26 +01:00
Sebastian Gerske
48ef4cff5f adapted examples to interface changes 2018-11-16 14:26:06 +01:00
Sebastian Gerske
0b55e108d7 changed error messages 2018-11-16 14:25:55 +01:00
Sebastian Gerske
469088ec79 made squid fire lazers 2018-11-16 14:24:47 +01:00
Sebastian Gerske
7a79bd3883 fix retrieveDDO and storeDDO 2018-11-16 13:34:52 +01:00
Sebastian Gerske
7e6c431d85 fixed re-decode of json response from aquarius 2018-11-16 11:35:28 +01:00
Sebastian Gerske
750d240f1c added headers again 2018-11-16 10:03:16 +01:00
Sebastian Gerske
91326591fa revert 2018-11-16 09:51:30 +01:00
Sebastian Gerske
3c23c49827 maybe fix cors preflight 2018-11-16 09:46:42 +01:00
Sebastian Gerske
3a392eb4fe fix lint 2018-11-14 15:56:12 +01:00
Sebastian Gerske
ba4e2d4656 adapted changes from squid discussion 2018-11-14 15:44:25 +01:00
Sebastian Gerske
3983c83eb9 added support for POA network 2018-11-14 09:36:37 +01:00
Sebastian Gerske
8d71844902 fix doc generation 2018-11-12 12:36:31 +01:00
Sebastian Gerske
0c46763095 encrypt contentUrls at once instead separate, move generation of serviceAgreementId outside of signAgreement and executeAgreement in ocean object, hardened sign and execute of service agreements, wrote unit tests 2018-11-12 12:09:42 +01:00
Sebastian Gerske
86d1621046 add get public key method to account 2018-11-12 10:06:24 +01:00
Sebastian Gerske
c425f03efd separate sign and execute agreement 2018-11-12 08:33:19 +01:00
Sebastian Gerske
2df3a68abf fix 500 on aquarius, hardened tests, avoided loading contracts more than once per chain and item 2018-11-09 11:16:22 +01:00
Sebastian Gerske
6df097ea8f added brizo 2018-11-09 10:43:29 +01:00
Sebastian Gerske
ff8a904f09 hardened contract handler 2018-11-08 08:23:00 +01:00
Sebastian Gerske
77213a44e1 update registerasset flow 2018-11-07 15:05:16 +01:00
Sebastian Gerske
7a8ae3929a fix lint 2018-11-07 14:35:49 +01:00
Sebastian Gerske
cbf0b55831 moved test code to test, added metadata, added endpoint generation to aquarius, removed unused code and tests, updated to latest keeper 2018-11-07 14:33:56 +01:00
Sebastian Gerske
8e3a30990b channel all the contract trough the keeper 2018-11-07 11:21:17 +01:00
Sebastian Gerske
20377f5aa3 get rid of order 2018-11-07 11:08:00 +01:00
Sebastian Gerske
45fb69e5f4 switch to url polyfill 2018-11-07 09:53:43 +01:00
Sebastian Gerske
2194ae59c3 adapt changes from keeper 0.3.18 2018-11-07 09:35:47 +01:00
Sebastian Gerske
edb2d43d99 stop register asset in market on register 2018-11-06 16:23:48 +01:00
Sebastian Gerske
6ab85631ca move template registration outside of asset registration again 2018-11-06 16:13:12 +01:00
Sebastian Gerske
c722ccf587 keeper contracts v0.3.16 2018-11-06 12:10:02 +01:00
Sebastian Gerske
86be0cc6d5 added search by text, added templates for fitchain and access 2018-11-05 17:50:56 +01:00
Sebastian Gerske
1874e24b61 expose both search methods 2018-11-05 14:58:58 +01:00
Sebastian Gerske
e1b4293125 use timeouts from template 2018-11-05 14:56:14 +01:00
Sebastian Gerske
7a3cc1e473 refactor value loading, added valuepair business object 2018-11-05 13:15:33 +01:00
Sebastian Gerske
1ad80dde3e adapt examples, fix lint 2018-11-05 10:08:06 +01:00
Sebastian Gerske
6e2b270a1f integrate DDO more 2018-11-05 10:01:58 +01:00
Sebastian Gerske
1d9754fba6 make lint more solid 2018-11-01 13:24:41 +01:00
Sebastian Gerske
093a6ea4af added ddo handling 2018-11-01 12:47:48 +01:00
Sebastian Gerske
787ed9dcf3 made ddo business object more versatile 2018-11-01 11:22:00 +01:00
Sebastian Gerske
56fc8e6f23 fixed lint error 2018-11-01 11:05:29 +01:00
Sebastian Gerske
63e8452d69 added ddo business objects 2018-11-01 11:04:59 +01:00
Sebastian Gerske
db910aaaa2 optimize 2018-11-01 09:28:17 +01:00
Sebastian Gerske
076c2eb788 make templates and service agreements configurable 2018-11-01 09:18:34 +01:00
Sebastian Gerske
cf86f5af0d first steps towards service agreements implementation 2018-11-01 08:31:21 +01:00
Sebastian Gerske
8b83b29c82 ignore line with bitwise operator 2018-10-30 08:10:04 +01:00
Sebastian Gerske
0860b5ebd7 Merge remote-tracking branch 'origin/develop' into feature/secret_store 2018-10-29 17:41:56 +01:00
Sebastian Gerske
df56556e87 added serviceAgreementTemplates, wip 2018-10-29 17:28:40 +01:00
Jernej Pregelj
4e52e10a4b url fix 2018-10-29 16:55:32 +01:00
Jernej Pregelj
af376eb7ee changes in search paths & type 2018-10-29 16:38:23 +01:00
Sebastian Gerske
bb6de972eb added business objects form DIDRegistry and ServieAgreement, Added tests for DIDRegistry 2018-10-29 10:53:22 +01:00
Sebastian Gerske
61d27e082e optimize import 2018-10-26 13:46:47 +02:00
Sebastian Gerske
fb5dcaf522 added secret store 2018-10-26 13:37:09 +02:00
Sebastian Gerske
dd227e74ed merge 2018-10-26 12:16:40 +02:00
Sebastian Gerske
ee1dd8e30b Merge remote-tracking branch 'origin/feature/search' into feature/secret_store
# Conflicts:
#	src/models/Config.ts
#	src/ocean/Ocean.ts
#	test/config.ts
#	test/keeper/ContractBase.test.ts
#	test/keeper/ContractHandler.test.ts
#	test/keeper/Keeper.test.ts
#	test/ocean/Account.test.ts
#	test/ocean/Asset.test.ts
#	test/ocean/Ocean.test.ts
#	test/ocean/Order.test.ts
2018-10-26 12:14:49 +02:00
Sebastian Gerske
43119ed606 added fetch mock 2018-10-26 11:57:26 +02:00
Sebastian Gerske
33b642c2c3 resolve merge conflicts 2018-10-26 10:57:40 +02:00
Sebastian Gerske
300918e687 merge develop 2018-10-26 10:48:53 +02:00
Sebastian Gerske
2063530297 Merge remote-tracking branch 'origin/develop' into feature/secret_store
# Conflicts:
#	src/ocean/Ocean.ts
#	test/ocean/Asset.test.ts
2018-10-26 10:46:32 +02:00
Sebastian Gerske
192eecc3ae added searchAssets 2018-10-26 10:40:46 +02:00
Sebastian Gerske
b06cd5e303 rename provider -> aquarius 2018-10-25 17:26:26 +02:00
Sebastian Gerske
7eae00014e added secret store 2018-10-25 17:18:57 +02:00
Sebastian Gerske
794b57ecd5 added config needed for the secret store 2018-10-25 17:17:24 +02:00
Sebastian Gerske
717ca1d07c moved secret store to secret-store-client-js 2018-10-22 13:39:31 +02:00
Sebastian Gerske
b172a245b1 added encrypt and decrypt document 2018-10-22 12:46:27 +02:00
Sebastian Gerske
da5386f490 added holder for parity document key storage, wip, added unit tests 2018-10-22 09:06:36 +02:00
Sebastian Gerske
2662a7795b added secret store connection 2018-10-19 13:42:24 +02:00
Sebastian Gerske
62e54032fb added reference to the secret store lib ultra-wip 2018-10-18 16:03:26 +02:00
Sebastian Gerske
43a9306132 refactoring 2018-10-18 13:12:23 +02:00
Sebastian Gerske
7f5f7606dc adapted changes from squid discussion, updated interface definition 2018-10-18 13:06:52 +02:00
Sebastian Gerske
c26ff3e594 reflect changes for trilobite 2018-10-18 12:02:40 +02:00
Sebastian Gerske
1b8aa52c40 next iteration 2018-10-18 09:19:10 +02:00
Sebastian Gerske
5719a667ea added purchase functiuonality 2018-10-17 18:24:01 +02:00
Sebastian Gerske
9fb6f296f3 register returns string now instead of the asset again 2018-10-17 10:41:56 +02:00
Sebastian Gerske
c690cf3465 return string on register method because we dont need that asset back but the asset id. 2018-10-17 10:36:00 +02:00
Sebastian Gerske
0285c90d3c optimize 2018-10-17 10:12:40 +02:00
Sebastian Gerske
61bd56ba54 fixed imports 2018-10-16 15:08:04 +02:00
Sebastian Gerske
7b904dc9b3 fixed imports 2018-10-16 15:02:44 +02:00
Sebastian Gerske
19201ef6e7 new squid design 2018-10-16 14:56:18 +02:00
Sebastian Gerske
a3e55f7352 adapt code rules from codacy 2018-10-11 14:16:59 +02:00
Sebastian Gerske
1cc9e2bcbf removed obsolete config 2018-10-10 14:12:39 +02:00
Sebastian Gerske
ac18db1365 added order unit tests, refactoring 2018-10-10 11:02:00 +02:00
Sebastian Gerske
bac7c9e4f0 added unit tests, added code coverage 2018-10-09 15:24:36 +02:00
Sebastian Gerske
df0e6b57a6 tried to fix caseing 2018-10-09 11:12:37 +02:00
Sebastian Gerske
8c95036d99 tried to fix caseing 2018-10-09 11:12:08 +02:00
Sebastian Gerske
fbeae84eda reworked event handling 2018-10-09 10:55:53 +02:00
Sebastian Gerske
d8b9248bad migrate to web3 2018-10-05 16:16:48 +02:00
Sebastian Gerske
06fd240e56 fixed unit test 2018-10-05 16:12:54 +02:00
Sebastian Gerske
bd06445b82 interface changes, web3 migration 2018-10-05 12:34:31 +02:00
Sebastian Gerske
543af59cf3 use promise function of getId 2018-10-05 10:59:48 +02:00
Sebastian Gerske
b8ae411835 fixed web3 version evaluation 2018-10-04 16:17:32 +02:00
Sebastian Gerske
5db73589ee added logging 2018-10-04 16:11:57 +02:00
Sebastian Gerske
f4f32ab402 reword event handling 2018-10-04 13:14:03 +02:00
Sebastian Gerske
02079ad012 fix codacy finding 2018-10-02 10:37:02 +02:00
Sebastian Gerske
5dbc868686 new linter styles 2018-10-02 10:06:26 +02:00
Sebastian Gerske
163ac95681 fixed caseing again 2018-10-02 09:53:06 +02:00
Sebastian Gerske
2f437d2097
Delete logger.ts 2018-10-02 09:46:43 +02:00
Sebastian Gerske
ff386703d7 rollback init methods on contracts 2018-10-02 08:27:10 +02:00
Sebastian Gerske
c7244ef6c9 caseing 2018-10-01 18:32:03 +02:00
Sebastian Gerske
829ca5af74 caseing 2018-10-01 18:31:44 +02:00
Sebastian Gerske
d2474796e0 caseing 2018-10-01 18:30:53 +02:00
Sebastian Gerske
426dc4c959 caseing 2018-10-01 18:29:17 +02:00
Sebastian Gerske
78311773ca caseing 2018-10-01 18:28:34 +02:00
Sebastian Gerske
a43db07334 removed old stuff 2018-10-01 18:19:00 +02:00
Sebastian Gerske
4038697a4b new structure 2018-10-01 18:10:57 +02:00
Sebastian Gerske
d63fc69dab moved purchase logic to squid, new structure, mockable contracts, first version of unit tests 2018-10-01 18:10:26 +02:00
Sebastian Gerske
d4c746ccd0 Merge remote-tracking branch 'origin/feature/new-ocean-interface' into feature/new-ocean-interface
# Conflicts:
#	src/metadata.js
#	src/ocean.js
2018-10-01 12:24:47 +02:00
ssallam
8dd807599a #162: remove secret store stuff, moved to own repo. 2018-10-01 10:19:12 +02:00
ssallam
e4461e1be1 #162: new squid classes, and skeleton for the secret store. 2018-10-01 09:35:03 +02:00
Sebastian Gerske
ddbaab0d20 added delcartion files to the dist output of typescript compilation. Removed unnecessary logging 2018-09-26 16:58:11 +02:00
Sebastian Gerske
52c068cabe migrated to bignumber.js 2018-09-25 10:23:44 +02:00
Sebastian Gerske
72c9bebc2e replaced eslint with tslint 2018-09-25 09:14:01 +02:00
Sebastian Gerske
20c10a8ef5 migrated to typescript 2018-09-25 08:30:54 +02:00
Sebastian Gerske
ca3b1597d6 made purchaseAsset async because it is async 2018-09-24 13:22:39 +02:00
ssallam
82a149ec48 Work In Progress: Refactor the ocean interface. 2018-09-24 12:41:09 +02:00
Sebastian Gerske
e7972d9ad2 fixed auth initiateAccessRequest call 2018-09-21 16:12:04 +02:00
Sebastian Gerske
90b0f662c3 fixed token approve call 2018-09-21 15:55:09 +02:00
Sebastian Gerske
6e1fff2ed1 removed logging 2018-09-21 14:58:48 +02:00
Sebastian Gerske
9a6838a437 made getNetworkName and getAccounts async 2018-09-21 14:43:50 +02:00
Sebastian Gerske
591713dd90 added automatic network discovery to squid 2018-09-21 11:57:33 +02:00
Sebastian Gerske
3d65274d9b made OceanAgent deprecated, moved code to MetaData 2018-09-20 15:05:24 +02:00
Sebastian Gerske
a2c19d7d89 changed signature of requestTokens to match py version, adapted readme, removed getInstance() 2018-09-20 14:19:27 +02:00
Sebastian Gerske
82f7b0001c added getAccounts 2018-09-20 10:18:02 +02:00
Sebastian Gerske
55314f998a made gethEthBalance aync because it is async 2018-09-20 10:17:43 +02:00
Sebastian Gerske
decd01a4e5 fixed contract call 2018-09-19 15:21:13 +02:00
Sebastian Gerske
29ecdd555f added await, fixed logger 2018-09-19 14:09:11 +02:00
Sebastian Gerske
1bf8b9fefa added await 2018-09-19 14:09:02 +02:00
Sebastian Gerske
1d7597def8 DDD refactoring 2018-09-19 10:30:30 +02:00
Sebastian Gerske
97fc3d6c1c added logger 2018-09-14 11:10:02 +02:00
35d22a5a68
setup linting 2018-09-06 17:23:20 +02:00
Sebastian Gerske
ac0757ea9f made keeper-js web ready 2018-08-31 18:14:27 +02:00
Sebastian Gerske
97b891925b added contract loader 2018-08-31 16:15:34 +02:00
Sebastian Gerske
a6a25bbd1c added es2015 transpile 2018-08-31 15:17:12 +02:00
Sebastian Gerske
77483956aa initial version 2018-08-31 10:13:22 +02:00