@airgap/beacon-blockchain-kusama
Advanced tools
Comparing version 2.5.0-beta.0 to 2.5.0-beta.1
"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 |
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25189
63
466
2
1
+ Added@airgap/beacon-core@2.5.0-beta.4(transitive)
+ Added@airgap/beacon-transport-postmessage@2.5.0-beta.4(transitive)
+ Added@airgap/beacon-types@2.5.0-beta.4(transitive)
+ Added@airgap/beacon-ui@2.5.0-beta.4(transitive)
+ Added@airgap/beacon-utils@2.5.0-beta.4(transitive)
+ Added@types/chrome@0.0.163(transitive)
+ Added@types/filesystem@0.0.36(transitive)
+ Added@types/filewriter@0.0.33(transitive)
+ Added@types/har-format@1.2.16(transitive)
+ Added@types/libsodium-wrappers@0.7.9(transitive)
+ Addedbase-x@3.0.10(transitive)
+ Addedbs58@4.0.1(transitive)
+ Addedbs58check@2.1.2(transitive)
+ Addedcipher-base@1.0.6(transitive)
+ Addedcreate-hash@1.2.0(transitive)
+ Addedhash-base@3.1.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedlibsodium@0.7.15(transitive)
+ Addedlibsodium-wrappers@0.7.9(transitive)
+ Addedmd5.js@1.3.5(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedripemd160@2.0.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsha.js@2.4.11(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)