雖然這篇deploying nx app鄉民發文沒有被收入到精華區:在deploying nx app這個話題中,我們另外找到其它相關的精選爆讚文章
在 deploying產品中有121篇Facebook貼文,粉絲數超過3萬的網紅新‧二七部隊 軍事雜談,也在其Facebook貼文中提到, 美國「星條旗報」報導,夏威夷空軍國民兵正在將多達25架的F-22戰機部署到在西太平洋地區舉行演習,防止與中國發生任何可能的衝突 目前美國將舉行「太平洋鋼鐵-2021」(Pacific Iron 2021)演習,於北馬里亞納群島的關島和天寧島一帶小型基地,分散佈署空中武力,包含約10架F-15E戰機...
同時也有1部Youtube影片,追蹤數超過7萬的網紅Appgame TH,也在其Youtube影片中提到,Afterpulse Preview Trailer by Gamevil & Digital Legends Ent. (iOS / Android) The Pulse has changed everything. The balance of power is unstable. Worl...
「deploying」的推薦目錄
- 關於deploying 在 Hungry Bear HK Instagram 的最佳貼文
- 關於deploying 在 Hungry Bear HK Instagram 的最佳貼文
- 關於deploying 在 Hungry Bear HK Instagram 的最讚貼文
- 關於deploying 在 新‧二七部隊 軍事雜談 Facebook 的最佳解答
- 關於deploying 在 DossierChannel Facebook 的最佳解答
- 關於deploying 在 Taipei Ethereum Meetup Facebook 的最讚貼文
- 關於deploying 在 Appgame TH Youtube 的最讚貼文
deploying 在 Hungry Bear HK Instagram 的最佳貼文
2021-09-24 01:23:05
🇭🇰 Root Vegan is the newest eatery to open on Central's Wellington Street with a focus on meatless delicacies. We came for lunch to taste its popular...
deploying 在 Hungry Bear HK Instagram 的最佳貼文
2021-09-17 04:03:34
🇭🇰 Mixo is one of the newest cafes to open in Sheung Wan's Noho, with a name denoting a mix of possibilities. From a menu drawing from various cuisin...
deploying 在 Hungry Bear HK Instagram 的最讚貼文
2021-09-10 11:07:09
🇭🇰 Wa-En Kappo is the latest Japanese eatery from Drawing Room Concepts, helmed by executive chef Kris Wong whose résumé reads of several Michelin eat...
-
deploying 在 Appgame TH Youtube 的最讚貼文
2015-08-07 11:00:01Afterpulse Preview Trailer by Gamevil & Digital Legends Ent. (iOS / Android)
The Pulse has changed everything. The balance of power is unstable. World leaders are deploying elite squads and the time has come for you to enter the fray. Will you restore peace or ignite the largest world armed conflict in history?
THE SHOOTER
Afterpulse is the next generation of online mobile shooters, perfectly designed for iOS. Every detail has been especially designed to take advantage of the mobile platform, capturing the essence of the console shooter. The result is over hundreds of hours of fun and intense gameplay powered by ultra-smooth and fully customizable touchscreen controls.
BECOME THE SOLDIER YOU WANT TO BE
⋆ Personalize your headgear, full body armor, equipment, and grenades or other advanced devices
⋆ Unleash your full potential. Power up, combine, and evolve 35 primary and secondary weapons with limitless possibilities
⋆ Choose your own battle style: Handgun, Shotgun, Assault, SMG, LMG, Sniper, Rockets
⋆ Show off your prestige and experience with Veteran Series weapons
⋆ Master your tactics and skills in Training mode
TOP-NOTCH MULTIPLAYER
⋆ Enter the fray with players using enhanced online matchmaking
⋆ Dive into free-for-all battles and conquer the enemy in 8-player Team Deathmatch
⋆ Jump into photorealistic urban environments with intense close quarters combat
⋆ Detect and destroy enemies on the field with tactical gadgets
CONSOLE-QUALITY FEATURES
⋆ AAA console-quality photorealistic third-person shooter
⋆ Tailor made for Metal and 64 bit
⋆ Full physically based deferred render, HDR post processing, real-time high quality shadows
⋆ Realistic skeletal animations and physics with ragdolls
⋆ PVP online matches with dedicated zone server technology for optimal player experience
OTHERS
Internet connection is required to play
Universal App and requires iOS 8.4 or later
Compatible with iPhone 5S/6/6 Plus, iPad Mini Retina, iPad Air/2
Free to play, In-app purchases optional. Seek bill payer’s permission.
**********************************************
Appgame.in.th (แอพเกม) เว็บเกมมือถืออันดับ 1 ของไทย ข่าวสารเกมฟรี, เกมฮิต, เกมดัง และ รีวิวเกม
เป็นกำลังใจโดยการ Subscribe: http://bit.ly/AppgameSub
Website: http://Appgame.in.th
Facebook: http://Facebook.com/AppgameThailand
Instagram: http://Instagram.com/AppgameThailand
Twitter: http://twitter.com/AppgameThailand
deploying 在 新‧二七部隊 軍事雜談 Facebook 的最佳解答
美國「星條旗報」報導,夏威夷空軍國民兵正在將多達25架的F-22戰機部署到在西太平洋地區舉行演習,防止與中國發生任何可能的衝突
目前美國將舉行「太平洋鋼鐵-2021」(Pacific Iron 2021)演習,於北馬里亞納群島的關島和天寧島一帶小型基地,分散佈署空中武力,包含約10架F-15E戰機和2架C-130J運輸機
deploying 在 DossierChannel Facebook 的最佳解答
หายไปหลายวัน
เพราะเซิฟ Axie ช่วงนี้มันวุ่นวายเนี่ยแหละน้าาาาาา xD
แต่ก็มีข่าวดีว่าทางตัวเกมเตรียมสนับสนุนการจัดทัวร์การแข่งขัน
https://axie.substack.com/p/axieesports
ผมขอวางแผนทัวร์ก่อน แล้วส่งไปให้เค้าคัดเลือกอีกที
หากมีคำแนะนำสามารถ Comment เพิ่มเติมได้นะครับ
deploying 在 Taipei Ethereum Meetup Facebook 的最讚貼文
📜 [專欄新文章] Optimistic Rollup 就這樣用(1)
✍️ Juin Chiu
📥 歡迎投稿: https://medium.com/taipei-ethereum-meetup #徵技術分享文 #使用心得 #教學文 #medium
ERC20 的入金、轉帳與出金
TL;DR
本文會跳過 Optimistic Rollup 的介紹而直接實際演示,關於 Optimistic Rollup 的概念與設計原理我將在日後另撰文說明,有興趣的讀者可以先參考下列三篇文章(由淺入深):1. OVM Deep Dive 2. (Almost) Everything you need to know about Optimistic Rollup 3. How does Optimism’s Rollup really work?
本文將演示一個 Optimism Rollup 範例,程式碼在這裡。
本演示大量參考了以下這兩個官方範例:optimism-tutorial、l1-l2-deposit-withdrawal。
環境設置
Git
Node.js
Yarn
Docker
Docker-compose
筆者沒有碰到環境相容問題,但是建議都升到最新版本, Node.js 使用 v16.1.0 或以上版本
Optimism 服務啟動
有關 Optimisim 的所有服務,都包裝在 Optimism 這個超大專案當中了,直接使用原始碼進行組建:
$ git clone git@github.com:ethereum-optimism/optimism.git$ cd optimism$ yarn$ yarn build
組建完成後,就可以在本機啟動服務了:
$ cd ops$ docker-compose build$ docker-compose up
這個指令會啟動數個服務,包括:
L1 Ethereum Node (EVM)
L2 Ethereum Node (OVM)
Batch Submitter
Data Transport Layer
Deployer
Relayer
Verifier
Deployer 服務中的一個參數要特別注意: FRAUD_PROOF_WINDOW_SECONDS,這個就是 Optimistic Rollup 的挑戰期,代表使用者出金(Withdraw)需等候的時長。在本篇演示中預設為 0 秒。
如果有需要重啟,記得把整個 Docker Volume 也清乾淨,例如: docker-compose down -v
Optimism 整合測試
在繼續接下來的演示之前,我們需要先確認 Optimism 是否有順利啟動,特別是 Relayer 是否運作正常,因此我們需要先進行整合測試:
$ cd optimism/integration-tests$ yarn build:integration$ yarn test:integration
確保 L1 <--> L2 Communication 相關測試通過後再繼續執行接下來的演示內容。
啟動服務及部署合約需要花費一些時間,運行一段時間(約 120 秒)之後再執行測試,如果測試結果全部皆為 Fail,可能是 Optimism 尚未啟動完成,再等待一段時間即可。
ERC20 合約部署
Optimism 啟動成功並且完成整合測試後,接下來進行 ERC20 合約的部署。筆者已將合約及部署腳本放在 optimistic-rollup-example-erc20 這個專案中:
$ git clone git@github.com:ethereum-optimism/optimistic-rollup-example-erc20.git$ cd optimistic-rollup-example-erc20$ yarn install$ yarn compile
接下來我們需要部署以下合約:
ERC20,部署於 L1
L2DepositedEERC20,部署於 L2
OVM_L1ERC20Gateway,部署於 L1
其中,ERC20 與 L2DepositedERC20 是由上面的範例專案編譯的,可以直接在範例專案中直接取得 ABI;而 OVM_L1ERC20Gateway 則是由 Optimism 編譯的,屬於 Optimistic Rollup 協定的一部分,無法直接在範例專案中取得 ABI。
因此在部署以上三個合約前,我們需先手動將 OVM_L1ERC20Gateway 編譯後的生成品 (Artifacts)——即 ABI,複製到此專案中:
$ cp -r ~/projects/optimism/packages/contracts/artifacts/contracts/optimistic-ethereum/OVM/bridge/tokens/OVM_L1ERC20Gateway.sol ~/projects/optimistic-rollup-example-erc20/artifacts/contracts/
OVM_L1ERC20Gateway 只部署在 L1 上,顧名思義它就是 L1 <=> L2 的「門戶」,提供 Deposit / Withdraw 兩個基本功能,使用者必須透過這個合約來進出 L2。
雖然 OVM_L1ERC20Gateway 是 Optimistic Rollup 官方提供的合約。但是開發者也可以依需求自行設計自己的「門戶」。
接下來,我們直接用腳本進行部署:
$ node ./deploy.jsDeploying L1 ERC20...Deploying L1 ERC20...L1 ERC20 Contract Address: 0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20fDeploying L2 ERC20...L2 ERC20 Contract Address: 0x67d269191c92Caf3cD7723F116c85e6E9bf55933Deploying L1 ERC20 Gateway...L1 ERC20 Gateway Contract Address: 0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07Initializing L2 ERC20...
ERC20 入金、轉帳與出金
ERC20 入金(L1 => L2)
目前餘額:
在合約部署完成後,Deployer 是目前唯一有資金的帳戶,接下來我們就進行入金(Deposit),將 Deployer 的資金從 L1 搬到 L2。
首先,進入 ETH(L1) 的 Console:
$ npx hardhat console --network ethWelcome to Node.js v16.1.0.Type ".help" for more information.>
取得 Deployer / User 帳戶:
// In Hardhat ETH Console
> let accounts = await ethers.getSigners()> let deployer = accounts[0]> let user = accounts[1]
取得 ERC20 及 OVM_L1ERC20Gateway 合約物件,合約地址可以從部署訊息中取得:
// In Hardhat ETH Console
> let ERC20_abi = await artifacts.readArtifact("ERC20").then(c => c.abi)> let ERC20 = new ethers.Contract("0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20f", ERC20_abi)> let Gateway_abi = await artifacts.readArtifact("OVM_L1ERC20Gateway").then(c => c.abi)> let Gateway = new ethers.Contract("0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07", Gateway_abi)
先授權 OVM_L1ERC20Gateway 花費 ERC20:
// In Hardhat ETH Console
> await ERC20.connect(deployer).approve("0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07", 10000)> await ERC20.connect(user).approve("0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07", 10000)
注意:Deployer 及 User 都需要對 OVM_L1ERC20Gateway 進行授權,否則在接下來的出金步驟時 Relayer 會出錯
接著,在 OVM_L1ERC20Gateway 合約呼叫 Deposit:
// In Hardhat ETH Console
> await Gateway.connect(deployer).deposit(1000)
我們可以到 Optimism (L2) 的 Console 確認入金是否成功:
$ npx hardhat console --network optimismWelcome to Node.js v16.1.0.Type ".help" for more information.>
取得 Deployer / User 帳戶:
// In Hardhat Optimism Console
> let accounts = await ethers.getSigners()> let deployer = accounts[0]> let user = accounts[1]
取得 L2DepositedERC20 合約物件,合約地址可以從部署訊息中取得:
// In Hardhat Optimism Console
> let L2ERC20_abi = await artifacts.readArtifact("L2DepositedERC20").then(c => c.abi)> let L2DepositedERC20 = new ethers.Contract("0x67d269191c92Caf3cD7723F116c85e6E9bf55933", L2ERC20_abi)
確認入金是否成功:
// In Hardhat Optimism Console
> await L2DepositedERC20.connect(deployer).balanceOf(deployer.address)BigNumber { _hex: '0x03E8', _isBigNumber: true } // 1000
ERC20 轉帳(L2 <=> L2)
完成以上步驟後,目前的餘額如下:
接下來,我們在 L2 從 Deployer 轉移一部分資金給 User:
// In Hardhat Optimism Console
> await L2DepositedERC20.connect(user).balanceOf(user.address)BigNumber { _hex: '0x00', _isBigNumber: true } // 0> await L2DepositedERC20.connect(deployer).transfer(user.address, 1000){ hash: "..." ...}> await L2DepositedERC20.connect(wallet_1).balanceOf(user.address)BigNumber { _hex: '0x03E8', _isBigNumber: true } // 1000
ERC20 出金(L2 => L1)
完成以上步驟後,目前的餘額如下:
接下來,我們用 User 帳戶提領資金,在 L2DepositedERC20 合約呼叫 Withdraw:
// In Hardhat Optimism Console
> await L2DepositedERC20.connect(user).withdraw(1000){ hash: "..." ...}> await L2DepositedERC20.connect(user).balanceOf(user.address)BigNumber { _hex: '0x00', _isBigNumber: true }
最後,檢查在 L1 是否提領成功:
// In Hardhat ETH Console
> await ERC20.connect(user).balanceOf(user.address)BigNumber { _hex: '0x03E8', _isBigNumber: true } // 1000
由於挑戰期為 0 秒,因此提領幾乎無需等待時間,頂多只需數秒鐘
做完上述所有操作,餘額應該如下:
總結
本文演示了:
Optimistic Rollup 相關服務的本機部署
ERC20 L1 => L2 的入金(Deposit)
ERC20 L2 帳戶之間轉帳(Transfer)
ERC20 L2 => L1 的出金(Withdraw)
筆者未來將繼續擴充此系列的教學內容,例如 ERC721 / ERC1155 的使用方式,敬請期待。
參考資料
OVM Deep Dive
(Almost) Everything you need to know about Optimistic Rollup
How does Optimism’s Rollup really work?
Optimistic Rollup Official Documentation
Ethers Documentation (v5)
Optimism (Github)
optimism-tutorial (Github)
l1-l2-deposit-withdrawal (Github)
Optimistic Rollup 就這樣用(1) was originally published in Taipei Ethereum Meetup on Medium, where people are continuing the conversation by highlighting and responding to this story.
👏 歡迎轉載分享鼓掌