@test-org122/hypernet-core
Version:
Hypernet Core. Represents the SDK for running the Hypernet Protocol.
44 lines • 3.16 kB
TypeScript
import { Subject } from "rxjs";
import { ControlClaim } from "./ControlClaim";
import { PublicIdentifier } from "./PublicIdentifier";
import { PullPayment, PushPayment } from "./Payment";
import { Balances } from "./Balances";
import { EthereumAddress } from "@test-org122/utils/src/objects/EthereumAddress";
export declare class HypernetContext {
account: EthereumAddress | null;
publicIdentifier: PublicIdentifier | null;
inControl: boolean;
onControlClaimed: Subject<ControlClaim>;
onControlYielded: Subject<ControlClaim>;
onPushPaymentProposed: Subject<PushPayment>;
onPullPaymentProposed: Subject<PullPayment>;
onPushPaymentReceived: Subject<PushPayment>;
onPullPaymentApproved: Subject<PullPayment>;
onPushPaymentUpdated: Subject<PushPayment>;
onPullPaymentUpdated: Subject<PullPayment>;
onBalancesChanged: Subject<Balances>;
onMerchantAuthorized: Subject<string>;
onAuthorizedMerchantUpdated: Subject<string>;
onAuthorizedMerchantActivationFailed: Subject<string>;
constructor(account: EthereumAddress | null, publicIdentifier: PublicIdentifier | null, inControl: boolean, onControlClaimed: Subject<ControlClaim>, onControlYielded: Subject<ControlClaim>, onPushPaymentProposed: Subject<PushPayment>, onPullPaymentProposed: Subject<PullPayment>, onPushPaymentReceived: Subject<PushPayment>, onPullPaymentApproved: Subject<PullPayment>, onPushPaymentUpdated: Subject<PushPayment>, onPullPaymentUpdated: Subject<PullPayment>, onBalancesChanged: Subject<Balances>, onMerchantAuthorized: Subject<string>, onAuthorizedMerchantUpdated: Subject<string>, onAuthorizedMerchantActivationFailed: Subject<string>);
}
export declare class InitializedHypernetContext {
account: EthereumAddress;
publicIdentifier: PublicIdentifier;
inControl: boolean;
onControlClaimed: Subject<ControlClaim>;
onControlYielded: Subject<ControlClaim>;
onPushPaymentProposed: Subject<PushPayment>;
onPullPaymentProposed: Subject<PullPayment>;
onPushPaymentReceived: Subject<PushPayment>;
onPullPaymentApproved: Subject<PullPayment>;
onPushPaymentUpdated: Subject<PushPayment>;
onPullPaymentUpdated: Subject<PullPayment>;
onBalancesChanged: Subject<Balances>;
onMerchantAuthorized: Subject<string>;
onAuthorizedMerchantUpdated: Subject<string>;
onAuthorizedMerchantActivationFailed: Subject<string>;
authorizedMediators: Map<string, string>;
constructor(account: EthereumAddress, publicIdentifier: PublicIdentifier, inControl: boolean, onControlClaimed: Subject<ControlClaim>, onControlYielded: Subject<ControlClaim>, onPushPaymentProposed: Subject<PushPayment>, onPullPaymentProposed: Subject<PullPayment>, onPushPaymentReceived: Subject<PushPayment>, onPullPaymentApproved: Subject<PullPayment>, onPushPaymentUpdated: Subject<PushPayment>, onPullPaymentUpdated: Subject<PullPayment>, onBalancesChanged: Subject<Balances>, onMerchantAuthorized: Subject<string>, onAuthorizedMerchantUpdated: Subject<string>, onAuthorizedMerchantActivationFailed: Subject<string>, authorizedMediators: Map<string, string>);
}
//# sourceMappingURL=HypernetContext.d.ts.map