otomato-sdk 2.0.549 → 2.0.550
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/dist/src/constants/Blocks.js +1476 -53
- package/dist/src/constants/chains.js +4 -1
- package/dist/src/constants/tokens.js +2 -0
- package/dist/src/constants/version.js +1 -1
- package/dist/src/services/RpcServices.js +9 -0
- package/dist/types/src/constants/Blocks.d.ts +143 -22
- package/dist/types/src/constants/chains.d.ts +3 -0
- package/dist/types/src/constants/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -45,6 +45,15 @@ class RPCServices {
|
|
|
45
45
|
if (env.HYPER_EVM_HTTPS_PROVIDER) {
|
|
46
46
|
this.rpcUrls[CHAINS.HYPER_EVM] = env.HYPER_EVM_HTTPS_PROVIDER;
|
|
47
47
|
}
|
|
48
|
+
if (env.PLASMA_HTTPS_PROVIDER) {
|
|
49
|
+
this.rpcUrls[CHAINS.PLASMA] = env.PLASMA_HTTPS_PROVIDER;
|
|
50
|
+
}
|
|
51
|
+
if (env.MANTLE_HTTPS_PROVIDER) {
|
|
52
|
+
this.rpcUrls[CHAINS.MANTLE] = env.MANTLE_HTTPS_PROVIDER;
|
|
53
|
+
}
|
|
54
|
+
if (env.INK_HTTPS_PROVIDER) {
|
|
55
|
+
this.rpcUrls[CHAINS.INK] = env.INK_HTTPS_PROVIDER;
|
|
56
|
+
}
|
|
48
57
|
}
|
|
49
58
|
// Function to get the RPC URL for a specific chainId
|
|
50
59
|
getRPC(chainId) {
|
|
@@ -692,7 +692,7 @@ export declare const TRIGGERS: {
|
|
|
692
692
|
output: {
|
|
693
693
|
ytImpliedYield: string;
|
|
694
694
|
};
|
|
695
|
-
examples: {
|
|
695
|
+
examples: ({
|
|
696
696
|
name: string;
|
|
697
697
|
description: string;
|
|
698
698
|
externalVariableDescription: string;
|
|
@@ -703,7 +703,18 @@ export declare const TRIGGERS: {
|
|
|
703
703
|
key: string;
|
|
704
704
|
value: string;
|
|
705
705
|
})[];
|
|
706
|
-
}
|
|
706
|
+
} | {
|
|
707
|
+
name: string;
|
|
708
|
+
description: string;
|
|
709
|
+
parameters: ({
|
|
710
|
+
key: string;
|
|
711
|
+
value: number;
|
|
712
|
+
} | {
|
|
713
|
+
key: string;
|
|
714
|
+
value: string;
|
|
715
|
+
})[];
|
|
716
|
+
externalVariableDescription?: undefined;
|
|
717
|
+
})[];
|
|
707
718
|
blockId: number;
|
|
708
719
|
image: string;
|
|
709
720
|
};
|
|
@@ -719,7 +730,7 @@ export declare const TRIGGERS: {
|
|
|
719
730
|
output: {
|
|
720
731
|
PTExpired: string;
|
|
721
732
|
};
|
|
722
|
-
examples: {
|
|
733
|
+
examples: ({
|
|
723
734
|
name: string;
|
|
724
735
|
description: string;
|
|
725
736
|
externalVariableDescription: string;
|
|
@@ -730,7 +741,18 @@ export declare const TRIGGERS: {
|
|
|
730
741
|
key: string;
|
|
731
742
|
value: string;
|
|
732
743
|
})[];
|
|
733
|
-
}
|
|
744
|
+
} | {
|
|
745
|
+
name: string;
|
|
746
|
+
description: string;
|
|
747
|
+
parameters: ({
|
|
748
|
+
key: string;
|
|
749
|
+
value: number;
|
|
750
|
+
} | {
|
|
751
|
+
key: string;
|
|
752
|
+
value: string;
|
|
753
|
+
})[];
|
|
754
|
+
externalVariableDescription?: undefined;
|
|
755
|
+
})[];
|
|
734
756
|
blockId: number;
|
|
735
757
|
image: string;
|
|
736
758
|
};
|
|
@@ -746,7 +768,7 @@ export declare const TRIGGERS: {
|
|
|
746
768
|
output: {
|
|
747
769
|
YTExpired: string;
|
|
748
770
|
};
|
|
749
|
-
examples: {
|
|
771
|
+
examples: ({
|
|
750
772
|
name: string;
|
|
751
773
|
description: string;
|
|
752
774
|
externalVariableDescription: string;
|
|
@@ -757,7 +779,18 @@ export declare const TRIGGERS: {
|
|
|
757
779
|
key: string;
|
|
758
780
|
value: string;
|
|
759
781
|
})[];
|
|
760
|
-
}
|
|
782
|
+
} | {
|
|
783
|
+
name: string;
|
|
784
|
+
description: string;
|
|
785
|
+
parameters: ({
|
|
786
|
+
key: string;
|
|
787
|
+
value: number;
|
|
788
|
+
} | {
|
|
789
|
+
key: string;
|
|
790
|
+
value: string;
|
|
791
|
+
})[];
|
|
792
|
+
externalVariableDescription?: undefined;
|
|
793
|
+
})[];
|
|
761
794
|
blockId: number;
|
|
762
795
|
image: string;
|
|
763
796
|
};
|
|
@@ -795,7 +828,7 @@ export declare const TRIGGERS: {
|
|
|
795
828
|
output: {
|
|
796
829
|
LPExpired: string;
|
|
797
830
|
};
|
|
798
|
-
examples: {
|
|
831
|
+
examples: ({
|
|
799
832
|
name: string;
|
|
800
833
|
description: string;
|
|
801
834
|
externalVariableDescription: string;
|
|
@@ -806,7 +839,18 @@ export declare const TRIGGERS: {
|
|
|
806
839
|
key: string;
|
|
807
840
|
value: string;
|
|
808
841
|
})[];
|
|
809
|
-
}
|
|
842
|
+
} | {
|
|
843
|
+
name: string;
|
|
844
|
+
description: string;
|
|
845
|
+
parameters: ({
|
|
846
|
+
key: string;
|
|
847
|
+
value: number;
|
|
848
|
+
} | {
|
|
849
|
+
key: string;
|
|
850
|
+
value: string;
|
|
851
|
+
})[];
|
|
852
|
+
externalVariableDescription?: undefined;
|
|
853
|
+
})[];
|
|
810
854
|
blockId: number;
|
|
811
855
|
image: string;
|
|
812
856
|
};
|
|
@@ -1002,7 +1046,7 @@ export declare const TRIGGERS: {
|
|
|
1002
1046
|
output: {
|
|
1003
1047
|
lendingRate: string;
|
|
1004
1048
|
};
|
|
1005
|
-
examples: {
|
|
1049
|
+
examples: ({
|
|
1006
1050
|
name: string;
|
|
1007
1051
|
description: string;
|
|
1008
1052
|
externalVariableDescription: string;
|
|
@@ -1013,7 +1057,18 @@ export declare const TRIGGERS: {
|
|
|
1013
1057
|
key: string;
|
|
1014
1058
|
value: string;
|
|
1015
1059
|
})[];
|
|
1016
|
-
}
|
|
1060
|
+
} | {
|
|
1061
|
+
name: string;
|
|
1062
|
+
description: string;
|
|
1063
|
+
parameters: ({
|
|
1064
|
+
key: string;
|
|
1065
|
+
value: number;
|
|
1066
|
+
} | {
|
|
1067
|
+
key: string;
|
|
1068
|
+
value: string;
|
|
1069
|
+
})[];
|
|
1070
|
+
externalVariableDescription?: undefined;
|
|
1071
|
+
})[];
|
|
1017
1072
|
blockId: number;
|
|
1018
1073
|
image: string;
|
|
1019
1074
|
};
|
|
@@ -1028,7 +1083,7 @@ export declare const TRIGGERS: {
|
|
|
1028
1083
|
output: {
|
|
1029
1084
|
borrowingRate: string;
|
|
1030
1085
|
};
|
|
1031
|
-
examples: {
|
|
1086
|
+
examples: ({
|
|
1032
1087
|
name: string;
|
|
1033
1088
|
description: string;
|
|
1034
1089
|
externalVariableDescription: string;
|
|
@@ -1039,7 +1094,18 @@ export declare const TRIGGERS: {
|
|
|
1039
1094
|
key: string;
|
|
1040
1095
|
value: string;
|
|
1041
1096
|
})[];
|
|
1042
|
-
}
|
|
1097
|
+
} | {
|
|
1098
|
+
name: string;
|
|
1099
|
+
description: string;
|
|
1100
|
+
parameters: ({
|
|
1101
|
+
key: string;
|
|
1102
|
+
value: number;
|
|
1103
|
+
} | {
|
|
1104
|
+
key: string;
|
|
1105
|
+
value: string;
|
|
1106
|
+
})[];
|
|
1107
|
+
externalVariableDescription?: undefined;
|
|
1108
|
+
})[];
|
|
1043
1109
|
blockId: number;
|
|
1044
1110
|
image: string;
|
|
1045
1111
|
};
|
|
@@ -1055,7 +1121,7 @@ export declare const TRIGGERS: {
|
|
|
1055
1121
|
maxLTV: string;
|
|
1056
1122
|
currentLTV: string;
|
|
1057
1123
|
};
|
|
1058
|
-
examples: {
|
|
1124
|
+
examples: ({
|
|
1059
1125
|
name: string;
|
|
1060
1126
|
description: string;
|
|
1061
1127
|
externalVariableDescription: string;
|
|
@@ -1066,7 +1132,18 @@ export declare const TRIGGERS: {
|
|
|
1066
1132
|
key: string;
|
|
1067
1133
|
value: string;
|
|
1068
1134
|
})[];
|
|
1069
|
-
}
|
|
1135
|
+
} | {
|
|
1136
|
+
name: string;
|
|
1137
|
+
description: string;
|
|
1138
|
+
parameters: ({
|
|
1139
|
+
key: string;
|
|
1140
|
+
value: number;
|
|
1141
|
+
} | {
|
|
1142
|
+
key: string;
|
|
1143
|
+
value: string;
|
|
1144
|
+
})[];
|
|
1145
|
+
externalVariableDescription?: undefined;
|
|
1146
|
+
})[];
|
|
1070
1147
|
blockId: number;
|
|
1071
1148
|
image: string;
|
|
1072
1149
|
};
|
|
@@ -1081,7 +1158,7 @@ export declare const TRIGGERS: {
|
|
|
1081
1158
|
output: {
|
|
1082
1159
|
healthFactor: string;
|
|
1083
1160
|
};
|
|
1084
|
-
examples: {
|
|
1161
|
+
examples: ({
|
|
1085
1162
|
name: string;
|
|
1086
1163
|
description: string;
|
|
1087
1164
|
externalVariableDescription: string;
|
|
@@ -1092,7 +1169,18 @@ export declare const TRIGGERS: {
|
|
|
1092
1169
|
key: string;
|
|
1093
1170
|
value: string;
|
|
1094
1171
|
})[];
|
|
1095
|
-
}
|
|
1172
|
+
} | {
|
|
1173
|
+
name: string;
|
|
1174
|
+
description: string;
|
|
1175
|
+
parameters: ({
|
|
1176
|
+
key: string;
|
|
1177
|
+
value: number;
|
|
1178
|
+
} | {
|
|
1179
|
+
key: string;
|
|
1180
|
+
value: string;
|
|
1181
|
+
})[];
|
|
1182
|
+
externalVariableDescription?: undefined;
|
|
1183
|
+
})[];
|
|
1096
1184
|
blockId: number;
|
|
1097
1185
|
image: string;
|
|
1098
1186
|
};
|
|
@@ -1378,7 +1466,7 @@ export declare const TRIGGERS: {
|
|
|
1378
1466
|
prototype: string;
|
|
1379
1467
|
method: string;
|
|
1380
1468
|
parameters: Parameter[];
|
|
1381
|
-
examples: {
|
|
1469
|
+
examples: ({
|
|
1382
1470
|
name: string;
|
|
1383
1471
|
description: string;
|
|
1384
1472
|
externalVariableDescription: string;
|
|
@@ -1389,7 +1477,18 @@ export declare const TRIGGERS: {
|
|
|
1389
1477
|
key: string;
|
|
1390
1478
|
value: string;
|
|
1391
1479
|
})[];
|
|
1392
|
-
}
|
|
1480
|
+
} | {
|
|
1481
|
+
name: string;
|
|
1482
|
+
description: string;
|
|
1483
|
+
parameters: ({
|
|
1484
|
+
key: string;
|
|
1485
|
+
value: number;
|
|
1486
|
+
} | {
|
|
1487
|
+
key: string;
|
|
1488
|
+
value: string;
|
|
1489
|
+
})[];
|
|
1490
|
+
externalVariableDescription?: undefined;
|
|
1491
|
+
})[];
|
|
1393
1492
|
output: {
|
|
1394
1493
|
borrowingRate: string;
|
|
1395
1494
|
};
|
|
@@ -1432,7 +1531,7 @@ export declare const TRIGGERS: {
|
|
|
1432
1531
|
output: {
|
|
1433
1532
|
currentLTV: string;
|
|
1434
1533
|
};
|
|
1435
|
-
examples: {
|
|
1534
|
+
examples: ({
|
|
1436
1535
|
name: string;
|
|
1437
1536
|
description: string;
|
|
1438
1537
|
externalVariableDescription: string;
|
|
@@ -1443,7 +1542,18 @@ export declare const TRIGGERS: {
|
|
|
1443
1542
|
key: string;
|
|
1444
1543
|
value: string;
|
|
1445
1544
|
})[];
|
|
1446
|
-
}
|
|
1545
|
+
} | {
|
|
1546
|
+
name: string;
|
|
1547
|
+
description: string;
|
|
1548
|
+
parameters: ({
|
|
1549
|
+
key: string;
|
|
1550
|
+
value: number;
|
|
1551
|
+
} | {
|
|
1552
|
+
key: string;
|
|
1553
|
+
value: string;
|
|
1554
|
+
})[];
|
|
1555
|
+
externalVariableDescription?: undefined;
|
|
1556
|
+
})[];
|
|
1447
1557
|
blockId: number;
|
|
1448
1558
|
image: string;
|
|
1449
1559
|
};
|
|
@@ -1458,7 +1568,7 @@ export declare const TRIGGERS: {
|
|
|
1458
1568
|
output: {
|
|
1459
1569
|
healthFactor: string;
|
|
1460
1570
|
};
|
|
1461
|
-
examples: {
|
|
1571
|
+
examples: ({
|
|
1462
1572
|
name: string;
|
|
1463
1573
|
description: string;
|
|
1464
1574
|
externalVariableDescription: string;
|
|
@@ -1469,7 +1579,18 @@ export declare const TRIGGERS: {
|
|
|
1469
1579
|
key: string;
|
|
1470
1580
|
value: string;
|
|
1471
1581
|
})[];
|
|
1472
|
-
}
|
|
1582
|
+
} | {
|
|
1583
|
+
name: string;
|
|
1584
|
+
description: string;
|
|
1585
|
+
parameters: ({
|
|
1586
|
+
key: string;
|
|
1587
|
+
value: number;
|
|
1588
|
+
} | {
|
|
1589
|
+
key: string;
|
|
1590
|
+
value: string;
|
|
1591
|
+
})[];
|
|
1592
|
+
externalVariableDescription?: undefined;
|
|
1593
|
+
})[];
|
|
1473
1594
|
blockId: number;
|
|
1474
1595
|
image: string;
|
|
1475
1596
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.550";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|