@oceanprotocol/lib 1.0.0-next.32 → 1.0.0-next.35
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.
- package/CHANGELOG.md +1415 -1373
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/lib.modern.js +1 -1
- package/dist/lib.modern.js.map +1 -1
- package/dist/lib.module.js +1 -1
- package/dist/lib.module.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/src/factories/NFTFactory.d.ts +2 -0
- package/dist/src/pools/index.d.ts +2 -0
- package/dist/src/provider/Provider.d.ts +1 -2
- package/dist/src/utils/SignatureUtils.d.ts +0 -2
- package/dist/test/TestContractHandler.d.ts +8 -36
- package/dist/test/config.d.ts +1 -0
- package/package.json +10 -10
|
@@ -34,8 +34,7 @@ export declare class Provider {
|
|
|
34
34
|
* @return {Promise<string>} urlDetails
|
|
35
35
|
*/
|
|
36
36
|
getNonce(providerUri: string, consumerAddress: string, signal?: AbortSignal, providerEndpoints?: any, serviceEndpoints?: ServiceEndpoint[]): Promise<string>;
|
|
37
|
-
|
|
38
|
-
createHashSignature(web3: Web3, accountId: string, message: string): Promise<string>;
|
|
37
|
+
signProviderRequest(web3: Web3, accountId: string, message: string, password?: string): Promise<string>;
|
|
39
38
|
/** Encrypt data using the Provider's own symmetric key
|
|
40
39
|
* @param {string} data data in json format that needs to be sent , it can either be a DDO or a File array
|
|
41
40
|
* @param {string} providerUri provider uri address
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import Web3 from 'web3';
|
|
2
|
-
export declare function signText(web3: Web3, text: string, publicKey: string, password?: string): Promise<string>;
|
|
3
2
|
export declare function signHash(web3: Web3, message: string, address: string): Promise<{
|
|
4
3
|
v: string;
|
|
5
4
|
r: string;
|
|
6
5
|
s: string;
|
|
7
6
|
}>;
|
|
8
|
-
export declare function signWithHash(web3: Web3, text: string, publicKey: string, password?: string): Promise<string>;
|
|
@@ -1,44 +1,16 @@
|
|
|
1
1
|
import Web3 from 'web3';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
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>;
|
package/dist/test/config.d.ts
CHANGED
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.
|
|
4
|
+
"version": "1.0.0-next.35",
|
|
5
5
|
"description": "JavaScript client library for Ocean Protocol",
|
|
6
6
|
"main": "./dist/lib.js",
|
|
7
7
|
"umd:main": "dist/lib.umd.js",
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
},
|
|
55
55
|
"homepage": "https://github.com/oceanprotocol/ocean.js#readme",
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"web3": "^1.7.
|
|
57
|
+
"web3": "^1.7.3"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@oceanprotocol/contracts": "1.0.0-alpha.
|
|
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",
|
|
64
64
|
"decimal.js": "^10.3.1",
|
|
65
|
-
"web3": "^1.7.
|
|
65
|
+
"web3": "^1.7.3",
|
|
66
66
|
"web3-core": "^1.7.1",
|
|
67
67
|
"web3-eth-contract": "^1.7.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@truffle/hdwallet-provider": "^2.0.
|
|
71
|
-
"@types/chai": "^4.
|
|
70
|
+
"@truffle/hdwallet-provider": "^2.0.6",
|
|
71
|
+
"@types/chai": "^4.3.1",
|
|
72
72
|
"@types/chai-spies": "^1.0.3",
|
|
73
73
|
"@types/crypto-js": "^4.1.1",
|
|
74
74
|
"@types/mocha": "^9.1.0",
|
|
@@ -87,15 +87,15 @@
|
|
|
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.
|
|
90
|
+
"mock-local-storage": "^1.1.21",
|
|
91
91
|
"nyc": "^15.1.0",
|
|
92
92
|
"ora": "5.4.1",
|
|
93
|
-
"prettier": "^2.6.
|
|
94
|
-
"release-it": "^14.
|
|
93
|
+
"prettier": "^2.6.2",
|
|
94
|
+
"release-it": "^14.14.2",
|
|
95
95
|
"source-map-support": "^0.5.19",
|
|
96
96
|
"ts-node": "^10.7.0",
|
|
97
97
|
"ts-node-register": "^1.0.0",
|
|
98
|
-
"typedoc": "0.22.
|
|
98
|
+
"typedoc": "0.22.15",
|
|
99
99
|
"typescript": "^4.6.3"
|
|
100
100
|
},
|
|
101
101
|
"nyc": {
|