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

added extra description

@kremalicious - might need some help to make it more clear
This commit is contained in:
Alex Coseru 2020-04-09 16:30:36 +03:00 committed by GitHub
parent 2100cc9de4
commit e2c437c1ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,7 +276,14 @@ export interface MetaData {
additionalInformation?: AdditionalInformation
curation?: Curation
}
/** Warning. serviceIndex is the index of a services in Services array, and not service.index attribute.
Let's assume that you have the following services array:
[
{"index":1,"type":"access","main":{"price":3}},
{"index":0,"type":"compute","main":{"price":1}}
]
then calling update with { serviceIndex:1,price:2} will update the 'compute' service, and not the access one
**/
export interface ServicePrices {
serviceIndex: number
price: string