Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Pancake Swap with LINE Chatbot
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
LINE Developers Thailand
October 16, 2021
Technology
270
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Pancake Swap with LINE Chatbot
LINE Developers Thailand
October 16, 2021
Transcript
36 slides
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!
More Decks by LINE Developers Thailand
See All by LINE Developers Thailand
The Human Advantage: Outperform The Algorithm
linedevth
0
100
The Scale Saga: From Specs to 10x Engineering
linedevth
0
78
Turning Repos into the Product Second Brain with an LLM Wiki
linedevth
0
240
Beyond the Bottleneck: Infra for What's Next
linedevth
0
72
Harness & Loop Engineering: How We Let AI Agents Build Production Code Safely, Fast, and On Repeat
linedevth
0
160
Turning LINE Conversations into AI-Powered Workflows
linedevth
0
68
How to teach your AI Agent with Agent skills
linedevth
1
260
Reinventing Motor Insurance with AI Agent by AXA and ZWIZ.AI
linedevth
0
57
AI Infrastructure at Speed: Governance Without the Drag
linedevth
0
83
Other Decks in Technology
See All in Technology
RAGの改善を速く回すための評価基盤
yosukeyoshida
6
3.3k
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
450
閉域網でのAPI公開の選択肢全部比較!
takano0131
4
570
エンタープライズIAMについて - ID・権限をどう統制するか
oidfj
1
210
信頼性を犠牲にせず、PR マージからデプロイまで人の介入を完全にゼロにするまでの道のり
knwoop
2
740
落とし穴にハマってわかった 開発生産性を測るときに気をつけたいこと
munakata
3
420
MCPでネットワーク障害調査を自動化する前に直すべき3つのこと
yama3133
1
630
AI対話型分析を作成し、リリースするまでの話 / The Road to Release: Buiding AI Conversational Analytics
yappli_developers
0
170
共通基盤の実装に Kotlin - Quarkus を選定した理由と採用したアーキテクチャ
nealle
1
140
こんなに変わった! AWSネットワークの常識
shotashiratori
16
11k
SREのためのFinOps入門
muziyoshiz
3
1.6k
エンタープライズ事業未経験のデータ屋、 AI時代にN回撃沈する.pdf
ryoskdara_
0
150
Featured
See All Featured
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
640
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
The Art of Programming - Codeland 2020
erikaheidi
57
15k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
530
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1.1k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
610
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Building the Perfect Custom Keyboard
takai
2
960