OKContract
The OKContract
component encapsulates all the necessary information and functionality related to a specific smart contract. This includes the contract's ABI, address, and methods for interacting with the contract.
Instance: One per contract (possibly reused)
Features:
- Stores contract data, including ABI and address
- Reads from the smart contract and calls methods.
Properties
Name | Type | Description |
---|---|---|
chain | AnyCell<ChainType> | Represents the blockchain network. |
isAnon | AnyCell<boolean> | Indicates if the user is anonymous. |
type | ValueCell<"contract" \| "token"> | Specifies the type, either "contract" or "token". |
dcContract | AnyCell<SmartContract> | undefined | Holds the smart contract details if applicable. |
dcToken | AnyCell<EVMToken> | undefined | Holds the EVM token details if applicable. |
abi | AnyCell<ABI> | Contains the ABI (Application Binary Interface). |
parsedAbi | AnyCell<Abi> | Contains the parsed ABI. |
abix | AnyCell<ABIExtra> | undefined | Contains additional ABI information if available. |
VRW | AnyCell<ContractFunctionValues> | Holds values for contract functions. |
envs | AnyCell<OKContractEnvs> | List of contract environments. |
env | AnyCell<Environment> | Full merge of contract environments. |
pivot | AnyCell<PivotView> | Represents the pivot view. |
P | AnyCell<PivotFunction[]> | Array of pivot functions. |
pEnv | AnyCell<Environment> | Specific environment for the pivot. |
pArgs | ValueCell<unknown> | Arguments for the pivot function. |