Appearance
DLPC
DLPC
class serves as the core interface for interacting with the associated DLPC contract, database, and key management modules. It enables a wide range of operations, including managing DLPC instances, retrieving details, and facilitates seamless integration with both on-chain and off-chain data.
Creating Instances
new Dlpc( database: Database, id: string
)
Creates a new instance of Dlpc
linked to a specific DLPC ID, providing access to the database and contract functionalities.
Properties
dlpc.id ⇒
string
The unique identifier representing the DLPC ID.dlpc.database ⇒
The SKC CMS Class that implements methods for DB Operations, allowing interaction with a connected database.dlpc.contract ⇒
DlpcContract
| undefined
The DlpcContract instance connected to the DLPC ID.This property is populated after calling the `connectContract()` method.
Static Methods
dlpc.prepareDeployTx ( provider: Provider, address: string
, IdPredictionOptions: IdPredictionOptions ) ⇒ Promise < TxData
>
Prepares the transaction data for deployment using the factory contract and the provided address prediction options.
dlpc.connectContract ( contractRunner: Signer | Provider ) ⇒ this
Connects the DLPC to the Dlpc Contract using either a Signer
or Provider
, allowing interactions related to the smart contract.
dlpc.predictContractAddress ( input: any
, factoryAddress: string
, salt: string
) ⇒ Promise < string
>
Predicts the address of a contract before it is deployed using the CREATE2
opcode. This method is useful when deploying contracts with a known salt value.
dlpc.generateSalt ( input: string
) ⇒ string
Generates a sha256
hash from the provided input, which is used as a salt in contract address prediction.
For more details, visit Static Method Implementation Reference
Instance Methods
dlpc.prepareDeployTxFromTracker ( signer: Signer, factoryAddress: string
) ⇒ Promise < TxData
>
Prepares the transaction data for deploying the DLPC contract from the tracker by generating the required transaction data using the factory contract.
dlpc.getAllDetails () ⇒ Promise < any >
Fetches all details of the DLPC from the database, contract, and verifiable sources.
<TODO: not implemented in SDK>
dlpc.getVerifiableDetails () ⇒ any
Fetches verifiable details from the contract for verification purposes.
<TODO: not implemented in SDK>
dlpc.getAssessibleDetails () ⇒ any
Retrieves accessible details from the contract.
For more details, visit Instance Method Implementation Reference