Use Pink Extension
All the unique capabilities of Phat Contract is implemented in pink-extension. Informally speaking:
$ Phat\ Contract = ink! + Pink\ Extension $
It is worth noting that the Phat Contract is not a trivial extension of ink! contract since all these extra functions only work under the off-chain computation.
Pink Extension Functions
|Functionality||Function Name||Query Support||Transaction Support|
Refer to our Phat Hello World contract to see how you can import these functions to your contract.
The pink-extension contains the fundmental functions of Phat Contract. There are also many useful crates and repositories which make developing Phat Contract easy.
Use Storage Services
pink-s3 enables you to store data to any storage services with S3-API support. Your candidates include:
- Amazon S3 - 5GB, 12 months free
- 4everland - 5GB free on IPFS and 100MB Free on Arweave
- Storj - 150GB free
- Filebase - 5GB free
Cross-chain (Ethereum) Operations
With its confidentiality and HTTP request support, you can safely store an Ethereum account in Phat Contract and use it to operate an Ethereum RPC node to do any cross-chain operations. Such pattern can be easily extended to support other blockchains.
pink-web3 provides the cross-chain operation support for Ethereum.
- fat-contract-examples contains the official examples of Phat Contract. The examples are up-to-date, and may use some not-yet-released features;
- awesome-fat-contracts collects the learning materials and some Phat Contract examples from previous hackathon submissions.