@oceanprotocol/lib 1.0.0-next.32 → 1.0.0-next.33

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.
@@ -20,6 +20,8 @@ export interface NftCreateData {
20
20
  symbol: string;
21
21
  templateIndex: number;
22
22
  tokenURI: string;
23
+ transferable: boolean;
24
+ owner: string;
23
25
  }
24
26
  /**
25
27
  * Provides an interface for NFT Factory contract
@@ -1,44 +1,16 @@
1
1
  import Web3 from 'web3';
2
- import { Contract } from 'web3-eth-contract';
3
- import { AbiItem } from 'web3-utils/types';
4
- export declare class TestContractHandler {
5
- accounts: string[];
6
- ERC721Factory: Contract;
7
- ERC20Template: Contract;
8
- ERC721Template: Contract;
9
- Router: Contract;
10
- SideStaking: Contract;
11
- FixedRate: Contract;
12
- Dispenser: Contract;
13
- OPFCollector: Contract;
14
- PoolTemplate: Contract;
15
- MockERC20: Contract;
16
- MockOcean: Contract;
17
- ERC721FactoryBytecode: string;
18
- ERC20TemplateBytecode: string;
19
- ERC721TemplateBytecode: string;
20
- RouterBytecode: string;
21
- SideStakingBytecode: string;
22
- FixedRateBytecode: string;
23
- DispenserBytecode: string;
24
- PoolTemplateBytecode: string;
25
- OPFCollectorBytecode: string;
26
- MockERC20Bytecode: string;
27
- OPFBytecode: string;
28
- factory721Address: string;
29
- template721Address: string;
30
- template20Address: string;
2
+ export interface Addresses {
3
+ opfCommunityFeeCollectorAddress: string;
4
+ poolTemplateAddress: string;
5
+ erc20TemplateAddress: string;
6
+ erc721TemplateAddress: string;
7
+ oceanAddress: string;
31
8
  routerAddress: string;
32
9
  sideStakingAddress: string;
33
10
  fixedRateAddress: string;
34
11
  dispenserAddress: string;
35
- poolTemplateAddress: string;
36
- opfCollectorAddress: string;
37
- oceanAddress: string;
12
+ erc721FactoryAddress: string;
38
13
  daiAddress: string;
39
14
  usdcAddress: string;
40
- web3: Web3;
41
- constructor(web3: Web3, ERC721TemplateABI: AbiItem | AbiItem[], ERC20TemplateABI: AbiItem | AbiItem[], PoolTemplateABI?: AbiItem | AbiItem[], ERC721FactoryABI?: AbiItem | AbiItem[], RouterABI?: AbiItem | AbiItem[], SideStakingABI?: AbiItem | AbiItem[], FixedRateABI?: AbiItem | AbiItem[], DispenserABI?: AbiItem | AbiItem[], OPFABI?: AbiItem | AbiItem[], template721Bytecode?: string, template20Bytecode?: string, poolTemplateBytecode?: string, factory721Bytecode?: string, routerBytecode?: string, sideStakingBytecode?: string, fixedRateBytecode?: string, dispenserBytecode?: string, opfBytecode?: string);
42
- getAccounts(): Promise<string[]>;
43
- deployContracts(owner: string, routerABI?: AbiItem | AbiItem[]): Promise<void>;
44
15
  }
16
+ export declare const deployContracts: (web3: Web3, owner: string) => Promise<Addresses>;
@@ -1,4 +1,5 @@
1
1
  import Web3 from 'web3';
2
+ export declare const GAS_PRICE = "3000000000";
2
3
  export declare const web3: Web3;
3
4
  export declare const getTestConfig: (web3: Web3) => Promise<import("../src").Config>;
4
5
  export declare const getAddresses: () => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "1.0.0-next.32",
4
+ "version": "1.0.0-next.33",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -57,7 +57,7 @@
57
57
  "web3": "^1.7.1"
58
58
  },
59
59
  "dependencies": {
60
- "@oceanprotocol/contracts": "1.0.0-alpha.26",
60
+ "@oceanprotocol/contracts": "1.0.0-alpha.28",
61
61
  "bignumber.js": "^9.0.2",
62
62
  "cross-fetch": "^3.1.5",
63
63
  "crypto-js": "^4.1.1",
@@ -87,11 +87,11 @@
87
87
  "fs": "0.0.1-security",
88
88
  "microbundle": "^0.14.2",
89
89
  "mocha": "^9.2.2",
90
- "mock-local-storage": "^1.1.20",
90
+ "mock-local-storage": "^1.1.21",
91
91
  "nyc": "^15.1.0",
92
92
  "ora": "5.4.1",
93
93
  "prettier": "^2.6.1",
94
- "release-it": "^14.13.1",
94
+ "release-it": "^14.14.0",
95
95
  "source-map-support": "^0.5.19",
96
96
  "ts-node": "^10.7.0",
97
97
  "ts-node-register": "^1.0.0",