@test-org122/hypernet-core
Version:
Hypernet Core. Represents the SDK for running the Hypernet Protocol.
16 lines • 910 B
TypeScript
import { ParentProxy } from "@test-org122/utils";
import { ResultAsync } from "neverthrow";
import { IResolutionResult } from "@test-org122/merchant-connector";
import { MerchantConnectorError, MerchantValidationError } from "@interfaces/objects/errors";
import { HexString, PublicKey } from "@interfaces/objects";
export interface IMerchantConnectorProxy extends ParentProxy {
/**
* activateConnector() will actual cause the connector code to execute. This should only
* be done if the user has authorized the connector.
*/
activateConnector(): ResultAsync<void, MerchantConnectorError>;
resolveChallenge(paymentId: HexString): ResultAsync<IResolutionResult, MerchantConnectorError>;
getPublicKey(): ResultAsync<PublicKey, MerchantConnectorError>;
getValidatedSignature(): ResultAsync<string, MerchantValidationError>;
}
//# sourceMappingURL=IMerchantConnectorProxy.d.ts.map