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:
parent
2100cc9de4
commit
e2c437c1ea
@ -276,7 +276,14 @@ export interface MetaData {
|
|||||||
additionalInformation?: AdditionalInformation
|
additionalInformation?: AdditionalInformation
|
||||||
curation?: Curation
|
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 {
|
export interface ServicePrices {
|
||||||
serviceIndex: number
|
serviceIndex: number
|
||||||
price: string
|
price: string
|
||||||
|
Loading…
Reference in New Issue
Block a user