You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@airgap/beacon-blockchain-kusama

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@airgap/beacon-blockchain-kusama - npm Package Compare versions

Comparing version

to
2.5.0-beta.1

dist/cjs/blockchain.d.ts

4

dist/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SubstrateBlockchain = void 0;
var blockchain_1 = require("./blockchain");
Object.defineProperty(exports, "SubstrateBlockchain", { enumerable: true, get: function () { return blockchain_1.SubstrateBlockchain; } });
//# sourceMappingURL=index.js.map

50

dist/cjs/messages/operation-request.d.ts

@@ -0,1 +1,2 @@

import { AppMetadata, BlockchainMessage, PermissionResponseV3 } from '@airgap/beacon-types';
export interface NewPermissionRequest<T extends string> {

@@ -9,4 +10,4 @@ blockchainIdentifier: T;

}
export interface SubstratePermissionRequest extends NewPermissionRequest<'ksm'> {
payload: {
export interface SubstratePermissionRequest extends NewPermissionRequest<'substrate'> {
blockchainData: {
scopes?: string[];

@@ -19,4 +20,5 @@ network?: {

}
export interface SubstratePermissionResponse {
payload: {
export interface SubstratePermissionResponse extends PermissionResponseV3<'substrate'> {
blockchainData: {
appMetadata: AppMetadata;
scopes: string[];

@@ -33,12 +35,14 @@ accounts: {

}
export interface SubstrateTransferReq {
scope: SubstratePermissionScope.transfer;
sourceAddress: string;
amount: string;
recipient: string;
network: {
genesisHash: string;
rpc?: string;
export interface SubstrateTransferReq extends BlockchainMessage<'substrate'> {
blockchainData: {
scope: SubstratePermissionScope.transfer;
sourceAddress: string;
amount: string;
recipient: string;
network: {
genesisHash: string;
rpc?: string;
};
mode: 'broadcast' | 'broadcast-and-return' | 'return';
};
mode: 'broadcast' | 'broadcast-and-return' | 'return';
}

@@ -53,12 +57,14 @@ export declare type SubstrateTransferResponse = {

};
export interface SubstrateSignRequest {
scope: SubstratePermissionScope.signString | SubstratePermissionScope.signRaw;
address: string;
metadata: {
genesisHash: string;
runtimeVersion: string;
transactionVersion: string;
export interface SubstrateSignRequest extends BlockchainMessage<'substrate'> {
blockchainData: {
scope: SubstratePermissionScope.signString | SubstratePermissionScope.signRaw;
address: string;
metadata: {
genesisHash: string;
runtimeVersion: string;
transactionVersion: string;
};
payload: string;
mode: 'broadcast' | 'broadcast-and-return' | 'return';
};
payload: string;
mode: 'broadcast' | 'broadcast-and-return' | 'return';
}

@@ -65,0 +71,0 @@ export interface SubstrateSignResponse {

@@ -1,2 +0,2 @@

"use strict";
export { SubstrateBlockchain } from './blockchain';
//# sourceMappingURL=index.js.map

@@ -0,1 +1,2 @@

import { AppMetadata, BlockchainMessage, PermissionResponseV3 } from '@airgap/beacon-types';
export interface NewPermissionRequest<T extends string> {

@@ -9,4 +10,4 @@ blockchainIdentifier: T;

}
export interface SubstratePermissionRequest extends NewPermissionRequest<'ksm'> {
payload: {
export interface SubstratePermissionRequest extends NewPermissionRequest<'substrate'> {
blockchainData: {
scopes?: string[];

@@ -19,4 +20,5 @@ network?: {

}
export interface SubstratePermissionResponse {
payload: {
export interface SubstratePermissionResponse extends PermissionResponseV3<'substrate'> {
blockchainData: {
appMetadata: AppMetadata;
scopes: string[];

@@ -33,12 +35,14 @@ accounts: {

}
export interface SubstrateTransferReq {
scope: SubstratePermissionScope.transfer;
sourceAddress: string;
amount: string;
recipient: string;
network: {
genesisHash: string;
rpc?: string;
export interface SubstrateTransferReq extends BlockchainMessage<'substrate'> {
blockchainData: {
scope: SubstratePermissionScope.transfer;
sourceAddress: string;
amount: string;
recipient: string;
network: {
genesisHash: string;
rpc?: string;
};
mode: 'broadcast' | 'broadcast-and-return' | 'return';
};
mode: 'broadcast' | 'broadcast-and-return' | 'return';
}

@@ -53,12 +57,14 @@ export declare type SubstrateTransferResponse = {

};
export interface SubstrateSignRequest {
scope: SubstratePermissionScope.signString | SubstratePermissionScope.signRaw;
address: string;
metadata: {
genesisHash: string;
runtimeVersion: string;
transactionVersion: string;
export interface SubstrateSignRequest extends BlockchainMessage<'substrate'> {
blockchainData: {
scope: SubstratePermissionScope.signString | SubstratePermissionScope.signRaw;
address: string;
metadata: {
genesisHash: string;
runtimeVersion: string;
transactionVersion: string;
};
payload: string;
mode: 'broadcast' | 'broadcast-and-return' | 'return';
};
payload: string;
mode: 'broadcast' | 'broadcast-and-return' | 'return';
}

@@ -65,0 +71,0 @@ export interface SubstrateSignResponse {

{
"name": "@airgap/beacon-blockchain-kusama",
"version": "2.5.0-beta.0",
"version": "2.5.0-beta.1",
"description": "> TODO: description",

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

},
"gitHead": "49503c7619631839b1e89f306e6415ee03054d4c"
"dependencies": {
"@airgap/beacon-types": "^2.5.0-beta.1",
"@airgap/beacon-ui": "^2.5.0-beta.1"
},
"gitHead": "be8af39aab62f0c47061d0239f9716771a95541e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet