Skip to content

bob-chahine/molecule

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@decentdotland/molecule

composable building blocks for EXM smart contracts

Synopsis

Molecule is a developer tooling API for EXM developers that's built on top of the deterministicFetch EXM feature. molecule.sh is composed of multiple reusable EXM components to facilitate writing EXM functions.

molecule.sh structure

Tree

molecules/
├── ar/ 
│   └── tx-gql ~> atom
│   └── ota
└── evm/ ~> molecule
    └── signer

Endpoints

molecule endpoint atoms
Arweave (ar) ar.molecule.sh tx-gql ota
EVM (evm) evm.molecule.sh signer
Randomization (rand) rand.molecule.sh generate

API path structure

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

Examples

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

  • EXM with EVM : allows EXM 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

License

This project is licensed under the MIT License

About

developer API for EXM functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.6%
  • Procfile 0.4%