[WordPress] 外掛分享: Unicrow: Cryptocurrency escrow

首頁外掛目錄 › Unicrow: Cryptocurrency escrow
WordPress 外掛 Unicrow: Cryptocurrency escrow 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
尚無評分
381 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.0+ v1.0.0 上架:2025-03-26

內容簡介

總結:這個外掛讓將Unicrow整合到基於WooCommerce和可選Dokan建立的市場更加容易。它擴展了WooCommerce和Dokan的設置,讓管理員能夠設定其參數。

### 問題與答案
1. Unicrow外掛的支援範圍是什麼?
- Unicrow在Ethereum的Layer 2平台上運行,包括Arbitrum One和Base,支持ETH和任何ERC20代幣,例如穩定幣USDT或USDC。
2. escrow具有哪些參數?
- 每個獨立的escrow具有以下參數:賣方(應該接收款項)、市場(可選,獲得佣金)、仲裁者(可選,解決爭議)和挑戰(escrow)期間。
3. 買家什麼時候可以將資金釋放給賣家?
- 買家可以隨時將資金釋放給賣家。
4. 當挑戰期限結束後,資金可以被要求給賣家嗎?
- 是的,當挑戰期限結束後可以向賣家要求資金。
5. Unicrow是否是不可變的且無保管的?
- 是的,Unicrow是不可變的且無保管的。
6. Unicrow外掛支援的有哪些功能?
- Unicrow外掛在WooCommerce(WC)中擴展,包括在WC的設置中和結帳頁面中添加到支付方式列表中,以及將可選的賣家地址屬性添加到產品設置中,這在沒有Dokan的情況下也允許運行多供應商市場。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Unicrow: Cryptocurrency escrow」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The plugin makes it easy to integrate Unicrow into a marketplace built on WooCommerce and optionally Dokan.
It extends WooCommerce and Dokan settings to allow admins to configure its parameters
Overview
There are a few things important to understand before we get into the (very simple) setup.
About _Unicrow_
To better grasp the potential that Unicrow brings to marketplace operators, it is good to understand the protocol basics.
* Unicrow runs on Ethereum’s Layer 2s Arbitrum One and Base and supports ETH and any ERC20 token, e.g. stablecoins like USDT or USDC
* Each individual escrow has the following parameters: seller (supposed to receive the funds), marketplace (optional, gets a commission), arbitrator (optional, decides a dispute), and what’s the challenge (escrow) period.
* The Buyer can release funds to the seller at any time
* Funds can be claimed to the seller after the challenge period ends
* The Marketplace and/or arbitrator fees will be sent out when the funds are claimed or released from the escrow.
* Unicrow is immutable and non-custodial
You can read more details at docs.unicrow.io.
The Quick Start section of our documentation website includes useful information for users. Feel free to copy&paste any of the content or refer to it in your marketplace user guides.
Supported tokens
The plugin supports ETH, USDC, and USDT on Arbitrum One network. We will extend the support for Base soon and for additional tokens based on feedback and eventually make it easier for admins to add support for any tokens. In the meantime, the admins can extend support in the source code directly (see Advanced Setup below)
Supported functionality
WooCommerce
Unicrow plugin extends Wooommerce (WC) in the following ways:
* It is added to a list of payment methods in WC’s settings and on the checkout page
* It adds an optional seller address attribute to product settings - this technically allows operating a multi-vendor marketplace even without Dokan, simply by adding different seller address to different products.
* It adds a link to the transaction in Unicrow web3 app to admin emails and to the order notes.
Dokan
The plugin further adds or reuses the following to Dokan settings:
* It uses Dokan‘s admin commission as a marketplace fee parameter in Unicrow transactions
* It adds seller address parameter to vendor settings and if set, uses it in the transactions (in that case, setting seller address in product settings or WooCommerce Payment settings is not necessary)
* It adds to an email sent to the vendor a note with a link to the transaction in Unicrow web3 app
Prerequisites
WordPress plugins:

WooCommerce is a required and technically sufficient pre-requisite since Unicrow plugin hooks into its functions for setting up and for payment processing. 
While WooCommerce itself doesn’t support multi-vendor setup, Unicrow extends product settings for seller address attribute.
That means if an admin doesn’t want to complicate things with multiple sellers and an additional plugin such as Dokan, but wants to be able to process payments to different addresses for different products, the combination of WC and Unicrow allows for this.
(Optional) Dokan for full multi-vendor functionality.

Other/Crypto-related prerequisites for different actors:

Marketplace operator

A secure wallet able to receive fees (if applicable) on the supported network
An online web3 wallet to provide arbitration service loaded with a little bit bit of ETH to pay for gas costs 
(optional) An online web3 wallet that would regularly claim payments to _sellers as a service to them (for simplification it can be done also from the Arbitrator wallet)

Buyer

A web3 wallet with sufficient balance to pay the purchase and a little bit of ETH on the supported network

Seller

An Ethereum address to receive the supported tokens on the supported network

Setting Up
Follow these steps to set up Unicrow with WooCommerce and, optionally, Dokan
1. Open WordPress Admin Console
1. Install and activate WooCommerce, Unicrow WooCommerce plugin, and optionally Dokan
2. Open WooCommerce → Settings → Payments and press Manage next to Unicrow
3. Enter the values per your preference:
* Default Seller Address: If you plan to receive all payments to one address, paste that address here. Leave it empty if you plan to set seller address per product or (in Dokan) per vendor
* Marketplace Address: If you plan to collect a commission directly from Unicrow to your wallet, paste its address here. This can be a cold wallet or even an exchange address as long as it supports receiving the tokens you chose on the supported network (currently Arbitrum One TODO: add link to arbitrum guide).
* Marketplace Commission: Leave empty if you want the plugin to reuse Dokan commission settings or if you don’t plan to charge a commission.
* Challenge Period: How long a buyer can challenge the payment. After this, the seller can claim the payment.
* Arbitrator address: An address of a wallet account from which you will resolve disputes. The address should be funded with a little bit of ETH for gas fees and easy to access and make transactions from, e.g. a browser or even a mobile wallet. It won’t hold customer funds at any point so it can be “hot”.
* Arbitrator fee: Arbitrator fee in %. If the marketplace operator is an arbitrator too, can leave this at 0.
* Accepted tokens: Currently supporting ETH, USDT, USDC. We’d like your feedback which ones we should prioritize and will eventually let you manage a custom list (which you of course can still do by opening the plugin code and editing config.php 🙂
4. If you use Dokan, you can set seller address per vendor in Users -> All Users -> Edit -> Unicrow Vendor Options
Advanced Setup
Please don’t hesitate to contact us at [email protected] to suggest improvements, but in the meantime if you want to add some other ERC20 token to the list or switch the plugin to support Base, you can do it by editing the plugin code using a plugin like WPIDE:
* To add a custom ERC20 token, edit config.php
* In this case, we’d recommend to edit the description to reflect this too
* To switch to Base, edit src/class-wc-gateway-unicrow.php and change 'chainId' => 42161, to 8453
External services
The plugin reads ETH price from Coingecko’s public API (api.coingecko.com).
It also connects to Unicrow’s REST API to create a payment request in Unicrow’s app. Subsequently it redirects a user to the app to pay the re request and uses the provided callback url to send the user back to the confirmation page.
The data submitted to the REST API are:
* order price
* order number
* buyer, seller, marketplace, and arbitrator ETH addresses
* marketplace and arbitrator commissions
* escrow period

延伸相關外掛

文章
Filter
Apply Filters
Mastodon