Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
Merging for Release V2.0.0
Browse files Browse the repository at this point in the history
Merge pull request #16 from argoapp-live/dev
  • Loading branch information
rekpero authored Oct 4, 2022
2 parents 2e4d2ea + 2f3a494 commit 95f4869
Show file tree
Hide file tree
Showing 20 changed files with 16,440 additions and 1,915 deletions.
65 changes: 27 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,34 @@
```
__
| \
______ ______ __ __ ______ ____ ______ _______ _| $$_ _______ __ _______
/ \ | \ | \ | \| \ \ / \ | \| $$ \ / \ | \ / \
| $$$$$$\ \$$$$$$\| $$ | $$| $$$$$$\$$$$\| $$$$$$\| $$$$$$$\\$$$$$$ | $$$$$$$ \$$| $$$$$$$
| $$ | $$ / $$| $$ | $$| $$ | $$ | $$| $$ $$| $$ | $$ | $$ __ \$$ \ | \ \$$ \
| $$__/ $$| $$$$$$$| $$__/ $$| $$ | $$ | $$| $$$$$$$$| $$ | $$ | $$| \ _\$$$$$$\ __ | $$ _\$$$$$$\
| $$ $$ \$$ $$ \$$ $$| $$ | $$ | $$ \$$ \| $$ | $$ \$$ $$| $$| \ | $$| $$
| $$$$$$$ \$$$$$$$ _\$$$$$$$ \$$ \$$ \$$ \$$$$$$$ \$$ \$$ \$$$$ \$$$$$$$ \$$__ | $$ \$$$$$$$
| $$ | \__| $$ | \__/ $$
| $$ \$$ $$ \$$ $$
\$$ \$$$$$$ \$$$$$$
```
#### Typescript library for working with the Payment Contracts in ArGo
# Desub.JS

#### Typescript library for working with the decentralised subscription contracts in Spheron

> Important Notice: ArGo is in its Beta stage. If you have a suggestion, idea, or find a bug, please report it! The ArGo team will not be held accountable for any funds lost.
## About Spheron

## About ArGo
ArGo is a simple & powerful platform to deploy your frontend app to Decentralised Storage Protocols where your app will live for eternity.
Spheron is a marketplace to access all your web3 infrasructures.

## Build argo-payments-js
Follow below steps to build argo-payments-js in local
## Build desub-js

Follow below steps to build desub-js in local

> Note: Our current latest stable branch is Master. After clone make sure you are on master branch
- Clone argo-payments-js code into your local by using `git clone https://github.com/argoapp-live/argo-payments-js.git`
- Install packages using either yarn or npm from root folder `yarn` or `npm install`
- Run `yarn build` or `npm run dev`


## Run argo-payments-js tests
- Clone argo-payments-js code into your local by using `git clone https://github.com/argoapp-live/argo-payments-js.git`
- Install packages using either yarn or npm from root folder `yarn` or `npm install`
- Make sure you add all the values in `.env` file before running tests.
- Run `yarn test` or `npm test`.
- A sample env file would look like
```
COINMARKETCAP_KEY="COINMARKET_CAP_API_KEY"
BICONOMY_KEY="BICONOMY_API_KEY"
MNEMONIC_TEST="MNEMONIC_FOR_ACCOUNT"
RPC_ENDPOINT="JSON_RPC_ENDPOINT_FOR_ETHEREUM_NETWORK"
- Clone desub-js code into your local by using `git clone https://github.com/argoapp-live/desub-js.git`
- Install packages using either yarn or npm from root folder `yarn` or `npm install`
- Run `yarn build` or `npm run build`

## Run desub-js tests

- Clone desub-js code into your local by using `git clone https://github.com/argoapp-live/desub-js.git`
- Install packages using either yarn or npm from root folder `yarn` or `npm install`
- Make sure you add all the values in `.env` file before running tests.
- Run `yarn test` or `npm test`.
- A sample env file would look like

```
COINMARKETCAP_KEY="COINMARKET_CAP_API_KEY"
BICONOMY_KEY="BICONOMY_API_KEY"
MNEMONIC_TEST="MNEMONIC_FOR_ACCOUNT"
RPC_ENDPOINT="JSON_RPC_ENDPOINT_FOR_ETHEREUM_NETWORK"
```
> Note: you can ping us on discord and we will be happy to share our .env file with you

> Note: you can ping us on discord and we will be happy to share our .env file with you
1 change: 1 addition & 0 deletions build/abstracts/vendor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default abstract class implements Keyed {
abstract signMessage(m: string): Promise<string>;
abstract getSignatureParameters(signature: string): SignatureParams;
abstract abiEncodeErc20Functions(f: string, p: Array<any>): string;
abstract abiEncodeSubDepayFunctions(f: string, p: Array<any>): string;
abstract signedMessageForTx(u: string, n: number, f: string, a: string, c: number): Promise<string>;
abstract signedMessageForMultiTokenTx(u: string, n: number, f: string, tokenAddress: string, tokenName: string, c: number): Promise<string>;
}
2 changes: 1 addition & 1 deletion build/constants/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './payment';
export * from './subscription';
2 changes: 1 addition & 1 deletion build/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./payment"), exports);
__exportStar(require("./subscription"), exports);
18 changes: 16 additions & 2 deletions build/constants/payment.d.ts → build/constants/subscription.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,27 @@ export declare const SUBSCRIPTION_PAYMENT_ABI: ({
type: string;
}[];
name: string;
outputs: never[];
outputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
} | {
inputs: never[];
inputs: {
internalType: string;
name: string;
type: string;
}[];
name: string;
outputs: {
components: {
internalType: string;
name: string;
type: string;
}[];
internalType: string;
name: string;
type: string;
Expand Down Expand Up @@ -166,3 +179,4 @@ export declare const domainType: {
type: string;
}[];
export declare const ERC20Interface: string[];
export declare const SubscriptionDePayInterface: string[];
Loading

0 comments on commit 95f4869

Please sign in to comment.