@defisaver/automation-sdk 3.3.7-morpho-dev-2 → 3.3.8
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/cjs/services/ethereumService.test.js +1 -0
- package/cjs/services/strategiesService.test.js +1 -0
- package/cjs/services/strategySubService.test.js +2 -2
- package/cjs/services/subDataService.test.js +10 -10
- package/esm/services/ethereumService.test.js +1 -0
- package/esm/services/strategiesService.test.js +1 -0
- package/esm/services/strategySubService.test.js +2 -2
- package/esm/services/subDataService.test.js +10 -10
- package/package.json +2 -2
- package/src/services/ethereumService.test.ts +1 -0
- package/src/services/strategiesService.test.ts +1 -0
- package/src/services/strategySubService.test.ts +2 -2
- package/src/services/subDataService.test.ts +14 -14
|
@@ -101,6 +101,7 @@ describe('Feature: ethereumService.ts', () => {
|
|
|
101
101
|
'address': '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
|
|
102
102
|
'blockHash': '0xb92cab2569456dbfbdb853d2c67d72c9a7580543dbcb55d483a77322b40755a4',
|
|
103
103
|
'blockNumber': 15166163,
|
|
104
|
+
'blockTimestamp': '0x62d53ad8',
|
|
104
105
|
'event': 'Transfer',
|
|
105
106
|
'id': 'log_e2258e3a',
|
|
106
107
|
'logIndex': 385,
|
|
@@ -500,7 +500,7 @@ describe('Feature: strategySubService.ts', () => {
|
|
|
500
500
|
[
|
|
501
501
|
enums_1.Bundles.MainnetIds.AAVE_V3_EOA_REPAY_ON_PRICE,
|
|
502
502
|
true,
|
|
503
|
-
['
|
|
503
|
+
['0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000026e1f9c6000000000000000000000000000000000000000000000000000000000000000001'],
|
|
504
504
|
[
|
|
505
505
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
506
506
|
'0x0000000000000000000000000000000000000000000000000000000000000000',
|
|
@@ -528,7 +528,7 @@ describe('Feature: strategySubService.ts', () => {
|
|
|
528
528
|
[
|
|
529
529
|
enums_1.Bundles.MainnetIds.AAVE_V3_EOA_BOOST_ON_PRICE,
|
|
530
530
|
true,
|
|
531
|
-
['
|
|
531
|
+
['0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000002faf0800000000000000000000000000000000000000000000000000000000000000000'],
|
|
532
532
|
[
|
|
533
533
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
534
534
|
'0x0000000000000000000000000000000000000000000000000000000000000002',
|
|
@@ -1637,7 +1637,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1637
1637
|
debtAssetId: 1,
|
|
1638
1638
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1639
1639
|
targetRatio: 200,
|
|
1640
|
-
|
|
1640
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1641
1641
|
},
|
|
1642
1642
|
[
|
|
1643
1643
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1657,7 +1657,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1657
1657
|
debtAssetId: 1,
|
|
1658
1658
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1659
1659
|
targetRatio: 200,
|
|
1660
|
-
|
|
1660
|
+
owner: web3Utils.toChecksumAddress('0x1234567890123456789012345678901234567890'),
|
|
1661
1661
|
},
|
|
1662
1662
|
[
|
|
1663
1663
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
@@ -1866,7 +1866,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1866
1866
|
debtAssetId: 1,
|
|
1867
1867
|
closeType: enums_1.CloseStrategyType.TAKE_PROFIT_IN_COLLATERAL,
|
|
1868
1868
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1869
|
-
|
|
1869
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1870
1870
|
},
|
|
1871
1871
|
[
|
|
1872
1872
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1887,7 +1887,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1887
1887
|
debtAssetId: 1,
|
|
1888
1888
|
closeType: enums_1.CloseStrategyType.STOP_LOSS_IN_COLLATERAL,
|
|
1889
1889
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1890
|
-
|
|
1890
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1891
1891
|
},
|
|
1892
1892
|
[
|
|
1893
1893
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1908,7 +1908,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1908
1908
|
debtAssetId: 1,
|
|
1909
1909
|
closeType: enums_1.CloseStrategyType.TAKE_PROFIT_IN_DEBT,
|
|
1910
1910
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1911
|
-
|
|
1911
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1912
1912
|
},
|
|
1913
1913
|
[
|
|
1914
1914
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1929,7 +1929,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1929
1929
|
debtAssetId: 1,
|
|
1930
1930
|
closeType: enums_1.CloseStrategyType.STOP_LOSS_IN_DEBT,
|
|
1931
1931
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1932
|
-
|
|
1932
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1933
1933
|
},
|
|
1934
1934
|
[
|
|
1935
1935
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1950,7 +1950,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1950
1950
|
debtAssetId: 1,
|
|
1951
1951
|
closeType: enums_1.CloseStrategyType.TAKE_PROFIT_AND_STOP_LOSS_IN_COLLATERAL,
|
|
1952
1952
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1953
|
-
|
|
1953
|
+
owner: web3Utils.toChecksumAddress('0x1234567890123456789012345678901234567890'),
|
|
1954
1954
|
},
|
|
1955
1955
|
[
|
|
1956
1956
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1971,7 +1971,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1971
1971
|
debtAssetId: 1,
|
|
1972
1972
|
closeType: enums_1.CloseStrategyType.TAKE_PROFIT_IN_COLLATERAL_AND_STOP_LOSS_IN_DEBT,
|
|
1973
1973
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1974
|
-
|
|
1974
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1975
1975
|
},
|
|
1976
1976
|
[
|
|
1977
1977
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
@@ -1992,7 +1992,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1992
1992
|
debtAssetId: 1,
|
|
1993
1993
|
closeType: enums_1.CloseStrategyType.TAKE_PROFIT_AND_STOP_LOSS_IN_DEBT,
|
|
1994
1994
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1995
|
-
|
|
1995
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1996
1996
|
},
|
|
1997
1997
|
[
|
|
1998
1998
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
@@ -2013,7 +2013,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
2013
2013
|
debtAssetId: 1,
|
|
2014
2014
|
closeType: enums_1.CloseStrategyType.TAKE_PROFIT_IN_DEBT_AND_STOP_LOSS_IN_COLLATERAL,
|
|
2015
2015
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
2016
|
-
|
|
2016
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
2017
2017
|
},
|
|
2018
2018
|
[
|
|
2019
2019
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
@@ -96,6 +96,7 @@ describe('Feature: ethereumService.ts', () => {
|
|
|
96
96
|
'address': '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
|
|
97
97
|
'blockHash': '0xb92cab2569456dbfbdb853d2c67d72c9a7580543dbcb55d483a77322b40755a4',
|
|
98
98
|
'blockNumber': 15166163,
|
|
99
|
+
'blockTimestamp': '0x62d53ad8',
|
|
99
100
|
'event': 'Transfer',
|
|
100
101
|
'id': 'log_e2258e3a',
|
|
101
102
|
'logIndex': 385,
|
|
@@ -472,7 +472,7 @@ describe('Feature: strategySubService.ts', () => {
|
|
|
472
472
|
[
|
|
473
473
|
Bundles.MainnetIds.AAVE_V3_EOA_REPAY_ON_PRICE,
|
|
474
474
|
true,
|
|
475
|
-
['
|
|
475
|
+
['0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000026e1f9c6000000000000000000000000000000000000000000000000000000000000000001'],
|
|
476
476
|
[
|
|
477
477
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
478
478
|
'0x0000000000000000000000000000000000000000000000000000000000000000',
|
|
@@ -500,7 +500,7 @@ describe('Feature: strategySubService.ts', () => {
|
|
|
500
500
|
[
|
|
501
501
|
Bundles.MainnetIds.AAVE_V3_EOA_BOOST_ON_PRICE,
|
|
502
502
|
true,
|
|
503
|
-
['
|
|
503
|
+
['0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000002faf0800000000000000000000000000000000000000000000000000000000000000000'],
|
|
504
504
|
[
|
|
505
505
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
506
506
|
'0x0000000000000000000000000000000000000000000000000000000000000002',
|
|
@@ -1609,7 +1609,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1609
1609
|
debtAssetId: 1,
|
|
1610
1610
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1611
1611
|
targetRatio: 200,
|
|
1612
|
-
|
|
1612
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1613
1613
|
},
|
|
1614
1614
|
[
|
|
1615
1615
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1629,7 +1629,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1629
1629
|
debtAssetId: 1,
|
|
1630
1630
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1631
1631
|
targetRatio: 200,
|
|
1632
|
-
|
|
1632
|
+
owner: web3Utils.toChecksumAddress('0x1234567890123456789012345678901234567890'),
|
|
1633
1633
|
},
|
|
1634
1634
|
[
|
|
1635
1635
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
@@ -1838,7 +1838,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1838
1838
|
debtAssetId: 1,
|
|
1839
1839
|
closeType: CloseStrategyType.TAKE_PROFIT_IN_COLLATERAL,
|
|
1840
1840
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1841
|
-
|
|
1841
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1842
1842
|
},
|
|
1843
1843
|
[
|
|
1844
1844
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1859,7 +1859,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1859
1859
|
debtAssetId: 1,
|
|
1860
1860
|
closeType: CloseStrategyType.STOP_LOSS_IN_COLLATERAL,
|
|
1861
1861
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1862
|
-
|
|
1862
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1863
1863
|
},
|
|
1864
1864
|
[
|
|
1865
1865
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1880,7 +1880,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1880
1880
|
debtAssetId: 1,
|
|
1881
1881
|
closeType: CloseStrategyType.TAKE_PROFIT_IN_DEBT,
|
|
1882
1882
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1883
|
-
|
|
1883
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1884
1884
|
},
|
|
1885
1885
|
[
|
|
1886
1886
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1901,7 +1901,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1901
1901
|
debtAssetId: 1,
|
|
1902
1902
|
closeType: CloseStrategyType.STOP_LOSS_IN_DEBT,
|
|
1903
1903
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1904
|
-
|
|
1904
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1905
1905
|
},
|
|
1906
1906
|
[
|
|
1907
1907
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1922,7 +1922,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1922
1922
|
debtAssetId: 1,
|
|
1923
1923
|
closeType: CloseStrategyType.TAKE_PROFIT_AND_STOP_LOSS_IN_COLLATERAL,
|
|
1924
1924
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1925
|
-
|
|
1925
|
+
owner: web3Utils.toChecksumAddress('0x1234567890123456789012345678901234567890'),
|
|
1926
1926
|
},
|
|
1927
1927
|
[
|
|
1928
1928
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1943,7 +1943,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1943
1943
|
debtAssetId: 1,
|
|
1944
1944
|
closeType: CloseStrategyType.TAKE_PROFIT_IN_COLLATERAL_AND_STOP_LOSS_IN_DEBT,
|
|
1945
1945
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1946
|
-
|
|
1946
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1947
1947
|
},
|
|
1948
1948
|
[
|
|
1949
1949
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
@@ -1964,7 +1964,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1964
1964
|
debtAssetId: 1,
|
|
1965
1965
|
closeType: CloseStrategyType.TAKE_PROFIT_AND_STOP_LOSS_IN_DEBT,
|
|
1966
1966
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1967
|
-
|
|
1967
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1968
1968
|
},
|
|
1969
1969
|
[
|
|
1970
1970
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
@@ -1985,7 +1985,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1985
1985
|
debtAssetId: 1,
|
|
1986
1986
|
closeType: CloseStrategyType.TAKE_PROFIT_IN_DEBT_AND_STOP_LOSS_IN_COLLATERAL,
|
|
1987
1987
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1988
|
-
|
|
1988
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1989
1989
|
},
|
|
1990
1990
|
[
|
|
1991
1991
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defisaver/automation-sdk",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"repository": "https://github.com/defisaver/automation-sdk",
|
|
24
24
|
"license": "ISC",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@defisaver/sdk": "1.3.
|
|
26
|
+
"@defisaver/sdk": "^1.3.15",
|
|
27
27
|
"@defisaver/tokens": "^1.6.19",
|
|
28
28
|
"@ethersproject/address": "^5.0.10",
|
|
29
29
|
"@ethersproject/solidity": "^5.0.9",
|
|
@@ -115,6 +115,7 @@ describe('Feature: ethereumService.ts', () => {
|
|
|
115
115
|
'address': '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
|
|
116
116
|
'blockHash': '0xb92cab2569456dbfbdb853d2c67d72c9a7580543dbcb55d483a77322b40755a4',
|
|
117
117
|
'blockNumber': 15166163,
|
|
118
|
+
'blockTimestamp': '0x62d53ad8',
|
|
118
119
|
'event': 'Transfer',
|
|
119
120
|
'id': 'log_e2258e3a',
|
|
120
121
|
'logIndex': 385,
|
|
@@ -640,7 +640,7 @@ describe('Feature: strategySubService.ts', () => {
|
|
|
640
640
|
[
|
|
641
641
|
Bundles.MainnetIds.AAVE_V3_EOA_REPAY_ON_PRICE,
|
|
642
642
|
true,
|
|
643
|
-
['
|
|
643
|
+
['0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000026e1f9c6000000000000000000000000000000000000000000000000000000000000000001'],
|
|
644
644
|
[
|
|
645
645
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
646
646
|
'0x0000000000000000000000000000000000000000000000000000000000000000',
|
|
@@ -668,7 +668,7 @@ describe('Feature: strategySubService.ts', () => {
|
|
|
668
668
|
[
|
|
669
669
|
Bundles.MainnetIds.AAVE_V3_EOA_BOOST_ON_PRICE,
|
|
670
670
|
true,
|
|
671
|
-
['
|
|
671
|
+
['0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000002faf0800000000000000000000000000000000000000000000000000000000000000000'],
|
|
672
672
|
[
|
|
673
673
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
674
674
|
'0x0000000000000000000000000000000000000000000000000000000000000002',
|
|
@@ -1684,7 +1684,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1684
1684
|
debtAssetId: number,
|
|
1685
1685
|
marketAddr: EthereumAddress,
|
|
1686
1686
|
targetRatio: number,
|
|
1687
|
-
|
|
1687
|
+
owner: EthereumAddress
|
|
1688
1688
|
]
|
|
1689
1689
|
]
|
|
1690
1690
|
> = [
|
|
@@ -1751,7 +1751,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1751
1751
|
debtAssetId: number,
|
|
1752
1752
|
marketAddr: EthereumAddress,
|
|
1753
1753
|
targetRatio: number,
|
|
1754
|
-
|
|
1754
|
+
owner: EthereumAddress,
|
|
1755
1755
|
},
|
|
1756
1756
|
string[]
|
|
1757
1757
|
]
|
|
@@ -1764,7 +1764,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1764
1764
|
debtAssetId: 1,
|
|
1765
1765
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1766
1766
|
targetRatio: 200,
|
|
1767
|
-
|
|
1767
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
1768
1768
|
},
|
|
1769
1769
|
[
|
|
1770
1770
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -1784,7 +1784,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1784
1784
|
debtAssetId: 1,
|
|
1785
1785
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
1786
1786
|
targetRatio: 200,
|
|
1787
|
-
|
|
1787
|
+
owner: web3Utils.toChecksumAddress('0x1234567890123456789012345678901234567890'),
|
|
1788
1788
|
},
|
|
1789
1789
|
[
|
|
1790
1790
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
@@ -1822,7 +1822,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
1822
1822
|
debtAssetId: number,
|
|
1823
1823
|
closeType: CloseStrategyType,
|
|
1824
1824
|
marketAddr: EthereumAddress,
|
|
1825
|
-
|
|
1825
|
+
owner: EthereumAddress
|
|
1826
1826
|
]
|
|
1827
1827
|
]
|
|
1828
1828
|
> = [
|
|
@@ -2017,7 +2017,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
2017
2017
|
debtAssetId: number,
|
|
2018
2018
|
closeType: CloseStrategyType,
|
|
2019
2019
|
marketAddr: EthereumAddress,
|
|
2020
|
-
|
|
2020
|
+
owner: EthereumAddress,
|
|
2021
2021
|
},
|
|
2022
2022
|
string[]
|
|
2023
2023
|
]
|
|
@@ -2031,7 +2031,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
2031
2031
|
debtAssetId: 1,
|
|
2032
2032
|
closeType: CloseStrategyType.TAKE_PROFIT_IN_COLLATERAL,
|
|
2033
2033
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
2034
|
-
|
|
2034
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
2035
2035
|
},
|
|
2036
2036
|
[
|
|
2037
2037
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -2052,7 +2052,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
2052
2052
|
debtAssetId: 1,
|
|
2053
2053
|
closeType: CloseStrategyType.STOP_LOSS_IN_COLLATERAL,
|
|
2054
2054
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
2055
|
-
|
|
2055
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
2056
2056
|
},
|
|
2057
2057
|
[
|
|
2058
2058
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -2073,7 +2073,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
2073
2073
|
debtAssetId: 1,
|
|
2074
2074
|
closeType: CloseStrategyType.TAKE_PROFIT_IN_DEBT,
|
|
2075
2075
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
2076
|
-
|
|
2076
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
2077
2077
|
},
|
|
2078
2078
|
[
|
|
2079
2079
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -2094,7 +2094,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
2094
2094
|
debtAssetId: 1,
|
|
2095
2095
|
closeType: CloseStrategyType.STOP_LOSS_IN_DEBT,
|
|
2096
2096
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
2097
|
-
|
|
2097
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
2098
2098
|
},
|
|
2099
2099
|
[
|
|
2100
2100
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -2115,7 +2115,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
2115
2115
|
debtAssetId: 1,
|
|
2116
2116
|
closeType: CloseStrategyType.TAKE_PROFIT_AND_STOP_LOSS_IN_COLLATERAL,
|
|
2117
2117
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
2118
|
-
|
|
2118
|
+
owner: web3Utils.toChecksumAddress('0x1234567890123456789012345678901234567890'),
|
|
2119
2119
|
},
|
|
2120
2120
|
[
|
|
2121
2121
|
'0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -2136,7 +2136,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
2136
2136
|
debtAssetId: 1,
|
|
2137
2137
|
closeType: CloseStrategyType.TAKE_PROFIT_IN_COLLATERAL_AND_STOP_LOSS_IN_DEBT,
|
|
2138
2138
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
2139
|
-
|
|
2139
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
2140
2140
|
},
|
|
2141
2141
|
[
|
|
2142
2142
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
@@ -2157,7 +2157,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
2157
2157
|
debtAssetId: 1,
|
|
2158
2158
|
closeType: CloseStrategyType.TAKE_PROFIT_AND_STOP_LOSS_IN_DEBT,
|
|
2159
2159
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
2160
|
-
|
|
2160
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
2161
2161
|
},
|
|
2162
2162
|
[
|
|
2163
2163
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|
|
@@ -2178,7 +2178,7 @@ describe('Feature: subDataService.ts', () => {
|
|
|
2178
2178
|
debtAssetId: 1,
|
|
2179
2179
|
closeType: CloseStrategyType.TAKE_PROFIT_IN_DEBT_AND_STOP_LOSS_IN_COLLATERAL,
|
|
2180
2180
|
marketAddr: web3Utils.toChecksumAddress('0x87870Bca3F3fD6335C3F4ce8392D69d0B4161d39'),
|
|
2181
|
-
|
|
2181
|
+
owner: web3Utils.toChecksumAddress('0x0000000000000000000000000000000000000000'),
|
|
2182
2182
|
},
|
|
2183
2183
|
[
|
|
2184
2184
|
'0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599',
|