Skip to content

Commit

Permalink
fix: typedefs for NST (#116)
Browse files Browse the repository at this point in the history
* 0.32.0

* fix: typedefs for NST
  • Loading branch information
troggy authored Jul 6, 2019
1 parent 4dfe4ea commit 7983bb9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,27 @@ declare module "leap-core" {
export type TransferOutputObject = {
value: BigIntType;
address: string;
storageRoot?: string;
data?: string;
};

export type OutputJSON = {
value: string;
address: string;
color: number;
storageRoot?: string;
data?: string;
};

export class Output {
constructor(valueOrObject: BigIntType | number | string | TransferOutputObject, address?: string, color?: number);
constructor(
valueOrObject: BigIntType | number | string | TransferOutputObject,
address?: string,
color?: number,
data?: string
);
public value: BigIntType;
public address: string;
public color: number;
public storageRoot?: string;
public data?: string;

public isNFT(): boolean;
public getSize(): number;
Expand Down

0 comments on commit 7983bb9

Please sign in to comment.