Structures

ITokenDescription

1
export declare interface ITokenDescription {
2
address: string;
3
name: string;
4
symbol: string;
5
decimals: number;
6
url: string;
7
}
Copied!

IOracleDescription

1
export declare interface IOracleDescription {
2
address: string;
3
name: string;
4
}
Copied!

ILoanOrderActive

1
export declare interface ILoanOrderActive {
2
loanOrderHash: string;
3
trader: string;
4
loanEndUnixTimestampSec: number;
5
}
Copied!

ILoanOrderFillable

1
export declare interface ILoanOrderFillable {
2
makerAddress: string;
3
takerAddress: string;
4
tradeTokenToFillAddress: string;
5
withdrawOnOpen: boolean;
6
loanTokenAddress: string;
7
interestTokenAddress: string;
8
collateralTokenAddress: string;
9
feeRecipientAddress: string;
10
oracleAddress: string;
11
loanTokenAmount: number | string;
12
interestAmount: number | string;
13
initialMarginAmount: number | string;
14
maintenanceMarginAmount: number | string;
15
lenderRelayFee: number | string;
16
traderRelayFee: number | string;
17
maxDurationUnixTimestampSec: number | string;
18
expirationUnixTimestampSec: number | string;
19
loanOrderHash: string;
20
lender: string;
21
orderFilledAmount: number;
22
orderCancelledAmount: number;
23
orderTraderCount: number;
24
addedUnixTimestampSec: number;
25
}
Copied!

ILoanOrderFillRequest

1
export declare interface ILoanOrderFillRequest {
2
makerAddress: string;
3
takerAddress: string;
4
tradeTokenToFillAddress: string;
5
withdrawOnOpen: boolean;
6
loanTokenAddress: string;
7
interestTokenAddress: string;
8
collateralTokenAddress: string;
9
feeRecipientAddress: string;
10
oracleAddress: string;
11
loanTokenAmount: number | string;
12
interestAmount: number | string;
13
initialMarginAmount: number | string;
14
maintenanceMarginAmount: number | string;
15
lenderRelayFee: number | string;
16
traderRelayFee: number | string;
17
maxDurationUnixTimestampSec: number | string;
18
expirationUnixTimestampSec: number | string;
19
bZxAddress: string;
20
makerRole: number;
21
salt: string;
22
signature: string;
23
}
Copied!

ILoanPositionState

1
export declare interface ILoanPositionState {
2
lender: string;
3
trader: string;
4
loanOrderHash: string;
5
loanStartUnixTimestampSec: number;
6
loanEndUnixTimestampSec: number;
7
active: number;
8
loanTokenAddress: string;
9
loanTokenAmountFilled: number;
10
collateralTokenAddressFilled: string;
11
collateralTokenAmountFilled: number;
12
positionTokenAddressFilled: number;
13
positionTokenAmountFilled: number;
14
interestTokenAddress: string;
15
interestTotalAccrued: number;
16
interestLastPaidDate: number;
17
interestPaidSoFar: number;
18
}
Copied!

IZeroExOrder (obsolete, use IZeroExV2Order)

1
export declare interface IZeroExOrder {
2
exchangeContractAddress: string;
3
expirationUnixTimestampSec: number;
4
feeRecipient: string;
5
maker: string;
6
makerFee: number;
7
makerTokenAddress: string;
8
makerTokenAmount: number;
9
salt: string;
10
taker: string;
11
takerFee: number;
12
takerTokenAddress: string;
13
takerTokenAmount: number;
14
}
Copied!

IZeroExV2Order

1
export declare interface IZeroExV2Order {
2
senderAddress: string;
3
makerAddress: string;
4
takerAddress: string;
5
makerFee: string;
6
takerFee: string;
7
makerAssetAmount: string;
8
takerAssetAmount: string;
9
makerAssetData: any;
10
takerAssetData: any;
11
salt: string;
12
exchangeAddress: string;
13
feeRecipientAddress: string;
14
expirationTimeSeconds: string;
15
}
Copied!

ITokenMetadata

1
export declare interface ITokenMetadata {
2
name: string;
3
symbol: string;
4
decimals: number;
5
}
Copied!

IZeroExV2OrderMetadata

1
export declare interface IZeroExV2OrderMetadata {
2
makerToken: ITokenMetadata;
3
takerToken: ITokenMetadata;
4
}
Copied!

ISignatureParams

1
export declare interface ISignatureParams {
2
v: number;
3
r: Buffer;
4
s: Buffer;
5
}
Copied!

IZeroExOrderSigned (obsolete, use IZeroExV2OrderSigned)

1
export declare interface IZeroExOrderSigned extends IZeroExOrder {
2
ecSignature: ISignatureParams;
3
}
Copied!

IZeroExV2OrderSigned

1
export declare interface IZeroExV2OrderSigned extends IZeroExV2Order {
2
signature: string;
3
}
Copied!

IZeroExTradeRequest (obsolete, use IZeroExV2TradeRequest)

1
export declare interface IZeroExTradeRequest {
2
signedOrder: IZeroExOrderSigned;
3
}
Copied!

IZeroExV2TradeRequest

1
export declare interface IZeroExV2TradeRequest {
2
signedOrder: IZeroExV2OrderSigned;
3
metadata: IZeroExV2OrderMetadata;
4
}
Copied!

IConversionData

1
export declare interface IConversionData {
2
rate: string;
3
amount: string;
4
}
Copied!

IMarginLevel

1
export declare interface IMarginLevel {
2
initialMarginAmount: string;
3
maintenanceMarginAmount: string;
4
currentMarginAmount: string;
5
}
Copied!

IInterestStatus

1
export declare interface IInterestStatus {
2
lender: string;
3
interestTokenAddress: string;
4
interestTotalAccrued: string;
5
interestPaidSoFar: string;
6
}
Copied!

IProfitStatus

1
export declare interface IProfitStatus {
2
isPositive: boolean;
3
offsetAmount: string;
4
positionTokenAddress: string;
5
}
Copied!