mihaisc
471e3e503d
update max out ( #1475 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-05-17 22:34:09 +03:00
Miquel A. Cabot
cab4d5b1a7
restore estApprove() function and add estTransfer() function
2022-05-16 15:48:40 +02:00
Miquel A. Cabot
0a0d96aa01
Merge branch 'v4main' into add-transfer-function-to-tokenutils
2022-05-16 15:23:39 +02:00
Miquel A. Cabot
6f74add54b
revert console.log estimateGas() result
2022-05-12 21:33:16 +02:00
Miquel A. Cabot
079a583041
console.log estimateGas() result
2022-05-12 19:02:44 +02:00
Miquel A. Cabot
f1f5792114
Merge branch 'v4main' into add-transfer-function-to-tokenutils
2022-05-12 17:49:16 +02:00
Miquel A. Cabot
fa6c27292c
Merge branch 'v4main' into issue-1391-generic-estimategas-function
2022-05-12 17:28:30 +02:00
Miquel A. Cabot
f8a42d9559
Issue-#1409: Excessive contract calls ( #1424 )
...
* add decimals parameter to unitsToAmount() and amountToUnits()
* unify use of amountToUnits() and unitsToAmount()
* use tokenDecimals in TokenUtils
* add tokenDecimals to functions in SideStaking
* add parameters to doc comments
* calculate amountToUnits and unitsToAmount using decimals in FixedRateExchange
* remove unused amountToUnits() function from SideStaking
* use decimals in unitsToAmount() function in Pool
* add tokenInDecimals and tokenOutDecimals to TokenInOutMarket interface
* use decimals in amountToUnits() function in Pool
* fix errors related to pool decimals
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-05-03 19:06:39 +03:00
Miquel A. Cabot
0fb3b8ac40
Merge branch 'v4main' into issue-1391-generic-estimategas-function
2022-04-28 17:21:07 +02:00
Miquel A. Cabot
9ac87e9173
Merge branch 'v4main' into add-transfer-function-to-tokenutils
2022-04-28 17:20:13 +02:00
mihaisc
548f31ced3
fix ( #1426 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-04-20 16:49:27 +03:00
Bogdan Fazakas
ec601a66d2
Fix get compute results ( #1386 )
...
* wip special chars
* clean ups
* update sha256 import from cryptojs lib
* update compute result and use alpha-26 contracts
* re-build with package-lock v1 and with dist
* ignore build files from dist
* delete build files
* removed console logs and updated ComputeResultType typing
* update compute integration test
* added more tests
* added some logs
* update file download method
* use fetch data
* remove download part
* delete console logs
* review fixes
* more fixes
Co-authored-by: Soon Huat <soon_huat.phan@daimler.com>
2022-04-14 23:58:25 +01:00
Alex Coseru
e964b2a4a4
refactor signatures ( #1395 )
...
* refactor signatures
2022-04-14 16:52:12 +03:00
Miquel A. Cabot
610d451581
Merge branch 'v4main' into add-transfer-function-to-tokenutils
2022-04-12 09:47:15 +02:00
Miquel A. Cabot
ec10f43ac7
Use ZERO_ADDRESS constant in src folder files
2022-04-11 13:19:26 +02:00
Miquel A. Cabot
ea74e4fc38
use ZERO_ADDRESS constant
2022-04-06 14:25:34 +02:00
Miquel A. Cabot
652ec73892
solve lint errors
2022-04-05 17:21:41 +02:00
Miquel A. Cabot
1380661c97
use estimateGas() function in TokenUtils
2022-04-05 16:26:40 +02:00
Miquel A. Cabot
2af104497a
change return type
2022-04-05 15:28:35 +02:00
Miquel A. Cabot
23101a185f
add generic estimateGas() function
2022-04-05 14:53:04 +02:00
Miquel A. Cabot
605812ee7f
estimate gas without using the function signature
2022-04-05 10:24:27 +02:00
Miquel A. Cabot
2fe89b476a
update comments
2022-04-04 10:22:03 +02:00
Miquel A. Cabot
f34573be44
create a generic estimateGas() function
2022-04-04 09:37:30 +02:00
Miquel A. Cabot
0735a4b4e3
update comments related to amount units
2022-04-01 16:31:37 +02:00
Miquel A. Cabot
02fa3b8912
remove unused parameters
2022-04-01 16:27:41 +02:00
Miquel A. Cabot
a4a7a7e469
add transfer() and estTransfer() functions
2022-04-01 12:49:38 +02:00
Soon Huat
4c5da01d66
change address[1] to paymentCollector based on smart contract ( #1375 )
...
Co-authored-by: Soon Huat <soon_huat.phan@daimler.com>
2022-03-29 15:40:30 +01:00
Miquel A. Cabot
52c8121b82
Merge pull request #1355 from oceanprotocol/issue-1292-fix-compute-test-timeout
...
Issue-#1246: Use confighelper instead of hardcoded endpoints
2022-03-24 16:06:40 +01:00
296a94be98
solve all typing warnings ( #1364 )
2022-03-24 13:33:03 +00:00
Miquel A. Cabot
d3246c5ae4
Merge branch 'v4main' into issue-1246-use-confighelper-in-tests
2022-03-22 15:43:48 +01:00
Alex Coseru
c01fb0756c
Feature/contracts alpha 25 ( #1358 )
...
* bump to contracts alpha 26
* update gasFeeMultiplier
2022-03-21 14:40:34 +02:00
Miquel A. Cabot
db0c9a6cdb
Merge branch 'v4main' into issue-1246-use-confighelper-in-tests
2022-03-16 14:30:24 +01:00
Norbi
a0e43235dd
Replace toWei/fromWei when base token conversion ( #1318 )
...
* replaced toWei inside FRE
* added amountToUnits for maxPrice inside pool
* replaced fromWei
* add web3 param to getPoolCreationParams
* added await before amountToUnits inside swapExactAmount
* swapExactAmount update
* add await to unitsToAmount inside setRate
* convert newRate to string
* replaced unitToAmounts with amountToUnits inside setRate
* replace unitToAmounts with amountToUnits
* added await
* replaced String() with toSting()
* replaced String() in Provider
* transform newRate into wei inside estimateSetRate
* replace toWei inside getFreCreationParams
* added web3 param to getFreCreationParams
* add amountToUnits inside getFreOrderParams
* added logs
* removed unitsToAmount from fixed rate
* removed amountToUnits inside marketFee
* removed logs
2022-03-16 12:44:53 +02:00
Miquel A. Cabot
ac5bbf7922
use ip number instead of localhost in config file
2022-03-15 18:44:58 +01:00
mihaisc
d8a7d42a9e
fix moonbase urls ( #1337 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-03-14 16:56:55 +02:00
mihaisc
b1eb329a81
fix url ( #1325 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-03-03 19:43:54 +02:00
mihaisc
c930b59c24
fix export ( #1309 )
2022-02-23 00:56:01 -08:00
mihaisc
1a12a4bd89
Calculating max swap/liquidity ( #1306 )
...
* calc max
* more max checks
* fix description
2022-02-22 08:37:41 -08:00
mihaisc
cd3360135c
update config endpoint ( #1288 )
...
* update config endpoint
* Update src/utils/ConfigHelper.ts
Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
* Update src/utils/ConfigHelper.ts
Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
* remove celo
* remove catena
Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
2022-02-15 00:06:21 -08:00
Alex Coseru
91a4431938
update to contracts alpha.19 ( #1286 )
2022-02-14 18:36:15 +02:00
mihaisc
de4dde37b3
fix fixed order params ( #1287 )
2022-02-14 07:15:21 -08:00
mihaisc
3845335251
Remove redundant get in calcBaseInGivenOutDT
( #1283 )
...
* fix
* fix unitsToAmount
* fix
2022-02-14 03:34:46 -08:00
mihaisc
6f12e28ada
fix redundancy ( #1278 )
...
* fix redundancy
* convert to wei fixed price
* fix test
2022-02-11 04:45:15 -08:00
mihaisc
3c315eb49d
fixes ( #1273 )
...
* fixes
* fix test
* fix swap
* fix test
* fix test
* more fixes
* fixes
* change swapMarketFee from wei to decimal
* fix
2022-02-10 07:38:48 -08:00
Alex Coseru
ee7a45e17a
use compute environments ( #1258 )
...
* use compute environments
2022-02-09 19:13:25 +02:00
Bogdan Fazakas
14862f6a3a
Moved interfaces under types and some small fixes ( #1253 )
...
* moved interfaces and some fixes
* throw proper error messages on try catch blocks in pool class
2022-02-07 08:06:58 -08:00
mihaisc
56a3aad20d
heleper+ remove old ibs ( #1238 )
...
* heleper+ remove old ibs
* fix tests
* fix gaslimt
* fix approve
* fix
* remove console.log
* upate package-lock
2022-01-25 08:32:55 -08:00
mihaisc
b880bee007
remove optional fetch method, add abort signal ( #1235 )
...
* remove optional fetch method, add abort signal
* fix encrypt
* fix encrypt
* fix lint,tests
* test
* fix adr
* test
* fix asset
* t
* t
2022-01-24 23:49:13 -08:00
Bogdan Fazakas
5cb548ca59
replaced local artifacts with the published ones ( #1232 )
2022-01-20 04:39:58 -08:00
Bogdan Fazakas
ed2fe3a40e
Merge branch 'v4main' into feature/own-gas-contract-options
2022-01-20 09:20:32 +02:00