Skip to main content

Proxy Actions

Convenience class to call functions from GebProxyActions through a proxy contract registered in the Vault721. These actions bundle multiple actions in one (e.g: open a safe + lock some ETH + draw some system coins).

Constructors

+ new GebProxyActions(proxyAddress: string, network: GebDeployment, chainProvider: GebProviderInterface): GebProxyActions

Defined in packages/geb/src/proxy-action.ts:57

Parameters:

NameType
proxyAddressstring
networkGebDeployment
chainProviderGebProviderInterface

Returns: GebProxyActions

Properties

proxy

proxy: DsProxy

Defined in packages/geb/src/proxy-action.ts:28

Underlying proxy object. Can be used to make custom calls to the proxy using the proxy.execute() function.

proxyActionCoreAddress

proxyActionCoreAddress: string

Defined in packages/geb/src/proxy-action.ts:33

Address of the base proxy action contract.

proxyActionGlobalSettlementAddress

proxyActionGlobalSettlementAddress: string

Defined in packages/geb/src/proxy-action.ts:38

Address of the proxy action contract for global settlement.

proxyActionIncentiveAddress

proxyActionIncentiveAddress: string

Defined in packages/geb/src/proxy-action.ts:43

Address of the proxy action contract for Uniswap LP share staking.

proxyActionLeverageAddress

proxyActionLeverageAddress: string

Defined in packages/geb/src/proxy-action.ts:48

Address of the proxy action contract used for leverage with flash loans.

proxyAddress

proxyAddress: string

Defined in packages/geb/src/proxy-action.ts:62

Address of the underlying proxy.

Methods

allowSAFE

allowSAFE(safe: BigNumberish, usr: string, ok: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:115

Parameters:

NameType
safeBigNumberish
usrstring
okBigNumberish

Returns: TransactionRequest

approveSAFEModification

approveSAFEModification(obj: string, usr: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:130

Parameters:

NameType
objstring
usrstring

Returns: TransactionRequest

coinJoin_join

coinJoin_join(apt: string, safeHandler: string, wad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:136

Parameters:

NameType
aptstring
safeHandlerstring
wadBigNumberish

Returns: TransactionRequest

denySAFEModification

denySAFEModification(obj: string, usr: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:146

Parameters:

NameType
objstring
usrstring

Returns: TransactionRequest

enterSystem

enterSystem(src: string, safe: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:152

Parameters:

NameType
srcstring
safeBigNumberish

Returns: TransactionRequest

exitETH

exitETH(safe: BigNumberish, wad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:162

Parameters:

NameType
safeBigNumberish
wadBigNumberish

Returns: TransactionRequest

exitTokenCollateral

exitTokenCollateral(collateralJoin: string, safe: BigNumberish, amt: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:173

Parameters:

NameType
collateralJoinstring
safeBigNumberish
amtBigNumberish

Returns: TransactionRequest

flashDeleverage

flashDeleverage(uniswapV2Pair: string, callbackProxy: string, collateralType: BytesLike, safe: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:815

Parameters:

NameType
uniswapV2Pairstring
callbackProxystring
collateralTypeBytesLike
safeBigNumberish

Returns: TransactionRequest

flashDeleverageFreeETH

flashDeleverageFreeETH(uniswapV2Pair: string, callbackProxy: string, collateralType: BytesLike, safe: BigNumberish, amountToFree: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:836

Parameters:

NameType
uniswapV2Pairstring
callbackProxystring
collateralTypeBytesLike
safeBigNumberish
amountToFreeBigNumberish

Returns: TransactionRequest

flashLeverage

flashLeverage(uniswapV2Pair: string, callbackProxy: string, collateralType: BytesLike, safe: BigNumberish, leverage: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:859

Parameters:

NameType
uniswapV2Pairstring
callbackProxystring
collateralTypeBytesLike
safeBigNumberish
leverageBigNumberish

Returns: TransactionRequest

freeETH

freeETH(safe: BigNumberish, wad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:188

Parameters:

NameType
safeBigNumberish
wadBigNumberish

Returns: TransactionRequest

freeTokenCollateral

freeTokenCollateral(collateralJoin: string, safe: BigNumberish, amt: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:199

Parameters:

NameType
collateralJoinstring
safeBigNumberish
amtBigNumberish

Returns: TransactionRequest

freeTokenCollateralGlobalSettlement

freeTokenCollateralGlobalSettlement(collateralJoin: string, safe: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:765

Parameters:

NameType
collateralJoinstring
safeBigNumberish

Returns: TransactionRequest

generateDebt

generateDebt(safe: BigNumberish, wad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:214

Parameters:

NameType
safeBigNumberish
wadBigNumberish

Returns: TransactionRequest

generateDebtAndProtectSAFE

generateDebtAndProtectSAFE(safe: BigNumberish, wad: BigNumberish, saviour: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:226

Parameters:

NameType
safeBigNumberish
wadBigNumberish
saviourstring

Returns: TransactionRequest

lockETH

lockETH(ethValue: BigNumberish, safe: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:244

Parameters:

NameType
ethValueBigNumberish
safeBigNumberish

Returns: TransactionRequest

lockETHAndGenerateDebt

lockETHAndGenerateDebt(ethValue: BigNumberish, safe: BigNumberish, deltaWad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:255

Parameters:

NameType
ethValueBigNumberish
safeBigNumberish
deltaWadBigNumberish

Returns: TransactionRequest

lockETHLeverage

lockETHLeverage(ethValue: BigNumberish, uniswapV2Pair: string, callbackProxy: string, collateralType: BytesLike, safe: BigNumberish, leverage: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:882

Parameters:

NameType
ethValueBigNumberish
uniswapV2Pairstring
callbackProxystring
collateralTypeBytesLike
safeBigNumberish
leverageBigNumberish

Returns: TransactionRequest

lockTokenCollateral

lockTokenCollateral(collateralJoin: string, safe: BigNumberish, amt: BigNumberish, transferFrom: boolean): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:273

Parameters:

NameType
collateralJoinstring
safeBigNumberish
amtBigNumberish
transferFromboolean

Returns: TransactionRequest

lockTokenCollateralAndGenerateDebt

lockTokenCollateralAndGenerateDebt(collateralJoin: string, safe: BigNumberish, collateralAmount: BigNumberish, deltaWad: BigNumberish, transferFrom: boolean): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:290

Parameters:

NameType
collateralJoinstring
safeBigNumberish
collateralAmountBigNumberish
deltaWadBigNumberish
transferFromboolean

Returns: TransactionRequest

lockTokenCollateralGenerateDebtAndProtectSAFE

lockTokenCollateralGenerateDebtAndProtectSAFE(collateralJoin: string, safe: BigNumberish, collateralAmount: BigNumberish, deltaWad: BigNumberish, transferFrom: boolean, saviour: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:311

Parameters:

NameType
collateralJoinstring
safeBigNumberish
collateralAmountBigNumberish
deltaWadBigNumberish
transferFromboolean
saviourstring

Returns: TransactionRequest

makeCollateralBag

makeCollateralBag(collateralJoin: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:335

Parameters:

NameType
collateralJoinstring

Returns: TransactionRequest

modifySAFECollateralization

modifySAFECollateralization(safe: BigNumberish, deltaCollateral: BigNumberish, deltaDebt: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:341

Parameters:

NameType
safeBigNumberish
deltaCollateralBigNumberish
deltaDebtBigNumberish

Returns: TransactionRequest

moveSAFE

moveSAFE(safeSrc: BigNumberish, safeDst: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:356

Parameters:

NameType
safeSrcBigNumberish
safeDstBigNumberish

Returns: TransactionRequest

openLockETHAndGenerateDebt

openLockETHAndGenerateDebt(ethValue: BigNumberish, collateralType: BytesLike, deltaWad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:366

Parameters:

NameType
ethValueBigNumberish
collateralTypeBytesLike
deltaWadBigNumberish

Returns: TransactionRequest

openLockETHGenerateDebtAndProtectSAFE

openLockETHGenerateDebtAndProtectSAFE(ethValue: BigNumberish, collateralType: BytesLike, deltaWad: BigNumberish, saviour: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:384

Parameters:

NameType
ethValueBigNumberish
collateralTypeBytesLike
deltaWadBigNumberish
saviourstring

Returns: TransactionRequest

openLockETHLeverage

openLockETHLeverage(ethValue: BigNumberish, uniswapV2Pair: string, callbackProxy: string, collateralType: BytesLike, leverage: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:907

Parameters:

NameType
ethValueBigNumberish
uniswapV2Pairstring
callbackProxystring
collateralTypeBytesLike
leverageBigNumberish

Returns: TransactionRequest

openLockGNTAndGenerateDebt

openLockGNTAndGenerateDebt(gntJoin: string, collateralType: BytesLike, collateralAmount: BigNumberish, deltaWad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:405

Parameters:

NameType
gntJoinstring
collateralTypeBytesLike
collateralAmountBigNumberish
deltaWadBigNumberish

Returns: TransactionRequest

openLockGNTGenerateDebtAndProtectSAFE

openLockGNTGenerateDebtAndProtectSAFE(gntJoin: string, collateralType: BytesLike, collateralAmount: BigNumberish, deltaWad: BigNumberish, saviour: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:424

Parameters:

NameType
gntJoinstring
collateralTypeBytesLike
collateralAmountBigNumberish
deltaWadBigNumberish
saviourstring

Returns: TransactionRequest

openLockTokenCollateralAndGenerateDebt

openLockTokenCollateralAndGenerateDebt(collateralJoin: string, collateralType: BytesLike, collateralAmount: BigNumberish, deltaWad: BigNumberish, transferFrom: boolean): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:446

Parameters:

NameType
collateralJoinstring
collateralTypeBytesLike
collateralAmountBigNumberish
deltaWadBigNumberish
transferFromboolean

Returns: TransactionRequest

openLockTokenCollateralGenerateDebtAndProtectSAFE

openLockTokenCollateralGenerateDebtAndProtectSAFE(collateralJoin: string, collateralType: BytesLike, collateralAmount: BigNumberish, deltaWad: BigNumberish, transferFrom: boolean, saviour: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:467

Parameters:

NameType
collateralJoinstring
collateralTypeBytesLike
collateralAmountBigNumberish
deltaWadBigNumberish
transferFromboolean
saviourstring

Returns: TransactionRequest

openSAFE

openSAFE(collateralType: BytesLike, usr: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:491

Parameters:

NameType
collateralTypeBytesLike
usrstring

Returns: TransactionRequest

prepareCoinsForRedeemingGlobalSettlement

prepareCoinsForRedeemingGlobalSettlement(wad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:753

Parameters:

NameType
wadBigNumberish

Returns: TransactionRequest

protectSAFE

protectSAFE(safe: BigNumberish, saviour: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:501

Parameters:

NameType
safeBigNumberish
saviourstring

Returns: TransactionRequest

quitSystem

quitSystem(safe: BigNumberish, dst: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:512

Parameters:

NameType
safeBigNumberish
dststring

Returns: TransactionRequest

redeemETHGlobalSettlement

redeemETHGlobalSettlement(ethJoin: string, collateralType: BytesLike, wad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:779

Parameters:

NameType
ethJoinstring
collateralTypeBytesLike
wadBigNumberish

Returns: TransactionRequest

redeemTokenCollateralGlobalSettlement

redeemTokenCollateralGlobalSettlement(collateralJoin: string, collateralType: BytesLike, wad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:794

Parameters:

NameType
collateralJoinstring
collateralTypeBytesLike
wadBigNumberish

Returns: TransactionRequest

repayAllDebt

repayAllDebt(safe: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:522

Parameters:

NameType
safeBigNumberish

Returns: TransactionRequest

repayAllDebtAndFreeETH

repayAllDebtAndFreeETH(safe: BigNumberish, collateralWad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:532

Parameters:

NameType
safeBigNumberish
collateralWadBigNumberish

Returns: TransactionRequest

repayAllDebtAndFreeTokenCollateral

repayAllDebtAndFreeTokenCollateral(collateralJoin: string, safe: BigNumberish, collateralAmount: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:547

Parameters:

NameType
collateralJoinstring
safeBigNumberish
collateralAmountBigNumberish

Returns: TransactionRequest

repayDebt

repayDebt(safe: BigNumberish, wad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:563

Parameters:

NameType
safeBigNumberish
wadBigNumberish

Returns: TransactionRequest

repayDebtAndFreeETH

repayDebtAndFreeETH(safe: BigNumberish, collateralWad: BigNumberish, deltaWad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:574

Parameters:

NameType
safeBigNumberish
collateralWadBigNumberish
deltaWadBigNumberish

Returns: TransactionRequest

repayDebtAndFreeTokenCollateral

repayDebtAndFreeTokenCollateral(collateralJoin: string, safe: BigNumberish, collateralAmount: BigNumberish, deltaWad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:591

Parameters:

NameType
collateralJoinstring
safeBigNumberish
collateralAmountBigNumberish
deltaWadBigNumberish

Returns: TransactionRequest

safeLockETH

safeLockETH(ethValue: BigNumberish, safe: BigNumberish, owner: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:609

Parameters:

NameType
ethValueBigNumberish
safeBigNumberish
ownerstring

Returns: TransactionRequest

safeLockTokenCollateral

safeLockTokenCollateral(collateralJoin: string, safe: BigNumberish, amt: BigNumberish, transferFrom: boolean, owner: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:625

Parameters:

NameType
collateralJoinstring
safeBigNumberish
amtBigNumberish
transferFromboolean
ownerstring

Returns: TransactionRequest

safeRepayAllDebt

safeRepayAllDebt(safe: BigNumberish, owner: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:644

Parameters:

NameType
safeBigNumberish
ownerstring

Returns: TransactionRequest

safeRepayDebt

safeRepayDebt(safe: BigNumberish, wad: BigNumberish, owner: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:655

Parameters:

NameType
safeBigNumberish
wadBigNumberish
ownerstring

Returns: TransactionRequest

tokenCollateralJoin_join

tokenCollateralJoin_join(apt: string, safe: string, amt: BigNumberish, transferFrom: boolean): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:671

Parameters:

NameType
aptstring
safestring
amtBigNumberish
transferFromboolean

Returns: TransactionRequest

transfer

transfer(collateral: string, dst: string, amt: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:687

Parameters:

NameType
collateralstring
dststring
amtBigNumberish

Returns: TransactionRequest

transferCollateral

transferCollateral(safe: BigNumberish, dst: string, wad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:697

Parameters:

NameType
safeBigNumberish
dststring
wadBigNumberish

Returns: TransactionRequest

transferInternalCoins

transferInternalCoins(safe: BigNumberish, dst: string, rad: BigNumberish): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:712

Parameters:

NameType
safeBigNumberish
dststring
radBigNumberish

Returns: TransactionRequest

transferSAFEOwnership

transferSAFEOwnership(safe: BigNumberish, usr: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:727

Parameters:

NameType
safeBigNumberish
usrstring

Returns: TransactionRequest

transferSAFEOwnershipToProxy

transferSAFEOwnershipToProxy(safe: BigNumberish, dst: string): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:737

Parameters:

NameType
safeBigNumberish
dststring

Returns: TransactionRequest

uniswapV2Call

uniswapV2Call(_sender: string, _amount0: BigNumberish, _amount1: BigNumberish, _data: BytesLike): TransactionRequest

Defined in packages/geb/src/proxy-action.ts:930

Parameters:

NameType
_senderstring
_amount0BigNumberish
_amount1BigNumberish
_dataBytesLike

Returns: TransactionRequest