Skip to content

decentldotland/molecule

Repository files navigation

@decentdotland/molecule

An app store for MEM smart contract integrations

Synopsis

Molecule is a developer tooling API for MEM developers that's built on top of the deterministicFetch feature. molecule.sh is composed of multiple reusable MEM components/codes to facilitate writing MEM functions and extend their functionalities.

Build & run

git pull https://github.com/decentldotland/molecule.git

touch .env 

npm install && npm run molecules

Note: copy the parameters from the .env.example and fill the values with your API tokens

CHAT_API_TOKEN=...
OPENAI_API_KEY=...
OPENAI_ORGANIZATION=...

molecule.sh structure

Tree

molecules/
├── ar/
│   └── tx-gql ~> atom
└── evm/
├── └── signer
└── sol/ ~> molecule
├── └── auth
└── zil/
├── └── zil-auth
├── stx/
│   └── stx-auth
└── substrate/
├── └── substrate-auth
└── trx/
├── └── trx-auth
└── icp/
├── └── icp-auth
└── ton/
├── └── ton-auth/
└── massa/
├── └── massa-auth
└── fuel/
├── └── fuel-auth
└── tez/
├── └── tez-auth
└── aptos/
└── └── aptos-auth/
└── nostr/
    └── nostr-auth
└── exm/
└── └── exm-bundlr
└── near/
└── └── n-view-state/
└── ever/
├── └── tx
└── redstone/
└── └── price
└── ark/
├── ├── resolve
├── └── state
│   └── soark/domain
└── ai/
└── └── chatgpt
└── └── gpt3

Endpoints

molecule endpoint atoms stability
Arweave (ar) ar.molecule.sh tx-gql ota mime ar-auth 🟩
EVM (evm) evm.molecule.sh signer 🟩
Solana (sol) sol.molecule.sh auth 🟩
Zilliqa (zil) zil.molecule.sh zil-auth 🟩
Stacks (stx) stx.molecule.sh stx-auth 🟩
Substrate.io (substrate) substrate.molecule.sh substrate-auth 🟩
TRON (trx) trx.molecule.sh trx-auth 🟩
Internet Protocol (ICP) icp.molecule.sh icp-auth 🟩
TON (ton) ton.molecule.sh ton-auth 🟩
Massa (massa) massa.molecule.sh massa-auth 🟩
Fuel Network (fuel) fuel.molecule.sh fuel-auth 🟩
Tezos (tez tez.molecule.sh tez-auth 🟩
Aptos (aptos aptos.molecule.sh aptos-auth 🟩
Nostr (nostr nostr.molecule.sh nostr-auth 🟩
EXM (exm exm.molecule.sh exm-bundlr 🟥
NEAR (near) near.molecule.sh n-view-state 🟩
Everpay (ever) ever.molecule.sh tx 🟩
Redstone (redstone) redstone.molecule.sh price 🟩
Ark Protocol (ark) ark.molecule.sh state resolve soark/domain 🟩/🟨
Randomization (rand) rand.molecule.sh generate 🟩/🟨
AI (ai) ai.molecule.sh gpt3 🟩/🟨

API path structure

{molecule-name}.molecule.sh/{atom-name}/{argument1}/{argument2}

Examples

The following MEM contracts integrate molecule.sh atoms to achieve certain functionalities:

  • MEM with EVM : allows MEM contracts to be fully compatible with action.caller as EVM EOA. example

  • Fetch Arweave TX metadata: fetch L1 or bundled Arweave TX object. example

  • Convert an Arweave public key to Arweave address. example

  • Lucky draw by randomization powered by random.org - example

  • Solana authentication: Simple name registry contract. example

  • Zilliqa authentication: Simple name registry contract. example

  • Stacks authentication: Simple name registry contract. example

  • Substrate.io authentication: Simple name registry contract. example

  • TRON authentication: Simple name registry contract. example

  • ICP authentication: Simple name registry contract. example

  • TON authentication: Simple name registry contract. example

  • Massa authentication: Simple name registry contract. example

  • Fuel authentication: Simple name registry contract. example

  • Tezos authentication: Simple name registry contract. example

  • Aptos authentication: Simple name registry contract. example

  • Redstone price oracle. example

  • Decentralized Public Square using evm-auth & exm-bundlr atoms. example

  • Decentralized Public Square using nostr-auth & exm-bundlr atoms. example

  • Getting Ark Protocol identity object. example

  • GPT3 integration in a smart contract. example

License

This project is licensed under the MIT License