当前位置:网站首页>Pancakeswap Technology: development principle of gripper robot system
Pancakeswap Technology: development principle of gripper robot system
2022-06-29 17:09:00 【KFZ433】
Pancake.php The development package is suitable for PHP The application increases rapidly to PancakeSwap The support capability of the protocol . It supports the use of own deployment BSC Application scenarios of blockchain nodes , Lightweight deployment scenarios using third-party nodes are also supported .
1、 Development package Overview
Pancake.php The development package mainly includes the following features :
One key deployment PancakeSwap agreement , Facilitate rapid development and testing
Support PancakeSwap All interfaces to the protocol , And provide developer friendly API
Support BEP20/BEP20、BNB/BEP20 And so on 、 Remove and exchange transactions
Support automatic market making price calculation and sliding point calculation
Support BSC transaction gas Dosage and gas Automatic estimation and manual setting of price
Support EIP712 Signature Authorization , Liquidity maintenance within a single transaction
Pancake.php The development package runs in Php 7.1+ In the environment , current version 1.0.0, Main categories / The interface and relationship are shown in the figure below :
Pancake.php The main code files of the development package are listed below :
2、 Use sample code 2.1 Compile contract Enter the project directory at the terminal , Execute the following command to compile PancakeSwap And the test provided by the development package Token contract :
Log in and copy ~$ cd ~/pancake.php ~/pancake.php$ bin/build-contracts
The results are as follows :
2.2 Deployment contract
First, start the development private chain at another terminal :
~$ ganache-cli -d
Then enter the project demo Catalog , Execute the following command to deploy the contract :
Log in and copy
~$ cd ~/pancake.php/demo
~/pancake.php/demo$ php deploy-contracts.php
The results are as follows :
Be careful : If you need to BSC The test chain or main chain deploys the above contract , Or use other parameters start-up ganache-cli, Need modification demo/config.php Account configuration in
边栏推荐
- 【R语言数据科学】:文本挖掘(以特朗普推文数据为例)
- Help MySQL data analysis with databend
- 如何在 PowerPoint 中向幻灯片添加 SmartArt?
- 为什么信息化 ≠ 数字化?终于有人讲明白了
- Redis布隆过滤器和布谷鸟过滤器
- 固定资产管理系统让企业动态掌握资产情况
- 2020版KALI安装教程
- Viewing splitchunks code segmentation from MPX resource construction optimization
- 深圳内推 | 深圳计算科学研究院招聘机器学习助理工程师(校招)
- @Component与@Configuration区别
猜你喜欢

从Mpx资源构建优化看splitChunks代码分割

Étalonnage de la caméra monoculaire et de la caméra binoculaire à l'aide de l'outil d'étalonnage kalibr

After eight years of testing and opening experience and interview with 28K company, hematemesis sorted out high-frequency interview questions and answers

自旋电子学笔记-张曙丰

SpingMVC请求和响应

疫情居家外包项目之协作开发| 社区征文

【现代信号处理第六次作业】

机器学习8-人工神经网络

知道创宇为能源行业资产管理助力,入选工信部2021物联网示范项目

「科普大佬说」AI与创造力
随机推荐
在线文本数字识别列表求和工具
Inheritablethreadlocal resolves message loss during message transmission between parent and child threads in the thread pool
【R语言数据科学】:文本挖掘(以特朗普推文数据为例)
Greedy Apple plans to raise the price of iphone14, which will provide opportunities for Chinese mobile phones
关于onReachButton 不触发可能原因
Perhaps in two years, ASML will be free to supply EUV lithography machines to China
第42期:MySQL 是否有必要多列分区
iNFTnews | Meta在元宇宙中的后续计划会是什么?
固定资产管理系统让企业动态掌握资产情况
Redis bloom filter and cuckoo filter
c# 国内外ORM 框架 dapper efcore sqlsugar freesql hisql sqlserver数据常规插入测试性能对比
Tencent cloud released the upgraded version of CDW Clickhouse to provide a fast experience for massive data real-time analysis scenarios
卷妹带你学jdbc—2天冲刺Day1
腾讯云发布自动化交付和运维产品Orbit,推动企业应用全面云原生化
[R language data science]: Text Mining (taking Trump's tweet data as an example)
研究所的这些优势真香!上岸率还极高!
An error is reported in the Flink SQL rownumber. Who has met him? How to solve it?
KUKA robot external axis configuration what you must know
What is the follow-up plan of infotnews | meta in the metauniverse?
Practice | solution for image upload, rotation and compression on mobile terminal