Coder Social home page Coder Social logo

seb-icp / invoice-canister Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dfinity/invoice-canister

0.0 0.0 0.0 10.67 MB

Providing an example and simplified experience for accepting payments in smart contracts

License: Apache License 2.0

Shell 1.38% Motoko 66.92% Makefile 0.71% Dhall 0.25% JavaScript 30.75%

invoice-canister's Introduction

Invoice Canister

This project provides a simple interface for creating and paying invoices in various tokens on the Internet Computer. It is a custodial solution, intended to be a simple, drop-in payments solution for any canister. To read more about the design of the canister, see the Design Doc.

Integrating with the Invoice Canister

Include this code in your dfx.json and follow our self-hosted example: TODO

Getting Started - Development

Make sure you have followed the DFX installation instructions from https://smartcontracts.org.

Run the install-local.sh script to install the ICP ledger and and the invoice canister on your device. You can make calls using the dfx sdk, or you can see test cases running through the flows under the test directory.

Testing

To test, you will need to install moc from the latest motoko-<system>-<version>.tar.gz release. https://github.com/dfinity/motoko/releases.

Then, install Vessel following the guide at https://github.com/dfinity/vessel.

You will also need to install wasmtime. For macOS, you can install with brew install wasmtime. For Linux, you can install with sudo apt-get install wasmtime.

To run unit tests, use make test.

To run the end-to-end JavaScript tests, first install fresh with with ./install-local.sh. Then, run npm test.

invoice-canister's People

Contributors

crusso avatar krpeacock avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.