尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
Now let's bootstrap the frontend to interact with the contract. First run the following command to update the constants and ABI in the frontend:
to interact with the contract in mainnet run:
Open http://localhost:3000 with your browser to see the result.
Go back to the code and take a special look to the folder packages/website/src/koinos. Over there you will find the following files:查看完整 README ↗Now let's bootstrap the frontend to interact with the contract. First run the following command to update the constants and ABI in the frontend:
yarn updateFrontend
to interact with the contract in mainnet run:
yarn updateFrontend mainnet
Now, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
Go back to the code and take a special look to the folder packages/website/src/koinos. Over there you will find the following files:
constants.ts: Definition of constants like contract id and rpc node. Here is also the configuration for wallet connect.abi.ts: ABI of your contract.contract.ts: Creation of the contract class to be able to interact with the blockchain. It contains the code to read data and submit transactions.wallet.ts: The submission of transactions require a signer. This file provides the code to get the signer from the principal wallets in koinos.You can also bootstrap the frontend for any contract deployed on the blockchain by referencing its contract id. The script will download the ABI and configure the website for it.
Here is an example to load the KOIN contract on harbinger:
yarn updateFrontend harbinger 1FaSvLjQJsCJKq5ybmGsMMQs8RQYyVv8ju
And for mainnet:
yarn updateFrontend mainnet 15DJN4a8SgrbGhhGksSBASiSYjGnMU8dGL
then launch the website:
yarn dev