-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixed bigint on spots * format * changelog * Prepare releases --------- Co-authored-by: Thibault Martinez <[email protected]>
- Loading branch information
1 parent
1539710
commit 4dcbc2b
Showing
11 changed files
with
8,060 additions
and
7,814 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
// Copyright 2023 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { Transform } from 'class-transformer'; | ||
import type { HexEncodedString } from '../utils/hex-encoding'; | ||
import { hexToBigInt } from '../utils/hex-encoding'; | ||
/** | ||
* Native token. | ||
*/ | ||
export interface INativeToken { | ||
export class INativeToken { | ||
/** | ||
* Identifier of the native token. | ||
*/ | ||
id: HexEncodedString; | ||
id!: HexEncodedString; | ||
/** | ||
* Amount of native tokens of the given Token ID. | ||
*/ | ||
amount: bigint; | ||
@Transform((value) => hexToBigInt(value.value)) | ||
amount!: bigint; | ||
} |
Oops, something went wrong.