-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace account contracts with account deploys * add account contracts * add AccountContract Entity instead of any * Update mex.token.charts.spec.ts --------- Co-authored-by: tanghel <tanghel@live.com>
- Loading branch information
Showing
9 changed files
with
139 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Field, Float, ObjectType } from "@nestjs/graphql"; | ||
import { ApiProperty } from "@nestjs/swagger"; | ||
import { AccountAssets } from "src/common/assets/entities/account.assets"; | ||
|
||
@ObjectType("AccountContract", { description: "Account contract object type." }) | ||
export class AccountContract { | ||
constructor(init?: Partial<AccountContract>) { | ||
Object.assign(this, init); | ||
} | ||
|
||
@Field(() => String, { description: 'Address for the given account.' }) | ||
@ApiProperty({ type: String }) | ||
address: string = ""; | ||
|
||
@Field(() => String, { description: 'DeployTxHash for the given account.' }) | ||
@ApiProperty({ type: String }) | ||
deployTxHash: string = ""; | ||
|
||
@Field(() => Float, { description: 'Timestamp for the given account.' }) | ||
@ApiProperty({ type: Number }) | ||
timestamp: number = 0; | ||
|
||
@Field(() => AccountAssets, { description: 'Assets for the given account.', nullable: true }) | ||
@ApiProperty({ type: AccountAssets, nullable: true, description: 'Contract assets' }) | ||
assets: AccountAssets | undefined = undefined; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters