Search
Preparing search index...
The search index is not available
Truffle Decoding and Encoding
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
@truffle/codec
Storage
Allocate
Module Allocate
Index
Classes
Unknown
Base
Contract
IdError
Interfaces
Definition
Pair
Storage
Allocation
Storage
Allocation
Info
Storage
Allocations
Storage
Member
Allocation
Variables
debug
Functions
allocate
Contract
allocate
Members
allocate
Struct
get
State
Variables
get
Storage
Allocations
storage
Size
storage
Size
And
Allocate
storage
Size
For
Type
Variables
Const
debug
debug
:
IDebugger
= debugModule("codec:storage:allocate")
Functions
allocate
Contract
allocate
Contract
(
contract
:
AstNode
, referenceDeclarations
:
AstNodes
, existingAllocations
:
StorageAllocations
)
:
StorageAllocations
Parameters
contract:
AstNode
referenceDeclarations:
AstNodes
existingAllocations:
StorageAllocations
Returns
StorageAllocations
allocate
Members
allocate
Members
(
parentNode
:
AstNode
, definitions
:
DefinitionPair
[]
, referenceDeclarations
:
AstNodes
, existingAllocations
:
StorageAllocations
, suppressSize
?:
boolean
)
:
StorageAllocations
Parameters
parentNode:
AstNode
definitions:
DefinitionPair
[]
referenceDeclarations:
AstNodes
existingAllocations:
StorageAllocations
Default value
suppressSize:
boolean
= false
Returns
StorageAllocations
allocate
Struct
allocate
Struct
(
structDefinition
:
AstNode
, referenceDeclarations
:
AstNodes
, existingAllocations
:
StorageAllocations
)
:
StorageAllocations
Parameters
structDefinition:
AstNode
referenceDeclarations:
AstNodes
existingAllocations:
StorageAllocations
Returns
StorageAllocations
get
State
Variables
get
State
Variables
(
contractNode
:
AstNode
)
:
AstNode
[]
Parameters
contractNode:
AstNode
Returns
AstNode
[]
get
Storage
Allocations
get
Storage
Allocations
(
referenceDeclarations
:
AstNodes
, contracts
:
AstNodes
, existingAllocations
?:
StorageAllocations
)
:
StorageAllocations
Parameters
referenceDeclarations:
AstNodes
contracts:
AstNodes
Default value
existingAllocations:
StorageAllocations
= {}
Returns
StorageAllocations
storage
Size
storage
Size
(
definition
:
AstNode
, referenceDeclarations
?:
AstNodes
, allocations
?:
StorageAllocations
)
:
StorageLength
Parameters
definition:
AstNode
Optional
referenceDeclarations:
AstNodes
Optional
allocations:
StorageAllocations
Returns
StorageLength
storage
Size
And
Allocate
storage
Size
And
Allocate
(
definition
:
AstNode
, referenceDeclarations
?:
AstNodes
, existingAllocations
?:
StorageAllocations
)
:
StorageAllocationInfo
Parameters
definition:
AstNode
Optional
referenceDeclarations:
AstNodes
Optional
existingAllocations:
StorageAllocations
Returns
StorageAllocationInfo
storage
Size
For
Type
storage
Size
For
Type
(
dataType
:
Type
, userDefinedTypes
?:
TypesById
, allocations
?:
StorageAllocations
)
:
StorageLength
Parameters
dataType:
Type
Optional
userDefinedTypes:
TypesById
Optional
allocations:
StorageAllocations
Returns
StorageLength
Globals
Unknown
Base
Contract
IdError
Definition
Pair
Storage
Allocation
Storage
Allocation
Info
Storage
Allocations
Storage
Member
Allocation
debug
allocate
Contract
allocate
Members
allocate
Struct
get
State
Variables
get
Storage
Allocations
storage
Size
storage
Size
And
Allocate
storage
Size
For
Type
Generated using
TypeDoc