@oceanprotocol/lib 1.0.0-next.7 → 1.0.0

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 (68) hide show
  1. package/CHANGELOG.md +405 -1
  2. package/CodeExamples.md +918 -0
  3. package/README.md +12 -80
  4. package/dist/lib.js +1 -1
  5. package/dist/lib.js.map +1 -1
  6. package/dist/lib.modern.js +1 -1
  7. package/dist/lib.modern.js.map +1 -1
  8. package/dist/lib.module.js +1 -1
  9. package/dist/lib.module.js.map +1 -1
  10. package/dist/lib.umd.js +1 -1
  11. package/dist/lib.umd.js.map +1 -1
  12. package/dist/src/@types/Asset.d.ts +83 -0
  13. package/dist/src/@types/Compute.d.ts +18 -1
  14. package/dist/src/@types/DDO/DDO.d.ts +43 -0
  15. package/dist/src/@types/DDO/Event.d.ts +20 -0
  16. package/dist/src/@types/DDO/Metadata.d.ts +92 -0
  17. package/dist/src/@types/DDO/Service.d.ts +72 -6
  18. package/dist/src/{interfaces/DispenserInterface.d.ts → @types/Dispenser.d.ts} +0 -0
  19. package/dist/src/@types/DownloadResponse.d.ts +4 -0
  20. package/dist/src/@types/Erc20.d.ts +21 -0
  21. package/dist/src/@types/Erc721.d.ts +12 -0
  22. package/dist/src/@types/FileMetadata.d.ts +29 -0
  23. package/dist/src/{interfaces/FixedRateInterface.d.ts → @types/FixedPrice.d.ts} +7 -1
  24. package/dist/src/{interfaces/PoolInterface.d.ts → @types/Pool.d.ts} +11 -2
  25. package/dist/src/@types/Provider.d.ts +9 -0
  26. package/dist/src/@types/Router.d.ts +59 -0
  27. package/dist/src/@types/index.d.ts +6 -0
  28. package/dist/src/aquarius/Aquarius.d.ts +26 -4
  29. package/dist/src/factories/NFTFactory.d.ts +222 -13
  30. package/dist/src/index.d.ts +1 -1
  31. package/dist/src/models/Config.d.ts +128 -0
  32. package/dist/src/pools/Router.d.ts +193 -12
  33. package/dist/src/pools/balancer/Pool.d.ts +357 -37
  34. package/dist/src/pools/dispenser/Dispenser.d.ts +109 -2
  35. package/dist/src/pools/fixedRate/FixedRateExchange.d.ts +311 -19
  36. package/dist/src/pools/index.d.ts +2 -0
  37. package/dist/src/pools/ssContracts/SideStaking.d.ts +110 -7
  38. package/dist/src/provider/Provider.d.ts +137 -14
  39. package/dist/src/tokens/Datatoken.d.ts +347 -7
  40. package/dist/src/tokens/NFT.d.ts +301 -6
  41. package/dist/src/utils/ConfigHelper.d.ts +1 -1
  42. package/dist/src/utils/Constants.d.ts +1 -0
  43. package/dist/src/utils/ContractUtils.d.ts +13 -2
  44. package/dist/src/utils/DatatokenName.d.ts +4 -0
  45. package/dist/src/utils/FetchHelper.d.ts +3 -2
  46. package/dist/src/utils/General.d.ts +4 -0
  47. package/dist/src/utils/PoolHelpers.d.ts +8 -0
  48. package/dist/src/utils/SignatureUtils.d.ts +0 -2
  49. package/dist/src/utils/TokenUtils.d.ts +69 -0
  50. package/dist/src/utils/index.d.ts +3 -0
  51. package/dist/src/utils/minAbi.d.ts +2 -0
  52. package/dist/test/TestContractHandler.d.ts +8 -36
  53. package/dist/test/config.d.ts +5 -0
  54. package/dist/test/{unit/NftFactory.test.d.ts → integration/CodeExamples.test.d.ts} +0 -0
  55. package/dist/test/unit/factories/NftFactory.test.d.ts +1 -0
  56. package/package.json +38 -34
  57. package/dist/src/interfaces/Erc20Interface.d.ts +0 -11
  58. package/dist/src/interfaces/RouterInterface.d.ts +0 -12
  59. package/dist/src/interfaces/index.d.ts +0 -5
  60. package/dist/test/integration/config.d.ts +0 -3
  61. package/dist/test/unit/config.d.ts +0 -3
  62. package/docs/beginners_guide.md +0 -338
  63. package/docs/get-test-OCEAN.md +0 -24
  64. package/docs/overview.md +0 -394
  65. package/docs/quickstart_marketplace.md +0 -423
  66. package/docs/quickstart_simple.md +0 -272
  67. package/docs/services.md +0 -94
  68. package/docs/wallets.md +0 -98
@@ -1,21 +1,78 @@
1
1
  import { DDO } from './DDO/DDO';
2
2
  export interface AssetNft {
3
+ /**
4
+ * Contract address of the deployed ERC721 NFT contract.
5
+ * @type {string}
6
+ */
3
7
  address: string;
8
+ /**
9
+ * Name of NFT set in contract.
10
+ * @type {string}
11
+ */
4
12
  name: string;
13
+ /**
14
+ * Symbol of NFT set in contract.
15
+ * @type {string}
16
+ */
5
17
  symbol: string;
18
+ /**
19
+ * ETH account address of the NFT owner.
20
+ * @type {string}
21
+ */
6
22
  owner: string;
23
+ /**
24
+ * State of the asset reflecting the NFT contract value.
25
+ * 0 Active.
26
+ * 1 End-of-life.
27
+ * 2 Deprecated (by another asset).
28
+ * 3 Revoked by publisher.
29
+ * 4 Ordering is temporary disabled.
30
+ * @type {number}
31
+ */
7
32
  state: 0 | 1 | 2 | 3 | 4;
33
+ /**
34
+ * Contains the date of NFT creation.
35
+ * @type {string}
36
+ */
8
37
  created: string;
38
+ /**
39
+ * NFT token URI.
40
+ * @type {string}
41
+ */
9
42
  tokenURI: string;
10
43
  }
11
44
  export interface Purgatory {
45
+ /**
46
+ * If `true`, asset is in purgatory.
47
+ * @type {boolean}
48
+ */
12
49
  state: boolean;
50
+ /**
51
+ * If asset is in purgatory, contains the reason for being there as defined in `list-purgatory`.
52
+ * @type {string}
53
+ */
13
54
  reason: string;
14
55
  }
15
56
  export interface AssetDatatoken {
57
+ /**
58
+ * Contract address of the deployed ERC20 contract.
59
+ * @type {string}
60
+ */
16
61
  address: string;
62
+ /**
63
+ * Name of NFT set in contract.
64
+ * @type {string}
65
+ */
17
66
  name: string;
67
+ /**
68
+ * Symbol of NFT set in contract.
69
+ * @type {string}
70
+ */
18
71
  symbol: string;
72
+ /**
73
+ * ID of the service the datatoken is attached to.
74
+ * @type {string}
75
+ */
19
76
  serviceId: string;
20
77
  }
21
78
  export interface AssetLastEvent {
@@ -26,11 +83,37 @@ export interface AssetLastEvent {
26
83
  datetime: string;
27
84
  }
28
85
  export interface Asset extends DDO {
86
+ /**
87
+ * Contains information about the ERC721 NFT contract which represents the intellectual property of the publisher.
88
+ * @type {string}
89
+ */
29
90
  nft: AssetNft;
91
+ /**
92
+ * Contains information about the ERC20 datatokens attached to asset services.
93
+ * @type {string}
94
+ */
30
95
  datatokens: AssetDatatoken[];
96
+ /**
97
+ * Contains information about the last transaction that created or updated the DDO.
98
+ * @type {string}
99
+ */
31
100
  event: AssetLastEvent;
101
+ /**
102
+ * The stats section contains different statistics fields.
103
+ * @type {string}
104
+ */
32
105
  stats: {
106
+ /**
107
+ * How often an asset was consumed, meaning how often it was either downloaded or used as part of a compute job.
108
+ * @type {string}
109
+ */
33
110
  consume: number;
34
111
  };
112
+ /**
113
+ * Contains information about an asset's purgatory status defined in
114
+ * [`list-purgatory`](https://github.com/oceanprotocol/list-purgatory).
115
+ * Marketplace interfaces are encouraged to prevent certain user actions like adding liquidity on assets in purgatory.
116
+ * @type {Purgatory}
117
+ */
35
118
  purgatory: Purgatory;
36
119
  }
@@ -1,5 +1,22 @@
1
1
  import { Metadata, MetadataAlgorithm } from './DDO/Metadata';
2
- export declare type ComputeResultType = 'algorithmLog' | 'output';
2
+ export declare type ComputeResultType = 'algorithmLog' | 'output' | 'configrationLog' | 'publishLog';
3
+ export interface ComputeEnvironment {
4
+ id: string;
5
+ cpuNumber: number;
6
+ cpuType: string;
7
+ gpuNumber: number;
8
+ gpuType: string;
9
+ ramGB: number;
10
+ diskGB: number;
11
+ priceMin: number;
12
+ desc: string;
13
+ currentJobs: number;
14
+ maxJobs: number;
15
+ consumerAddress: string;
16
+ storageExpiry: number;
17
+ maxJobDuration: number;
18
+ lastSeen: number;
19
+ }
3
20
  export interface ComputeResult {
4
21
  filename: string;
5
22
  filesize: number;
@@ -2,14 +2,57 @@ import { Service } from './Service';
2
2
  import { Metadata } from './Metadata';
3
3
  import { Credentials } from './Credentials';
4
4
  import { Event } from './Event';
5
+ /**
6
+ * DID Descriptor Object.
7
+ * Contains metadata about the asset, and define access in at least one service.
8
+ */
5
9
  export interface DDO {
10
+ /**
11
+ * Contexts used for validation.
12
+ * @type {string[]}
13
+ */
6
14
  '@context': string[];
15
+ /**
16
+ * DID, descentralized ID.
17
+ * Computed as sha256(address of ERC721 contract + chainId)
18
+ * @type {string}
19
+ */
7
20
  id: string;
21
+ /**
22
+ * Version information in SemVer notation
23
+ * referring to the DDO spec version
24
+ * @type {string}
25
+ */
8
26
  version: string;
27
+ /**
28
+ * NFT contract address
29
+ * @type {string}
30
+ */
9
31
  nftAddress: string;
32
+ /**
33
+ * ChainId of the network the DDO was published to.
34
+ * @type {number}
35
+ */
10
36
  chainId: number;
37
+ /**
38
+ * Stores an object describing the asset.
39
+ * @type {Metadata}
40
+ */
11
41
  metadata: Metadata;
42
+ /**
43
+ * Stores an array of services defining access to the asset.
44
+ * @type {Service[]}
45
+ */
12
46
  services: Service[];
47
+ /**
48
+ * Describes the credentials needed to access a dataset
49
+ * in addition to the services definition.
50
+ * @type {Credentials}
51
+ */
13
52
  credentials?: Credentials;
53
+ /**
54
+ * Describes the event of last metadata event
55
+ * @type {Event}
56
+ */
14
57
  event?: Event;
15
58
  }
@@ -1,7 +1,27 @@
1
1
  export interface Event {
2
+ /**
3
+ * TX id of the last create/update
4
+ * @type {string}
5
+ */
2
6
  txid?: string;
7
+ /**
8
+ * Block of txid
9
+ * @type {number}
10
+ */
3
11
  block?: number;
12
+ /**
13
+ * Sender of tx
14
+ * @type {String}
15
+ */
4
16
  from?: string;
17
+ /**
18
+ * Contract
19
+ * @type {String}
20
+ */
5
21
  contract?: string;
22
+ /**
23
+ * datetime of tx
24
+ * @type {String}
25
+ */
6
26
  datetime?: string;
7
27
  }
@@ -1,27 +1,119 @@
1
1
  export interface MetadataAlgorithm {
2
+ /**
3
+ * Language used to implement the software.
4
+ * @type {string}
5
+ */
2
6
  language?: string;
7
+ /**
8
+ * Version of the software preferably in SemVer notation.
9
+ * @type {string}
10
+ */
3
11
  version?: string;
12
+ /**
13
+ * Rawcode
14
+ * @type {string}
15
+ */
4
16
  rawcode?: string;
17
+ /**
18
+ * Object describing the Docker container image.
19
+ * @type {Object}
20
+ */
5
21
  container: {
22
+ /**
23
+ * The command to execute, or script to run inside the Docker image.
24
+ * @type {string}
25
+ */
6
26
  entrypoint: string;
27
+ /**
28
+ * Name of the Docker image.
29
+ * @type {string}
30
+ */
7
31
  image: string;
32
+ /**
33
+ * Tag of the Docker image.
34
+ * @type {string}
35
+ */
8
36
  tag: string;
37
+ /**
38
+ * Checksum of the Docker image.
39
+ * @type {string}
40
+ */
9
41
  checksum: string;
10
42
  };
11
43
  }
12
44
  export interface Metadata {
45
+ /**
46
+ * Contains the date of publishing in ISO Date Time
47
+ * @type {string}
48
+ */
13
49
  created: string;
50
+ /**
51
+ * Contains the the date of last update in ISO Date Time
52
+ * @type {string}
53
+ */
14
54
  updated: string;
55
+ /**
56
+ * Descriptive name or title of the asset.
57
+ * @type {string}
58
+ */
15
59
  name: string;
60
+ /**
61
+ * Details of what the resource is.
62
+ * @type {string}
63
+ */
16
64
  description: string;
65
+ /**
66
+ * Asset type. Includes "dataset" (e.g. csv file), "algorithm" (e.g. Python script).
67
+ * Each type needs a different subset of metadata attributes.
68
+ * @type {'dataset' | 'algorithm'}
69
+ */
17
70
  type: 'dataset' | 'algorithm';
71
+ /**
72
+ * Name of the entity generating this data (e.g. Tfl, Disney Corp, etc.).
73
+ * @type {string}
74
+ */
18
75
  author: string;
76
+ /**
77
+ * Short name referencing the license of the asset.
78
+ * If it’s not specified, the following value will be added: “No License Specified”.
79
+ * @type {string}
80
+ */
19
81
  license: string;
82
+ /**
83
+ * Mapping of URL strings for data samples, or links to find out more information.
84
+ * Links may be to either a URL or another asset.
85
+ * @type {string[]}
86
+ */
20
87
  links?: string[];
88
+ /**
89
+ * Array of keywords or tags used to describe this content. Empty by default.
90
+ * @type {string[]}
91
+ */
21
92
  tags?: string[];
93
+ /**
94
+ * Array of categories associated to the asset. Note: recommended to use tags instead of this.
95
+ * @type {string[]}
96
+ */
97
+ categories?: string[];
98
+ /**
99
+ * The party holding the legal copyright. Empty by default.
100
+ * @type {string}
101
+ */
22
102
  copyrightHolder?: string;
103
+ /**
104
+ *The language of the content. Use one of the language codes from the IETF BCP 47 standard
105
+ * @type {string}
106
+ */
23
107
  contentLanguage?: string;
108
+ /**
109
+ * Information about asset of typealgorithm
110
+ * @type {MetadataAlgorithm}
111
+ */
24
112
  algorithm?: MetadataAlgorithm;
113
+ /**
114
+ * Stores additional information, this is customizable by publisher
115
+ * @type {any}
116
+ */
25
117
  additionalInformation?: any;
26
118
  }
27
119
  export interface MetadataProof {
@@ -1,28 +1,94 @@
1
1
  export interface PublisherTrustedAlgorithm {
2
+ /**
3
+ * The DID of the algorithm which is trusted by the publisher.
4
+ * @type {string}
5
+ */
2
6
  did: string;
7
+ /**
8
+ * Hash of algorithm’s files section.
9
+ * @type {string}
10
+ */
3
11
  filesChecksum: string;
12
+ /**
13
+ * Hash of algorithm’s metadata.algorithm.container section.
14
+ * @type {string}
15
+ */
4
16
  containerSectionChecksum: string;
5
17
  }
6
18
  export interface ServiceComputeOptions {
7
- namespace: string;
8
- cpu?: number;
9
- gpu?: number;
10
- gpuType?: string;
11
- memory?: string;
12
- volumeSize?: string;
19
+ /**
20
+ * If true, any passed raw text will be allowed to run.
21
+ * Useful for an algorithm drag & drop use case, but increases risk of data escape through malicious user input.
22
+ * Should be false by default in all implementations.
23
+ * @type {boolean}
24
+ */
13
25
  allowRawAlgorithm: boolean;
26
+ /**
27
+ * If true, the algorithm job will have network access.
28
+ * @type {boolean}
29
+ */
14
30
  allowNetworkAccess: boolean;
31
+ /**
32
+ * If empty, then any published algorithm is allowed.
33
+ * Otherwise, only published algorithms by some publishers are allowed
34
+ * @type {string[]}
35
+ */
15
36
  publisherTrustedAlgorithmPublishers: string[];
37
+ /**
38
+ * If empty, then any published algorithm is allowed. (see below)
39
+ * @type {PublisherTrustedAlgorithm[]}
40
+ */
16
41
  publisherTrustedAlgorithms: PublisherTrustedAlgorithm[];
17
42
  }
18
43
  export interface Service {
44
+ /**
45
+ * Unique ID
46
+ * @type {string}
47
+ */
19
48
  id: string;
49
+ /**
50
+ * Type of service (access, compute, wss.
51
+ * @type {string}
52
+ */
20
53
  type: 'access' | 'compute' | string;
54
+ /**
55
+ * Encrypted file URLs.
56
+ * @type {string}
57
+ */
21
58
  files: string;
59
+ /**
60
+ * Datatoken address
61
+ * @type {string}
62
+ */
22
63
  datatokenAddress: string;
64
+ /**
65
+ * Provider URL (schema + host).
66
+ * @type {string}
67
+ */
23
68
  serviceEndpoint: string;
69
+ /**
70
+ * Describing how long the service can be used after consumption is initiated.
71
+ * @type {number}
72
+ */
24
73
  timeout: number;
74
+ /**
75
+ * Service friendly name
76
+ * @type {string}
77
+ */
25
78
  name?: string;
79
+ /**
80
+ * Service description
81
+ * @type {string}
82
+ */
26
83
  description?: string;
84
+ /**
85
+ * If service is of type compute, holds information about the compute-related privacy settings & resources.
86
+ * @type {ServiceComputeOptions}
87
+ */
27
88
  compute?: ServiceComputeOptions;
89
+ /**
90
+ * Stores service specific additional information, this is customizable by publisher
91
+ * @type {any}
92
+ */
93
+ additionalInformation?: any;
28
94
  }
@@ -0,0 +1,4 @@
1
+ export interface DownloadResponse {
2
+ data: ArrayBuffer;
3
+ filename: string;
4
+ }
@@ -0,0 +1,21 @@
1
+ export interface Erc20CreateParams {
2
+ templateIndex: number;
3
+ minter: string;
4
+ paymentCollector: string;
5
+ mpFeeAddress: string;
6
+ feeToken: string;
7
+ feeAmount: string;
8
+ cap: string;
9
+ name?: string;
10
+ symbol?: string;
11
+ }
12
+ export interface ConsumeMarketFee {
13
+ consumeMarketFeeAddress: string;
14
+ consumeMarketFeeToken: string;
15
+ consumeMarketFeeAmount: string;
16
+ }
17
+ export interface PublishingMarketFee {
18
+ publishMarketFeeAddress: string;
19
+ publishMarketFeeToken: string;
20
+ publishMarketFeeAmount: string;
21
+ }
@@ -0,0 +1,12 @@
1
+ import { MetadataProof } from '.';
2
+ export interface MetadataAndTokenURI {
3
+ metaDataState: number;
4
+ metaDataDecryptorUrl: string;
5
+ metaDataDecryptorAddress: string;
6
+ flags: string;
7
+ data: string;
8
+ metaDataHash: string;
9
+ tokenId: number;
10
+ tokenURI: string;
11
+ metadataProofs?: MetadataProof[];
12
+ }
@@ -1,9 +1,38 @@
1
1
  export interface FileMetadata {
2
+ /**
3
+ * File URL.
4
+ * @type {string}
5
+ */
2
6
  type: string;
7
+ /**
8
+ * File format, if applicable.
9
+ * @type {string}
10
+ * @example "text/csv"
11
+ */
3
12
  contentType?: string;
13
+ /**
14
+ * File content length.
15
+ * @type {[type]}
16
+ */
4
17
  contentLength?: string;
18
+ /**
19
+ * File index.
20
+ * @type {number}
21
+ */
5
22
  index?: number;
23
+ /**
24
+ * File URL.
25
+ * @type {string}
26
+ */
6
27
  url?: string;
28
+ /**
29
+ * HTTP method used
30
+ * @type {string}
31
+ */
7
32
  method?: string;
33
+ /**
34
+ * check if file exists
35
+ * @type {boolean}
36
+ */
8
37
  valid?: boolean;
9
38
  }
@@ -6,7 +6,7 @@ export interface FreCreationParams {
6
6
  baseTokenDecimals: number;
7
7
  datatokenDecimals: number;
8
8
  fixedRate: string;
9
- marketFee: number;
9
+ marketFee: string;
10
10
  withMint?: boolean;
11
11
  allowedConsumer?: string;
12
12
  }
@@ -17,3 +17,9 @@ export interface FreOrderParams {
17
17
  swapMarketFee: string;
18
18
  marketFeeAddress: string;
19
19
  }
20
+ export interface PriceAndFees {
21
+ baseTokenAmount: string;
22
+ oceanFeeAmount: string;
23
+ marketFeeAmount: string;
24
+ consumeMarketFeeAmount: string;
25
+ }
@@ -10,8 +10,8 @@ export interface PoolCreationParams {
10
10
  vestingAmount: string;
11
11
  vestedBlocks: number;
12
12
  initialBaseTokenLiquidity: string;
13
- swapFeeLiquidityProvider: number;
14
- swapFeeMarketRunner: number;
13
+ swapFeeLiquidityProvider: string;
14
+ swapFeeMarketRunner: string;
15
15
  }
16
16
  export interface CurrentFees {
17
17
  tokens: string[];
@@ -21,6 +21,8 @@ export interface TokenInOutMarket {
21
21
  tokenIn: string;
22
22
  tokenOut: string;
23
23
  marketFeeAddress: string;
24
+ tokenInDecimals?: number;
25
+ tokenOutDecimals?: number;
24
26
  }
25
27
  export interface AmountsInMaxFee {
26
28
  tokenAmountIn: string;
@@ -34,3 +36,10 @@ export interface AmountsOutMaxFee {
34
36
  swapMarketFee: string;
35
37
  maxPrice?: string;
36
38
  }
39
+ export interface PoolPriceAndFees {
40
+ tokenAmount: string;
41
+ liquidityProviderSwapFeeAmount: string;
42
+ oceanFeeAmount: string;
43
+ publishMarketSwapFeeAmount: string;
44
+ consumeMarketSwapFeeAmount: string;
45
+ }
@@ -14,3 +14,12 @@ export interface ProviderInitialize {
14
14
  computeAddress: string;
15
15
  providerFee: ProviderFees;
16
16
  }
17
+ export interface ProviderComputeInitialize {
18
+ datatoken?: string;
19
+ validOrder?: string;
20
+ providerFee?: ProviderFees;
21
+ }
22
+ export interface ProviderComputeInitializeResults {
23
+ algorithm?: ProviderComputeInitialize;
24
+ datasets?: ProviderComputeInitialize[];
25
+ }
@@ -0,0 +1,59 @@
1
+ export interface Operation {
2
+ /**
3
+ * used only for FixedRate or Dispenser, but needs to be filled even for pool
4
+ * @type {string}
5
+ */
6
+ exchangeIds: string;
7
+ /**
8
+ * pool Address
9
+ * @type {string}
10
+ */
11
+ source: string;
12
+ /**
13
+ * operation:
14
+ * 0 - swapExactAmountIn
15
+ * 1 - swapExactAmountOut
16
+ * 2 - FixedRateExchange
17
+ * 3 - Dispenser
18
+ * @type {number}
19
+ */
20
+ operation: number;
21
+ /**
22
+ * token in address
23
+ * @type {string}
24
+ */
25
+ tokenIn: string;
26
+ /**
27
+ * when swapExactAmountIn is EXACT amount IN
28
+ * expressed in Wei
29
+ * @type {string | number}
30
+ */
31
+ amountsIn: string | number;
32
+ /**
33
+ * token out address
34
+ * @type {string}
35
+ */
36
+ tokenOut: string;
37
+ /**
38
+ * when swapExactAmountIn is MIN amount OUT
39
+ * expressed in Wei
40
+ * @type {string | number}
41
+ */
42
+ amountsOut: string | number;
43
+ /**
44
+ * max price (only for pools)
45
+ * expressed in Wei
46
+ * @type {string | number}
47
+ */
48
+ maxPrice: string | number;
49
+ /**
50
+ * swap fee amount
51
+ * @type {string}
52
+ */
53
+ swapMarketFee: string;
54
+ /**
55
+ * market fee address to receive fees
56
+ * @type {string}
57
+ */
58
+ marketFeeAddress: string;
59
+ }
@@ -6,3 +6,9 @@ export * from './DDO/Metadata';
6
6
  export * from './FileMetadata';
7
7
  export * from './Compute';
8
8
  export * from './Provider';
9
+ export * from './FixedPrice';
10
+ export * from './Pool';
11
+ export * from './Erc20';
12
+ export * from './Erc721';
13
+ export * from './Dispenser';
14
+ export * from './Router';