@oceanprotocol/lib 3.0.4 → 3.1.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 (82) hide show
  1. package/CHANGELOG.md +10 -0
  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 +148 -148
  11. package/dist/src/@types/Compute.d.ts +71 -71
  12. package/dist/src/@types/Contracts.d.ts +26 -26
  13. package/dist/src/@types/DDO/ConsumerParameter.d.ts +37 -37
  14. package/dist/src/@types/DDO/Credentials.d.ts +8 -8
  15. package/dist/src/@types/DDO/DDO.d.ts +55 -55
  16. package/dist/src/@types/DDO/Event.d.ts +27 -27
  17. package/dist/src/@types/DDO/Metadata.d.ts +141 -141
  18. package/dist/src/@types/DDO/Service.d.ts +100 -100
  19. package/dist/src/@types/Datatoken.d.ts +38 -38
  20. package/dist/src/@types/Dispenser.d.ts +16 -16
  21. package/dist/src/@types/DownloadResponse.d.ts +4 -4
  22. package/dist/src/@types/File.d.ts +89 -89
  23. package/dist/src/@types/FileInfo.d.ts +43 -43
  24. package/dist/src/@types/FixedPrice.d.ts +51 -51
  25. package/dist/src/@types/NFT.d.ts +18 -18
  26. package/dist/src/@types/NFTFactory.d.ts +20 -20
  27. package/dist/src/@types/Provider.d.ts +33 -33
  28. package/dist/src/@types/ReturnTypes.d.ts +3 -3
  29. package/dist/src/@types/Router.d.ts +59 -59
  30. package/dist/src/@types/index.d.ts +20 -20
  31. package/dist/src/config/Config.d.ts +153 -153
  32. package/dist/src/config/ConfigHelper.d.ts +12 -12
  33. package/dist/src/config/index.d.ts +2 -2
  34. package/dist/src/contracts/Datatoken.d.ts +278 -260
  35. package/dist/src/contracts/Dispenser.d.ts +73 -73
  36. package/dist/src/contracts/FixedRateExchange.d.ts +209 -209
  37. package/dist/src/contracts/NFT.d.ts +220 -220
  38. package/dist/src/contracts/NFTFactory.d.ts +165 -165
  39. package/dist/src/contracts/Router.d.ts +107 -107
  40. package/dist/src/contracts/SmartContract.d.ts +45 -45
  41. package/dist/src/contracts/SmartContractWithAddress.d.ts +17 -17
  42. package/dist/src/contracts/df/DfRewards.d.ts +31 -31
  43. package/dist/src/contracts/df/DfStrategyV1.d.ts +21 -21
  44. package/dist/src/contracts/index.d.ts +14 -14
  45. package/dist/src/contracts/ve/VeAllocate.d.ts +38 -38
  46. package/dist/src/contracts/ve/VeFeeDistributor.d.ts +29 -29
  47. package/dist/src/contracts/ve/VeFeeEstimate.d.ts +14 -14
  48. package/dist/src/contracts/ve/VeOcean.d.ts +68 -68
  49. package/dist/src/index.d.ts +5 -5
  50. package/dist/src/services/Aquarius.d.ts +53 -53
  51. package/dist/src/services/Provider.d.ts +197 -197
  52. package/dist/src/services/index.d.ts +2 -2
  53. package/dist/src/utils/Constants.d.ts +4 -4
  54. package/dist/src/utils/ContractUtils.d.ts +46 -46
  55. package/dist/src/utils/DatatokenName.d.ts +14 -14
  56. package/dist/src/utils/DdoHelpers.d.ts +13 -13
  57. package/dist/src/utils/FetchHelper.d.ts +14 -14
  58. package/dist/src/utils/General.d.ts +5 -5
  59. package/dist/src/utils/Logger.d.ts +19 -19
  60. package/dist/src/utils/OrderUtils.d.ts +17 -0
  61. package/dist/src/utils/ProviderErrors.d.ts +1 -1
  62. package/dist/src/utils/SignatureUtils.d.ts +12 -12
  63. package/dist/src/utils/TokenUtils.d.ts +70 -70
  64. package/dist/src/utils/index.d.ts +12 -11
  65. package/dist/src/utils/minAbi.d.ts +38 -38
  66. package/dist/test/config.d.ts +19 -19
  67. package/dist/test/integration/CodeExamples.test.d.ts +1 -1
  68. package/dist/test/integration/ComputeExamples.test.d.ts +1 -1
  69. package/dist/test/integration/ComputeFlow.test.d.ts +1 -1
  70. package/dist/test/integration/Provider.test.d.ts +1 -1
  71. package/dist/test/integration/PublishEditConsume.test.d.ts +1 -1
  72. package/dist/test/integration/PublishFlows.test.d.ts +1 -1
  73. package/dist/test/integration/helpers.d.ts +7 -7
  74. package/dist/test/unit/DFRewards.test.d.ts +1 -1
  75. package/dist/test/unit/Datatoken.test.d.ts +1 -1
  76. package/dist/test/unit/Dispenser.test.d.ts +1 -1
  77. package/dist/test/unit/FixedRateExchange.test.d.ts +1 -1
  78. package/dist/test/unit/Nft.test.d.ts +1 -1
  79. package/dist/test/unit/NftFactory.test.d.ts +1 -1
  80. package/dist/test/unit/Router.test.d.ts +1 -1
  81. package/dist/test/unit/veOcean.test.d.ts +1 -1
  82. package/package.json +5 -5
@@ -1,19 +1,19 @@
1
- export declare enum LogLevel {
2
- None = -1,
3
- Error = 0,
4
- Warn = 1,
5
- Log = 2,
6
- Verbose = 3
7
- }
8
- export declare class Logger {
9
- private logLevel;
10
- constructor(logLevel?: LogLevel);
11
- setLevel(logLevel: LogLevel): void;
12
- bypass(...args: any[]): void;
13
- debug(...args: any[]): void;
14
- log(...args: any[]): void;
15
- warn(...args: any[]): void;
16
- error(...args: any[]): void;
17
- private dispatch;
18
- }
19
- export declare const LoggerInstance: Logger;
1
+ export declare enum LogLevel {
2
+ None = -1,
3
+ Error = 0,
4
+ Warn = 1,
5
+ Log = 2,
6
+ Verbose = 3
7
+ }
8
+ export declare class Logger {
9
+ private logLevel?;
10
+ constructor(logLevel?: LogLevel);
11
+ setLevel(logLevel: LogLevel): void;
12
+ bypass(...args: any[]): void;
13
+ debug(...args: any[]): void;
14
+ log(...args: any[]): void;
15
+ warn(...args: any[]): void;
16
+ error(...args: any[]): void;
17
+ private dispatch;
18
+ }
19
+ export declare const LoggerInstance: Logger;
@@ -0,0 +1,17 @@
1
+ import { Signer } from 'ethers';
2
+ import { Datatoken, Config, Asset, ConsumeMarketFee } from '../index';
3
+ /**
4
+ * Orders an asset based on the specified pricing schema and configuration.
5
+ * @param {Asset} asset - The asset to be ordered.
6
+ * @param {Signer} consumerAccount - The signer account of the consumer.
7
+ * @param {Config} config - The configuration settings.
8
+ * @param {Datatoken} datatoken - The Datatoken instance.
9
+ * @param {ConsumeMarketFee} [consumeMarketOrderFee] - Optional consume market fee.
10
+ * @param {string} [consumeMarketFixedSwapFee='0'] - Fixed swap fee for consuming the market.
11
+ * @param {number} [datatokenIndex=0] - Index of the datatoken within the asset.
12
+ * @param {number} [serviceIndex=0] - Index of the service within the asset.
13
+ * @param {number} [fixedRateIndex=0] - Index of the fixed rate within the pricing schema.
14
+ * @returns {Promise<void>} - A promise that resolves when the asset order process is completed.
15
+ * @throws {Error} If the pricing schema is not supported or if required indexes are invalid.
16
+ */
17
+ export declare function orderAsset(asset: Asset, consumerAccount: Signer, config: Config, datatoken: Datatoken, consumeMarketOrderFee?: ConsumeMarketFee, consumeMarketFixedSwapFee?: string, datatokenIndex?: number, serviceIndex?: number, fixedRateIndex?: number): Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
@@ -1 +1 @@
1
- export declare function getErrorMessage(error: Object): string;
1
+ export declare function getErrorMessage(error: Object): string;
@@ -1,12 +1,12 @@
1
- import { Signer } from 'ethers';
2
- /**
3
- * Signs the hash of a message using the provided signer.
4
- * @param {Signer} signer - The signer to use for signing the hash.
5
- * @param {string} message - The message to sign.
6
- * @returns {Promise<string>} - A Promise that resolves to the signature of the hash of the message.
7
- */
8
- export declare function signHash(signer: Signer, message: string): Promise<{
9
- v: string;
10
- r: string;
11
- s: string;
12
- }>;
1
+ import { Signer } from 'ethers';
2
+ /**
3
+ * Signs the hash of a message using the provided signer.
4
+ * @param {Signer} signer - The signer to use for signing the hash.
5
+ * @param {string} message - The message to sign.
6
+ * @returns {Promise<string>} - A Promise that resolves to the signature of the hash of the message.
7
+ */
8
+ export declare function signHash(signer: Signer, message: string): Promise<{
9
+ v: string;
10
+ r: string;
11
+ s: string;
12
+ }>;
@@ -1,70 +1,70 @@
1
- import { Signer } from 'ethers';
2
- import { Config } from '../config';
3
- import { ReceiptOrEstimate, ReceiptOrDecimal } from '../@types';
4
- /**
5
- * Approve spender to spent amount tokens
6
- * @param {Signer} signer - The signer object
7
- * @param {Config} config - The config object
8
- * @param {string} account - The address of the caller
9
- * @param {string} tokenAddress - The address of the token
10
- * @param {string} spender - The address of the spender
11
- * @param {String} amount amount of ERC20 Datatokens (always expressed as wei)
12
- * @param {boolean} force if true, will overwrite any previous allowence. Else, will check if allowence is enough and will not send a transaction if it's not needed
13
- * @param {number} [tokenDecimals] optional number of decimals of the token
14
- * @param {boolean} [estimateGas] if true, returns the estimate gas cost for calling the method
15
- */
16
- export declare function approve<G extends boolean = false>(signer: Signer, config: Config, account: string, tokenAddress: string, spender: string, amount: string, force?: boolean, tokenDecimals?: number, estimateGas?: G): Promise<ReceiptOrDecimal<G> | number>;
17
- /**
18
- * Approve spender to spent amount tokens
19
- * @param {Signer} signer - The signer object
20
- * @param {Config} config - The config object
21
- * @param {string} account - The address of the caller
22
- * @param {string} tokenAddress - The address of the token
23
- * @param {string} spender - The address of the spender
24
- * @param {string} amount amount of ERC20 tokens (always expressed as wei)
25
- * @param {boolean} force if true, will overwrite any previous allowence. Else, will check if allowence is enough and will not send a transaction if it's not needed
26
- * @param {boolean} [estimateGas] if true, returns the estimate gas cost for calling the method
27
- */
28
- export declare function approveWei<G extends boolean = false>(signer: Signer, config: Config, account: string, tokenAddress: string, spender: string, amount: string, force?: boolean, estimateGas?: G): Promise<ReceiptOrEstimate<G>>;
29
- /**
30
- * Moves amount tokens from the caller’s account to recipient.
31
- * @param {Signer} signer - The signer object
32
- * @param {Config} config - The config object
33
- * @param {string} tokenAddress - The address of the token
34
- * @param {string} recipient - The address of the tokens receiver
35
- * @param {String} amount amount of ERC20 Datatokens (not as wei)
36
- * @param {String} estimateGas if true returns the gas estimate
37
- */
38
- export declare function transfer<G extends boolean = false>(signer: Signer, config: Config, tokenAddress: string, recipient: string, amount: string, estimateGas?: G): Promise<ReceiptOrEstimate<G>>;
39
- /**
40
- * Get Allowance for any Datatoken
41
- * @param {Signer} signer - The signer object
42
- * @param {string} tokenAddress - The address of the token
43
- * @param {string} account - The address of the caller
44
- * @param {string} spender - The address of the spender
45
- * @param {number} tokenDecimals optional number of decimals of the token
46
- */
47
- export declare function allowance(signer: Signer, tokenAddress: string, account: string, spender: string, tokenDecimals?: number): Promise<string>;
48
- /**
49
- * Get balance for any Datatoken
50
- * @param {Signer} signer - The signer object
51
- * @param {string} tokenAddress - The address of the token
52
- * @param {string} account - The address of the caller
53
- * @param {number} [tokenDecimals] optional number of decimals of the token
54
- */
55
- export declare function balance(signer: Signer, tokenAddress: string, account: string, tokenDecimals?: number): Promise<string>;
56
- /**
57
- * Get Allowance in wei for any erc20
58
- * @param {Signer} signer - The signer object
59
- * @param {string} tokenAddress - The address of the token
60
- * @param {string} account - The address of the caller
61
- * @param {string} spender - The address of the spneder
62
- */
63
- export declare function allowanceWei(signer: Signer, tokenAddress: string, account: string, spender: string): Promise<string>;
64
- /**
65
- * Get decimals for any Datatoken
66
- * @param {Signer} signer - The signer object
67
- * @param {String} tokenAddress - The address of the token
68
- * @return {Promise<number>} Number of decimals of the token
69
- */
70
- export declare function decimals(signer: Signer, tokenAddress: string): Promise<number>;
1
+ import { Signer } from 'ethers';
2
+ import { Config } from '../config';
3
+ import { ReceiptOrEstimate, ReceiptOrDecimal } from '../@types';
4
+ /**
5
+ * Approve spender to spent amount tokens
6
+ * @param {Signer} signer - The signer object
7
+ * @param {Config} config - The config object
8
+ * @param {string} account - The address of the caller
9
+ * @param {string} tokenAddress - The address of the token
10
+ * @param {string} spender - The address of the spender
11
+ * @param {String} amount amount of ERC20 Datatokens (always expressed as wei)
12
+ * @param {boolean} force if true, will overwrite any previous allowence. Else, will check if allowence is enough and will not send a transaction if it's not needed
13
+ * @param {number} [tokenDecimals] optional number of decimals of the token
14
+ * @param {boolean} [estimateGas] if true, returns the estimate gas cost for calling the method
15
+ */
16
+ export declare function approve<G extends boolean = false>(signer: Signer, config: Config, account: string, tokenAddress: string, spender: string, amount: string, force?: boolean, tokenDecimals?: number, estimateGas?: G): Promise<ReceiptOrDecimal<G> | number>;
17
+ /**
18
+ * Approve spender to spent amount tokens
19
+ * @param {Signer} signer - The signer object
20
+ * @param {Config} config - The config object
21
+ * @param {string} account - The address of the caller
22
+ * @param {string} tokenAddress - The address of the token
23
+ * @param {string} spender - The address of the spender
24
+ * @param {string} amount amount of ERC20 tokens (always expressed as wei)
25
+ * @param {boolean} force if true, will overwrite any previous allowence. Else, will check if allowence is enough and will not send a transaction if it's not needed
26
+ * @param {boolean} [estimateGas] if true, returns the estimate gas cost for calling the method
27
+ */
28
+ export declare function approveWei<G extends boolean = false>(signer: Signer, config: Config, account: string, tokenAddress: string, spender: string, amount: string, force?: boolean, estimateGas?: G): Promise<ReceiptOrEstimate<G>>;
29
+ /**
30
+ * Moves amount tokens from the caller’s account to recipient.
31
+ * @param {Signer} signer - The signer object
32
+ * @param {Config} config - The config object
33
+ * @param {string} tokenAddress - The address of the token
34
+ * @param {string} recipient - The address of the tokens receiver
35
+ * @param {String} amount amount of ERC20 Datatokens (not as wei)
36
+ * @param {String} estimateGas if true returns the gas estimate
37
+ */
38
+ export declare function transfer<G extends boolean = false>(signer: Signer, config: Config, tokenAddress: string, recipient: string, amount: string, estimateGas?: G): Promise<ReceiptOrEstimate<G>>;
39
+ /**
40
+ * Get Allowance for any Datatoken
41
+ * @param {Signer} signer - The signer object
42
+ * @param {string} tokenAddress - The address of the token
43
+ * @param {string} account - The address of the caller
44
+ * @param {string} spender - The address of the spender
45
+ * @param {number} tokenDecimals optional number of decimals of the token
46
+ */
47
+ export declare function allowance(signer: Signer, tokenAddress: string, account: string, spender: string, tokenDecimals?: number): Promise<string>;
48
+ /**
49
+ * Get balance for any Datatoken
50
+ * @param {Signer} signer - The signer object
51
+ * @param {string} tokenAddress - The address of the token
52
+ * @param {string} account - The address of the caller
53
+ * @param {number} [tokenDecimals] optional number of decimals of the token
54
+ */
55
+ export declare function balance(signer: Signer, tokenAddress: string, account: string, tokenDecimals?: number): Promise<string>;
56
+ /**
57
+ * Get Allowance in wei for any erc20
58
+ * @param {Signer} signer - The signer object
59
+ * @param {string} tokenAddress - The address of the token
60
+ * @param {string} account - The address of the caller
61
+ * @param {string} spender - The address of the spneder
62
+ */
63
+ export declare function allowanceWei(signer: Signer, tokenAddress: string, account: string, spender: string): Promise<string>;
64
+ /**
65
+ * Get decimals for any Datatoken
66
+ * @param {Signer} signer - The signer object
67
+ * @param {String} tokenAddress - The address of the token
68
+ * @return {Promise<number>} Number of decimals of the token
69
+ */
70
+ export declare function decimals(signer: Signer, tokenAddress: string): Promise<number>;
@@ -1,11 +1,12 @@
1
- export * from './Constants';
2
- export * from './ContractUtils';
3
- export * from './DatatokenName';
4
- export * from './DdoHelpers';
5
- export * from './FetchHelper';
6
- export * from './General';
7
- export * from './Logger';
8
- export * from './minAbi';
9
- export * from './SignatureUtils';
10
- export * from './TokenUtils';
11
- export * from './ProviderErrors';
1
+ export * from './Constants';
2
+ export * from './ContractUtils';
3
+ export * from './DatatokenName';
4
+ export * from './DdoHelpers';
5
+ export * from './FetchHelper';
6
+ export * from './General';
7
+ export * from './Logger';
8
+ export * from './minAbi';
9
+ export * from './SignatureUtils';
10
+ export * from './TokenUtils';
11
+ export * from './ProviderErrors';
12
+ export * from './OrderUtils';
@@ -1,38 +1,38 @@
1
- export declare const minAbi: ({
2
- constant: boolean;
3
- inputs: {
4
- name: string;
5
- type: string;
6
- }[];
7
- name: string;
8
- outputs: {
9
- name: string;
10
- type: string;
11
- }[];
12
- payable: boolean;
13
- stateMutability: string;
14
- type: string;
15
- anonymous?: undefined;
16
- } | {
17
- payable: boolean;
18
- stateMutability: string;
19
- type: string;
20
- constant?: undefined;
21
- inputs?: undefined;
22
- name?: undefined;
23
- outputs?: undefined;
24
- anonymous?: undefined;
25
- } | {
26
- anonymous: boolean;
27
- inputs: {
28
- indexed: boolean;
29
- name: string;
30
- type: string;
31
- }[];
32
- name: string;
33
- type: string;
34
- constant?: undefined;
35
- outputs?: undefined;
36
- payable?: undefined;
37
- stateMutability?: undefined;
38
- })[];
1
+ export declare const minAbi: ({
2
+ constant: boolean;
3
+ inputs: {
4
+ name: string;
5
+ type: string;
6
+ }[];
7
+ name: string;
8
+ outputs: {
9
+ name: string;
10
+ type: string;
11
+ }[];
12
+ payable: boolean;
13
+ stateMutability: string;
14
+ type: string;
15
+ anonymous?: undefined;
16
+ } | {
17
+ payable: boolean;
18
+ stateMutability: string;
19
+ type: string;
20
+ constant?: undefined;
21
+ inputs?: undefined;
22
+ name?: undefined;
23
+ outputs?: undefined;
24
+ anonymous?: undefined;
25
+ } | {
26
+ anonymous: boolean;
27
+ inputs: {
28
+ indexed: boolean;
29
+ name: string;
30
+ type: string;
31
+ }[];
32
+ name: string;
33
+ type: string;
34
+ constant?: undefined;
35
+ outputs?: undefined;
36
+ payable?: undefined;
37
+ stateMutability?: undefined;
38
+ })[];
@@ -1,19 +1,19 @@
1
- import { providers, Signer } from 'ethers';
2
- export interface Addresses {
3
- opfCommunityFeeCollectorAddress: string;
4
- datatokenTemplateAddress: string;
5
- nftTemplateAddress: string;
6
- oceanAddress: string;
7
- routerAddress: string;
8
- sideStakingAddress: string;
9
- fixedRateAddress: string;
10
- dispenserAddress: string;
11
- nftFactoryAddress: string;
12
- daiAddress: string;
13
- usdcAddress: string;
14
- poolTemplateAddress: string;
15
- }
16
- export declare const GAS_PRICE = "3000000000";
17
- export declare const provider: providers.JsonRpcProvider;
18
- export declare const getTestConfig: (signer: Signer) => Promise<import("../src/config").Config>;
19
- export declare const getAddresses: () => any;
1
+ import { providers, Signer } from 'ethers';
2
+ export interface Addresses {
3
+ opfCommunityFeeCollectorAddress: string;
4
+ datatokenTemplateAddress: string;
5
+ nftTemplateAddress: string;
6
+ oceanAddress: string;
7
+ routerAddress: string;
8
+ sideStakingAddress: string;
9
+ fixedRateAddress: string;
10
+ dispenserAddress: string;
11
+ nftFactoryAddress: string;
12
+ daiAddress: string;
13
+ usdcAddress: string;
14
+ poolTemplateAddress: string;
15
+ }
16
+ export declare const GAS_PRICE = "3000000000";
17
+ export declare const provider: providers.JsonRpcProvider;
18
+ export declare const getTestConfig: (signer: Signer) => Promise<import("../src/config").Config>;
19
+ export declare const getAddresses: () => any;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,7 +1,7 @@
1
- import { ethers, Signer } from 'ethers';
2
- import { Aquarius, ProviderComputeInitialize, ConsumeMarketFee, Datatoken, Config, DDO } from '../../src';
3
- export declare function createAsset(name: string, symbol: string, owner: Signer, assetUrl: any, ddo: any, providerUrl: string, nftContractAddress: string, // addresses.ERC721Factory,
4
- aquariusInstance: Aquarius): Promise<any>;
5
- export declare function updateAssetMetadata(owner: Signer, updatedDdo: DDO, providerUrl: string, aquariusInstance: Aquarius): Promise<ethers.providers.TransactionResponse>;
6
- export declare function handleComputeOrder(order: ProviderComputeInitialize, datatokenAddress: string, payerAccount: Signer, consumerAccount: string, serviceIndex: number, datatoken: Datatoken, config: Config, consumeMarkerFee?: ConsumeMarketFee): Promise<any>;
7
- export declare function orderAsset(did: string, datatokenAddress: string, consumerAccount: string, serviceId: string, serviceIndex: number, datatoken: Datatoken, providerUrl: string): Promise<any>;
1
+ import { ethers, Signer } from 'ethers';
2
+ import { Aquarius, ProviderComputeInitialize, ConsumeMarketFee, Datatoken, Config, DDO } from '../../src';
3
+ export declare function createAsset(name: string, symbol: string, owner: Signer, assetUrl: any, ddo: any, providerUrl: string, nftContractAddress: string, // addresses.ERC721Factory,
4
+ aquariusInstance: Aquarius): Promise<any>;
5
+ export declare function updateAssetMetadata(owner: Signer, updatedDdo: DDO, providerUrl: string, aquariusInstance: Aquarius): Promise<ethers.providers.TransactionResponse>;
6
+ export declare function handleComputeOrder(order: ProviderComputeInitialize, datatokenAddress: string, payerAccount: Signer, consumerAccount: string, serviceIndex: number, datatoken: Datatoken, config: Config, consumeMarkerFee?: ConsumeMarketFee): Promise<any>;
7
+ export declare function orderAsset(did: string, datatokenAddress: string, consumerAccount: string, serviceId: string, serviceIndex: number, datatoken: Datatoken, providerUrl: string): Promise<any>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "3.0.4",
4
+ "version": "3.1.0",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -67,8 +67,8 @@
67
67
  "@types/mocha": "^10.0.0",
68
68
  "@types/node": "^18.0.1",
69
69
  "@types/node-fetch": "^3.0.3",
70
- "@typescript-eslint/eslint-plugin": "^5.45.0",
71
- "@typescript-eslint/parser": "^5.45.0",
70
+ "@typescript-eslint/eslint-plugin": "^6.4.1",
71
+ "@typescript-eslint/parser": "^6.4.1",
72
72
  "auto-changelog": "^2.4.0",
73
73
  "chai": "^4.3.6",
74
74
  "chai-spies": "^1.0.0",
@@ -88,9 +88,9 @@
88
88
  "source-map-support": "^0.5.19",
89
89
  "ts-node": "^10.9.1",
90
90
  "ts-node-register": "^1.0.0",
91
- "typedoc": "^0.24.6",
91
+ "typedoc": "^0.24.8",
92
92
  "typedoc-plugin-markdown": "^3.15.2",
93
- "typescript": "^4.7.4"
93
+ "typescript": "^5.1.6"
94
94
  },
95
95
  "nyc": {
96
96
  "include": [