Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@airgap/beacon-types

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@airgap/beacon-types - npm Package Compare versions

Comparing version 2.5.0-beta.0 to 2.5.0-beta.1

3

dist/cjs/index.d.ts

@@ -75,4 +75,4 @@ /**

import { PermissionEntity } from './types/PermissionEntity';
import { PermissionRequestV3 } from './types/beaconV3/PermissionRequest';
import { WalletInfo } from './types/WalletInfo';
export * from './types/beaconV3/PermissionRequest';
export { TezosBaseOperation, TezosOperationType, TezosBlockHeader, MichelsonPrimitives, TezosTransactionParameters, TezosOperation };

@@ -89,2 +89,1 @@ export { TezosActivateAccountOperation, TezosBallotOperation, TezosDelegationOperation, TezosDoubleBakingEvidenceOperation, TezosDoubleEndorsementEvidenceOperation, TezosEndorsementOperation, TezosOriginationOperation, TezosProposalOperation, TezosRevealOperation, TezosSeedNonceRevelationOperation, TezosTransactionOperation, PartialTezosOperation, PartialTezosTransactionOperation, PartialTezosDelegationOperation, PartialTezosOriginationOperation, PartialTezosRevealOperation };

export { Optional };
export { PermissionRequestV3 };
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
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 });

@@ -32,2 +42,3 @@ exports.ColorMode = exports.defaultValues = exports.StorageKey = exports.Storage = exports.TransportType = exports.TransportStatus = exports.BeaconErrorType = exports.ExtensionMessageTarget = exports.SigningType = exports.Origin = exports.PermissionScope = exports.BeaconMessageType = exports.NetworkType = exports.TezosOperationType = void 0;

Object.defineProperty(exports, "ColorMode", { enumerable: true, get: function () { return ColorMode_1.ColorMode; } });
__exportStar(require("./types/beaconV3/PermissionRequest"), exports);
//# sourceMappingURL=index.js.map

@@ -1,5 +0,75 @@

import { BeaconBaseMessage } from '@airgap/beacon-types';
export interface PermissionRequestV3<T extends string> extends BeaconBaseMessage {
import { AccountInfo, AppMetadata, BeaconMessageType, ConnectionContext, WalletInfo } from '@airgap/beacon-types';
export interface ResponseInput {
request: BlockchainMessage;
account: AccountInfo;
output: BeaconMessageWrapper<BeaconBaseMessage>;
blockExplorer: any;
connectionContext: ConnectionContext;
walletInfo: WalletInfo;
}
export interface Blockchain {
readonly identifier: string;
validateRequest(input: BlockchainMessage): Promise<void>;
handleResponse(input: ResponseInput): Promise<void>;
getAddressFromPermissionResponse(permissionResponse: PermissionResponseV3): Promise<string[]>;
}
export interface BeaconMessageWrapper<T extends BeaconBaseMessage> {
id: string;
version: string;
senderId: string;
message: T;
}
export interface BeaconBaseMessage {
type: unknown;
}
export interface BlockchainMessage<T extends string = string> {
blockchainIdentifier: T;
payload: any;
type: unknown;
blockchainData: unknown;
}
export interface PermissionRequestV3<T extends string = string> extends BlockchainMessage<T> {
blockchainIdentifier: T;
type: BeaconMessageType.PermissionRequest;
blockchainData: {
appMetadata: AppMetadata;
scopes: string[];
};
}
export interface PermissionResponseV3<T extends string = string> extends BlockchainMessage<T> {
blockchainIdentifier: T;
type: BeaconMessageType.PermissionResponse;
accountId: string;
blockchainData: {
appMetadata: AppMetadata;
scopes: string[];
};
}
export interface BlockchainRequestV3<T extends string = string> extends BlockchainMessage<T> {
blockchainIdentifier: T;
type: BeaconMessageType.BlockchainRequest;
accountId: string;
blockchainData: {
type: string;
scope: string;
};
}
export interface BlockchainResponseV3<T extends string = string> extends BlockchainMessage<T> {
blockchainIdentifier: T;
type: BeaconMessageType.BlockchainResponse;
blockchainData: unknown;
}
export interface BlockchainErrorResponse<T extends string = string> extends BlockchainMessage<T> {
blockchainIdentifier: T;
type: BeaconMessageType.Error;
error: {
type: unknown;
data?: unknown;
};
description?: string;
}
export interface AcknowledgeMessage extends BeaconBaseMessage {
type: BeaconMessageType.Acknowledge;
}
export interface DisconnectMessage extends BeaconBaseMessage {
type: BeaconMessageType.Disconnect;
}

@@ -75,4 +75,4 @@ /**

import { PermissionEntity } from './types/PermissionEntity';
import { PermissionRequestV3 } from './types/beaconV3/PermissionRequest';
import { WalletInfo } from './types/WalletInfo';
export * from './types/beaconV3/PermissionRequest';
export { TezosBaseOperation, TezosOperationType, TezosBlockHeader, MichelsonPrimitives, TezosTransactionParameters, TezosOperation };

@@ -89,2 +89,1 @@ export { TezosActivateAccountOperation, TezosBallotOperation, TezosDelegationOperation, TezosDoubleBakingEvidenceOperation, TezosDoubleEndorsementEvidenceOperation, TezosEndorsementOperation, TezosOriginationOperation, TezosProposalOperation, TezosRevealOperation, TezosSeedNonceRevelationOperation, TezosTransactionOperation, PartialTezosOperation, PartialTezosTransactionOperation, PartialTezosDelegationOperation, PartialTezosOriginationOperation, PartialTezosRevealOperation };

export { Optional };
export { PermissionRequestV3 };

@@ -15,2 +15,3 @@ import { BeaconMessageType } from './types/beacon/BeaconMessageType';

import { ColorMode } from './types/ColorMode';
export * from './types/beaconV3/PermissionRequest';
// Tezos

@@ -17,0 +18,0 @@ export { TezosOperationType };

@@ -1,5 +0,75 @@

import { BeaconBaseMessage } from '@airgap/beacon-types';
export interface PermissionRequestV3<T extends string> extends BeaconBaseMessage {
import { AccountInfo, AppMetadata, BeaconMessageType, ConnectionContext, WalletInfo } from '@airgap/beacon-types';
export interface ResponseInput {
request: BlockchainMessage;
account: AccountInfo;
output: BeaconMessageWrapper<BeaconBaseMessage>;
blockExplorer: any;
connectionContext: ConnectionContext;
walletInfo: WalletInfo;
}
export interface Blockchain {
readonly identifier: string;
validateRequest(input: BlockchainMessage): Promise<void>;
handleResponse(input: ResponseInput): Promise<void>;
getAddressFromPermissionResponse(permissionResponse: PermissionResponseV3): Promise<string[]>;
}
export interface BeaconMessageWrapper<T extends BeaconBaseMessage> {
id: string;
version: string;
senderId: string;
message: T;
}
export interface BeaconBaseMessage {
type: unknown;
}
export interface BlockchainMessage<T extends string = string> {
blockchainIdentifier: T;
payload: any;
type: unknown;
blockchainData: unknown;
}
export interface PermissionRequestV3<T extends string = string> extends BlockchainMessage<T> {
blockchainIdentifier: T;
type: BeaconMessageType.PermissionRequest;
blockchainData: {
appMetadata: AppMetadata;
scopes: string[];
};
}
export interface PermissionResponseV3<T extends string = string> extends BlockchainMessage<T> {
blockchainIdentifier: T;
type: BeaconMessageType.PermissionResponse;
accountId: string;
blockchainData: {
appMetadata: AppMetadata;
scopes: string[];
};
}
export interface BlockchainRequestV3<T extends string = string> extends BlockchainMessage<T> {
blockchainIdentifier: T;
type: BeaconMessageType.BlockchainRequest;
accountId: string;
blockchainData: {
type: string;
scope: string;
};
}
export interface BlockchainResponseV3<T extends string = string> extends BlockchainMessage<T> {
blockchainIdentifier: T;
type: BeaconMessageType.BlockchainResponse;
blockchainData: unknown;
}
export interface BlockchainErrorResponse<T extends string = string> extends BlockchainMessage<T> {
blockchainIdentifier: T;
type: BeaconMessageType.Error;
error: {
type: unknown;
data?: unknown;
};
description?: string;
}
export interface AcknowledgeMessage extends BeaconBaseMessage {
type: BeaconMessageType.Acknowledge;
}
export interface DisconnectMessage extends BeaconBaseMessage {
type: BeaconMessageType.Disconnect;
}
{
"name": "@airgap/beacon-types",
"version": "2.5.0-beta.0",
"version": "2.5.0-beta.1",
"description": "> TODO: description",

@@ -39,3 +39,3 @@ "author": "Andreas Gassmann <a.gassmann@papers.ch>",

},
"gitHead": "49503c7619631839b1e89f306e6415ee03054d4c"
"gitHead": "be8af39aab62f0c47061d0239f9716771a95541e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc