@oceanprotocol/lib 1.0.0-next.4 → 1.0.0-next.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CHANGELOG.md +362 -1
  2. package/README.md +11 -31
  3. package/dist/lib.js +1 -1
  4. package/dist/lib.js.map +1 -1
  5. package/dist/lib.modern.mjs +2 -0
  6. package/dist/lib.modern.mjs.map +1 -0
  7. package/dist/lib.module.js +1 -1
  8. package/dist/lib.module.js.map +1 -1
  9. package/dist/lib.umd.js +1 -1
  10. package/dist/lib.umd.js.map +1 -1
  11. package/dist/src/@types/Asset.d.ts +83 -0
  12. package/dist/src/@types/Compute.d.ts +18 -1
  13. package/dist/src/@types/DDO/DDO.d.ts +43 -0
  14. package/dist/src/@types/DDO/Event.d.ts +20 -0
  15. package/dist/src/@types/DDO/Metadata.d.ts +92 -0
  16. package/dist/src/@types/DDO/Service.d.ts +72 -6
  17. package/dist/src/{interfaces/DispenserInterface.d.ts → @types/Dispenser.d.ts} +0 -0
  18. package/dist/src/@types/DownloadResponse.d.ts +4 -0
  19. package/dist/src/{interfaces/Erc20Interface.d.ts → @types/Erc20.d.ts} +6 -1
  20. package/dist/src/@types/Erc721.d.ts +12 -0
  21. package/dist/src/@types/FileMetadata.d.ts +30 -0
  22. package/dist/src/{interfaces/FixedRateInterface.d.ts → @types/FixedPrice.d.ts} +8 -2
  23. package/dist/src/{interfaces/PoolInterface.d.ts → @types/Pool.d.ts} +15 -6
  24. package/dist/src/@types/Provider.d.ts +3 -2
  25. package/dist/src/@types/Router.d.ts +59 -0
  26. package/dist/src/@types/index.d.ts +6 -0
  27. package/dist/src/aquarius/Aquarius.d.ts +26 -4
  28. package/dist/src/factories/NFTFactory.d.ts +224 -18
  29. package/dist/src/index.d.ts +1 -1
  30. package/dist/src/models/Config.d.ts +132 -0
  31. package/dist/src/pools/Router.d.ts +195 -12
  32. package/dist/src/pools/balancer/Pool.d.ts +364 -37
  33. package/dist/src/pools/dispenser/Dispenser.d.ts +112 -3
  34. package/dist/src/pools/fixedRate/FixedRateExchange.d.ts +314 -19
  35. package/dist/src/pools/index.d.ts +2 -0
  36. package/dist/src/pools/ssContracts/SideStaking.d.ts +116 -10
  37. package/dist/src/provider/Provider.d.ts +126 -14
  38. package/dist/src/tokens/Datatoken.d.ts +320 -13
  39. package/dist/src/tokens/NFT.d.ts +303 -5
  40. package/dist/src/utils/ConfigHelper.d.ts +1 -1
  41. package/dist/src/utils/Constants.d.ts +1 -0
  42. package/dist/src/utils/ContractUtils.d.ts +12 -0
  43. package/dist/src/utils/DatatokenName.d.ts +4 -0
  44. package/dist/src/utils/FetchHelper.d.ts +3 -2
  45. package/dist/src/utils/General.d.ts +4 -0
  46. package/dist/src/utils/PoolHelpers.d.ts +8 -0
  47. package/dist/src/utils/SignatureUtils.d.ts +0 -2
  48. package/dist/src/utils/TokenUtils.d.ts +42 -0
  49. package/dist/src/utils/index.d.ts +4 -2
  50. package/dist/src/utils/minAbi.d.ts +2 -0
  51. package/dist/test/TestContractHandler.d.ts +8 -36
  52. package/dist/test/config.d.ts +5 -0
  53. package/docs/beginners_guide.md +4 -4
  54. package/docs/overview.md +100 -9
  55. package/docs/quickstart_marketplace.md +34 -33
  56. package/docs/quickstart_simple.md +18 -16
  57. package/package.json +30 -28
  58. package/dist/lib.modern.js +0 -2
  59. package/dist/lib.modern.js.map +0 -1
  60. package/dist/src/interfaces/RouterInterface.d.ts +0 -12
  61. package/dist/src/interfaces/index.d.ts +0 -5
  62. package/dist/src/utils/ContractParams.d.ts +0 -4
  63. package/dist/src/utils/GasUtils.d.ts +0 -2
  64. package/dist/test/integration/config.d.ts +0 -3
  65. package/dist/test/unit/config.d.ts +0 -3
@@ -1,10 +1,32 @@
1
1
  import { Asset, DDO, ValidateMetadata } from '../@types/';
2
2
  export declare class Aquarius {
3
3
  aquariusURL: any;
4
+ /**
5
+ * Instantiate Aquarius
6
+ * @param {String} aquariusURL
7
+ */
4
8
  constructor(aquariusURL: string);
5
- resolve(did: string, fetchMethod: any): Promise<DDO>;
6
- sleep(ms: number): Promise<unknown>;
7
- waitForAqua(fetchMethod: any, did: string, txid?: string): Promise<Asset>;
8
- validate(fetchMethod: any, ddo: DDO): Promise<ValidateMetadata>;
9
+ /** Resolves a DID
10
+ * @param {string} did
11
+ * @param {AbortSignal} signal abort signal
12
+ * @return {Promise<Asset>} Asset
13
+ */
14
+ resolve(did: string, signal?: AbortSignal): Promise<Asset>;
15
+ /**
16
+ * Blocks until Aqua will cache the did (or the update for that did) or timeouts
17
+
18
+ * @param {string} did DID of the asset.
19
+ * @param {string} txid used when the did exists and we expect an update with that txid.
20
+ * @param {AbortSignal} signal abort signal
21
+ * @return {Promise<DDO>} DDO of the asset.
22
+ */
23
+ waitForAqua(did: string, txid?: string, signal?: AbortSignal): Promise<Asset>;
24
+ /**
25
+ * Validate DDO content
26
+ * @param {DDO} ddo DID Descriptor Object content.
27
+ * @param {AbortSignal} signal abort signal
28
+ * @return {Promise<ValidateMetadata>}.
29
+ */
30
+ validate(ddo: DDO, signal?: AbortSignal): Promise<ValidateMetadata>;
9
31
  }
10
32
  export default Aquarius;
@@ -2,7 +2,8 @@ import { Contract } from 'web3-eth-contract';
2
2
  import Web3 from 'web3';
3
3
  import { TransactionReceipt } from 'web3-core';
4
4
  import { AbiItem } from 'web3-utils';
5
- import { FreCreationParams, Erc20CreateParams, PoolCreationParams, DispenserCreationParams } from '../interfaces';
5
+ import { Config } from '../models/index.js';
6
+ import { ProviderFees, FreCreationParams, Erc20CreateParams, PoolCreationParams, DispenserCreationParams, ConsumeMarketFee } from '../@types/index.js';
6
7
  interface Template {
7
8
  templateAddress: string;
8
9
  isActive: boolean;
@@ -11,60 +12,265 @@ export interface TokenOrder {
11
12
  tokenAddress: string;
12
13
  consumer: string;
13
14
  serviceIndex: number;
14
- providerFeeAddress: string;
15
- providerFeeToken: string;
16
- providerFeeAmount: string;
17
- v: string;
18
- r: string;
19
- s: string;
20
- providerData: string;
15
+ _providerFee: ProviderFees;
16
+ _consumeMarketFee: ConsumeMarketFee;
21
17
  }
22
18
  export interface NftCreateData {
23
19
  name: string;
24
20
  symbol: string;
25
21
  templateIndex: number;
26
22
  tokenURI: string;
23
+ transferable: boolean;
24
+ owner: string;
27
25
  }
26
+ /**
27
+ * Provides an interface for NFT Factory contract
28
+ */
28
29
  export declare class NftFactory {
29
30
  GASLIMIT_DEFAULT: number;
30
31
  factory721Address: string;
31
32
  factory721Abi: AbiItem | AbiItem[];
32
33
  web3: Web3;
33
- startBlock: number;
34
+ config: Config;
34
35
  factory721: Contract;
35
- constructor(factory721Address: string, web3: Web3, factory721Abi?: AbiItem | AbiItem[], startBlock?: number);
36
+ /**
37
+ * Instantiate Datatokens.
38
+ * @param {String} factory721Address
39
+ * @param {AbiItem | AbiItem[]} factory721ABI
40
+ * @param {Web3} web3
41
+ */
42
+ constructor(factory721Address: string, web3: Web3, network?: string | number, factory721Abi?: AbiItem | AbiItem[], config?: Config);
43
+ /**
44
+ * Get estimated gas cost for deployERC721Contract value
45
+ * @param {String} address
46
+ * @param {String} nftData
47
+ * @return {Promise<string>} NFT datatoken address
48
+ */
36
49
  estGasCreateNFT(address: string, nftData: NftCreateData): Promise<string>;
50
+ /**
51
+ * Create new NFT
52
+ * @param {String} address
53
+ * @param {NFTCreateData} nftData
54
+ * @return {Promise<string>} NFT datatoken address
55
+ */
37
56
  createNFT(address: string, nftData: NftCreateData): Promise<string>;
57
+ /** Get Current NFT Count (NFT created)
58
+ * @return {Promise<number>} Number of NFT created from this factory
59
+ */
38
60
  getCurrentNFTCount(): Promise<number>;
61
+ /** Get Current Datatoken Count
62
+ * @return {Promise<number>} Number of DTs created from this factory
63
+ */
39
64
  getCurrentTokenCount(): Promise<number>;
65
+ /** Get Factory Owner
66
+ * @return {Promise<string>} Factory Owner address
67
+ */
40
68
  getOwner(): Promise<string>;
69
+ /** Get Current NFT Template Count
70
+ * @return {Promise<number>} Number of NFT Template added to this factory
71
+ */
41
72
  getCurrentNFTTemplateCount(): Promise<number>;
73
+ /** Get Current Template Datatoken (ERC20) Count
74
+ * @return {Promise<number>} Number of ERC20 Template added to this factory
75
+ */
42
76
  getCurrentTokenTemplateCount(): Promise<number>;
77
+ /** Get NFT Template
78
+ * @param {Number} index Template index
79
+ * @return {Promise<Template>} Number of Template added to this factory
80
+ */
43
81
  getNFTTemplate(index: number): Promise<Template>;
82
+ /** Get Datatoken(erc20) Template
83
+ * @param {Number} index Template index
84
+ * @return {Promise<Template>} DT Template info
85
+ */
44
86
  getTokenTemplate(index: number): Promise<Template>;
87
+ /** Check if ERC20 is deployed from the factory
88
+ * @param {String} datatoken Datatoken address we want to check
89
+ * @return {Promise<Boolean>} return true if deployed from this factory
90
+ */
45
91
  checkDatatoken(datatoken: string): Promise<Boolean>;
92
+ /** Check if NFT is deployed from the factory
93
+ * @param {String} nftAddress nftAddress address we want to check
94
+ * @return {Promise<String>} return address(0) if it's not, or the nftAddress if true
95
+ */
46
96
  checkNFT(nftAddress: string): Promise<String>;
97
+ /**
98
+ * Estimate gas cost for add721TokenTemplate method
99
+ * @param {String} address
100
+ * @param {String} templateAddress template address to add
101
+ * @return {Promise<TransactionReceipt>}
102
+ */
47
103
  estGasAddNFTTemplate(address: string, templateAddress: string): Promise<any>;
104
+ /**
105
+ * Add a new erc721 token template - only factory Owner
106
+ * @param {String} address
107
+ * @param {String} templateAddress template address to add
108
+ * @return {Promise<TransactionReceipt>}
109
+ */
48
110
  addNFTTemplate(address: string, templateAddress: string): Promise<TransactionReceipt>;
111
+ /**
112
+ * Estimate gas cost for disable721TokenTemplate method
113
+ * @param {String} address
114
+ * @param {Number} templateIndex index of the template we want to disable
115
+ * @return {Promise<TransactionReceipt>} current token template count
116
+ */
49
117
  estGasDisableNFTTemplate(address: string, templateIndex: number): Promise<any>;
118
+ /**
119
+ * Disable token template - only factory Owner
120
+ * @param {String} address
121
+ * @param {Number} templateIndex index of the template we want to disable
122
+ * @return {Promise<TransactionReceipt>} current token template count
123
+ */
50
124
  disableNFTTemplate(address: string, templateIndex: number): Promise<TransactionReceipt>;
125
+ /**
126
+ * Reactivate a previously disabled token template - only factory Owner
127
+ * @param {String} address
128
+ * @param {Number} templateIndex index of the template we want to reactivate
129
+ * @return {Promise<TransactionReceipt>} current token template count
130
+ */
51
131
  estGasReactivateNFTTemplate(address: string, templateIndex: number): Promise<any>;
132
+ /**
133
+ * Reactivate a previously disabled token template - only factory Owner
134
+ * @param {String} address
135
+ * @param {Number} templateIndex index of the template we want to reactivate
136
+ * @return {Promise<TransactionReceipt>} current token template count
137
+ */
52
138
  reactivateNFTTemplate(address: string, templateIndex: number): Promise<TransactionReceipt>;
139
+ /**
140
+ * Estimate gas cost for addTokenTemplate method
141
+ * @param {String} address
142
+ * @param {String} templateAddress template address to add
143
+ * @return {Promise<TransactionReceipt>}
144
+ */
53
145
  estGasAddTokenTemplate(address: string, templateAddress: string): Promise<any>;
146
+ /**
147
+ * Add a new erc721 token template - only factory Owner
148
+ * @param {String} address
149
+ * @param {String} templateAddress template address to add
150
+ * @return {Promise<TransactionReceipt>}
151
+ */
54
152
  addTokenTemplate(address: string, templateAddress: string): Promise<TransactionReceipt>;
153
+ /**
154
+ * Estimate gas cost for disableTokenTemplate method
155
+ * @param {String} address
156
+ * @param {Number} templateIndex index of the template we want to disable
157
+ * @return {Promise<TransactionReceipt>} current token template count
158
+ */
55
159
  estGasDisableTokenTemplate(address: string, templateIndex: number): Promise<any>;
160
+ /**
161
+ * Disable token template - only factory Owner
162
+ * @param {String} address
163
+ * @param {Number} templateIndex index of the template we want to disable
164
+ * @return {Promise<TransactionReceipt>} current token template count
165
+ */
56
166
  disableTokenTemplate(address: string, templateIndex: number): Promise<TransactionReceipt>;
167
+ /**
168
+ * Estimate gas cost for reactivateTokenTemplate method
169
+ * @param {String} address
170
+ * @param {Number} templateIndex index of the template we want to reactivate
171
+ * @return {Promise<TransactionReceipt>} current token template count
172
+ */
57
173
  estGasReactivateTokenTemplate(address: string, templateIndex: number): Promise<any>;
174
+ /**
175
+ * Reactivate a previously disabled token template - only factory Owner
176
+ * @param {String} address
177
+ * @param {Number} templateIndex index of the template we want to reactivate
178
+ * @return {Promise<TransactionReceipt>} current token template count
179
+ */
58
180
  reactivateTokenTemplate(address: string, templateIndex: number): Promise<TransactionReceipt>;
181
+ /** Estimate gas cost for startMultipleTokenOrder method
182
+ * @param address Caller address
183
+ * @param orders an array of struct tokenOrder
184
+ * @return {Promise<TransactionReceipt>} transaction receipt
185
+ */
59
186
  estGasStartMultipleTokenOrder(address: string, orders: TokenOrder[]): Promise<any>;
187
+ /**
188
+ * @dev startMultipleTokenOrder
189
+ * Used as a proxy to order multiple services
190
+ * Users can have inifinite approvals for fees for factory instead of having one approval/ erc20 contract
191
+ * Requires previous approval of all :
192
+ * - consumeFeeTokens
193
+ * - publishMarketFeeTokens
194
+ * - erc20 datatokens
195
+ * @param address Caller address
196
+ * @param orders an array of struct tokenOrder
197
+ * @return {Promise<TransactionReceipt>} transaction receipt
198
+ */
60
199
  startMultipleTokenOrder(address: string, orders: TokenOrder[]): Promise<TransactionReceipt>;
61
- estGasCreateNftWithErc(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams): Promise<any>;
62
- createNftWithErc(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams): Promise<TransactionReceipt>;
63
- estGasCreateNftErcWithPool(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, poolParams: PoolCreationParams): Promise<any>;
64
- createNftErcWithPool(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, poolParams: PoolCreationParams): Promise<TransactionReceipt>;
65
- estGasCreateNftErcWithFixedRate(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, freParams: FreCreationParams): Promise<any>;
66
- createNftErcWithFixedRate(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, freParams: FreCreationParams): Promise<TransactionReceipt>;
67
- estGasCreateNftErcWithDispenser(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, dispenserParams: DispenserCreationParams): Promise<any>;
68
- createNftErcWithDispenser(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, dispenserParams: DispenserCreationParams): Promise<TransactionReceipt>;
200
+ /**
201
+ * Estimate gas cost for createNftWithErc20 method
202
+ * @param address Caller address
203
+ * @param _NftCreateData input data for nft creation
204
+ * @param _ErcCreateData input data for erc20 creation
205
+ * @return {Promise<TransactionReceipt>} transaction receipt
206
+ */
207
+ estGasCreateNftWithErc20(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams): Promise<any>;
208
+ /**
209
+ * @dev createNftWithErc20
210
+ * Creates a new NFT, then a ERC20,all in one call
211
+ * @param address Caller address
212
+ * @param _NftCreateData input data for nft creation
213
+ * @param _ErcCreateData input data for erc20 creation
214
+ * @return {Promise<TransactionReceipt>} transaction receipt
215
+ */
216
+ createNftWithErc20(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams): Promise<TransactionReceipt>;
217
+ /**
218
+ * Estimate gas cost for createNftErc20WithPool method
219
+ * @param address Caller address
220
+ * @param nftCreateData input data for NFT Creation
221
+ * @param ercParams input data for ERC20 Creation
222
+ * @param poolParams input data for Pool Creation
223
+ * @return {Promise<TransactionReceipt>} transaction receipt
224
+ */
225
+ estGasCreateNftErc20WithPool(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, poolParams: PoolCreationParams): Promise<any>;
226
+ /**
227
+ * @dev createNftErc20WithPool
228
+ * Creates a new NFT, then a ERC20, then a Pool, all in one call
229
+ * Use this carefully, because if Pool creation fails, you are still going to pay a lot of gas
230
+ * @param address Caller address
231
+ * @param nftCreateData input data for NFT Creation
232
+ * @param ercParams input data for ERC20 Creation
233
+ * @param poolParams input data for Pool Creation
234
+ * @return {Promise<TransactionReceipt>} transaction receipt
235
+ */
236
+ createNftErc20WithPool(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, poolParams: PoolCreationParams): Promise<TransactionReceipt>;
237
+ /** Estimate gas cost for createNftErc20WithFixedRate method
238
+ * @param address Caller address
239
+ * @param nftCreateData input data for NFT Creation
240
+ * @param ercParams input data for ERC20 Creation
241
+ * @param freParams input data for FixedRate Creation
242
+ * @return {Promise<TransactionReceipt>} transaction receipt
243
+ */
244
+ estGasCreateNftErc20WithFixedRate(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, freParams: FreCreationParams): Promise<any>;
245
+ /**
246
+ * @dev createNftErc20WithFixedRate
247
+ * Creates a new NFT, then a ERC20, then a FixedRateExchange, all in one call
248
+ * Use this carefully, because if Fixed Rate creation fails, you are still going to pay a lot of gas
249
+ * @param address Caller address
250
+ * @param nftCreateData input data for NFT Creation
251
+ * @param ercParams input data for ERC20 Creation
252
+ * @param freParams input data for FixedRate Creation
253
+ * @return {Promise<TransactionReceipt>} transaction receipt
254
+ */
255
+ createNftErc20WithFixedRate(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, freParams: FreCreationParams): Promise<TransactionReceipt>;
256
+ /** Estimate gas cost for createNftErc20WithFixedRate method
257
+ * @param address Caller address
258
+ * @param nftCreateData input data for NFT Creation
259
+ * @param ercParams input data for ERC20 Creation
260
+ * @param dispenserParams input data for Dispenser Creation
261
+ * @return {Promise<TransactionReceipt>} transaction receipt
262
+ */
263
+ estGasCreateNftErc20WithDispenser(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, dispenserParams: DispenserCreationParams): Promise<any>;
264
+ /**
265
+ * @dev createNftErc20WithDispenser
266
+ * Creates a new NFT, then a ERC20, then a Dispenser, all in one call
267
+ * Use this carefully, because if Dispenser creation fails, you are still going to pay a lot of gas
268
+ * @param address Caller address
269
+ * @param nftCreateData input data for NFT Creation
270
+ * @param ercParams input data for ERC20 Creation
271
+ * @param dispenserParams input data for Dispenser Creation
272
+ * @return {Promise<TransactionReceipt>} transaction receipt
273
+ */
274
+ createNftErc20WithDispenser(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, dispenserParams: DispenserCreationParams): Promise<TransactionReceipt>;
69
275
  }
70
276
  export {};
@@ -1,3 +1,4 @@
1
+ export * from './aquarius';
1
2
  export * from './pools';
2
3
  export * from './tokens';
3
4
  export * from './factories';
@@ -5,4 +6,3 @@ export * from './models';
5
6
  export * from './utils';
6
7
  export * from './@types';
7
8
  export * from './provider';
8
- export * from './interfaces';
@@ -1,34 +1,166 @@
1
1
  import { LogLevel } from '../utils/Logger';
2
2
  import { AbiItem } from 'web3-utils/types';
3
3
  export declare class Config {
4
+ /**
5
+ * Ethereum node URL.
6
+ * @type {string}
7
+ */
4
8
  nodeUri?: string;
9
+ /**
10
+ * Address of Provider.
11
+ * @type {string}
12
+ */
5
13
  providerAddress?: string;
14
+ /**
15
+ * Metadata Store URL.
16
+ * @type {string}
17
+ */
6
18
  metadataCacheUri?: string;
19
+ /**
20
+ * Provider URL.
21
+ * @type {string}
22
+ */
7
23
  providerUri?: string;
24
+ /**
25
+ * Web3 Provider.
26
+ * @type {any}
27
+ */
8
28
  web3Provider?: any;
29
+ /**
30
+ * Ocean Token address
31
+ * @type {string}
32
+ */
9
33
  oceanTokenAddress?: string;
34
+ /**
35
+ * Factory address
36
+ * @type {string}
37
+ */
10
38
  erc721FactoryAddress?: string;
39
+ /**
40
+ * Factory ABI
41
+ * @type {string}
42
+ */
11
43
  erc721FFactoryABI?: AbiItem | AbiItem[];
44
+ /**
45
+ * datatokens ABI
46
+ * @type {string}
47
+ */
12
48
  datatokensABI?: AbiItem | AbiItem[];
49
+ /**
50
+ * Pool Template address
51
+ * @type {string}
52
+ */
13
53
  poolTemplateAddress?: string;
54
+ /**
55
+ * Pool Factory ABI
56
+ * @type {string}
57
+ */
14
58
  poolFactoryABI?: AbiItem | AbiItem[];
59
+ /**
60
+ * Pool ABI
61
+ * @type {string}
62
+ */
15
63
  poolABI?: AbiItem | AbiItem[];
64
+ /**
65
+ * FixedRateExchangeAddress
66
+ * @type {string}
67
+ */
16
68
  fixedRateExchangeAddress?: string;
69
+ /**
70
+ * FixedRateExchangeAddressABI
71
+ * @type {any}
72
+ */
17
73
  fixedRateExchangeAddressABI?: AbiItem | AbiItem[];
74
+ /**
75
+ * DispenserAddress
76
+ * @type {string}
77
+ */
18
78
  dispenserAddress?: string;
79
+ /**
80
+ * DispenserABI
81
+ * @type {any}
82
+ */
19
83
  dispenserABI?: AbiItem | AbiItem[];
84
+ /**
85
+ * OPFCommunityFeeCollector
86
+ * @type {string}
87
+ */
20
88
  opfCommunityFeeCollector?: string;
89
+ /**
90
+ * SideStaking address
91
+ * @type {string}
92
+ */
21
93
  sideStakingAddress?: string;
94
+ /**
95
+ * block number of the deployment
96
+ * @type {number}
97
+ */
22
98
  startBlock?: number;
99
+ /**
100
+ * Log level.
101
+ * @type {boolean | LogLevel}
102
+ */
23
103
  verbose?: boolean | LogLevel;
104
+ /**
105
+ * Message shown when the user creates its own token.
106
+ * @type {string}
107
+ */
24
108
  authMessage?: string;
109
+ /**
110
+ * Token expiration time in ms.
111
+ * @type {number}
112
+ */
25
113
  authTokenExpiration?: number;
114
+ /**
115
+ * Parity config
116
+ * @type {string}
117
+ */
26
118
  parityUri?: string;
27
119
  threshold?: number;
120
+ /**
121
+ * Chain ID
122
+ * @type {number}
123
+ */
28
124
  chainId: number;
125
+ /**
126
+ * Network name ex: mainnet, rinkeby, polygon
127
+ * @type {string}
128
+ */
29
129
  network: string;
130
+ /**
131
+ * Url of the relevant subgraph instance ex: https://subgraph.mainnet.oceanprotocol.com
132
+ * @type {string}
133
+ */
30
134
  subgraphUri: string;
135
+ /**
136
+ * Url of the blockchain exporer ex: https://etherscan.io
137
+ * @type {string}
138
+ */
31
139
  explorerUri: string;
140
+ /**
141
+ * Ocean toke symbol on the chain, it's used just for convenience to reduce number of calls
142
+ * @type {string}
143
+ */
32
144
  oceanTokenSymbol: string;
145
+ /**
146
+ * Specify the transaction Block Timeout
147
+ * @type {number}
148
+ */
149
+ transactionBlockTimeout: number;
150
+ /**
151
+ * Specify the transaction Confirmation Blocks
152
+ * @type {number}
153
+ */
154
+ transactionConfirmationBlocks: number;
155
+ /**
156
+ * Specify the transaction Polling Blocks Timeout
157
+ * @type {number}
158
+ */
159
+ transactionPollingTimeout: number;
160
+ /**
161
+ * Specify the multiplier for the gas fee
162
+ * @type {number}
163
+ */
164
+ gasFeeMultiplier: number;
33
165
  }
34
166
  export default Config;