@oceanprotocol/lib 3.3.0 → 3.3.1

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 (83) hide show
  1. package/.nvmrc +1 -1
  2. package/CHANGELOG.md +19 -16
  3. package/dist/lib.js +1 -1
  4. package/dist/lib.js.map +1 -1
  5. package/dist/lib.modern.js +1 -1
  6. package/dist/lib.modern.js.map +1 -1
  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/package.json +1 -1
  12. package/dist/src/@types/Asset.d.ts +0 -148
  13. package/dist/src/@types/Compute.d.ts +0 -71
  14. package/dist/src/@types/Contracts.d.ts +0 -26
  15. package/dist/src/@types/DDO/ConsumerParameter.d.ts +0 -37
  16. package/dist/src/@types/DDO/Credentials.d.ts +0 -8
  17. package/dist/src/@types/DDO/DDO.d.ts +0 -55
  18. package/dist/src/@types/DDO/Event.d.ts +0 -27
  19. package/dist/src/@types/DDO/Metadata.d.ts +0 -141
  20. package/dist/src/@types/DDO/Service.d.ts +0 -100
  21. package/dist/src/@types/Datatoken.d.ts +0 -38
  22. package/dist/src/@types/Dispenser.d.ts +0 -16
  23. package/dist/src/@types/DownloadResponse.d.ts +0 -4
  24. package/dist/src/@types/File.d.ts +0 -89
  25. package/dist/src/@types/FileInfo.d.ts +0 -43
  26. package/dist/src/@types/FixedPrice.d.ts +0 -51
  27. package/dist/src/@types/NFT.d.ts +0 -18
  28. package/dist/src/@types/NFTFactory.d.ts +0 -20
  29. package/dist/src/@types/Provider.d.ts +0 -33
  30. package/dist/src/@types/ReturnTypes.d.ts +0 -3
  31. package/dist/src/@types/Router.d.ts +0 -59
  32. package/dist/src/@types/index.d.ts +0 -20
  33. package/dist/src/config/Config.d.ts +0 -153
  34. package/dist/src/config/ConfigHelper.d.ts +0 -12
  35. package/dist/src/config/index.d.ts +0 -2
  36. package/dist/src/contracts/Datatoken.d.ts +0 -278
  37. package/dist/src/contracts/Dispenser.d.ts +0 -73
  38. package/dist/src/contracts/FixedRateExchange.d.ts +0 -209
  39. package/dist/src/contracts/NFT.d.ts +0 -220
  40. package/dist/src/contracts/NFTFactory.d.ts +0 -165
  41. package/dist/src/contracts/Router.d.ts +0 -107
  42. package/dist/src/contracts/SmartContract.d.ts +0 -45
  43. package/dist/src/contracts/SmartContractWithAddress.d.ts +0 -17
  44. package/dist/src/contracts/df/DfRewards.d.ts +0 -31
  45. package/dist/src/contracts/df/DfStrategyV1.d.ts +0 -21
  46. package/dist/src/contracts/index.d.ts +0 -14
  47. package/dist/src/contracts/ve/VeAllocate.d.ts +0 -38
  48. package/dist/src/contracts/ve/VeFeeDistributor.d.ts +0 -29
  49. package/dist/src/contracts/ve/VeFeeEstimate.d.ts +0 -14
  50. package/dist/src/contracts/ve/VeOcean.d.ts +0 -68
  51. package/dist/src/index.d.ts +0 -5
  52. package/dist/src/services/Aquarius.d.ts +0 -53
  53. package/dist/src/services/Provider.d.ts +0 -197
  54. package/dist/src/services/index.d.ts +0 -2
  55. package/dist/src/utils/Constants.d.ts +0 -4
  56. package/dist/src/utils/ContractUtils.d.ts +0 -46
  57. package/dist/src/utils/DatatokenName.d.ts +0 -14
  58. package/dist/src/utils/DdoHelpers.d.ts +0 -13
  59. package/dist/src/utils/FetchHelper.d.ts +0 -14
  60. package/dist/src/utils/General.d.ts +0 -5
  61. package/dist/src/utils/Logger.d.ts +0 -19
  62. package/dist/src/utils/OrderUtils.d.ts +0 -20
  63. package/dist/src/utils/ProviderErrors.d.ts +0 -1
  64. package/dist/src/utils/SignatureUtils.d.ts +0 -12
  65. package/dist/src/utils/TokenUtils.d.ts +0 -70
  66. package/dist/src/utils/index.d.ts +0 -12
  67. package/dist/src/utils/minAbi.d.ts +0 -38
  68. package/dist/test/config.d.ts +0 -19
  69. package/dist/test/integration/CodeExamples.test.d.ts +0 -1
  70. package/dist/test/integration/ComputeExamples.test.d.ts +0 -1
  71. package/dist/test/integration/ComputeFlow.test.d.ts +0 -1
  72. package/dist/test/integration/Provider.test.d.ts +0 -1
  73. package/dist/test/integration/PublishEditConsume.test.d.ts +0 -1
  74. package/dist/test/integration/PublishFlows.test.d.ts +0 -1
  75. package/dist/test/integration/helpers.d.ts +0 -7
  76. package/dist/test/unit/DFRewards.test.d.ts +0 -1
  77. package/dist/test/unit/Datatoken.test.d.ts +0 -1
  78. package/dist/test/unit/Dispenser.test.d.ts +0 -1
  79. package/dist/test/unit/FixedRateExchange.test.d.ts +0 -1
  80. package/dist/test/unit/Nft.test.d.ts +0 -1
  81. package/dist/test/unit/NftFactory.test.d.ts +0 -1
  82. package/dist/test/unit/Router.test.d.ts +0 -1
  83. package/dist/test/unit/veOcean.test.d.ts +0 -1
@@ -1,38 +0,0 @@
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 +0,0 @@
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 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
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 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};