@hypernetlabs/objects
Version:
Objects and types shared by the Hypernet Protocol
21 lines • 1.12 kB
TypeScript
import { BigNumberString } from "./BigNumberString";
import { EthereumContractAddress } from "./EthereumContractAddress";
/**
* Represents the current balance of a specific asset in the channel.
* @param assetAddress the Ethereum address of the asset type
* @param totalAmount the total amount of the asset that has been deposited for use by the Hypernet Protocol.
* @param lockedAmount the amount of the asset that is currently in use in pending tranfers
* @param freeAmount the amount of the asset that is available for sending in transfers
*/
export declare class AssetBalance {
channelAddress: EthereumContractAddress;
assetAddress: EthereumContractAddress;
name: string;
symbol: string;
decimals: number;
totalAmount: BigNumberString;
lockedAmount: BigNumberString;
freeAmount: BigNumberString;
constructor(channelAddress: EthereumContractAddress, assetAddress: EthereumContractAddress, name: string, symbol: string, decimals: number, totalAmount: BigNumberString, lockedAmount: BigNumberString, freeAmount: BigNumberString);
}
//# sourceMappingURL=AssetBalance.d.ts.map