@oceanprotocol/lib 1.0.0-next.2 → 1.0.0-next.20

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 (55) hide show
  1. package/CHANGELOG.md +163 -1
  2. package/dist/lib.js +1 -1
  3. package/dist/lib.js.map +1 -1
  4. package/dist/lib.modern.js +1 -1
  5. package/dist/lib.modern.js.map +1 -1
  6. package/dist/lib.module.js +1 -1
  7. package/dist/lib.module.js.map +1 -1
  8. package/dist/lib.umd.js +1 -1
  9. package/dist/lib.umd.js.map +1 -1
  10. package/dist/src/@types/Asset.d.ts +83 -0
  11. package/dist/src/@types/Compute.d.ts +17 -0
  12. package/dist/src/@types/DDO/DDO.d.ts +43 -0
  13. package/dist/src/@types/DDO/Event.d.ts +20 -0
  14. package/dist/src/@types/DDO/Metadata.d.ts +88 -0
  15. package/dist/src/@types/DDO/Service.d.ts +96 -0
  16. package/dist/src/{interfaces/DispenserInterface.d.ts → @types/Dispenser.d.ts} +0 -0
  17. package/dist/src/@types/DownloadResponse.d.ts +4 -0
  18. package/dist/src/{interfaces/Erc20Interface.d.ts → @types/Erc20.d.ts} +5 -0
  19. package/dist/src/@types/Erc721.d.ts +12 -0
  20. package/dist/src/@types/FileMetadata.d.ts +30 -0
  21. package/dist/src/{interfaces/FixedRateInterface.d.ts → @types/FixedPrice.d.ts} +8 -2
  22. package/dist/src/{interfaces/PoolInterface.d.ts → @types/Pool.d.ts} +13 -6
  23. package/dist/src/@types/Provider.d.ts +3 -2
  24. package/dist/src/@types/Router.d.ts +59 -0
  25. package/dist/src/@types/index.d.ts +6 -0
  26. package/dist/src/aquarius/Aquarius.d.ts +26 -4
  27. package/dist/src/factories/NFTFactory.d.ts +222 -18
  28. package/dist/src/index.d.ts +1 -1
  29. package/dist/src/models/Config.d.ts +132 -0
  30. package/dist/src/pools/Router.d.ts +190 -7
  31. package/dist/src/pools/balancer/Pool.d.ts +381 -26
  32. package/dist/src/pools/dispenser/Dispenser.d.ts +112 -3
  33. package/dist/src/pools/fixedRate/FixedRateExchange.d.ts +304 -13
  34. package/dist/src/pools/ssContracts/SideStaking.d.ts +109 -5
  35. package/dist/src/provider/Provider.d.ts +128 -12
  36. package/dist/src/tokens/Datatoken.d.ts +301 -13
  37. package/dist/src/tokens/NFT.d.ts +301 -3
  38. package/dist/src/utils/ConfigHelper.d.ts +1 -1
  39. package/dist/src/utils/Constants.d.ts +1 -0
  40. package/dist/src/utils/ContractUtils.d.ts +12 -0
  41. package/dist/src/utils/DatatokenName.d.ts +4 -0
  42. package/dist/src/utils/FetchHelper.d.ts +3 -2
  43. package/dist/src/utils/General.d.ts +4 -0
  44. package/dist/src/utils/TokenUtils.d.ts +39 -0
  45. package/dist/src/utils/index.d.ts +3 -2
  46. package/dist/src/utils/minAbi.d.ts +2 -0
  47. package/docs/beginners_guide.md +4 -4
  48. package/docs/overview.md +100 -9
  49. package/docs/quickstart_marketplace.md +34 -33
  50. package/docs/quickstart_simple.md +18 -16
  51. package/package.json +24 -23
  52. package/dist/src/interfaces/RouterInterface.d.ts +0 -12
  53. package/dist/src/interfaces/index.d.ts +0 -5
  54. package/dist/src/utils/ContractParams.d.ts +0 -4
  55. package/dist/src/utils/GasUtils.d.ts +0 -2
@@ -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,13 +12,8 @@ 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;
@@ -25,46 +21,254 @@ export interface NftCreateData {
25
21
  templateIndex: number;
26
22
  tokenURI: string;
27
23
  }
24
+ /**
25
+ * Provides an interface for NFT Factory contract
26
+ */
28
27
  export declare class NftFactory {
29
28
  GASLIMIT_DEFAULT: number;
30
29
  factory721Address: string;
31
30
  factory721Abi: AbiItem | AbiItem[];
32
31
  web3: Web3;
33
- startBlock: number;
32
+ config: Config;
34
33
  factory721: Contract;
35
- constructor(factory721Address: string, web3: Web3, factory721Abi?: AbiItem | AbiItem[], startBlock?: number);
34
+ /**
35
+ * Instantiate Datatokens.
36
+ * @param {String} factory721Address
37
+ * @param {AbiItem | AbiItem[]} factory721ABI
38
+ * @param {Web3} web3
39
+ */
40
+ constructor(factory721Address: string, web3: Web3, factory721Abi?: AbiItem | AbiItem[], config?: Config);
41
+ /**
42
+ * Get estimated gas cost for deployERC721Contract value
43
+ * @param {String} address
44
+ * @param {String} nftData
45
+ * @return {Promise<string>} NFT datatoken address
46
+ */
36
47
  estGasCreateNFT(address: string, nftData: NftCreateData): Promise<string>;
48
+ /**
49
+ * Create new NFT
50
+ * @param {String} address
51
+ * @param {NFTCreateData} nftData
52
+ * @return {Promise<string>} NFT datatoken address
53
+ */
37
54
  createNFT(address: string, nftData: NftCreateData): Promise<string>;
55
+ /** Get Current NFT Count (NFT created)
56
+ * @return {Promise<number>} Number of NFT created from this factory
57
+ */
38
58
  getCurrentNFTCount(): Promise<number>;
59
+ /** Get Current Datatoken Count
60
+ * @return {Promise<number>} Number of DTs created from this factory
61
+ */
39
62
  getCurrentTokenCount(): Promise<number>;
63
+ /** Get Factory Owner
64
+ * @return {Promise<string>} Factory Owner address
65
+ */
40
66
  getOwner(): Promise<string>;
67
+ /** Get Current NFT Template Count
68
+ * @return {Promise<number>} Number of NFT Template added to this factory
69
+ */
41
70
  getCurrentNFTTemplateCount(): Promise<number>;
71
+ /** Get Current Template Datatoken (ERC20) Count
72
+ * @return {Promise<number>} Number of ERC20 Template added to this factory
73
+ */
42
74
  getCurrentTokenTemplateCount(): Promise<number>;
75
+ /** Get NFT Template
76
+ * @param {Number} index Template index
77
+ * @return {Promise<Template>} Number of Template added to this factory
78
+ */
43
79
  getNFTTemplate(index: number): Promise<Template>;
80
+ /** Get Datatoken(erc20) Template
81
+ * @param {Number} index Template index
82
+ * @return {Promise<Template>} DT Template info
83
+ */
44
84
  getTokenTemplate(index: number): Promise<Template>;
85
+ /** Check if ERC20 is deployed from the factory
86
+ * @param {String} datatoken Datatoken address we want to check
87
+ * @return {Promise<Boolean>} return true if deployed from this factory
88
+ */
45
89
  checkDatatoken(datatoken: string): Promise<Boolean>;
90
+ /** Check if NFT is deployed from the factory
91
+ * @param {String} nftAddress nftAddress address we want to check
92
+ * @return {Promise<String>} return address(0) if it's not, or the nftAddress if true
93
+ */
46
94
  checkNFT(nftAddress: string): Promise<String>;
95
+ /**
96
+ * Estimate gas cost for add721TokenTemplate method
97
+ * @param {String} address
98
+ * @param {String} templateAddress template address to add
99
+ * @return {Promise<TransactionReceipt>}
100
+ */
47
101
  estGasAddNFTTemplate(address: string, templateAddress: string): Promise<any>;
102
+ /**
103
+ * Add a new erc721 token template - only factory Owner
104
+ * @param {String} address
105
+ * @param {String} templateAddress template address to add
106
+ * @return {Promise<TransactionReceipt>}
107
+ */
48
108
  addNFTTemplate(address: string, templateAddress: string): Promise<TransactionReceipt>;
109
+ /**
110
+ * Estimate gas cost for disable721TokenTemplate method
111
+ * @param {String} address
112
+ * @param {Number} templateIndex index of the template we want to disable
113
+ * @return {Promise<TransactionReceipt>} current token template count
114
+ */
49
115
  estGasDisableNFTTemplate(address: string, templateIndex: number): Promise<any>;
116
+ /**
117
+ * Disable token template - only factory Owner
118
+ * @param {String} address
119
+ * @param {Number} templateIndex index of the template we want to disable
120
+ * @return {Promise<TransactionReceipt>} current token template count
121
+ */
50
122
  disableNFTTemplate(address: string, templateIndex: number): Promise<TransactionReceipt>;
123
+ /**
124
+ * Reactivate a previously disabled token template - only factory Owner
125
+ * @param {String} address
126
+ * @param {Number} templateIndex index of the template we want to reactivate
127
+ * @return {Promise<TransactionReceipt>} current token template count
128
+ */
51
129
  estGasReactivateNFTTemplate(address: string, templateIndex: number): Promise<any>;
130
+ /**
131
+ * Reactivate a previously disabled token template - only factory Owner
132
+ * @param {String} address
133
+ * @param {Number} templateIndex index of the template we want to reactivate
134
+ * @return {Promise<TransactionReceipt>} current token template count
135
+ */
52
136
  reactivateNFTTemplate(address: string, templateIndex: number): Promise<TransactionReceipt>;
137
+ /**
138
+ * Estimate gas cost for addTokenTemplate method
139
+ * @param {String} address
140
+ * @param {String} templateAddress template address to add
141
+ * @return {Promise<TransactionReceipt>}
142
+ */
53
143
  estGasAddTokenTemplate(address: string, templateAddress: string): Promise<any>;
144
+ /**
145
+ * Add a new erc721 token template - only factory Owner
146
+ * @param {String} address
147
+ * @param {String} templateAddress template address to add
148
+ * @return {Promise<TransactionReceipt>}
149
+ */
54
150
  addTokenTemplate(address: string, templateAddress: string): Promise<TransactionReceipt>;
151
+ /**
152
+ * Estimate gas cost for disableTokenTemplate method
153
+ * @param {String} address
154
+ * @param {Number} templateIndex index of the template we want to disable
155
+ * @return {Promise<TransactionReceipt>} current token template count
156
+ */
55
157
  estGasDisableTokenTemplate(address: string, templateIndex: number): Promise<any>;
158
+ /**
159
+ * Disable token template - only factory Owner
160
+ * @param {String} address
161
+ * @param {Number} templateIndex index of the template we want to disable
162
+ * @return {Promise<TransactionReceipt>} current token template count
163
+ */
56
164
  disableTokenTemplate(address: string, templateIndex: number): Promise<TransactionReceipt>;
165
+ /**
166
+ * Estimate gas cost for reactivateTokenTemplate method
167
+ * @param {String} address
168
+ * @param {Number} templateIndex index of the template we want to reactivate
169
+ * @return {Promise<TransactionReceipt>} current token template count
170
+ */
57
171
  estGasReactivateTokenTemplate(address: string, templateIndex: number): Promise<any>;
172
+ /**
173
+ * Reactivate a previously disabled token template - only factory Owner
174
+ * @param {String} address
175
+ * @param {Number} templateIndex index of the template we want to reactivate
176
+ * @return {Promise<TransactionReceipt>} current token template count
177
+ */
58
178
  reactivateTokenTemplate(address: string, templateIndex: number): Promise<TransactionReceipt>;
179
+ /** Estimate gas cost for startMultipleTokenOrder method
180
+ * @param address Caller address
181
+ * @param orders an array of struct tokenOrder
182
+ * @return {Promise<TransactionReceipt>} transaction receipt
183
+ */
59
184
  estGasStartMultipleTokenOrder(address: string, orders: TokenOrder[]): Promise<any>;
185
+ /**
186
+ * @dev startMultipleTokenOrder
187
+ * Used as a proxy to order multiple services
188
+ * Users can have inifinite approvals for fees for factory instead of having one approval/ erc20 contract
189
+ * Requires previous approval of all :
190
+ * - consumeFeeTokens
191
+ * - publishMarketFeeTokens
192
+ * - erc20 datatokens
193
+ * @param address Caller address
194
+ * @param orders an array of struct tokenOrder
195
+ * @return {Promise<TransactionReceipt>} transaction receipt
196
+ */
60
197
  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>;
198
+ /**
199
+ * Estimate gas cost for createNftWithErc20 method
200
+ * @param address Caller address
201
+ * @param _NftCreateData input data for nft creation
202
+ * @param _ErcCreateData input data for erc20 creation
203
+ * @return {Promise<TransactionReceipt>} transaction receipt
204
+ */
205
+ estGasCreateNftWithErc20(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams): Promise<any>;
206
+ /**
207
+ * @dev createNftWithErc20
208
+ * Creates a new NFT, then a ERC20,all in one call
209
+ * @param address Caller address
210
+ * @param _NftCreateData input data for nft creation
211
+ * @param _ErcCreateData input data for erc20 creation
212
+ * @return {Promise<TransactionReceipt>} transaction receipt
213
+ */
214
+ createNftWithErc20(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams): Promise<TransactionReceipt>;
215
+ /**
216
+ * Estimate gas cost for createNftErc20WithPool method
217
+ * @param address Caller address
218
+ * @param nftCreateData input data for NFT Creation
219
+ * @param ercParams input data for ERC20 Creation
220
+ * @param poolParams input data for Pool Creation
221
+ * @return {Promise<TransactionReceipt>} transaction receipt
222
+ */
223
+ estGasCreateNftErc20WithPool(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, poolParams: PoolCreationParams): Promise<any>;
224
+ /**
225
+ * @dev createNftErc20WithPool
226
+ * Creates a new NFT, then a ERC20, then a Pool, all in one call
227
+ * Use this carefully, because if Pool creation fails, you are still going to pay a lot of gas
228
+ * @param address Caller address
229
+ * @param nftCreateData input data for NFT Creation
230
+ * @param ercParams input data for ERC20 Creation
231
+ * @param poolParams input data for Pool Creation
232
+ * @return {Promise<TransactionReceipt>} transaction receipt
233
+ */
234
+ createNftErc20WithPool(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, poolParams: PoolCreationParams): Promise<TransactionReceipt>;
235
+ /** Estimate gas cost for createNftErc20WithFixedRate method
236
+ * @param address Caller address
237
+ * @param nftCreateData input data for NFT Creation
238
+ * @param ercParams input data for ERC20 Creation
239
+ * @param freParams input data for FixedRate Creation
240
+ * @return {Promise<TransactionReceipt>} transaction receipt
241
+ */
242
+ estGasCreateNftErc20WithFixedRate(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, freParams: FreCreationParams): Promise<any>;
243
+ /**
244
+ * @dev createNftErc20WithFixedRate
245
+ * Creates a new NFT, then a ERC20, then a FixedRateExchange, all in one call
246
+ * Use this carefully, because if Fixed Rate creation fails, you are still going to pay a lot of gas
247
+ * @param address Caller address
248
+ * @param nftCreateData input data for NFT Creation
249
+ * @param ercParams input data for ERC20 Creation
250
+ * @param freParams input data for FixedRate Creation
251
+ * @return {Promise<TransactionReceipt>} transaction receipt
252
+ */
253
+ createNftErc20WithFixedRate(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, freParams: FreCreationParams): Promise<TransactionReceipt>;
254
+ /** Estimate gas cost for createNftErc20WithFixedRate method
255
+ * @param address Caller address
256
+ * @param nftCreateData input data for NFT Creation
257
+ * @param ercParams input data for ERC20 Creation
258
+ * @param dispenserParams input data for Dispenser Creation
259
+ * @return {Promise<TransactionReceipt>} transaction receipt
260
+ */
261
+ estGasCreateNftErc20WithDispenser(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, dispenserParams: DispenserCreationParams): Promise<any>;
262
+ /**
263
+ * @dev createNftErc20WithDispenser
264
+ * Creates a new NFT, then a ERC20, then a Dispenser, all in one call
265
+ * Use this carefully, because if Dispenser creation fails, you are still going to pay a lot of gas
266
+ * @param address Caller address
267
+ * @param nftCreateData input data for NFT Creation
268
+ * @param ercParams input data for ERC20 Creation
269
+ * @param dispenserParams input data for Dispenser Creation
270
+ * @return {Promise<TransactionReceipt>} transaction receipt
271
+ */
272
+ createNftErc20WithDispenser(address: string, nftCreateData: NftCreateData, ercParams: Erc20CreateParams, dispenserParams: DispenserCreationParams): Promise<TransactionReceipt>;
69
273
  }
70
274
  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;