Create custom Object
A custom project is a project wich only depends on dappkit (and dappkit-launcher) to complement its own Solidity contracts.
$ npm i -s @taikai/dappkit
$ npm i -g @taikai/dappkit-launchpad$ npm i -g truffle
$ truffle compile$ npx install --save-dev hardhat
$ npx hardhat compileTranspiling and using your custom contract
$ dk-transpile -f "path/to/ContractName.json"Deploying the custom contract
import {CustomContract} from './path/to/CustomContract';
const customContract = new CustomContract({web3Host: 'http://localhost:1337', privateKey: '0xPrivateKey'});
customContract.web3Connection.start();
customContract.loadAbi();
const tx = await customContract.deployJsonAbi('arg1', 'arg2'/*, arg3, arg4, ...etc*/);
console.log('Deployed contract; Address: ', tx.contractAddress);Using the custom contract
Costumizing a custom contract proxy
Last updated