@defisaver/sdk 1.0.5 → 1.0.7

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.
Files changed (36) hide show
  1. package/esm/src/Action.d.ts +1 -0
  2. package/esm/src/Action.js +16 -2
  3. package/esm/src/actions/basic/CreateSubAction.d.ts +13 -0
  4. package/esm/src/actions/basic/CreateSubAction.js +18 -0
  5. package/esm/src/actions/basic/UpdateSubAction.js +6 -0
  6. package/esm/src/actions/basic/index.d.ts +1 -0
  7. package/esm/src/actions/basic/index.js +1 -0
  8. package/esm/src/actions/chickenBonds/CBCreateRebondSubAction.d.ts +13 -0
  9. package/esm/src/actions/chickenBonds/CBCreateRebondSubAction.js +18 -0
  10. package/esm/src/actions/chickenBonds/CBUpdateRebondSubAction.d.ts +14 -0
  11. package/esm/src/actions/chickenBonds/CBUpdateRebondSubAction.js +16 -0
  12. package/esm/src/actions/chickenBonds/FetchBondIdAction.d.ts +15 -0
  13. package/esm/src/actions/chickenBonds/FetchBondIdAction.js +21 -0
  14. package/esm/src/actions/chickenBonds/index.d.ts +3 -0
  15. package/esm/src/actions/chickenBonds/index.js +3 -0
  16. package/esm/src/addresses.d.ts +12 -0
  17. package/esm/src/addresses.js +9 -5
  18. package/esm/src/index.d.ts +48 -0
  19. package/esm/src/triggers/CBRebondTrigger.d.ts +10 -0
  20. package/esm/src/triggers/CBRebondTrigger.js +12 -0
  21. package/esm/src/triggers/index.d.ts +1 -0
  22. package/esm/src/triggers/index.js +1 -0
  23. package/package-lock.json +68 -14
  24. package/package.json +1 -1
  25. package/src/Action.ts +17 -2
  26. package/src/actions/basic/CreateSubAction.ts +23 -0
  27. package/src/actions/basic/UpdateSubAction.ts +8 -1
  28. package/src/actions/basic/index.ts +2 -1
  29. package/src/actions/chickenBonds/CBCreateRebondSubAction.ts +20 -0
  30. package/src/actions/chickenBonds/CBUpdateRebondSubAction.ts +18 -0
  31. package/src/actions/chickenBonds/FetchBondIdAction.ts +23 -0
  32. package/src/actions/chickenBonds/index.ts +5 -1
  33. package/src/addresses.ts +9 -6
  34. package/src/triggers/CBRebondTrigger.ts +14 -0
  35. package/src/triggers/index.ts +1 -0
  36. package/umd/index.js +471 -298
@@ -28,6 +28,7 @@ export declare class Action {
28
28
  *
29
29
  */
30
30
  _getArgumentMapping(): Args;
31
+ _parseParamType(paramType: string | ParamTypes, arg: Args): string | any[];
31
32
  /**
32
33
  *
33
34
  */
package/esm/src/Action.js CHANGED
@@ -61,12 +61,26 @@ export class Action {
61
61
  return 0;
62
62
  });
63
63
  }
64
+ _parseParamType(paramType, arg) {
65
+ if (typeof (paramType) === 'string') {
66
+ if (paramType.startsWith('(')) {
67
+ let _paramType = paramType.replace('(', '');
68
+ _paramType = _paramType.replace(')', '');
69
+ return _paramType.split(',');
70
+ }
71
+ if (paramType.endsWith('[]')) {
72
+ return Array.from(Array(arg.length).fill(paramType.replace('[]', '')));
73
+ }
74
+ }
75
+ return paramType;
76
+ }
64
77
  /**
65
78
  *
66
79
  */
67
80
  _replaceWithPlaceholders(arg, paramType) {
81
+ const paramTypeParsed = this._parseParamType(paramType, arg);
68
82
  if (Array.isArray(arg))
69
- return arg.map((_arg, i) => this._replaceWithPlaceholders(_arg, paramType[i]));
83
+ return arg.map((_arg, i) => this._replaceWithPlaceholders(_arg, paramTypeParsed[i]));
70
84
  if (typeof (paramType) === 'string') {
71
85
  if (new RegExp(/\$\d+/).test(arg))
72
86
  return __classPrivateFieldGet(this, _Action_instances, "m", _Action__getPlaceholderForType).call(this, paramType);
@@ -186,7 +200,7 @@ _Action_instances = new WeakSet(), _Action__getArgumentMappingWithSlots = functi
186
200
  // TODO handle arrays?
187
201
  // eslint-disable-next-line
188
202
  if (type.startsWith('bytes'))
189
- return `0x${'0'.repeat(parseInt(type.substr(5)))}`;
203
+ return `0x${'0'.repeat(parseInt(type.substr(5)) * 2)}`;
190
204
  if (type === 'address')
191
205
  return `0x${'0'.repeat(40)}`;
192
206
  if (type === 'string')
@@ -0,0 +1,13 @@
1
+ import { Action } from '../../Action';
2
+ import { bytes, bytes32, uint64 } from '../../types';
3
+ /**
4
+ * Action for creating a sub
5
+ *
6
+ * @category BasicActions
7
+ */
8
+ export declare class CreateSubAction extends Action {
9
+ /**
10
+ * @param sub object that contains new sub information
11
+ */
12
+ constructor(sub: [uint64, boolean, bytes[], bytes32[]]);
13
+ }
@@ -0,0 +1,18 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * Action for creating a sub
5
+ *
6
+ * @category BasicActions
7
+ */
8
+ export class CreateSubAction extends Action {
9
+ /**
10
+ * @param sub object that contains new sub information
11
+ */
12
+ constructor(sub) {
13
+ super('CreateSub', getAddr('CreateSub'), ['(uint64,bool,bytes[],bytes32[])'], [sub]);
14
+ for (let i = 0; i < this.args[0][3].length; i++) {
15
+ this.mappableArgs.push(this.args[0][3][i]);
16
+ }
17
+ }
18
+ }
@@ -12,5 +12,11 @@ export class UpdateSubAction extends Action {
12
12
  */
13
13
  constructor(subId, sub) {
14
14
  super('UpdateSub', getAddr('UpdateSub'), ['uint256', '(uint64,bool,bytes[],bytes32[])'], [subId, sub]);
15
+ this.mappableArgs = [
16
+ this.args[0],
17
+ ];
18
+ for (let i = 0; i < this.args[1][3].length; i++) {
19
+ this.mappableArgs.push(this.args[1][3][i]);
20
+ }
15
21
  }
16
22
  }
@@ -14,3 +14,4 @@ export * from './UpdateSubAction';
14
14
  export * from './ToggleSubAction';
15
15
  export * from './GasFeeActionL2';
16
16
  export * from './TransferNFTAction';
17
+ export * from './CreateSubAction';
@@ -14,3 +14,4 @@ export * from './UpdateSubAction';
14
14
  export * from './ToggleSubAction';
15
15
  export * from './GasFeeActionL2';
16
16
  export * from './TransferNFTAction';
17
+ export * from './CreateSubAction';
@@ -0,0 +1,13 @@
1
+ import { Action } from '../../Action';
2
+ import { uint256 } from '../../types';
3
+ /**
4
+ * CBCreateRebondSubAction - Subscribes to CB Rebond Strategy
5
+ *
6
+ * @category ChickenBonds
7
+ */
8
+ export declare class CBCreateRebondSubAction extends Action {
9
+ /**
10
+ * @param bondId {string} Id of the bond in the strategy
11
+ */
12
+ constructor(bondId: uint256);
13
+ }
@@ -0,0 +1,18 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * CBCreateRebondSubAction - Subscribes to CB Rebond Strategy
5
+ *
6
+ * @category ChickenBonds
7
+ */
8
+ export class CBCreateRebondSubAction extends Action {
9
+ /**
10
+ * @param bondId {string} Id of the bond in the strategy
11
+ */
12
+ constructor(bondId) {
13
+ super('CBCreateRebondSub', getAddr('CBCreateRebondSub'), ['uint256'], [bondId]);
14
+ this.mappableArgs = [
15
+ this.args[0],
16
+ ];
17
+ }
18
+ }
@@ -0,0 +1,14 @@
1
+ import { Action } from '../../Action';
2
+ import { uint256 } from '../../types';
3
+ /**
4
+ * CBUpdateRebondSubAction - Updates rebond strategy subscription
5
+ *
6
+ * @category ChickenBonds
7
+ */
8
+ export declare class CBUpdateRebondSubAction extends Action {
9
+ /**
10
+ * @param subId {string} Id of the subscription to update
11
+ * @param bondId {string} Id of the bond in the strategy
12
+ */
13
+ constructor(subId: uint256, bondId: uint256);
14
+ }
@@ -0,0 +1,16 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * CBUpdateRebondSubAction - Updates rebond strategy subscription
5
+ *
6
+ * @category ChickenBonds
7
+ */
8
+ export class CBUpdateRebondSubAction extends Action {
9
+ /**
10
+ * @param subId {string} Id of the subscription to update
11
+ * @param bondId {string} Id of the bond in the strategy
12
+ */
13
+ constructor(subId, bondId) {
14
+ super('CBUpdateRebondSub', getAddr('CBUpdateRebondSub'), ['uint256', 'uint256'], [subId, bondId]);
15
+ }
16
+ }
@@ -0,0 +1,15 @@
1
+ import { Action } from '../../Action';
2
+ import { uint256 } from '../../types';
3
+ /**
4
+ * FetchBondIdAction - action that retrieves CB BondId from a hashed strategy
5
+ *
6
+ * @category ChickenBonds
7
+ */
8
+ export declare class FetchBondIdAction extends Action {
9
+ /**
10
+ * @param paybackSourceId
11
+ * @param sourceType
12
+ * @param cbRebondBondId
13
+ */
14
+ constructor(paybackSourceId: uint256, sourceType: uint256, cbRebondBondId: uint256);
15
+ }
@@ -0,0 +1,21 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * FetchBondIdAction - action that retrieves CB BondId from a hashed strategy
5
+ *
6
+ * @category ChickenBonds
7
+ */
8
+ export class FetchBondIdAction extends Action {
9
+ /**
10
+ * @param paybackSourceId
11
+ * @param sourceType
12
+ * @param cbRebondBondId
13
+ */
14
+ constructor(paybackSourceId, sourceType, cbRebondBondId) {
15
+ super('FetchBondId', getAddr('FetchBondId'), ['uint256', 'uint256', 'uint256'], [paybackSourceId, sourceType, cbRebondBondId]);
16
+ this.mappableArgs = [
17
+ this.args[0],
18
+ this.args[1],
19
+ ];
20
+ }
21
+ }
@@ -2,3 +2,6 @@ export * from './CBCreateAction';
2
2
  export * from './CBChickenInAction';
3
3
  export * from './CBChickenOutAction';
4
4
  export * from './CBRedeemAction';
5
+ export * from './CBUpdateRebondSubAction';
6
+ export * from './FetchBondIdAction';
7
+ export * from './CBCreateRebondSubAction';
@@ -2,3 +2,6 @@ export * from './CBCreateAction';
2
2
  export * from './CBChickenInAction';
3
3
  export * from './CBChickenOutAction';
4
4
  export * from './CBRedeemAction';
5
+ export * from './CBUpdateRebondSubAction';
6
+ export * from './FetchBondIdAction';
7
+ export * from './CBCreateRebondSubAction';
@@ -14,6 +14,7 @@ export declare const actionAddresses: {
14
14
  ToggleSub: string;
15
15
  UpdateSub: string;
16
16
  TransferNFT: string;
17
+ CreateSub: string;
17
18
  DFSSell: string;
18
19
  McdGenerate: string;
19
20
  McdGive: string;
@@ -93,6 +94,8 @@ export declare const actionAddresses: {
93
94
  CurveWithdraw: string;
94
95
  FLEuler: string;
95
96
  TrailingStopTrigger: string;
97
+ CBRebondTrigger: string;
98
+ CBUpdateRebondSub: string;
96
99
  ConvexDeposit: string;
97
100
  ConvexWithdraw: string;
98
101
  ConvexClaim: string;
@@ -100,6 +103,7 @@ export declare const actionAddresses: {
100
103
  CBRedeem: string;
101
104
  CBChickenIn: string;
102
105
  CBChickenOut: string;
106
+ CBCreateRebondSub: string;
103
107
  CompV3Allow: string;
104
108
  CompV3Borrow: string;
105
109
  CompV3Claim: string;
@@ -155,6 +159,7 @@ export declare const actionAddresses: {
155
159
  AutomationV2Unsub?: undefined;
156
160
  UpdateSub?: undefined;
157
161
  TransferNFT?: undefined;
162
+ CreateSub?: undefined;
158
163
  McdGenerate?: undefined;
159
164
  McdGive?: undefined;
160
165
  McdMerge?: undefined;
@@ -226,6 +231,8 @@ export declare const actionAddresses: {
226
231
  CurveWithdraw?: undefined;
227
232
  FLEuler?: undefined;
228
233
  TrailingStopTrigger?: undefined;
234
+ CBRebondTrigger?: undefined;
235
+ CBUpdateRebondSub?: undefined;
229
236
  ConvexDeposit?: undefined;
230
237
  ConvexWithdraw?: undefined;
231
238
  ConvexClaim?: undefined;
@@ -233,6 +240,7 @@ export declare const actionAddresses: {
233
240
  CBRedeem?: undefined;
234
241
  CBChickenIn?: undefined;
235
242
  CBChickenOut?: undefined;
243
+ CBCreateRebondSub?: undefined;
236
244
  CompV3Allow?: undefined;
237
245
  CompV3Borrow?: undefined;
238
246
  CompV3Claim?: undefined;
@@ -273,6 +281,7 @@ export declare const actionAddresses: {
273
281
  AutomationV2Unsub?: undefined;
274
282
  UpdateSub?: undefined;
275
283
  TransferNFT?: undefined;
284
+ CreateSub?: undefined;
276
285
  McdGenerate?: undefined;
277
286
  McdGive?: undefined;
278
287
  McdMerge?: undefined;
@@ -344,6 +353,8 @@ export declare const actionAddresses: {
344
353
  CurveWithdraw?: undefined;
345
354
  FLEuler?: undefined;
346
355
  TrailingStopTrigger?: undefined;
356
+ CBRebondTrigger?: undefined;
357
+ CBUpdateRebondSub?: undefined;
347
358
  ConvexDeposit?: undefined;
348
359
  ConvexWithdraw?: undefined;
349
360
  ConvexClaim?: undefined;
@@ -351,6 +362,7 @@ export declare const actionAddresses: {
351
362
  CBRedeem?: undefined;
352
363
  CBChickenIn?: undefined;
353
364
  CBChickenOut?: undefined;
365
+ CBCreateRebondSub?: undefined;
354
366
  CompV3Allow?: undefined;
355
367
  CompV3Borrow?: undefined;
356
368
  CompV3Claim?: undefined;
@@ -13,10 +13,11 @@ export const actionAddresses = {
13
13
  AutomationV2Unsub: '0xe35Fb12fE9796847751076aCf5ee7d124108612C',
14
14
  SendTokenAndUnwrap: '0xeecd376026335261c89faD40D89625391b1eFF6a',
15
15
  ToggleSub: '0x9A78E9d6538cfDbA0242Ca5eC46771E6132E8085',
16
- UpdateSub: '0x94D707f411B852082a5ce49C3f47c49c7757761f',
16
+ UpdateSub: '0x92e93a50F75dF380f0A34327Ce7243E43B74303c',
17
17
  TransferNFT: '0x861e893E1796F81248e75F06C0b09Abdc8fe2f6F',
18
+ CreateSub: '0x6C94C856361aB12165120a3A9A936c41Af238121',
18
19
  // exchange
19
- DFSSell: '0xB744474Bdd7226736ACa4Ba87593e32d8315e5c9',
20
+ DFSSell: '0x951D7B421f45FF0e4A8ddE0288aE3f9C2C69b784',
20
21
  // maker
21
22
  McdGenerate: '0xCb50a91C0f12f439b8bf11E9474B9c1ED62Bf7a3',
22
23
  McdGive: '0xf9556A87BF424834FDe7De0547b58E36Cb42EF01',
@@ -74,7 +75,7 @@ export const actionAddresses = {
74
75
  LiquityClose: '0x4B2d174129789a88e92D46342201F207132144b7',
75
76
  LiquityBorrow: '0xF978d6C5c8af80a059AdB85EEb64F14C9c436D68',
76
77
  LiquityOpen: '0x4EFF392cc69B31Ad159EcfA10305251b2d8E40E0',
77
- LiquityPayback: '0x8fc7D24414e9740ed9841d9205D458e3677e71f7',
78
+ LiquityPayback: '0x5eaa94e6E1044F8fe396f76682D4a4546d374527',
78
79
  LiquityWithdraw: '0x733F53579bEcdd3Ed07e745A55Ee9af8B9669048',
79
80
  LiquitySupply: '0xD539943e080C2a29e3f1DB2d45Ea7240d7ddDEE2',
80
81
  LiquitySPDeposit: '0x5aB0244a00a733f16E6b238B462bdF3538C698E1',
@@ -113,6 +114,8 @@ export const actionAddresses = {
113
114
  // Euler
114
115
  FLEuler: '0x66DC6444CdC099153f89332e0d4C87af5C966A75',
115
116
  TrailingStopTrigger: '0x0000000000000000000000000000000000000000',
117
+ CBRebondTrigger: '0x6Bb48580977e2aBfD6c70B522204EFbe828a9428',
118
+ CBUpdateRebondSub: '0x2709Fd59a27F35997dFf618E3C68ABA1c9e91465',
116
119
  // Convex
117
120
  ConvexDeposit: '0x3Ecc4F1FD5aA09D2E13Ec9ebFdF102063d66F458',
118
121
  ConvexWithdraw: '0x2B2c235F9e27A121947c34A39d447bD4C585aA15',
@@ -122,6 +125,7 @@ export const actionAddresses = {
122
125
  CBRedeem: '0xdD06754cA5367B03af7014AB359332eD82D988d1',
123
126
  CBChickenIn: '0x1E990AF6dCf9E9f8a0b2fc76f3BC032A34fFfD14',
124
127
  CBChickenOut: '0x3d2f2d88749BB387abD07A2408b68D2Bf2D4be3f',
128
+ CBCreateRebondSub: '0x31Ebd23C00f3266ae84531025C91c030347CBCAA',
125
129
  // CompV3
126
130
  CompV3Allow: '0xC4a80f22bf56E0dFa2CB378561B934F41E14bc9f',
127
131
  CompV3Borrow: '0x11e7b984299a771C92CD42A87358a32791A75CEA',
@@ -132,7 +136,7 @@ export const actionAddresses = {
132
136
  CompV3Withdraw: '0x0b0F21EDE32DE4243D9145a899E97FC2366Aec46',
133
137
  },
134
138
  [NETWORKS.optimism.chainId]: {
135
- DFSSell: '0xBA0f6039b95CC0A02B5fc983eCf0FC4437BaacC7',
139
+ DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
136
140
  // basic
137
141
  WrapEth: '0x6D735db054AC4a1F10f96b99f8550E9eefbC2AC5',
138
142
  UnwrapEth: '0x1Fa75B00A05C2EbBd0EDF253a63c209966337A0d',
@@ -166,7 +170,7 @@ export const actionAddresses = {
166
170
  UniCreatePoolV3: '0xAF45d1380d89dB7260DC2684158c5dfA4E147d3e',
167
171
  },
168
172
  [NETWORKS.arbitrum.chainId]: {
169
- DFSSell: '0x77c02Bb7CbBb2F896c5Ea14e1b60D65f81e552db',
173
+ DFSSell: '0x9109F34AB28D369cF894aF45C50E976B8E312a82',
170
174
  // basic
171
175
  WrapEth: '0x35136b25bFA7CCC8f5b94E3181a16B61c06980F0',
172
176
  UnwrapEth: '0x2B69d494536098700910D167902D1d397dcA2B61',
@@ -25,6 +25,7 @@ declare const actionAddressesAllChains: {
25
25
  ToggleSub: string;
26
26
  UpdateSub: string;
27
27
  TransferNFT: string;
28
+ CreateSub: string;
28
29
  DFSSell: string;
29
30
  McdGenerate: string;
30
31
  McdGive: string;
@@ -104,6 +105,8 @@ declare const actionAddressesAllChains: {
104
105
  CurveWithdraw: string;
105
106
  FLEuler: string;
106
107
  TrailingStopTrigger: string;
108
+ CBRebondTrigger: string;
109
+ CBUpdateRebondSub: string;
107
110
  ConvexDeposit: string;
108
111
  ConvexWithdraw: string;
109
112
  ConvexClaim: string;
@@ -111,6 +114,7 @@ declare const actionAddressesAllChains: {
111
114
  CBRedeem: string;
112
115
  CBChickenIn: string;
113
116
  CBChickenOut: string;
117
+ CBCreateRebondSub: string;
114
118
  CompV3Allow: string;
115
119
  CompV3Borrow: string;
116
120
  CompV3Claim: string;
@@ -166,6 +170,7 @@ declare const actionAddressesAllChains: {
166
170
  AutomationV2Unsub?: undefined;
167
171
  UpdateSub?: undefined;
168
172
  TransferNFT?: undefined;
173
+ CreateSub?: undefined;
169
174
  McdGenerate?: undefined;
170
175
  McdGive?: undefined;
171
176
  McdMerge?: undefined;
@@ -237,6 +242,8 @@ declare const actionAddressesAllChains: {
237
242
  CurveWithdraw?: undefined;
238
243
  FLEuler?: undefined;
239
244
  TrailingStopTrigger?: undefined;
245
+ CBRebondTrigger?: undefined;
246
+ CBUpdateRebondSub?: undefined;
240
247
  ConvexDeposit?: undefined;
241
248
  ConvexWithdraw?: undefined;
242
249
  ConvexClaim?: undefined;
@@ -244,6 +251,7 @@ declare const actionAddressesAllChains: {
244
251
  CBRedeem?: undefined;
245
252
  CBChickenIn?: undefined;
246
253
  CBChickenOut?: undefined;
254
+ CBCreateRebondSub?: undefined;
247
255
  CompV3Allow?: undefined;
248
256
  CompV3Borrow?: undefined;
249
257
  CompV3Claim?: undefined;
@@ -284,6 +292,7 @@ declare const actionAddressesAllChains: {
284
292
  AutomationV2Unsub?: undefined;
285
293
  UpdateSub?: undefined;
286
294
  TransferNFT?: undefined;
295
+ CreateSub?: undefined;
287
296
  McdGenerate?: undefined;
288
297
  McdGive?: undefined;
289
298
  McdMerge?: undefined;
@@ -355,6 +364,8 @@ declare const actionAddressesAllChains: {
355
364
  CurveWithdraw?: undefined;
356
365
  FLEuler?: undefined;
357
366
  TrailingStopTrigger?: undefined;
367
+ CBRebondTrigger?: undefined;
368
+ CBUpdateRebondSub?: undefined;
358
369
  ConvexDeposit?: undefined;
359
370
  ConvexWithdraw?: undefined;
360
371
  ConvexClaim?: undefined;
@@ -362,6 +373,7 @@ declare const actionAddressesAllChains: {
362
373
  CBRedeem?: undefined;
363
374
  CBChickenIn?: undefined;
364
375
  CBChickenOut?: undefined;
376
+ CBCreateRebondSub?: undefined;
365
377
  CompV3Allow?: undefined;
366
378
  CompV3Borrow?: undefined;
367
379
  CompV3Claim?: undefined;
@@ -387,6 +399,7 @@ declare const actionAddresses: (chainId?: null) => {
387
399
  ToggleSub: string;
388
400
  UpdateSub: string;
389
401
  TransferNFT: string;
402
+ CreateSub: string;
390
403
  DFSSell: string;
391
404
  McdGenerate: string;
392
405
  McdGive: string;
@@ -466,6 +479,8 @@ declare const actionAddresses: (chainId?: null) => {
466
479
  CurveWithdraw: string;
467
480
  FLEuler: string;
468
481
  TrailingStopTrigger: string;
482
+ CBRebondTrigger: string;
483
+ CBUpdateRebondSub: string;
469
484
  ConvexDeposit: string;
470
485
  ConvexWithdraw: string;
471
486
  ConvexClaim: string;
@@ -473,6 +488,7 @@ declare const actionAddresses: (chainId?: null) => {
473
488
  CBRedeem: string;
474
489
  CBChickenIn: string;
475
490
  CBChickenOut: string;
491
+ CBCreateRebondSub: string;
476
492
  CompV3Allow: string;
477
493
  CompV3Borrow: string;
478
494
  CompV3Claim: string;
@@ -528,6 +544,7 @@ declare const actionAddresses: (chainId?: null) => {
528
544
  AutomationV2Unsub?: undefined;
529
545
  UpdateSub?: undefined;
530
546
  TransferNFT?: undefined;
547
+ CreateSub?: undefined;
531
548
  McdGenerate?: undefined;
532
549
  McdGive?: undefined;
533
550
  McdMerge?: undefined;
@@ -599,6 +616,8 @@ declare const actionAddresses: (chainId?: null) => {
599
616
  CurveWithdraw?: undefined;
600
617
  FLEuler?: undefined;
601
618
  TrailingStopTrigger?: undefined;
619
+ CBRebondTrigger?: undefined;
620
+ CBUpdateRebondSub?: undefined;
602
621
  ConvexDeposit?: undefined;
603
622
  ConvexWithdraw?: undefined;
604
623
  ConvexClaim?: undefined;
@@ -606,6 +625,7 @@ declare const actionAddresses: (chainId?: null) => {
606
625
  CBRedeem?: undefined;
607
626
  CBChickenIn?: undefined;
608
627
  CBChickenOut?: undefined;
628
+ CBCreateRebondSub?: undefined;
609
629
  CompV3Allow?: undefined;
610
630
  CompV3Borrow?: undefined;
611
631
  CompV3Claim?: undefined;
@@ -646,6 +666,7 @@ declare const actionAddresses: (chainId?: null) => {
646
666
  AutomationV2Unsub?: undefined;
647
667
  UpdateSub?: undefined;
648
668
  TransferNFT?: undefined;
669
+ CreateSub?: undefined;
649
670
  McdGenerate?: undefined;
650
671
  McdGive?: undefined;
651
672
  McdMerge?: undefined;
@@ -717,6 +738,8 @@ declare const actionAddresses: (chainId?: null) => {
717
738
  CurveWithdraw?: undefined;
718
739
  FLEuler?: undefined;
719
740
  TrailingStopTrigger?: undefined;
741
+ CBRebondTrigger?: undefined;
742
+ CBUpdateRebondSub?: undefined;
720
743
  ConvexDeposit?: undefined;
721
744
  ConvexWithdraw?: undefined;
722
745
  ConvexClaim?: undefined;
@@ -724,6 +747,7 @@ declare const actionAddresses: (chainId?: null) => {
724
747
  CBRedeem?: undefined;
725
748
  CBChickenIn?: undefined;
726
749
  CBChickenOut?: undefined;
750
+ CBCreateRebondSub?: undefined;
727
751
  CompV3Allow?: undefined;
728
752
  CompV3Borrow?: undefined;
729
753
  CompV3Claim?: undefined;
@@ -846,6 +870,7 @@ declare const _default: {
846
870
  ToggleSub: string;
847
871
  UpdateSub: string;
848
872
  TransferNFT: string;
873
+ CreateSub: string;
849
874
  DFSSell: string;
850
875
  McdGenerate: string;
851
876
  McdGive: string;
@@ -925,6 +950,8 @@ declare const _default: {
925
950
  CurveWithdraw: string;
926
951
  FLEuler: string;
927
952
  TrailingStopTrigger: string;
953
+ CBRebondTrigger: string;
954
+ CBUpdateRebondSub: string;
928
955
  ConvexDeposit: string;
929
956
  ConvexWithdraw: string;
930
957
  ConvexClaim: string;
@@ -932,6 +959,7 @@ declare const _default: {
932
959
  CBRedeem: string;
933
960
  CBChickenIn: string;
934
961
  CBChickenOut: string;
962
+ CBCreateRebondSub: string;
935
963
  CompV3Allow: string;
936
964
  CompV3Borrow: string;
937
965
  CompV3Claim: string;
@@ -987,6 +1015,7 @@ declare const _default: {
987
1015
  AutomationV2Unsub?: undefined;
988
1016
  UpdateSub?: undefined;
989
1017
  TransferNFT?: undefined;
1018
+ CreateSub?: undefined;
990
1019
  McdGenerate?: undefined;
991
1020
  McdGive?: undefined;
992
1021
  McdMerge?: undefined;
@@ -1058,6 +1087,8 @@ declare const _default: {
1058
1087
  CurveWithdraw?: undefined;
1059
1088
  FLEuler?: undefined;
1060
1089
  TrailingStopTrigger?: undefined;
1090
+ CBRebondTrigger?: undefined;
1091
+ CBUpdateRebondSub?: undefined;
1061
1092
  ConvexDeposit?: undefined;
1062
1093
  ConvexWithdraw?: undefined;
1063
1094
  ConvexClaim?: undefined;
@@ -1065,6 +1096,7 @@ declare const _default: {
1065
1096
  CBRedeem?: undefined;
1066
1097
  CBChickenIn?: undefined;
1067
1098
  CBChickenOut?: undefined;
1099
+ CBCreateRebondSub?: undefined;
1068
1100
  CompV3Allow?: undefined;
1069
1101
  CompV3Borrow?: undefined;
1070
1102
  CompV3Claim?: undefined;
@@ -1105,6 +1137,7 @@ declare const _default: {
1105
1137
  AutomationV2Unsub?: undefined;
1106
1138
  UpdateSub?: undefined;
1107
1139
  TransferNFT?: undefined;
1140
+ CreateSub?: undefined;
1108
1141
  McdGenerate?: undefined;
1109
1142
  McdGive?: undefined;
1110
1143
  McdMerge?: undefined;
@@ -1176,6 +1209,8 @@ declare const _default: {
1176
1209
  CurveWithdraw?: undefined;
1177
1210
  FLEuler?: undefined;
1178
1211
  TrailingStopTrigger?: undefined;
1212
+ CBRebondTrigger?: undefined;
1213
+ CBUpdateRebondSub?: undefined;
1179
1214
  ConvexDeposit?: undefined;
1180
1215
  ConvexWithdraw?: undefined;
1181
1216
  ConvexClaim?: undefined;
@@ -1183,6 +1218,7 @@ declare const _default: {
1183
1218
  CBRedeem?: undefined;
1184
1219
  CBChickenIn?: undefined;
1185
1220
  CBChickenOut?: undefined;
1221
+ CBCreateRebondSub?: undefined;
1186
1222
  CompV3Allow?: undefined;
1187
1223
  CompV3Borrow?: undefined;
1188
1224
  CompV3Claim?: undefined;
@@ -1208,6 +1244,7 @@ declare const _default: {
1208
1244
  ToggleSub: string;
1209
1245
  UpdateSub: string;
1210
1246
  TransferNFT: string;
1247
+ CreateSub: string;
1211
1248
  DFSSell: string;
1212
1249
  McdGenerate: string;
1213
1250
  McdGive: string;
@@ -1287,6 +1324,8 @@ declare const _default: {
1287
1324
  CurveWithdraw: string;
1288
1325
  FLEuler: string;
1289
1326
  TrailingStopTrigger: string;
1327
+ CBRebondTrigger: string;
1328
+ CBUpdateRebondSub: string;
1290
1329
  ConvexDeposit: string;
1291
1330
  ConvexWithdraw: string;
1292
1331
  ConvexClaim: string;
@@ -1294,6 +1333,7 @@ declare const _default: {
1294
1333
  CBRedeem: string;
1295
1334
  CBChickenIn: string;
1296
1335
  CBChickenOut: string;
1336
+ CBCreateRebondSub: string;
1297
1337
  CompV3Allow: string;
1298
1338
  CompV3Borrow: string;
1299
1339
  CompV3Claim: string;
@@ -1349,6 +1389,7 @@ declare const _default: {
1349
1389
  AutomationV2Unsub?: undefined;
1350
1390
  UpdateSub?: undefined;
1351
1391
  TransferNFT?: undefined;
1392
+ CreateSub?: undefined;
1352
1393
  McdGenerate?: undefined;
1353
1394
  McdGive?: undefined;
1354
1395
  McdMerge?: undefined;
@@ -1420,6 +1461,8 @@ declare const _default: {
1420
1461
  CurveWithdraw?: undefined;
1421
1462
  FLEuler?: undefined;
1422
1463
  TrailingStopTrigger?: undefined;
1464
+ CBRebondTrigger?: undefined;
1465
+ CBUpdateRebondSub?: undefined;
1423
1466
  ConvexDeposit?: undefined;
1424
1467
  ConvexWithdraw?: undefined;
1425
1468
  ConvexClaim?: undefined;
@@ -1427,6 +1470,7 @@ declare const _default: {
1427
1470
  CBRedeem?: undefined;
1428
1471
  CBChickenIn?: undefined;
1429
1472
  CBChickenOut?: undefined;
1473
+ CBCreateRebondSub?: undefined;
1430
1474
  CompV3Allow?: undefined;
1431
1475
  CompV3Borrow?: undefined;
1432
1476
  CompV3Claim?: undefined;
@@ -1467,6 +1511,7 @@ declare const _default: {
1467
1511
  AutomationV2Unsub?: undefined;
1468
1512
  UpdateSub?: undefined;
1469
1513
  TransferNFT?: undefined;
1514
+ CreateSub?: undefined;
1470
1515
  McdGenerate?: undefined;
1471
1516
  McdGive?: undefined;
1472
1517
  McdMerge?: undefined;
@@ -1538,6 +1583,8 @@ declare const _default: {
1538
1583
  CurveWithdraw?: undefined;
1539
1584
  FLEuler?: undefined;
1540
1585
  TrailingStopTrigger?: undefined;
1586
+ CBRebondTrigger?: undefined;
1587
+ CBUpdateRebondSub?: undefined;
1541
1588
  ConvexDeposit?: undefined;
1542
1589
  ConvexWithdraw?: undefined;
1543
1590
  ConvexClaim?: undefined;
@@ -1545,6 +1592,7 @@ declare const _default: {
1545
1592
  CBRedeem?: undefined;
1546
1593
  CBChickenIn?: undefined;
1547
1594
  CBChickenOut?: undefined;
1595
+ CBCreateRebondSub?: undefined;
1548
1596
  CompV3Allow?: undefined;
1549
1597
  CompV3Borrow?: undefined;
1550
1598
  CompV3Claim?: undefined;
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { uint256 } from '../types';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export declare class CBRebondTrigger extends Action {
9
+ constructor(bondID: uint256);
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export class CBRebondTrigger extends Action {
9
+ constructor(bondID) {
10
+ super('CBRebondTrigger', getAddr('CBRebondTrigger'), ['uint256'], [bondID]);
11
+ }
12
+ }
@@ -9,3 +9,4 @@ export * from './LiquityRatioTrigger';
9
9
  export * from './AaveV3RatioTrigger';
10
10
  export * from './CompV3RatioTrigger';
11
11
  export * from './TrailingStopTrigger';
12
+ export * from './CBRebondTrigger';