Communicating with Portal
Portal is The Main Gateway to Trustless Staking
πPortalPortal utilizes a Modular Architecture build on top of an Isolated Storage.
πIsolated StorageTYPE
Representation of an Operator' storage space:
const OPERATOR = {
"CONTROLLER": <address>,
"NAME": <bytes>,
"TYPE": 4 <uint>,
"initiated": <uint>,
"maintainer": <address>,
"totalProposedValidators": <uint>,
"totalActiveValidators": <uint>,
"feeSwitch": <uint>,
"priorFee": <uint>,
"fee": <uint>,
"periodSwitch": <uint>,
"priorPeriod": <uint>,
"validatorPeriod": <uint>,
"wallet": <uint>,
"released": <uint>
};Representation of a Pool's storage space:
Reading variables from Portal
First, some helpers:
Reading UINT variable:
Reading ADDRESS variable:
Reading BYTES variable:
Reading Arrays from Portal
Reading UINT array:
Reading ADDRESS array:
Reading BYTES array:
Reading Relational Data from Portal
Reading UINT data:
Reading ADDRESS data:
Reading BYTES data:
Thats it!
Last updated