当前位置:网站首页>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
边栏推荐
- Summary of problems during xampp Apache installation
- Leetcode 984. 不含 AAA 或 BBB 的字符串(网友思路)
- 关于KALI使用xshell连接
- SAAS 服务的优势都有哪些
- C comparison of the performance of dapper efcore sqlsugar FreeSQL hisql sqlserver, an ORM framework at home and abroad
- curl: (56) Recv failure: Connection reset by peer
- Gradle download slow or unable to download
- Fluent的msh格式网格学习
- Redis bloom filter and cuckoo filter
- Implement a ThreadLocal by yourself
猜你喜欢

可转债策略之---(摊饼玩法,溢价玩法,强赎玩法,下修玩法,双低玩法)

GNN notes: message propagation model

Comprehensive analysis of Seata distributed transaction at and XA

Viewing splitchunks code segmentation from MPX resource construction optimization

@Component与@Configuration区别

ICML 2022 | 基于解耦梯度优化的可迁移模仿学习方法

Real test = "half product + Half development"?

【 OpenGL 】 Random Talk 1. The camera rotates around a point in the space by dragging the mouse

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

手把手教你在windows上安装mysql8.0最新版本数据库,保姆级教学
随机推荐
机器人不需要保养和出界也能拿金牌是一样一样的
我的远程办公初体验 | 社区征文
SpingMVC请求和响应
Kubernetes部署Dashboard(WEB UI管理界面)
InheritableThreadLocal 在线程池中进行父子线程间消息传递出现消息丢失的解析
[untitled]
What is the follow-up plan of infotnews | meta in the metauniverse?
Mysql高可用集群–MHA
GNN notes: message propagation model
从Mpx资源构建优化看splitChunks代码分割
6.25atcoderabc257e - addition and multiplication 2
535. TinyURL 的加密与解密 / 剑指 Offer II 103. 最少的硬币数目
线段树、树状数组模板(复制粘贴确实好用)
深圳内推 | 深圳计算科学研究院招聘机器学习助理工程师(校招)
iNFTnews | Meta在元宇宙中的后续计划会是什么?
自旋电子学笔记-张曙丰
windows平台下的mysql启动等基本操作
Practice | solution for image upload, rotation and compression on mobile terminal
Interrupt怎么用
@Component与@Configuration区别