ForgeCrowdBookWe don't sell the fish – we give you the rod.

Paying in Ğ1: June Shop and June Market

This chapter is about money that is different. Ğ1 (say "June") is a currency that no bank creates and no state issues. Every member creates a small share of new money every day, the same for everyone. I use it in my own projects, and ForgeCMS speaks it natively: a shop can sell for Ğ1, a box can collect donations, and a whole market can run on it.

You can skip this chapter if Ğ1 does not interest you. But read the first section: it may.

Goal

By the end of this chapter you will know:

  • what Ğ1 is, in five minutes,
  • how a ForgeCMS shop takes Ğ1 without holding anyone's money,
  • how to collect donations,
  • how to run a community market, the June market.

Ğ1 in five minutes

Ğ1 runs on Duniter, a free software blockchain, since 2017. What makes it different:

  • A universal dividend. Every certified member receives new Ğ1 every day, the same amount as everyone else. Money is created by people, not by banks lending it.
  • A web of trust. To become a member, you are certified by five members who know you personally. That keeps fake accounts out without any company checking your ID.
  • A wallet is an address like g1L7nKUv… and an app on your phone or computer, such as Cesium or Ğecko. You can have a wallet without being a member; you just do not receive the dividend.

People use Ğ1 at local markets, for services between neighbours, in projects like ours. It is not for speculation, and it is not a way to get rich. It is a way to trade with each other without the banks in the middle.

The Ğ1 shop

The shop of the last chapter takes Ğ1 with one more line in app.sml:

Shop {
    wallet: "g1..."        // your wallet address
    notify: "shop@mybakery.com"
}

and a Ğ1 price on the product: price: "5" (in Ğ1). A product with price and priceEur lets the buyer choose.

How a Ğ1 payment works:

  1. The buyer orders and sees the payment page: your wallet, the exact amount and the order number, such as G1-K3F9QX2M.
  2. They pay from their own wallet app, with the order number as the comment.
  3. ForgeCMS watches your wallet through the public Duniter index, once a minute. When a payment with that order number arrives and is confirmed by a few blocks, the order is paid: the buyer and you get a mail, a digital product is delivered.

The important part: your server holds no keys and no money. It only reads the public list of payments to your wallet, like anyone could. The money goes from the buyer's wallet straight into yours. There is nothing on the server that a thief could empty.

If someone pays without an order number, you get an "unassigned payment" mail, so nothing is lost.

Donations

The Donate box shows your wallet, a suggested comment and example amounts:

Donate { title: "Support the village oven"  comment: "donation"  amounts: "10 50 100" }

The wallet always comes from app.sml, never from the page. When a payment with a donation word in the comment arrives, you get a "donation received" mail.

The June market

The market is the biggest module: a marketplace where members of a community offer goods and services for Ğ1, or post what they are looking for. Think of a village notice board that works.

Please add a June market at /market called "Village Market". I moderate it
(me@mybakery.com). The market rules are at /market/rules.

In app.sml:

Market {
    path:         "/market"
    title:        "Village Market"
    admins:       "me@mybakery.com"
    terms:        "/market/rules"
    privacy:      "/privacy"
    featuredTags: "bread vegetables honey repairs"
}

On the page: Market { }.

The June market

For vendors: they click "Post an offer", log in with an emailed link, fill in a profile (name, place, optionally their wallet) and post listings: title, description, photos, hashtags, price in Ğ1 or "on request". Four kinds: goods, services, digital content, and "wanted".

For visitors: search by words, place or postcode, filter by hashtag, and write to a vendor through a form. The vendor's email address stays hidden until they answer.

For you, the admin: at /market/admin you approve the first listing of every new vendor (later ones go online at once), see reports from visitors, remove listings and block vendors. When you remove something, the vendor gets a mail with the reason, as the EU's Digital Services Act requires.

Member badge: a vendor whose wallet belongs to a certified Ğ1 member gets a ✓ badge with their member name. Visitors can see who is part of the web of trust.

Listings expire after 90 days, with a reminder a week before and a one-click renewal. The market stays fresh by itself.

Direct purchase and a market fee

Vendors with a confirmed wallet can allow direct purchase: the buyer orders on the listing page and pays the vendor's wallet with the order number, and ForgeCMS sees the payment and mails both sides, like in the shop. Digital content (PDF, e-books, music) is delivered by download link.

If you run the market for a community and want it to carry its own costs, add your market wallet and a fee:

    wallet: "g1..."
    fee:    "3%"

Vendors who allow direct purchase accept the fee. On the first of every month each gets a statement of the fees of their sales, payable to the market wallet. An unpaid statement hides their listings after 30 days until it is paid. The buyer's money always goes to the vendor; the market never holds it.

The market at crowdware.info/markt runs exactly like this, and was tested with a real purchase.

Pitfalls

  • A payment is not recognised: the order number must be in the comment. A few minutes of waiting are normal: payments count after ten blocks.
  • The Donate box does not show: Shop { } needs a valid wallet address.
  • Vendors do not get the badge: their wallet must be confirmed (they get a mail) and belong to a certified member.
  • Moderating takes time: with moderate: "first" (the default) only a vendor's first listing waits; trusted vendors then post freely.

What you learned

  • Ğ1 is a currency created equally by its members, with a web of trust instead of banks.
  • The shop takes Ğ1 with a wallet in Shop { }: buyers pay directly with the order number as comment, and the server holds no keys and no money.
  • Donate { } collects donations to your wallet.
  • The June market is a community marketplace with profiles, moderation, member badges, direct purchase and an optional market fee.