@pendle/core-v2 0.5.1-beta-2 → 0.5.1-beta-3
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/contracts/core/RouterStatic.sol +18 -0
- package/contracts/interfaces/IPAllAction.sol +1 -1
- package/contracts/interfaces/IPRouterStatic.sol +48 -0
- package/package.json +1 -1
- package/typechain-types/IPAllAction.ts +0 -288
- package/typechain-types/IPRouterStatic.ts +483 -0
- package/typechain-types/RouterStatic.ts +54 -0
- package/typechain-types/factories/IPAllAction__factory.ts +0 -193
- package/typechain-types/factories/IPRouterStatic__factory.ts +616 -0
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +42 -1
|
@@ -56,93 +56,6 @@ const _abi = [
|
|
|
56
56
|
stateMutability: "nonpayable",
|
|
57
57
|
type: "function",
|
|
58
58
|
},
|
|
59
|
-
{
|
|
60
|
-
inputs: [
|
|
61
|
-
{
|
|
62
|
-
internalType: "address",
|
|
63
|
-
name: "market",
|
|
64
|
-
type: "address",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
internalType: "uint256",
|
|
68
|
-
name: "scyDesired",
|
|
69
|
-
type: "uint256",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
internalType: "uint256",
|
|
73
|
-
name: "otDesired",
|
|
74
|
-
type: "uint256",
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
name: "addLiquidityStatic",
|
|
78
|
-
outputs: [
|
|
79
|
-
{
|
|
80
|
-
internalType: "uint256",
|
|
81
|
-
name: "netLpOut",
|
|
82
|
-
type: "uint256",
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
internalType: "uint256",
|
|
86
|
-
name: "scyUsed",
|
|
87
|
-
type: "uint256",
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
internalType: "uint256",
|
|
91
|
-
name: "otUsed",
|
|
92
|
-
type: "uint256",
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
stateMutability: "nonpayable",
|
|
96
|
-
type: "function",
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
inputs: [
|
|
100
|
-
{
|
|
101
|
-
internalType: "address",
|
|
102
|
-
name: "market",
|
|
103
|
-
type: "address",
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
name: "getOtImpliedYield",
|
|
107
|
-
outputs: [
|
|
108
|
-
{
|
|
109
|
-
internalType: "int256",
|
|
110
|
-
name: "",
|
|
111
|
-
type: "int256",
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
stateMutability: "view",
|
|
115
|
-
type: "function",
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
inputs: [
|
|
119
|
-
{
|
|
120
|
-
internalType: "address",
|
|
121
|
-
name: "token",
|
|
122
|
-
type: "address",
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
name: "getPendleTokenType",
|
|
126
|
-
outputs: [
|
|
127
|
-
{
|
|
128
|
-
internalType: "bool",
|
|
129
|
-
name: "isOT",
|
|
130
|
-
type: "bool",
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
internalType: "bool",
|
|
134
|
-
name: "isYT",
|
|
135
|
-
type: "bool",
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
internalType: "bool",
|
|
139
|
-
name: "isMarket",
|
|
140
|
-
type: "bool",
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
stateMutability: "view",
|
|
144
|
-
type: "function",
|
|
145
|
-
},
|
|
146
59
|
{
|
|
147
60
|
inputs: [
|
|
148
61
|
{
|
|
@@ -343,54 +256,6 @@ const _abi = [
|
|
|
343
256
|
stateMutability: "nonpayable",
|
|
344
257
|
type: "function",
|
|
345
258
|
},
|
|
346
|
-
{
|
|
347
|
-
inputs: [
|
|
348
|
-
{
|
|
349
|
-
internalType: "address",
|
|
350
|
-
name: "market",
|
|
351
|
-
type: "address",
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
internalType: "uint256",
|
|
355
|
-
name: "lpToRemove",
|
|
356
|
-
type: "uint256",
|
|
357
|
-
},
|
|
358
|
-
],
|
|
359
|
-
name: "removeLiquidityStatic",
|
|
360
|
-
outputs: [
|
|
361
|
-
{
|
|
362
|
-
internalType: "uint256",
|
|
363
|
-
name: "netScyOut",
|
|
364
|
-
type: "uint256",
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
internalType: "uint256",
|
|
368
|
-
name: "netOtOut",
|
|
369
|
-
type: "uint256",
|
|
370
|
-
},
|
|
371
|
-
],
|
|
372
|
-
stateMutability: "view",
|
|
373
|
-
type: "function",
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
inputs: [
|
|
377
|
-
{
|
|
378
|
-
internalType: "address",
|
|
379
|
-
name: "market",
|
|
380
|
-
type: "address",
|
|
381
|
-
},
|
|
382
|
-
],
|
|
383
|
-
name: "scyIndex",
|
|
384
|
-
outputs: [
|
|
385
|
-
{
|
|
386
|
-
internalType: "SCYIndex",
|
|
387
|
-
name: "index",
|
|
388
|
-
type: "uint256",
|
|
389
|
-
},
|
|
390
|
-
],
|
|
391
|
-
stateMutability: "nonpayable",
|
|
392
|
-
type: "function",
|
|
393
|
-
},
|
|
394
259
|
{
|
|
395
260
|
inputs: [
|
|
396
261
|
{
|
|
@@ -792,35 +657,6 @@ const _abi = [
|
|
|
792
657
|
stateMutability: "nonpayable",
|
|
793
658
|
type: "function",
|
|
794
659
|
},
|
|
795
|
-
{
|
|
796
|
-
inputs: [
|
|
797
|
-
{
|
|
798
|
-
internalType: "address",
|
|
799
|
-
name: "market",
|
|
800
|
-
type: "address",
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
internalType: "uint256",
|
|
804
|
-
name: "exactOtIn",
|
|
805
|
-
type: "uint256",
|
|
806
|
-
},
|
|
807
|
-
],
|
|
808
|
-
name: "swapOtForScyStatic",
|
|
809
|
-
outputs: [
|
|
810
|
-
{
|
|
811
|
-
internalType: "uint256",
|
|
812
|
-
name: "netScyOut",
|
|
813
|
-
type: "uint256",
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
internalType: "uint256",
|
|
817
|
-
name: "netScyFee",
|
|
818
|
-
type: "uint256",
|
|
819
|
-
},
|
|
820
|
-
],
|
|
821
|
-
stateMutability: "nonpayable",
|
|
822
|
-
type: "function",
|
|
823
|
-
},
|
|
824
660
|
{
|
|
825
661
|
inputs: [
|
|
826
662
|
{
|
|
@@ -889,35 +725,6 @@ const _abi = [
|
|
|
889
725
|
stateMutability: "nonpayable",
|
|
890
726
|
type: "function",
|
|
891
727
|
},
|
|
892
|
-
{
|
|
893
|
-
inputs: [
|
|
894
|
-
{
|
|
895
|
-
internalType: "address",
|
|
896
|
-
name: "market",
|
|
897
|
-
type: "address",
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
internalType: "uint256",
|
|
901
|
-
name: "exactOtOut",
|
|
902
|
-
type: "uint256",
|
|
903
|
-
},
|
|
904
|
-
],
|
|
905
|
-
name: "swapScyForOtStatic",
|
|
906
|
-
outputs: [
|
|
907
|
-
{
|
|
908
|
-
internalType: "uint256",
|
|
909
|
-
name: "netScyIn",
|
|
910
|
-
type: "uint256",
|
|
911
|
-
},
|
|
912
|
-
{
|
|
913
|
-
internalType: "uint256",
|
|
914
|
-
name: "netScyFee",
|
|
915
|
-
type: "uint256",
|
|
916
|
-
},
|
|
917
|
-
],
|
|
918
|
-
stateMutability: "nonpayable",
|
|
919
|
-
type: "function",
|
|
920
|
-
},
|
|
921
728
|
{
|
|
922
729
|
inputs: [
|
|
923
730
|
{
|