claudiaHash
8a5bddbf6e
Restore trade tab ( #1047 )
...
* get swap fee, max values
* use baseToken instead of ocean
* build fixes
* set form trade tx - WIP
* use pool info
* logs deleted
* merge fixes
* use local ocean.js, get spot price
* handle value changes, logs deleted
* fixes after v4 merge
* valid user liquidity displayed
* get correct token amount
* more fixes
* form trade fixes
* positive input values fix
* use proper swap functions
* use appConfig's marketFeeAddress
* remove redundant setters
* use consumeMarketPoolSwapFee
* use poolInfo, remove log
* code fixes
* some more fixes
* fees fix
* use poolInfo data
* various fixes
* fixes and cleanup
* fix build
* partial decimal fix
* add swap fee
* fix sub updates
* remove console
* fix package
* fix package-lock
* remove ssh
* fix blockies and package
* fix comments
* remove unused var
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
2022-03-03 10:49:04 +00:00
EnzoVezzaro
6c7a474136
Free pricing: added confirm checkbox ( #1086 )
...
* added confirm checkbox and connect logic to wizard
* add 'accessDetails' to displayed asset
* restore initial state
* adding 'freeAgreement' option to constants
* moved checkbox for free item aggreament
* improvement on amountDataToken validation
* change Field component with Input and improve UI
* change `onChange` property with `useField` hook
* switch back to Formik Field
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-02-18 11:55:46 +00:00
5a4a30e0b0
fix search title ( #1122 )
2022-02-17 21:38:40 +00:00
mihaisc
8d1782a800
Restore order ( #1068 )
...
* minor refactors
* minor refactors
* fixes
* buy dt
* consumePrice + estimation
* various fixes
* cleanup
* fix build
* fix ssh issue
* feedback
* build fix
* ssh fix
* remove console.log
* suggested fixes
* other fixes
* switch to decimal
* more fixes
* more fixes
* fix
* some fee refactors
* more fee refactoring
* lib update, fre rename
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* minor refactors
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* build fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update + more refactoring
* calc price
* fix build
* restore accountId in effect
* fix order
* fix build and update lib
* fix order index
* fix comments
* pool fix
* remove console.log
* fix order fixed rate exchange
* fixed free order and messaging
* add comment
* minor type fix
* more type fixes
2022-02-14 08:27:36 -08:00
mihaisc
57be62a6b1
Refactor pricing and various components that are involved ( #1046 )
...
* update
* merge pr #1012
* fix header
* fix
* abort controller
* up next.8
* build fix
* update lock
* fix
* another fix
* ssh fix
* another ssh fix
* remove optional
* order mock
* small cleanup
* fix package
* price updates
* finish getPrice
* fix consume
* fix consume
* getConsumeDetails comments
* restore functionality after consumeDetails
* fix some compute typings
* more price fetching updates
* 'minor' refactors and fixed build
* package-lock fix
* minor comments
* minor naming changes
* fix
* fix pool badge
* remove console.log
2022-02-03 03:29:39 -08:00
ef6a5fda7f
calculate user liquidity with subgraph values ( #1053 )
2022-02-02 11:49:59 +00:00
claudiaHash
8838ae533e
Adapt aquarius queries ( #986 )
...
* get aquariusv4 assets
* subgraph url fix
* make asset details work as much as possible
* sort and size fix, comments deleted
* get published assets
* search wip
* page change fix
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-01-13 18:17:09 +00:00
64a25f3f3e
use Asset from ocean.js, adapt to new structure
2022-01-11 19:45:14 +00:00
b5b0297ae4
refactor for new ocean.js, make the build work
2022-01-11 19:05:07 +00:00
b1399bd579
network metadata updates
...
* move over b2330fdc99
(#980 )
2022-01-11 09:59:44 +00:00
mihaisc
b0adbf8071
add account teaser, various refactors ( #957 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-12-10 01:50:00 -08:00
3aa739fce0
add Docker image presets, populate algo Docker field from them
2021-11-29 13:25:30 +00:00
c484a5b40c
new publish preview ( #947 )
...
* refactor preview
* make preview render
* more preview elements, proper debug output
* make more elements work
* cleanup and fixes
* make asset actions preview work, kinda
* more fixes
* reorg
* make preview price display work
* fix timeout
* layout tweaks
* fixes
* another fix
* make file info preview work
* empty render fix
2021-11-23 12:53:09 +00:00
e79dcf2342
add in all conditional fields
...
* switch between dataset & algorithm fields
* switch between algo privacy & access type fields
* switch between docker image & custom docker image fields
2021-11-15 12:44:27 +00:00
704b52a3c4
more publish flow preparation
...
* consolidate scattered methods into publish utils
* new encrypt method
* remove DDO File typings
2021-11-11 13:40:38 +00:00
4e985ba633
ddo updates
2021-11-11 09:22:22 +00:00
3d4b30c00f
new DDO ( #941 )
...
* type out new DDO
* remove all DDO ocean.js imports
* move over as much as possible to new DDO structure
* DDO/Asset split-up
* use Asset typing instead of DDO almost everywhere
* more typings
* more DDO refactor
* ddo typings updates
* more DDO updates
* updates
* ddo updates
2021-11-11 07:51:13 +00:00
235d8333eb
pricing defaults changes, fixes
2021-10-29 11:29:56 +01:00
66adc097b6
declarative metadata & services form setup, prepare transformPublishFormToDdo method
2021-10-28 10:38:40 +01:00
99453623d2
new publish form data setup
2021-10-27 18:35:04 +01:00
3729c63581
migrate to Next.js ( #935 )
...
* migrate to Next.js
* migrate scripts
* generate markdown pages
* make all the markdown work
* fix profile, fix image loading
* git+ssh → git+https, again
* bump packages
* maybe windows build fix
* add public to gitignore
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* Next.js v12! Webpack 5! No build hacks anymore
* json import fixes
* fixes
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-10-27 11:30:32 +01:00
032b3e1496
quick refactor of AssetList data flow
2021-10-27 11:30:32 +01:00
b6cfe6de34
more refactor
2021-10-27 11:30:28 +01:00
1d4917817a
remove everything we do not expose in our live market
2021-10-27 11:29:03 +01:00
f951910dc2
reorganize all the things
2021-10-27 11:28:59 +01:00
Moritz Kirstein
46a16a3043
GDPR Compliance ( #796 )
...
* add cookie utils
* add gdpr metadata for ppc
* add graphql typeDefs for GDPR metadata
* add ppc variable to app config
* add ppc user preference
* add switch component
* add ppc components
* add cookie consent provider
* add consent provider to wrapRootElement
* add ppc to app component
* add cookie button to footer component
* add ppc to site metadata query
* add styles for buttons in footer
* add switch component unit tests
* renewed siteMetadata json for testing
* add gdpr metadata for testing
* add cookie module unit test
* add cookie module tests
* add customizable format to time component
* add english privacy policy
* add privacy policy slugs to user preferences and appConfig
* add privacy policy components
* add autolink for policy md navigation
* only show language select for multiple policies
* add gatsby policy page creation
* use new privacy slug user preference
* add to top button styling for markdown pages
* add policies for de, es & fr
* add pointer events to toTop buttons css
* add privacy policy basic unit test
* outsource scroll button component
* import cleanup
* add customizable delay for debounce
* add scroll button unit tests
* add disclaimer component
* add disclaimer fields as optional fields in PublishJsonData
* add acces type disclaimer
* adjusted help for desc and author fields
* add disclaimer unit tests
* minor adjustment to test
* add print button to history page
* naming changes for better readability
* add cookies hash to policies
* ppc disabled per default
* fix react unknown prop for disclaimer
* minor adjustments to cookie utils
* add gdpr example file
* change exposed gdpr metadata scope by useConsent
* update README
* readme fixes
* emoji fix
* added imprint
* adjustments to gdpr.json structure and related graphql type
* add default values for ppc
* Update app.config.js
Fixed typo.
* change variable name for consistency, remove console logs
* readability
* adjust css selector order to be consistent
* Update fr.md
updated policy
* Update es.md
updated policy
* Update en.md
updated policy
* Update de.md
* fix type issue
* replace language select input with links
* remove scroll button from codebase
* change privacy policy route to /privacy
* remove Do Not Track detection
* add size to checkbox / radio inputs
* replace switch component with checkbox inputs
* fix plain text links
* remove console log
* refactor privacy policy pages to use PageMarkdown template
* setup useUserPreferences mock for unit tests
* unit tests forprivacy policy components
* setup discalimer to use alert component
* Apply .env suggestions from code review
Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
* move gdpr example to gdpr.json
* adjustments to address .env approach for appConfig.privacyPreferenceCenter
* update readme
* add small styling option to ppc
* update README
* add ppc unit tests
* update comments
* Update README.md
Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
* Merge print into profile history
* add inifiniteApproval to UserPreference fixture
* changed default styling of PPC to small
Co-authored-by: Frederic Schwill <41265505+fr-3deric@users.noreply.github.com>
Co-authored-by: MeikeMolitor <88214332+MeikeMolitor@users.noreply.github.com>
Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
2021-10-12 09:00:57 +01:00
Dimo Dzhurenov
bccb56a181
Update Number to Decimal ( #653 )
...
* update number to decimal
* Update FormTrade.tsx
* update Pool/index.tsx
* update Pool/utils.ts
* update FormAdd.tsx
* update bugs from switching to decimal
* fixed errors in Output.tsx
* rebase main
* Update FormTrade.tsx
* update Pool/index.tsx
* update Pool/utils.ts
* update FormAdd.tsx
* update bugs from switching to decimal
* fixed errors in Output.tsx
* remove duplication
* added missed conversion
* fix style error
* fixes
* added function return type
* add correct return type for function
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-08-24 10:11:01 +02:00
Jamie Hewitt
a545f723e9
Add custom provider to publish form ( #707 )
...
* Creating custom provider box selection
* adding provider to Form publish validation schema
* validating custom provider URL
* WIP validation for custom provider
* validating provider uri
* adding success/ error messages
* conditional rendering of custom provider input
* remove console.log
* fixing textFormData
* Publishing custom provider URI in DDO
* Adding serviceEndpoint to Debug
* removing pre-checked default provider
* Refactoring to reduce code duplication
* removing console.log messages
* update submit text
* update submit text
* Placing custom provider field behind Advanced Settings
* removing provider field
* updating placeholder provider
* style for advanced setting button
* refactoring customProvider
* remocing template literal
* fixing linting errors
* restricting advanced publishing settings through env var
* updating example env
* adding custom provider to formAlgoPublish
* refactoring to reduce duplication
* Reducing duplication
* updating types and initial values
* Removing Custom provider input from main algorithm form
* Removing concole.log
* Chaning customProvider to providerUri
* changing customProvider to providerUri
* advanceSettings to PascalCase
* Removing unused useOcean()
* Using useSiteMetadata() hook
* Adding allowAdvancedPublishSettings to query
* Adding temporary console.log(ocean)
* Removing console.log
2021-08-20 15:49:15 +03:00
Jamie Hewitt
46cf119afe
Author metadata update ( #763 )
...
* Adding content for update author
* Updating types
* Updating DDO
* Bumping ocean.js
* Making the author optional
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-08-03 17:07:51 +02:00
claudiaHash
92e6ec633f
Adapt history data fetching for multi network ( #686 )
...
* multiple graphs queried
* multiple graphs queried
WIP
* fixes
* urql provider added
* urql used in downloads tab
* wip on downloads, pool shares and compute orders
* OperationContext added
* urql client query used
* added method for query multiple subgraphs
* get multiple subgraphs data
* aqua changes integrated
* published and poolTransaction tabs data correctly fetched
* poolTransaction symbol taken from Subgraph
* Downloads loading fixed, logs deleted
* compute history partial fix
* fetch data after deselecting network fix, logs deleted
* changes after Multinetwork branch merge
* ddo usage and config removed
* get out symbol fix, unused imports deleted
* loading data fix
* console log removed
* loading data with no wallet connected fix
* no wallet connected and empty result message updated
* NetworkName added on table
* explorer link fix for pool transactions
* NetworkName added in PoolTransactions table
* transactions and downloads sorted by timestamp
* pool shares and compute jobs sorted by timestamp
* use transaction network id for explorer link
* pool transactions refetch
* pool shares refetch
* stop re-displaying table data if no changes on refetch
Co-authored-by: claudia.holhos <claudia.holhos@hpm.ro>
Co-authored-by: Norbert <katunanorbert@gmail.com>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
2021-07-23 15:46:25 +03:00
de2e4e8fae
package cleanup and updates
2021-06-04 11:42:33 +02:00
claudiaHash
c0157dff21
Add datatoken to algo publish form ( #531 )
...
* datatoken added to algo publish form
* init datatoken option with non empty values
* remove hacks
* use nonempty data token initial values
Co-authored-by: claudia.holhos <claudia.holhos@hpm.ro>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-04-26 13:43:58 +02:00
14e4cc3f68
Merge branch 'main' into feature/compute
2021-04-22 13:03:08 +02:00
Norbi
cf44ab7f51
Feature/allow changing of fixed rate price ( #399 )
...
* added price field to edit metadata form
* use method for updating price
* get exchangeId for setRate function
* setRate method update
* misc fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* revert price
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* get correct exchange id
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* add price to MetadataEditForm interface
* fixed lint error
* disable update price on assets with dynamic price
* display price input only on fixed price
* price input changes
* fixed price input displayed when no price is set
* review fixes
* fixes
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: Norbi <katunanorbert@gmai.com>
2021-04-22 12:55:11 +02:00
93ca8e3879
Job details ( #528 )
...
* refactor
* refactor job details
* styling, cleanup, get algo name
* output dataset & algo dt symbol
* more styling and job metadata output
* history background tweak
* human numbers, edge case fixes
2021-04-16 11:12:53 +03:00
claudiaHash
ccfb381d9d
Feature/issue474 algorithms timeout ( #483 )
...
* timeout added for algorithm publish
* publish algorithm fixes
* set termsAndConditions fix
Co-authored-by: claudia.holhos <claudia.holhos@hpm.ro>
2021-04-08 19:01:00 +02:00
Norbi
977a38e118
Edit compute dataset ( #417 )
...
* WIP
* created form for editing compute privacy
* used editComputePrivacy method
* select and update trusted algorithm
* display and select multiple trusted algorithms
* fixed update when trusted algorithm list not changed
* code refactoring
* moved separator inside condition
* moved functions and interface from EditComputeDataset component
* moved algorithmOptions to parent component
* used AssetSelection to display algorithms
* use AssetSelection to select trusted algorithms
* getAlgorithmsOptions function review
* review fixes
* removed unused imports
* merge fixes
* AssetSelection style & usability tweaks
* use custom radio & checkbox styles
* add simple search for name & DID
* spacing adjustments
* copy updates, remove raw algo input, hardcode allowRawAlgorithm
* copy
* AssetSelection usability tweaks
* make rows clickable
* tweak layout, style and markup
* use formik set function to update values
* sorted algorithm list, added checked field
* sort assetSelection list on user select
* fix getAlgorithmsForAssetSelection breaking on empty responses
* form debug output
* another empty publisherTrustedAlgorithms fix
* created separate algorithms state for the form, sort list on edit
* refactor
* use Formik functionality wherever possible
* unify transforming form data to final data
* fix form debug transformation
* fix form submit, fix defaultChecked
* refactor
* use Formik functionality wherever possible
* unify transforming form data to final data
* fix form debug transformation
* fix form submit, fix defaultChecked
* disable assetSelection when allowAllAlgorithms is true
* added loader to AssetSelection
* changed allowAllAlgorithms to allowAllPublishedAlgorithms
* fixed lint error
* updated transformComputeFormToServiceComputePrivacy
* lint fix
* modify publish defaults
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-03-25 08:34:07 +01:00
df587bb5b5
Merge branch 'main' into feature/compute
2021-03-17 12:58:13 +01:00
bdccb0966f
Web3/Ocean splitup + full Polygon/Matic support ( #433 )
2021-03-17 11:44:26 +01:00
e180ab0085
Merge branch 'main' into feature/compute
2021-03-09 19:18:47 +01:00
Bogdan Fazakas
a4f4de84fd
add sample file to edit metadata form ( #419 )
...
* add sample file to edit metada form
* bump oceanjs to 0.11.2
* retrigger checks
* added updated package-lock.json
* bump react hooks to 0.5.4
* bump ocean.js to 0.11.4 and react hooks to 0.5.5
2021-03-09 17:52:40 +01:00
Bogdan Fazakas
e92f759898
set default pre-defined docker image and renamed version field to docker image tag
2021-02-24 11:25:52 +02:00
Bogdan Fazakas
2f1bd399f8
refactor metadata types for publish forms
2021-02-19 17:51:40 +02:00
Bogdan Fazakas
243283e434
disable aditional docker image fields for pre-defined containers
2021-02-19 13:44:04 +02:00
Bogdan Fazakas
707045071a
added support for custom docker images
2021-02-18 14:53:32 +02:00
Bogdan Fazakas
7d25bc07ce
added keep algorith private checkbox
2021-02-17 15:31:26 +02:00
Bogdan Fazakas
18cd6b6f01
WIP publish algorithm
2021-02-16 11:27:02 +02:00
Norby
a2fe2fdee0
Set, edit, and display timeout ( #324 )
...
* added timeout to publish asset
* add timeout to edit asses(wip)
* added timout to edit metadata form
* fixed wrong constant name
* fix options autosorting
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* Fixed autosorting in edit form
* Added "1 day" to timeout options
* Changed ternary operators to switch
* Feature/asset timeout (#325 )
* Compute asset timeout
* Code styled
* Deleted unused import
* Display timeout for buy/download
* Switch case for timeout values
* Moved mapping function to /utils/metadata
* display timeout option not matching defined ones, map seconds to string
* handle update with no predefined timeout value, add weeks to map method
* Display timeout on button
* consume button text logic change
* whoops, revert wrong change
* small millisecondsToStr refactor
* copy tweaks
* template literal logic restore
* keep tweaking help text logic
* abstract into method
* change whole condition logic
* tweak hasDatatoken/hasPreviousOrder combination condition
* Unified seconds to string conversion methods
* getHelpText tweaks, small refactor
* copy editing, limit hardcoded timeout list
* fix mixup of map & filter
* use Timeout as label and be done with it
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: claudiaHash <49017601+claudiaHash@users.noreply.github.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: Claudia Holhos <clawww1996@gmail.com>
2021-01-22 17:12:48 +01:00
b2f1af6e87
package updates and fixes ( #296 )
...
* package updates and fixes
* yup update for edit form
2020-12-10 15:28:46 +01:00
mihaisc
bb80c4df78
Swap tokens ( #204 )
...
* swap
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* validation and calculation
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* refactor
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove unused effect
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix interval
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* increase refresh timer, remove optional params
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* make inputs show up without wallet
* style fixes
* restyling
* styling
* more styling
* fix refresh price
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove test effect
* fixes, get data as early as possible from DDO and initial state
* refactor
* refactor
* refactor
* label tweaks
* copy
* typo
* prototype output
* remove price header
* ouput swap fee
* fix
* spacing
* copy
* refactor pool transaction titles
* copy
* update math
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* use messaging tweaks
* tab tweaks, output refactor
* fix dark mode selection style
* prototype output
* method tweaks
* slippage to 1%, added warnig banner
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* form tweaks
* error fix
* empty inputs by default
* longer intervals
* maxOcean validation fix
* slippage tolerance UI
* modified slippage UI
* refactor, refresh ocean user balance
* move typings/models around
* typing fix
* fixed output values
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* bump oceanlib
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove console.log
* remove placeholder
* tweak
* non-web3 browser tweak
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2020-11-16 16:21:15 +01:00