Advanced technical topics and development patterns for Phala Network.
phala-node
: The Substrate blockchain nodepRuntime
: The TEE runtime. Contracts run in pRuntime
pherry
: The Substrate-TEE bridge relayer. Connects the blockchain and pRuntime
Phala architecture overview
pRuntime
to send Commands and Queries.
npm
, you will see conflicting/duplicated packages. yarn
will not have these errors. Until this problem is solved, it is best to use yarn
.npm
and npx
commands do not work and will report an error invalid format for V0 (detected) contract metadata
. Opt to use yarn
until the problem is resolved.stacks/
has been created
npm
and npx
commands do not work and will report an error invalid format for V0 (detected) contract metadata
. Opt to use yarn
until the problem is resolved.npm
and npx
commands do not work and will report an error invalid format for V0 (detected) contract metadata
. Opt to use yarn
until the problem is resolved.npm
and npx
commands do not work and will report an error invalid format for V0 (detected) contract metadata
. Opt to use yarn
until the problem is resolved.-e
flag will make devPHAse to execute test without setting up temporary stack but using existing one.
npm
and npx
commands do not work and will report an error invalid format for V0 (detected) contract metadata
. Opt to use yarn
until the problem is resolved.0x8e132d6bdebe37824b31df98669063d52d25d7eb0c40358c7f0e47876bc8a879
modify contractIds variable in scripts/get-logs.ts
then execute the script to get logs.
phala-blockchain
project, run this to clean things up:
ws://localhost:19944
, and the pruntime is at http://localhost:18000
.
After you start the node and the pruntime, you need set up Phat Contract environment once. This can be done with our phala-blockchain-setup repo:
RPC Endpoint
to ws://localhost:19944
, or ws://localhost:9944
if you start the chain via the devPHAse approach, and change the PRuntime field accordingly.
Donβt forget to claim some Test-PHA
s, theyβre required to deploy Phat Contracts and send transactions.
custom endpoint
to ws://localhost:9944
and then click the switch
button to connect to it.
Congratulations! Now you have a fully qualified local development environment!