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

Commit

Permalink
Merge pull request #26 from spheronFdn/fil-update
Browse files Browse the repository at this point in the history
Add Native Coin Support
  • Loading branch information
arome3 authored Jun 8, 2023
2 parents a4f089c + 687f923 commit 075c023
Show file tree
Hide file tree
Showing 17 changed files with 3,926 additions and 2,405 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<p align="center">

<img src="https://img.shields.io/static/v1?label=npm&message=v2.2.0&color=green" />
<img src="https://img.shields.io/static/v1?label=npm&message=v2.3.0&color=green" />

<img src="https://img.shields.io/static/v1?label=license&message=Apache-2&color=green" />

Expand Down
4 changes: 3 additions & 1 deletion build/abstracts/deployed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ export default abstract class implements Keyed {
services: Services;
subscriptionPaymentAbi: Abi;
subscriptionPaymentContract?: Contract;
subscriptionNativePaymentAbi: Abi;
subscriptionNativePaymentContract?: Contract;
subscriptionDataAbi: Abi;
subscriptionDataContract?: Contract;
tokenPrecision?: number;
protected constructor(v: Vendor, a: Abi, e: Abi, subscriptionPayments: Abi, subscriptionData: Abi);
protected constructor(v: Vendor, a: Abi, e: Abi, subscriptionPayments: Abi, subscriptionData: Abi, subscriptionNativePayments: Abi);
at(a: string, e: string, o?: TransactOpts): Promise<boolean>;
subscriptionAt(subscriptionPayments: string, subscriptionData: string, e: string, p: number, o?: TransactOpts): Promise<boolean>;
}
4 changes: 3 additions & 1 deletion build/abstracts/deployed.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
const services_1 = __importDefault(require("../services/services"));
class default_1 {
constructor(v, a, e, subscriptionPayments, subscriptionData) {
constructor(v, a, e, subscriptionPayments, subscriptionData, subscriptionNativePayments) {
this.vendor = v;
this.paymentsAbi = a;
this.erc20Abi = e;
this.subscriptionPaymentAbi = subscriptionPayments;
this.subscriptionDataAbi = subscriptionData;
this.subscriptionNativePaymentAbi = subscriptionNativePayments;
this.services = new services_1.default();
}
at(a, e, o) {
Expand All @@ -37,6 +38,7 @@ class default_1 {
subscriptionAt(subscriptionPayments, subscriptionData, e, p, o) {
return __awaiter(this, void 0, void 0, function* () {
this.subscriptionPaymentContract = this.vendor.contract(subscriptionPayments, this.subscriptionPaymentAbi, o);
this.subscriptionNativePaymentContract = this.vendor.contract(subscriptionPayments, this.subscriptionNativePaymentAbi, o);
this.subscriptionDataContract = this.vendor.contract(subscriptionData, this.subscriptionDataAbi, o);
this.tokenPrecision = p;
this.erc20Contract = this.vendor.contract(e, this.erc20Abi);
Expand Down
59 changes: 59 additions & 0 deletions build/constants/subscription.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,65 @@ export declare const SUBSCRIPTION_PAYMENT_ABI: ({
type: string;
anonymous?: undefined;
})[];
export declare const SUBSCRIPTION_NATIVE_PAYMENT_ABI: ({
inputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
name?: undefined;
outputs?: undefined;
} | {
anonymous: boolean;
inputs: {
indexed: boolean;
internalType: string;
name: string;
type: string;
}[];
name: string;
type: string;
stateMutability?: undefined;
outputs?: undefined;
} | {
inputs: {
internalType: string;
name: string;
type: string;
}[];
name: string;
outputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
} | {
inputs: {
internalType: string;
name: string;
type: string;
}[];
name: string;
outputs: {
components: {
internalType: string;
name: string;
type: string;
}[];
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
})[];
export declare const SUBSCRIPTION_DATA_ABI: ({
inputs: {
internalType: string;
Expand Down
Loading

0 comments on commit 075c023

Please sign in to comment.