@polkadot/types#Type TypeScript Examples

The following examples show how to use @polkadot/types#Type. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EventData.ts    From gear-js with GNU General Public License v3.0 6 votes vote down vote up
export class ExecutionResult extends Type {
  public get isSuccess(): boolean {
    return this.isSuccess;
  }

  public get isFailure(): boolean {
    return this.isFailure;
  }

  public get asSuccess(): Null {
    return this.asSuccess;
  }

  public get asFailure(): Bytes {
    return this.asFailure;
  }
}