@oceanprotocol/lib 1.0.0-next.1 → 1.0.0-next.13
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 +111 -1
- 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/@types/Asset.d.ts +119 -0
- package/dist/src/{src/@types → @types}/Compute.d.ts +17 -0
- package/dist/src/{src/@types → @types}/DDO/Credentials.d.ts +0 -0
- package/dist/src/@types/DDO/DDO.d.ts +58 -0
- package/dist/src/@types/DDO/Event.d.ts +27 -0
- package/dist/src/@types/DDO/Metadata.d.ts +126 -0
- package/dist/src/@types/DDO/Service.d.ts +124 -0
- package/dist/src/{src/interfaces/DispenserInterface.d.ts → @types/Dispenser.d.ts} +0 -0
- package/dist/src/@types/DownloadResponse.d.ts +4 -0
- package/dist/src/{src/interfaces/Erc20Interface.d.ts → @types/Erc20.d.ts} +0 -0
- package/dist/src/@types/Erc721.d.ts +12 -0
- package/dist/src/@types/FileMetadata.d.ts +38 -0
- package/dist/src/{src/interfaces/FixedRateInterface.d.ts → @types/FixedPrice.d.ts} +1 -1
- package/dist/src/{src/interfaces/PoolInterface.d.ts → @types/Pool.d.ts} +4 -4
- package/dist/src/{src/@types → @types}/Provider.d.ts +3 -2
- package/dist/src/@types/Router.d.ts +59 -0
- package/dist/src/{src/@types → @types}/index.d.ts +6 -0
- package/dist/src/aquarius/Aquarius.d.ts +32 -0
- package/dist/src/{src/aquarius → aquarius}/index.d.ts +0 -0
- package/dist/src/factories/NFTFactory.d.ts +273 -0
- package/dist/src/{src/factories → factories}/index.d.ts +0 -0
- package/dist/src/{src/index.d.ts → index.d.ts} +0 -1
- package/dist/src/models/Config.d.ts +166 -0
- package/dist/src/{src/models → models}/index.d.ts +0 -0
- package/dist/src/pools/Router.d.ts +229 -0
- package/dist/src/pools/balancer/Pool.d.ts +365 -0
- package/dist/src/{src/pools → pools}/balancer/index.d.ts +0 -0
- package/dist/src/pools/dispenser/Dispenser.d.ts +146 -0
- package/dist/src/{src/pools → pools}/dispenser/index.d.ts +0 -0
- package/dist/src/pools/fixedRate/FixedRateExchange.d.ts +375 -0
- package/dist/src/{src/pools → pools}/fixedRate/index.d.ts +0 -0
- package/dist/src/{src/pools → pools}/index.d.ts +0 -0
- package/dist/src/pools/ssContracts/SideStaking.d.ts +132 -0
- package/dist/src/{src/pools → pools}/ssContracts/index.d.ts +0 -0
- package/dist/src/provider/Provider.d.ts +147 -0
- package/dist/src/{src/provider → provider}/index.d.ts +0 -0
- package/dist/src/tokens/Datatoken.d.ts +362 -0
- package/dist/src/tokens/NFT.d.ts +355 -0
- package/dist/src/{src/tokens → tokens}/index.d.ts +0 -0
- package/dist/src/{src/utils → utils}/ConfigHelper.d.ts +1 -1
- package/dist/src/{src/utils → utils}/Constants.d.ts +1 -0
- package/dist/src/utils/ContractUtils.d.ts +11 -0
- package/dist/src/{src/utils → utils}/ConversionTypeHelper.d.ts +0 -0
- package/dist/src/utils/DatatokenName.d.ts +11 -0
- package/dist/src/{src/utils → utils}/DdoHelpers.d.ts +0 -0
- package/dist/src/{src/utils → utils}/FetchHelper.d.ts +3 -2
- package/dist/src/utils/General.d.ts +4 -0
- package/dist/src/{src/utils → utils}/Logger.d.ts +0 -0
- package/dist/src/{src/utils → utils}/SignatureUtils.d.ts +0 -0
- package/dist/src/utils/TokenUtils.d.ts +39 -0
- package/dist/src/{src/utils → utils}/index.d.ts +3 -2
- package/dist/src/utils/minAbi.d.ts +2 -0
- package/dist/{src/test → test}/TestContractHandler.d.ts +0 -0
- package/dist/{src/test → test}/integration/ComputeFlow.test.d.ts +0 -0
- package/dist/{src/test → test}/integration/Provider.test.d.ts +0 -0
- package/dist/{src/test → test}/integration/PublishFlows.test.d.ts +0 -0
- package/dist/{src/test → test}/integration/SimplePublishConsumeFlow.test.d.ts +0 -0
- package/dist/{src/test → test}/integration/config.d.ts +0 -0
- package/dist/{src/test → test}/unit/NftFactory.test.d.ts +0 -0
- package/dist/{src/test → test}/unit/config.d.ts +0 -0
- package/dist/{src/test → test}/unit/pools/Router.test.d.ts +0 -0
- package/dist/{src/test → test}/unit/pools/balancer/Pool.test.d.ts +0 -0
- package/dist/{src/test → test}/unit/pools/dispenser/Dispenser.test.d.ts +0 -0
- package/dist/{src/test → test}/unit/pools/fixedRate/FixedRateExchange.test.d.ts +0 -0
- package/dist/{src/test → test}/unit/pools/ssContracts/SideStaking.test.d.ts +0 -0
- package/dist/{src/test → test}/unit/tokens/Datatoken.test.d.ts +0 -0
- package/dist/{src/test → test}/unit/tokens/Nft.test.d.ts +0 -0
- package/docs/beginners_guide.md +4 -4
- package/docs/overview.md +100 -9
- package/docs/quickstart_marketplace.md +34 -33
- package/docs/quickstart_simple.md +18 -16
- package/package.json +23 -22
- package/dist/src/src/@types/Asset.d.ts +0 -36
- package/dist/src/src/@types/DDO/DDO.d.ts +0 -15
- package/dist/src/src/@types/DDO/Event.d.ts +0 -7
- package/dist/src/src/@types/DDO/Metadata.d.ts +0 -38
- package/dist/src/src/@types/DDO/Service.d.ts +0 -28
- package/dist/src/src/@types/FileMetadata.d.ts +0 -8
- package/dist/src/src/aquarius/Aquarius.d.ts +0 -10
- package/dist/src/src/factories/NFTFactory.d.ts +0 -70
- package/dist/src/src/interfaces/RouterInterface.d.ts +0 -12
- package/dist/src/src/interfaces/index.d.ts +0 -5
- package/dist/src/src/models/Config.d.ts +0 -34
- package/dist/src/src/pools/Router.d.ts +0 -46
- package/dist/src/src/pools/balancer/Pool.d.ts +0 -73
- package/dist/src/src/pools/dispenser/Dispenser.d.ts +0 -37
- package/dist/src/src/pools/fixedRate/FixedRateExchange.d.ts +0 -95
- package/dist/src/src/pools/ssContracts/SideStaking.d.ts +0 -28
- package/dist/src/src/provider/Provider.d.ts +0 -31
- package/dist/src/src/tokens/Datatoken.d.ts +0 -77
- package/dist/src/src/tokens/NFT.d.ts +0 -57
- package/dist/src/src/utils/ContractParams.d.ts +0 -4
- package/dist/src/src/utils/DatatokenName.d.ts +0 -7
- package/dist/src/src/utils/GasUtils.d.ts +0 -2
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import { TransactionReceipt } from 'web3-core';
|
|
2
|
+
import { Contract } from 'web3-eth-contract';
|
|
3
|
+
import { AbiItem } from 'web3-utils/types';
|
|
4
|
+
import Web3 from 'web3';
|
|
5
|
+
import { Config } from '../../models/index.js';
|
|
6
|
+
export interface FixedPriceExchange {
|
|
7
|
+
active: boolean;
|
|
8
|
+
exchangeOwner: string;
|
|
9
|
+
datatoken: string;
|
|
10
|
+
baseToken: string;
|
|
11
|
+
fixedRate: string;
|
|
12
|
+
dtDecimals: string;
|
|
13
|
+
btDecimals: string;
|
|
14
|
+
dtBalance: string;
|
|
15
|
+
btBalance: string;
|
|
16
|
+
dtSupply: string;
|
|
17
|
+
btSupply: string;
|
|
18
|
+
withMint: boolean;
|
|
19
|
+
allowedSwapper: string;
|
|
20
|
+
exchangeId?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface FeesInfo {
|
|
23
|
+
opcFee: string;
|
|
24
|
+
marketFee: string;
|
|
25
|
+
marketFeeCollector: string;
|
|
26
|
+
marketFeeAvailable: string;
|
|
27
|
+
oceanFeeAvailable: string;
|
|
28
|
+
exchangeId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface FixedPriceSwap {
|
|
31
|
+
exchangeId: string;
|
|
32
|
+
caller: string;
|
|
33
|
+
baseTokenAmount: string;
|
|
34
|
+
datatokenAmount: string;
|
|
35
|
+
}
|
|
36
|
+
export declare enum FixedRateCreateProgressStep {
|
|
37
|
+
CreatingExchange = 0,
|
|
38
|
+
ApprovingDatatoken = 1
|
|
39
|
+
}
|
|
40
|
+
export declare class FixedRateExchange {
|
|
41
|
+
GASLIMIT_DEFAULT: number;
|
|
42
|
+
/** Ocean related functions */
|
|
43
|
+
oceanAddress: string;
|
|
44
|
+
fixedRateAddress: string;
|
|
45
|
+
fixedRateExchangeAbi: AbiItem | AbiItem[];
|
|
46
|
+
fixedRateContract: Contract;
|
|
47
|
+
web3: Web3;
|
|
48
|
+
contract: Contract;
|
|
49
|
+
config: Config;
|
|
50
|
+
ssAbi: AbiItem | AbiItem[];
|
|
51
|
+
/**
|
|
52
|
+
* Instantiate FixedRateExchange
|
|
53
|
+
* @param {any} web3
|
|
54
|
+
* @param {any} fixedRateExchangeAbi
|
|
55
|
+
*/
|
|
56
|
+
constructor(web3: Web3, fixedRateAddress: string, fixedRateExchangeAbi?: AbiItem | AbiItem[], oceanAddress?: string, config?: Config);
|
|
57
|
+
amountToUnits(token: string, amount: string): Promise<string>;
|
|
58
|
+
unitsToAmount(token: string, amount: string): Promise<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Creates unique exchange identifier.
|
|
61
|
+
* @param {String} datatoken Datatoken contract address
|
|
62
|
+
* @param {String} owner Owner of the exchange
|
|
63
|
+
* @return {Promise<string>} exchangeId
|
|
64
|
+
*/
|
|
65
|
+
generateExchangeId(baseToken: string, datatoken: string, owner: string): Promise<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Estimate gas cost for buyDT
|
|
68
|
+
* @param {String} account
|
|
69
|
+
* @param {String} dtAmount datatoken amount we want to buy
|
|
70
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
71
|
+
* @param {Contract} contractInstance optional contract instance
|
|
72
|
+
* @return {Promise<number>}
|
|
73
|
+
*/
|
|
74
|
+
estBuyDT(account: string, datatokenAddress: string, dtAmount: string, maxBaseTokenAmount: string, contractInstance?: Contract): Promise<number>;
|
|
75
|
+
/**
|
|
76
|
+
* Atomic swap
|
|
77
|
+
* @param {String} exchangeId ExchangeId
|
|
78
|
+
* @param {String} datatokenAmount Amount of datatokens
|
|
79
|
+
* @param {String} maxBaseTokenAmount max amount of baseToken we want to pay for datatokenAmount
|
|
80
|
+
* @param {String} address User address
|
|
81
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
82
|
+
*/
|
|
83
|
+
buyDT(address: string, exchangeId: string, datatokenAmount: string, maxBaseTokenAmount: string): Promise<TransactionReceipt>;
|
|
84
|
+
/**
|
|
85
|
+
* Estimate gas cost for sellDT
|
|
86
|
+
* @param {String} account
|
|
87
|
+
* @param {String} dtAmount datatoken amount we want to sell
|
|
88
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
89
|
+
* @param {Contract} contractInstance optional contract instance
|
|
90
|
+
* @return {Promise<number>}
|
|
91
|
+
*/
|
|
92
|
+
estSellDT(account: string, datatokenAddress: string, dtAmount: string, maxBaseTokenAmount: string, contractInstance?: Contract): Promise<number>;
|
|
93
|
+
/**
|
|
94
|
+
* Atomic swap
|
|
95
|
+
* @param {String} exchangeId ExchangeId
|
|
96
|
+
* @param {String} datatokenAmount Amount of datatokens
|
|
97
|
+
* @param {String} minBaseTokenAmount min amount of baseToken we want to receive back
|
|
98
|
+
* @param {String} address User address
|
|
99
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
100
|
+
*/
|
|
101
|
+
sellDT(address: string, exchangeId: string, datatokenAmount: string, minBaseTokenAmount: string): Promise<TransactionReceipt>;
|
|
102
|
+
/**
|
|
103
|
+
* Gets total number of exchanges
|
|
104
|
+
* @param {String} exchangeId ExchangeId
|
|
105
|
+
* @param {Number} datatokenAmount Amount of datatokens
|
|
106
|
+
* @return {Promise<Number>} no of available exchanges
|
|
107
|
+
*/
|
|
108
|
+
getNumberOfExchanges(): Promise<number>;
|
|
109
|
+
/**
|
|
110
|
+
* Estimate gas cost for setRate
|
|
111
|
+
* @param {String} account
|
|
112
|
+
* @param {String} exchangeId ExchangeId
|
|
113
|
+
* @param {Number} newRate New rate
|
|
114
|
+
* @param {Contract} contractInstance optional contract instance
|
|
115
|
+
* @return {Promise<number>}
|
|
116
|
+
*/
|
|
117
|
+
estSetRate(account: string, exchangeId: string, newRate: string, contractInstance?: Contract): Promise<number>;
|
|
118
|
+
/**
|
|
119
|
+
* Set new rate
|
|
120
|
+
* @param {String} exchangeId ExchangeId
|
|
121
|
+
* @param {Number} newRate New rate
|
|
122
|
+
* @param {String} address User account
|
|
123
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
124
|
+
*/
|
|
125
|
+
setRate(address: string, exchangeId: string, newRate: string): Promise<TransactionReceipt>;
|
|
126
|
+
/**
|
|
127
|
+
* Estimate gas cost for setRate
|
|
128
|
+
* @param {String} account
|
|
129
|
+
* @param {String} exchangeId ExchangeId
|
|
130
|
+
* @param {String} newAllowedSwapper new allowed swapper address
|
|
131
|
+
* @param {Contract} contractInstance optional contract instance
|
|
132
|
+
* @return {Promise<number>}
|
|
133
|
+
*/
|
|
134
|
+
estSetAllowedSwapper(account: string, exchangeId: string, newAllowedSwapper: string, contractInstance?: Contract): Promise<number>;
|
|
135
|
+
/**
|
|
136
|
+
* Set new rate
|
|
137
|
+
* @param {String} exchangeId ExchangeId
|
|
138
|
+
* @param {String} newAllowedSwapper newAllowedSwapper (set address zero if we want to remove allowed swapper)
|
|
139
|
+
* @param {String} address User account
|
|
140
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
141
|
+
*/
|
|
142
|
+
setAllowedSwapper(address: string, exchangeId: string, newAllowedSwapper: string): Promise<TransactionReceipt>;
|
|
143
|
+
/**
|
|
144
|
+
* Estimate gas cost for activate
|
|
145
|
+
* @param {String} account
|
|
146
|
+
* @param {String} exchangeId ExchangeId
|
|
147
|
+
* @param {Contract} contractInstance optional contract instance
|
|
148
|
+
* @return {Promise<number>}
|
|
149
|
+
*/
|
|
150
|
+
estActivate(account: string, exchangeId: string, contractInstance?: Contract): Promise<number>;
|
|
151
|
+
/**
|
|
152
|
+
* Activate an exchange
|
|
153
|
+
* @param {String} exchangeId ExchangeId
|
|
154
|
+
* @param {String} address User address
|
|
155
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
156
|
+
*/
|
|
157
|
+
activate(address: string, exchangeId: string): Promise<TransactionReceipt>;
|
|
158
|
+
/**
|
|
159
|
+
* Estimate gas cost for deactivate
|
|
160
|
+
* @param {String} account
|
|
161
|
+
* @param {String} exchangeId ExchangeId
|
|
162
|
+
* @param {Contract} contractInstance optional contract instance
|
|
163
|
+
* @return {Promise<number>}
|
|
164
|
+
*/
|
|
165
|
+
estDeactivate(account: string, exchangeId: string, contractInstance?: Contract): Promise<number>;
|
|
166
|
+
/**
|
|
167
|
+
* Deactivate an exchange
|
|
168
|
+
* @param {String} exchangeId ExchangeId
|
|
169
|
+
* @param {String} address User address
|
|
170
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
171
|
+
*/
|
|
172
|
+
deactivate(address: string, exchangeId: string): Promise<TransactionReceipt>;
|
|
173
|
+
/**
|
|
174
|
+
* Get Rate
|
|
175
|
+
* @param {String} exchangeId ExchangeId
|
|
176
|
+
* @return {Promise<string>} Rate (converted from wei)
|
|
177
|
+
*/
|
|
178
|
+
getRate(exchangeId: string): Promise<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Get Datatoken Supply in the exchange
|
|
181
|
+
* @param {String} exchangeId ExchangeId
|
|
182
|
+
* @return {Promise<string>} dt supply formatted
|
|
183
|
+
*/
|
|
184
|
+
getDTSupply(exchangeId: string): Promise<string>;
|
|
185
|
+
/**
|
|
186
|
+
* Get BaseToken Supply in the exchange
|
|
187
|
+
* @param {String} exchangeId ExchangeId
|
|
188
|
+
* @return {Promise<string>} dt supply formatted
|
|
189
|
+
*/
|
|
190
|
+
getBTSupply(exchangeId: string): Promise<string>;
|
|
191
|
+
/**
|
|
192
|
+
* Get Allower Swapper (if set this is the only account which can use this exchange, else is set at address(0))
|
|
193
|
+
* @param {String} exchangeId ExchangeId
|
|
194
|
+
* @return {Promise<string>} address of allowedSwapper
|
|
195
|
+
*/
|
|
196
|
+
getAllowedSwapper(exchangeId: string): Promise<string>;
|
|
197
|
+
/**
|
|
198
|
+
* getBTNeeded - returns amount in baseToken that user will pay for datatokenAmount
|
|
199
|
+
* @param {String} exchangeId ExchangeId
|
|
200
|
+
* @param {Number} datatokenAmount Amount of datatokens user wants to buy
|
|
201
|
+
* @return {Promise<string>} Amount of baseToken needed for buying
|
|
202
|
+
*/
|
|
203
|
+
getAmountBTIn(exchangeId: string, datatokenAmount: string): Promise<string>;
|
|
204
|
+
/**
|
|
205
|
+
* getBTOut - returns amount in baseToken that user will receive for datatokenAmount sold
|
|
206
|
+
* @param {String} exchangeId ExchangeId
|
|
207
|
+
* @param {Number} datatokenAmount Amount of datatokens
|
|
208
|
+
* @return {Promise<string>} Amount of baseTokens user will receive
|
|
209
|
+
*/
|
|
210
|
+
getAmountBTOut(exchangeId: string, datatokenAmount: string): Promise<string>;
|
|
211
|
+
/**
|
|
212
|
+
* Get exchange details
|
|
213
|
+
* @param {String} exchangeId ExchangeId
|
|
214
|
+
* @return {Promise<FixedPricedExchange>} Exchange details
|
|
215
|
+
*/
|
|
216
|
+
getExchange(exchangeId: string): Promise<FixedPriceExchange>;
|
|
217
|
+
/**
|
|
218
|
+
* Get fee details for an exchange
|
|
219
|
+
* @param {String} exchangeId ExchangeId
|
|
220
|
+
* @return {Promise<FixedPricedExchange>} Exchange details
|
|
221
|
+
*/
|
|
222
|
+
getFeesInfo(exchangeId: string): Promise<FeesInfo>;
|
|
223
|
+
/**
|
|
224
|
+
* Get all exchanges
|
|
225
|
+
* @param {String} exchangeId ExchangeId
|
|
226
|
+
* @return {Promise<String[]>} Exchanges list
|
|
227
|
+
*/
|
|
228
|
+
getExchanges(): Promise<string[]>;
|
|
229
|
+
/**
|
|
230
|
+
* Check if an exchange is active
|
|
231
|
+
* @param {String} exchangeId ExchangeId
|
|
232
|
+
* @return {Promise<Boolean>} Result
|
|
233
|
+
*/
|
|
234
|
+
isActive(exchangeId: string): Promise<boolean>;
|
|
235
|
+
/**
|
|
236
|
+
* Estimate gas cost for activate
|
|
237
|
+
* @param {String} account
|
|
238
|
+
* @param {String} exchangeId ExchangeId
|
|
239
|
+
* @param {Contract} contractInstance optional contract instance
|
|
240
|
+
* @return {Promise<number>}
|
|
241
|
+
*/
|
|
242
|
+
estActivateMint(account: string, exchangeId: string, contractInstance?: Contract): Promise<number>;
|
|
243
|
+
/**
|
|
244
|
+
* Activate minting option for fixed rate contract
|
|
245
|
+
* @param {String} exchangeId ExchangeId
|
|
246
|
+
* @param {String} address User address
|
|
247
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
248
|
+
*/
|
|
249
|
+
activateMint(address: string, exchangeId: string): Promise<TransactionReceipt>;
|
|
250
|
+
/**
|
|
251
|
+
* Estimate gas cost for deactivate
|
|
252
|
+
* @param {String} account
|
|
253
|
+
* @param {String} exchangeId ExchangeId
|
|
254
|
+
* @param {Contract} contractInstance optional contract instance
|
|
255
|
+
* @return {Promise<number>}
|
|
256
|
+
*/
|
|
257
|
+
estDeactivateMint(account: string, exchangeId: string, contractInstance?: Contract): Promise<number>;
|
|
258
|
+
/**
|
|
259
|
+
* Deactivate minting for fixed rate
|
|
260
|
+
* @param {String} exchangeId ExchangeId
|
|
261
|
+
* @param {String} address User address
|
|
262
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
263
|
+
*/
|
|
264
|
+
deactivateMint(address: string, exchangeId: string): Promise<TransactionReceipt>;
|
|
265
|
+
/**
|
|
266
|
+
* Estimate gas cost for collectBT
|
|
267
|
+
* @param {String} account
|
|
268
|
+
* @param {String} exchangeId ExchangeId
|
|
269
|
+
* @param {Contract} contractInstance optional contract instance
|
|
270
|
+
* @return {Promise<number>}
|
|
271
|
+
*/
|
|
272
|
+
estCollectBT(account: string, exchangeId: string, contractInstance?: Contract): Promise<number>;
|
|
273
|
+
/**
|
|
274
|
+
* Collect BaseTokens in the contract (only exchange owner)
|
|
275
|
+
* @param {String} exchangeId ExchangeId
|
|
276
|
+
* @param {String} address User address
|
|
277
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
278
|
+
*/
|
|
279
|
+
collectBT(address: string, exchangeId: string): Promise<TransactionReceipt>;
|
|
280
|
+
/**
|
|
281
|
+
* Estimate gas cost for collecDT
|
|
282
|
+
* @param {String} account
|
|
283
|
+
* @param {String} exchangeId ExchangeId
|
|
284
|
+
* @param {Contract} contractInstance optional contract instance
|
|
285
|
+
* @return {Promise<number>}
|
|
286
|
+
*/
|
|
287
|
+
estCollectDT(account: string, exchangeId: string, contractInstance?: Contract): Promise<number>;
|
|
288
|
+
/**
|
|
289
|
+
* Collect datatokens in the contract (only exchange owner)
|
|
290
|
+
* @param {String} exchangeId ExchangeId
|
|
291
|
+
* @param {String} address User address
|
|
292
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
293
|
+
*/
|
|
294
|
+
collectDT(address: string, exchangeId: string): Promise<TransactionReceipt>;
|
|
295
|
+
/**
|
|
296
|
+
* Estimate gas cost for collecMarketFee
|
|
297
|
+
* @param {String} account
|
|
298
|
+
* @param {String} exchangeId ExchangeId
|
|
299
|
+
* @param {Contract} contractInstance optional contract instance
|
|
300
|
+
* @return {Promise<number>}
|
|
301
|
+
*/
|
|
302
|
+
estCollectMarketFee(account: string, exchangeId: string, contractInstance?: Contract): Promise<number>;
|
|
303
|
+
/**
|
|
304
|
+
* Collect market fee and send it to marketFeeCollector (anyone can call it)
|
|
305
|
+
* @param {String} exchangeId ExchangeId
|
|
306
|
+
* @param {String} address User address
|
|
307
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
308
|
+
*/
|
|
309
|
+
collectMarketFee(address: string, exchangeId: string): Promise<TransactionReceipt>;
|
|
310
|
+
/**
|
|
311
|
+
* Estimate gas cost for collectOceanFee
|
|
312
|
+
* @param {String} account
|
|
313
|
+
* @param {String} exchangeId ExchangeId
|
|
314
|
+
* @param {Contract} contractInstance optional contract instance
|
|
315
|
+
* @return {Promise<number>}
|
|
316
|
+
*/
|
|
317
|
+
estCollectOceanFee(account: string, exchangeId: string, contractInstance?: Contract): Promise<number>;
|
|
318
|
+
/**
|
|
319
|
+
* Collect ocean fee and send it to OPF collector (anyone can call it)
|
|
320
|
+
* @param {String} exchangeId ExchangeId
|
|
321
|
+
* @param {String} address User address
|
|
322
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
323
|
+
*/
|
|
324
|
+
collectOceanFee(address: string, exchangeId: string): Promise<TransactionReceipt>;
|
|
325
|
+
/**
|
|
326
|
+
* Get OPF Collector of fixed rate contract
|
|
327
|
+
* @return {String}
|
|
328
|
+
*/
|
|
329
|
+
getOPCCollector(): Promise<string>;
|
|
330
|
+
/**
|
|
331
|
+
* Get Router address set in fixed rate contract
|
|
332
|
+
* @return {String}
|
|
333
|
+
*/
|
|
334
|
+
getRouter(): Promise<string>;
|
|
335
|
+
/**
|
|
336
|
+
* Get Exchange Owner given an exchangeId
|
|
337
|
+
* @param {String} exchangeId ExchangeId
|
|
338
|
+
* @return {String} return exchange owner
|
|
339
|
+
*/
|
|
340
|
+
getExchangeOwner(exchangeId: string): Promise<string>;
|
|
341
|
+
/**
|
|
342
|
+
* Estimate gas cost for updateMarketFee
|
|
343
|
+
* @param {String} account
|
|
344
|
+
* @param {String} exchangeId ExchangeId
|
|
345
|
+
* @param {String} newMarketFee New market fee
|
|
346
|
+
* @param {Contract} contractInstance optional contract instance
|
|
347
|
+
* @return {Promise<number>}
|
|
348
|
+
*/
|
|
349
|
+
estUpdateMarketFee(account: string, exchangeId: string, newMarketFee: string, contractInstance?: Contract): Promise<number>;
|
|
350
|
+
/**
|
|
351
|
+
* Set new market fee, only market fee collector can update it
|
|
352
|
+
* @param {String} address user address
|
|
353
|
+
* @param {String} exchangeId ExchangeId
|
|
354
|
+
* @param {String} newMarketFee New market fee
|
|
355
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
356
|
+
*/
|
|
357
|
+
updateMarketFee(address: string, exchangeId: string, newMarketFee: string): Promise<TransactionReceipt>;
|
|
358
|
+
/**
|
|
359
|
+
* Estimate gas cost for updateMarketFeeCollector
|
|
360
|
+
* @param {String} account
|
|
361
|
+
* @param {String} exchangeId ExchangeId
|
|
362
|
+
* @param {String} newMarketFee New market fee collector
|
|
363
|
+
* @param {Contract} contractInstance optional contract instance
|
|
364
|
+
* @return {Promise<number>}
|
|
365
|
+
*/
|
|
366
|
+
estUpdateMarketFeeCollector(account: string, exchangeId: string, newMarketFeeCollector: string, contractInstance?: Contract): Promise<number>;
|
|
367
|
+
/**
|
|
368
|
+
* Set new market fee collector, only market fee collector can update it
|
|
369
|
+
* @param {String} address user address
|
|
370
|
+
* @param {String} exchangeId ExchangeId
|
|
371
|
+
* @param {String} newMarketFeeCollector New market fee collector
|
|
372
|
+
* @return {Promise<TransactionReceipt>} transaction receipt
|
|
373
|
+
*/
|
|
374
|
+
updateMarketFeeCollector(address: string, exchangeId: string, newMarketFeeCollector: string): Promise<TransactionReceipt>;
|
|
375
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import Web3 from 'web3';
|
|
2
|
+
import { AbiItem } from 'web3-utils/types';
|
|
3
|
+
import { TransactionReceipt } from 'web3-core';
|
|
4
|
+
import { Contract } from 'web3-eth-contract';
|
|
5
|
+
import { Config } from '../../models';
|
|
6
|
+
export declare class SideStaking {
|
|
7
|
+
ssAbi: AbiItem | AbiItem[];
|
|
8
|
+
web3: Web3;
|
|
9
|
+
GASLIMIT_DEFAULT: number;
|
|
10
|
+
config: Config;
|
|
11
|
+
constructor(web3: Web3, ssAbi?: AbiItem | AbiItem[], config?: Config);
|
|
12
|
+
amountToUnits(token: string, amount: string): Promise<string>;
|
|
13
|
+
unitsToAmount(token: string, amount: string): Promise<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Get (total vesting amount + token released from the contract when adding liquidity)
|
|
16
|
+
* @param {String} ssAddress side staking contract address
|
|
17
|
+
* @param {String} datatokenAddress datatoken address
|
|
18
|
+
* @return {String}
|
|
19
|
+
*/
|
|
20
|
+
getDatatokenCirculatingSupply(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Get actual dts in circulation (vested token withdrawn from the contract +
|
|
23
|
+
token released from the contract when adding liquidity)
|
|
24
|
+
* @param {String} ssAddress side staking contract address
|
|
25
|
+
* @param {String} datatokenAddress datatoken address
|
|
26
|
+
* @return {String}
|
|
27
|
+
*/
|
|
28
|
+
getDatatokenCurrentCirculatingSupply(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Get Publisher address
|
|
31
|
+
* @param {String} ssAddress side staking contract address
|
|
32
|
+
* @param {String} datatokenAddress datatoken address
|
|
33
|
+
* @return {String}
|
|
34
|
+
*/
|
|
35
|
+
getPublisherAddress(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Get
|
|
38
|
+
* @param {String} ssAddress side staking contract address
|
|
39
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
40
|
+
* @return {String}
|
|
41
|
+
*/
|
|
42
|
+
getBaseToken(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Get Pool Address
|
|
45
|
+
* @param {String} ssAddress side staking contract address
|
|
46
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
47
|
+
* @return {String}
|
|
48
|
+
*/
|
|
49
|
+
getPoolAddress(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Get baseToken balance in the contract
|
|
52
|
+
* @param {String} ssAddress side staking contract address
|
|
53
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
54
|
+
* @return {String}
|
|
55
|
+
*/
|
|
56
|
+
getBaseTokenBalance(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Get dt balance in the staking contract available for being added as liquidity
|
|
59
|
+
* @param {String} ssAddress side staking contract address
|
|
60
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
61
|
+
* @return {String}
|
|
62
|
+
*/
|
|
63
|
+
getDatatokenBalance(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Get block when vesting ends
|
|
66
|
+
* @param {String} ssAddress side staking contract address
|
|
67
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
68
|
+
* @return {String} end block for vesting amount
|
|
69
|
+
*/
|
|
70
|
+
getvestingEndBlock(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Get total amount vesting
|
|
73
|
+
* @param {String} ssAddress side staking contract address
|
|
74
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
75
|
+
* @return {String}
|
|
76
|
+
*/
|
|
77
|
+
getvestingAmount(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Get last block publisher got some vested tokens
|
|
80
|
+
* @param {String} ssAddress side staking contract address
|
|
81
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
82
|
+
* @return {String}
|
|
83
|
+
*/
|
|
84
|
+
getvestingLastBlock(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Get how much has been taken from the vesting amount
|
|
87
|
+
* @param {String} ssAddress side staking contract address
|
|
88
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
89
|
+
* @return {String}
|
|
90
|
+
*/
|
|
91
|
+
getvestingAmountSoFar(ssAddress: string, datatokenAddress: string): Promise<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Estimate gas cost for getVesting
|
|
94
|
+
* @param {String} account
|
|
95
|
+
* @param {String} ssAddress side staking contract address
|
|
96
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
97
|
+
* @param {Contract} contractInstance optional contract instance
|
|
98
|
+
* @return {Promise<number>}
|
|
99
|
+
*/
|
|
100
|
+
estGetVesting(account: string, ssAddress: string, datatokenAddress: string, contractInstance?: Contract): Promise<number>;
|
|
101
|
+
/** Send vested tokens available to the publisher address, can be called by anyone
|
|
102
|
+
*
|
|
103
|
+
* @param {String} account
|
|
104
|
+
* @param {String} ssAddress side staking contract address
|
|
105
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
106
|
+
* @return {TransactionReceipt}
|
|
107
|
+
*/
|
|
108
|
+
getVesting(account: string, ssAddress: string, datatokenAddress: string): Promise<TransactionReceipt>;
|
|
109
|
+
/**
|
|
110
|
+
* Estimate gas cost for getVesting
|
|
111
|
+
* @param {String} account
|
|
112
|
+
* @param {String} ssAddress side staking contract address
|
|
113
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
114
|
+
* @param {Contract} contractInstance optional contract instance
|
|
115
|
+
* @return {Promise<number>}
|
|
116
|
+
*/
|
|
117
|
+
estSetPoolSwapFee(account: string, ssAddress: string, datatokenAddress: string, poolAddress: string, swapFee: number, contractInstance?: Contract): Promise<number>;
|
|
118
|
+
/** Send vested tokens available to the publisher address, can be called by anyone
|
|
119
|
+
*
|
|
120
|
+
* @param {String} account
|
|
121
|
+
* @param {String} ssAddress side staking contract address
|
|
122
|
+
* @param {String} datatokenAddress datatokenAddress
|
|
123
|
+
* @return {TransactionReceipt}
|
|
124
|
+
*/
|
|
125
|
+
setPoolSwapFee(account: string, ssAddress: string, datatokenAddress: string, poolAddress: string, swapFee: number): Promise<TransactionReceipt>;
|
|
126
|
+
/**
|
|
127
|
+
* Get Router address set in side staking contract
|
|
128
|
+
* @param {String} ssAddress side staking contract address
|
|
129
|
+
* @return {String}
|
|
130
|
+
*/
|
|
131
|
+
getRouter(ssAddress: string): Promise<string>;
|
|
132
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import Web3 from 'web3';
|
|
2
|
+
import { FileMetadata, ComputeJob, ComputeOutput, ComputeAlgorithm, ComputeAsset, ComputeEnvironment, ProviderInitialize } from '../@types/';
|
|
3
|
+
import { DownloadResponse } from '../@types/DownloadResponse';
|
|
4
|
+
export interface HttpCallback {
|
|
5
|
+
(httpMethod: string, url: string, body: string, header: any): Promise<any>;
|
|
6
|
+
}
|
|
7
|
+
export interface ServiceEndpoint {
|
|
8
|
+
serviceName: string;
|
|
9
|
+
method: string;
|
|
10
|
+
urlPath: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UserCustomParameters {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export declare class Provider {
|
|
16
|
+
/**
|
|
17
|
+
* Returns the provider endpoints
|
|
18
|
+
* @return {Promise<ServiceEndpoint[]>}
|
|
19
|
+
*/
|
|
20
|
+
getEndpoints(providerUri: string): Promise<any>;
|
|
21
|
+
getEndpointURL(servicesEndpoints: ServiceEndpoint[], serviceName: string): ServiceEndpoint;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the service endpoints that exist in provider.
|
|
24
|
+
* @param {any} endpoints
|
|
25
|
+
* @return {Promise<ServiceEndpoint[]>}
|
|
26
|
+
*/
|
|
27
|
+
getServiceEndpoints(providerEndpoint: string, endpoints: any): Promise<ServiceEndpoint[]>;
|
|
28
|
+
/** Encrypt DDO using the Provider's own symmetric key
|
|
29
|
+
* @param {string} providerUri provider uri address
|
|
30
|
+
* @param {string} consumerAddress Publisher address
|
|
31
|
+
* @param {AbortSignal} signal abort signal
|
|
32
|
+
* @param {string} providerEndpoints Identifier of the asset to be registered in ocean
|
|
33
|
+
* @param {string} serviceEndpoints document description object (DDO)=
|
|
34
|
+
* @return {Promise<string>} urlDetails
|
|
35
|
+
*/
|
|
36
|
+
getNonce(providerUri: string, consumerAddress: string, signal?: AbortSignal, providerEndpoints?: any, serviceEndpoints?: ServiceEndpoint[]): Promise<string>;
|
|
37
|
+
createSignature(web3: Web3, accountId: string, agreementId: string): Promise<string>;
|
|
38
|
+
createHashSignature(web3: Web3, accountId: string, message: string): Promise<string>;
|
|
39
|
+
/** Encrypt data using the Provider's own symmetric key
|
|
40
|
+
* @param {string} data data in json format that needs to be sent , it can either be a DDO or a File array
|
|
41
|
+
* @param {string} providerUri provider uri address
|
|
42
|
+
* @param {AbortSignal} signal abort signal
|
|
43
|
+
* @return {Promise<string>} urlDetails
|
|
44
|
+
*/
|
|
45
|
+
encrypt(data: any, providerUri: string, signal?: AbortSignal): Promise<string>;
|
|
46
|
+
/** Get DDO File details (if possible)
|
|
47
|
+
* @param {string} did did
|
|
48
|
+
* @param {number} serviceId the id of the service for which to check the files
|
|
49
|
+
* @param {string} providerUri uri of the provider that will be used to check the file
|
|
50
|
+
* @param {AbortSignal} signal abort signal
|
|
51
|
+
* @return {Promise<FileMetadata[]>} urlDetails
|
|
52
|
+
*/
|
|
53
|
+
checkDidFiles(did: string, serviceId: number, providerUri: string, signal?: AbortSignal): Promise<FileMetadata[]>;
|
|
54
|
+
/** Get URL details (if possible)
|
|
55
|
+
* @param {string} url or did
|
|
56
|
+
* @param {string} providerUri uri of the provider that will be used to check the file
|
|
57
|
+
* @param {AbortSignal} signal abort signal
|
|
58
|
+
* @return {Promise<FileMetadata[]>} urlDetails
|
|
59
|
+
*/
|
|
60
|
+
checkFileUrl(url: string, providerUri: string, signal?: AbortSignal): Promise<FileMetadata[]>;
|
|
61
|
+
/** Get Compute Environments
|
|
62
|
+
* @return {Promise<ComputeEnvironment[]>} urlDetails
|
|
63
|
+
*/
|
|
64
|
+
getComputeEnvironments(providerUri: string, signal?: AbortSignal): Promise<ComputeEnvironment[]>;
|
|
65
|
+
/** Initialize a service request.
|
|
66
|
+
* @param {DDO | string} asset
|
|
67
|
+
* @param {number} serviceIndex
|
|
68
|
+
* @param {string} serviceType
|
|
69
|
+
* @param {string} consumerAddress
|
|
70
|
+
* @param {UserCustomParameters} userCustomParameters
|
|
71
|
+
* @param {string} providerUri Identifier of the asset to be registered in ocean
|
|
72
|
+
* @param {AbortSignal} signal abort signal
|
|
73
|
+
* @return {Promise<ProviderInitialize>} ProviderInitialize data
|
|
74
|
+
*/
|
|
75
|
+
initialize(did: string, serviceId: string, fileIndex: number, consumerAddress: string, providerUri: string, signal?: AbortSignal, userCustomParameters?: UserCustomParameters, computeEnv?: string, validUntil?: number): Promise<ProviderInitialize>;
|
|
76
|
+
/** Gets fully signed URL for download
|
|
77
|
+
* @param {string} did
|
|
78
|
+
* @param {string} accountId
|
|
79
|
+
* @param {string} serviceId
|
|
80
|
+
* @param {number} fileIndex
|
|
81
|
+
* @param {string} providerUri
|
|
82
|
+
* @param {Web3} web3
|
|
83
|
+
* @param {UserCustomParameters} userCustomParameters
|
|
84
|
+
* @return {Promise<string>}
|
|
85
|
+
*/
|
|
86
|
+
getDownloadUrl(did: string, accountId: string, serviceId: string, fileIndex: number, transferTxId: string, providerUri: string, web3: Web3, userCustomParameters?: UserCustomParameters): Promise<any>;
|
|
87
|
+
/** Instruct the provider to start a compute job
|
|
88
|
+
* @param {string} did
|
|
89
|
+
* @param {string} consumerAddress
|
|
90
|
+
* @param {string} computeEnv
|
|
91
|
+
* @param {ComputeAlgorithm} algorithm
|
|
92
|
+
* @param {string} providerUri
|
|
93
|
+
* @param {Web3} web3
|
|
94
|
+
* @param {AbortSignal} signal abort signal
|
|
95
|
+
* @param {ComputeOutput} output
|
|
96
|
+
* @return {Promise<ComputeJob | ComputeJob[]>}
|
|
97
|
+
*/
|
|
98
|
+
computeStart(providerUri: string, web3: Web3, consumerAddress: string, computeEnv: string, dataset: ComputeAsset, algorithm: ComputeAlgorithm, signal?: AbortSignal, additionalDatasets?: ComputeAsset[], output?: ComputeOutput): Promise<ComputeJob | ComputeJob[]>;
|
|
99
|
+
/** Instruct the provider to Stop the execution of a to stop a compute job.
|
|
100
|
+
* @param {string} did
|
|
101
|
+
* @param {string} consumerAddress
|
|
102
|
+
* @param {string} jobId
|
|
103
|
+
* @param {string} providerUri
|
|
104
|
+
* @param {Web3} web3
|
|
105
|
+
* @param {AbortSignal} signal abort signal
|
|
106
|
+
* @return {Promise<ComputeJob | ComputeJob[]>}
|
|
107
|
+
*/
|
|
108
|
+
computeStop(did: string, consumerAddress: string, jobId: string, providerUri: string, web3: Web3, signal?: AbortSignal): Promise<ComputeJob | ComputeJob[]>;
|
|
109
|
+
/** Get status for a specific jobId/documentId/owner.
|
|
110
|
+
* @param {string} did
|
|
111
|
+
* @param {string} consumerAddress
|
|
112
|
+
* @param {string} providerUri
|
|
113
|
+
* @param {Web3} web3
|
|
114
|
+
* @param {AbortSignal} signal abort signal
|
|
115
|
+
* @param {string} jobId
|
|
116
|
+
* @return {Promise<ComputeJob | ComputeJob[]>}
|
|
117
|
+
*/
|
|
118
|
+
computeStatus(providerUri: string, signal?: AbortSignal, jobId?: string, did?: string, consumerAddress?: string): Promise<ComputeJob | ComputeJob[]>;
|
|
119
|
+
/** Get status for a specific jobId/documentId/owner.
|
|
120
|
+
* @param {string} jobId
|
|
121
|
+
* @param {number} index
|
|
122
|
+
* @param {string} providerUri
|
|
123
|
+
* @param {string} destination
|
|
124
|
+
* @param {Web3} web3
|
|
125
|
+
* @param {AbortSignal} signal abort signal
|
|
126
|
+
* @return {Promise<ComputeJob | ComputeJob[]>}
|
|
127
|
+
*/
|
|
128
|
+
computeResult(jobId: string, index: number, accountId: string, providerUri: string, web3: Web3, signal?: AbortSignal): Promise<DownloadResponse | void>;
|
|
129
|
+
/** Deletes a compute job.
|
|
130
|
+
* @param {string} did
|
|
131
|
+
* @param {string} consumerAddress
|
|
132
|
+
* @param {string} jobId
|
|
133
|
+
* @param {string} providerUri
|
|
134
|
+
* @param {Web3} web3
|
|
135
|
+
* @param {AbortSignal} signal abort signal
|
|
136
|
+
* @return {Promise<ComputeJob | ComputeJob[]>}
|
|
137
|
+
*/
|
|
138
|
+
computeDelete(did: string, consumerAddress: string, jobId: string, providerUri: string, web3: Web3, signal?: AbortSignal): Promise<ComputeJob | ComputeJob[]>;
|
|
139
|
+
/** Check for a valid provider at URL
|
|
140
|
+
* @param {String} url provider uri address
|
|
141
|
+
* @param {AbortSignal} signal abort signal
|
|
142
|
+
* @return {Promise<boolean>} string
|
|
143
|
+
*/
|
|
144
|
+
isValidProvider(url: string, signal?: AbortSignal): Promise<boolean>;
|
|
145
|
+
}
|
|
146
|
+
export declare const ProviderInstance: Provider;
|
|
147
|
+
export default ProviderInstance;
|
|
File without changes
|