Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pancake Swap with LINE Chatbot
Search
LINE Developers Thailand
October 16, 2021
Technology
0
220
Pancake Swap with LINE Chatbot
LINE Developers Thailand
October 16, 2021
Tweet
Share
More Decks by LINE Developers Thailand
See All by LINE Developers Thailand
Dive Into The Cutting-edge LINE API Innovations
linedevth
2
650
Chat & Shop Like Never Before Unleash LINE SHOPPING API
linedevth
1
370
Develop Sales Automation Workflow on LINE
linedevth
0
330
Customer-Centricity Unleashed: Transforming Businesses with LINE Tech
linedevth
1
310
Digital Dining Journey with LINE at Bar B Q Plaza
linedevth
1
300
Elevate your video Broadcasts with Video viewing complete event
linedevth
0
180
LINE Official Notification from Zero to Hero
linedevth
1
260
LINEDEVCONF2022: Tech Vision Keynote
linedevth
1
250
The Power of LINE API in 2022
linedevth
1
240
Other Decks in Technology
See All in Technology
オーナーシップを持つ領域を明確にする
konifar
11
2.6k
SPI原点回帰論:事業課題とFour Keysの結節点を見出す実践的ソフトウェアプロセス改善 / DevOpsDays Tokyo 2024
visional_engineering_and_design
4
1.6k
0→1開発における技術選定において一番大切なこと
bicstone
1
330
転移学習とドメイン適応の基礎
kmatsui
2
570
[PlatformCon 24] Platform Orchestrators: The Missing Middle of Internal Developer Platforms?
danielbryantuk
1
180
AIQ株式会社 エンジニア向け会社紹介資料
aiqlab
0
370
The CloudCompare project by Dr. Daniel Girardeau-Montaut
kentaitakura
0
510
DevOpsメトリクスとアウトカムの接続にトライ!開発プロセスを通して計測できるメトリクスの活用方法
ham0215
1
200
検証を通して見えてきたTiDBの性能特性
lycorptech_jp
PRO
6
3.4k
現代CSSフレームワークの内部実装とその仕組み
poteboy
2
760
プロデザ! BY リクルート vol.18_リクルートのリサーチ実践組織「リサーチブーストコミュニティ」
recruitengineers
PRO
3
240
長期間TiDBを使ってきた話 @ 私たちはなぜNewSQLを使うのかTiDB選定5社が語る選定理由と活用LT / Experiences with TiDB Over Time
chibiegg
2
710
Featured
See All Featured
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
104
6.6k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
[RailsConf 2023] Rails as a piece of cake
palkan
22
3.9k
4 Signs Your Business is Dying
shpigford
175
21k
Raft: Consensus for Rubyists
vanstee
132
6.2k
The Power of CSS Pseudo Elements
geoffreycrofte
59
5k
Why Our Code Smells
bkeepers
PRO
331
56k
Ruby is Unlike a Banana
tanoku
96
10k
Being A Developer After 40
akosma
56
580k
jQuery: Nuts, Bolts and Bling
dougneiner
59
7.1k
Designing Experiences People Love
moore
136
23k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
5
1.5k
Transcript
None
PANCAKE SWAP WITH LINE CHATBOT
• DeFi, Yield Farming & PancakeSwap • Smart Contract Query
• Designing Flex Message • Rich Menu Switch Action AGENDA
What is DeFi? Decentralized finance is a system by which
financial products become available on a public decentralized blockchain network.
What is Blockchain?
What is Yield Farming? The practice of staking or lending
crypto assets in order to generate high returns or rewards in the form of additional cryptocurrency (CoinMarketCap
What is PancakeSwap?
The Problem 😢 😭 😱 Most DeFi live on web
Hard to check portfolio on mobile device on native app
Let’s Build Your Own DeFi Tracker
SMART CONTRACT QUERY PART 1
What is Smart Contract?
What is MasterChef?
Connecting to Smart Contract with Web3 JSON RPC Views, Submit
Transaction RPC Node Blockchain Client
Writing the Query Using Web3 https://medium.com/linedevth/eed4951679f3
DESIGNING FLEX MESSAGE PART 2
Designing Flex Message
Using function to represent Flex content
Using function to represent Flex content
Using function to represent Flex content
Voila!
Some Improvement? 🤔 I still need to remember my wallet
address What if I have multiple wallet address? Any easy way to store them.
RICH MENU SWITCH ACTION PART 3
What Is Rich Menu Switch Action?
1. Do an action 2. Webhook event Bot application 3.
Request Rich menu 4. Set Rich menu LINE server Client Richmenu Switching With Webhook
Richmenu Switch Action 1. Richmenu Switch Action 2. Set
Rich Menu LINE server Client
Richmenu with Wallet Address richmenu-alias-wallet1 richmenu-alias-wallet2
Richmenu with Wallet Address Message Action: 0x1234...5678 richmenu-alias-wallet1 richmenu-alias-wallet2
Richmenu with Wallet Address Richmenu Switch Action: richmenu-alias-wallet2 richmenu-alias-wallet1 richmenu-alias-wallet2
Richmenu with Wallet Address Richmenu Switch Action: richmenu-alias-wallet1 richmenu-alias-wallet1 richmenu-alias-wallet2
Richmenu with Wallet Address
Create Richmenu and set Image
Create Richmenu and set Image
Richmenu with Wallet Address
No need to remember address now!
medium.com/linedevth
THANK YOU!