-
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.
Rename RentStructure to StorageScoreParameters in bindings (#1673)
* Nodejs bindings * Python bindings * Fmt * Update bindings/nodejs/lib/utils/utils.ts Co-authored-by: Thoralf-M <[email protected]> --------- Co-authored-by: Thoralf-M <[email protected]>
- Loading branch information
1 parent
d4eb814
commit 276ef19
Showing
7 changed files
with
63 additions
and
58 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 was deleted.
Oops, something went wrong.
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,34 @@ | ||
// Copyright 2023 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { u64 } from '../../utils'; | ||
|
||
/** | ||
* Defines the parameters of storage score calculations on objects which take node resources. | ||
*/ | ||
export interface StorageScoreParameters { | ||
/** | ||
* Defines the number of IOTA tokens required per unit of storage score. | ||
*/ | ||
storageCost: u64; | ||
/** | ||
* Defines the factor to be used for data only fields. | ||
*/ | ||
factorData: number; | ||
/** | ||
* Defines the offset to be applied to all outputs for the overhead of handling them in storage. | ||
*/ | ||
offsetOutputOverhead: u64; | ||
/** | ||
* Defines the offset to be used for block issuer feature public keys. | ||
*/ | ||
offsetEd25519BlockIssuerKey: u64; | ||
/** | ||
* Defines the offset to be used for staking feature. | ||
*/ | ||
offsetStakingFeature: u64; | ||
/** | ||
* Defines the offset to be used for delegation output. | ||
*/ | ||
offsetDelegation: u64; | ||
} |
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