当前位置:网站首页>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
边栏推荐
- Tencent cloud released the upgraded version of CDW Clickhouse to provide a fast experience for massive data real-time analysis scenarios
- curl: (56) Recv failure: Connection reset by peer
- 6.25atcoderabc257e - addition and multiplication 2
- Mysql高可用集群–MHA
- 0基础自学STM32(野火)——寄存器点亮LED
- 固态存储厂商忆联加入龙蜥社区,共建开源新生态
- Interrupt怎么用
- SAAS 服务的优势都有哪些
- 微博评论高性能高可用架构设计(架构实战营 模块五作业)
- I, a tester from a large factory, went to a state-owned enterprise with a 50% pay cut. I regret it
猜你喜欢

What are the project management systems suitable for small and medium-sized enterprises?

LSB hidden items of stream carrier based on assembly implementation

Real test = "half product + Half development"?

Leetcode 984. 不含 AAA 或 BBB 的字符串(网友思路)

MySQL foundation - multi table query

解题元宇宙,网络游戏中的多元通信方案

Review of mathematical knowledge: curve integral of type I

A simple but scalable feature normalization method

适合中小企业的项目管理系统有哪些?

After reading the complete code
随机推荐
AI and creativity
What are the project management systems suitable for small and medium-sized enterprises?
卷妹带你学jdbc—2天冲刺Day1
固态存储厂商忆联加入龙蜥社区,共建开源新生态
When MySQL RDS is collected using Flink CDC, the datetime type field will be compared with the source table after collection
Possible reasons for not triggering onreachbutton
Gradle下载慢或无法下载
如何创建虚拟形象
In depth analysis of Monai (I) data and transforms
Why is informatization ≠ digitalization? Finally someone made it clear
Actual combat | magical conic gradient
适合中小企业的项目管理系统有哪些?
Solid state storage manufacturer Yilian joins dragon dragon community to build a new open source ecosystem
Review of mathematical knowledge: curve integral of type I
反射
Mysql高可用集群–MHA
[R language data science]: Text Mining (taking Trump's tweet data as an example)
0基础自学STM32(野火)——使用寄存器点亮LED——GPIO功能框图讲解
“授权同意”落地压力大?隐私计算提供一种可能的合规“技术解”
@Difference between component and @configuration