@wharfkit/antelope
Advanced tools
Comparing version 0.7.4-beta2 to 0.8.0-rc1
{ | ||
"name": "@wharfkit/antelope", | ||
"description": "Library for working with Antelope powered blockchains.", | ||
"version": "0.7.4-beta2", | ||
"version": "0.8.0-rc1", | ||
"homepage": "https://github.com/wharfkit/antelope", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause-No-Military-License", |
@@ -14,3 +14,2 @@ import {APIClient} from '../client' | ||
PackedTransaction, | ||
PublicKeyType, | ||
SignedTransaction, | ||
@@ -28,2 +27,3 @@ SignedTransactionType, | ||
GetAbiResponse, | ||
GetAccountsByAuthorizersParams, | ||
GetBlockHeaderStateResponse, | ||
@@ -80,6 +80,6 @@ GetBlockResponse, | ||
async get_accounts_by_authorizers(keys: PublicKeyType[]) { | ||
async get_accounts_by_authorizers(params: GetAccountsByAuthorizersParams) { | ||
return this.client.call({ | ||
path: '/v1/chain/get_accounts_by_authorizers', | ||
params: {keys: keys}, | ||
params, | ||
responseType: AccountsByAuthorizers, | ||
@@ -86,0 +86,0 @@ }) |
@@ -19,3 +19,5 @@ import { | ||
NameType, | ||
PermissionLevel, | ||
PublicKey, | ||
PublicKeyType, | ||
Signature, | ||
@@ -177,3 +179,4 @@ Struct, | ||
@Struct.field(Name) declare permission_name: Name | ||
@Struct.field(PublicKey) declare authorizing_key: PublicKey | ||
@Struct.field(PublicKey, {optional: true}) declare authorizing_key: PublicKey | ||
@Struct.field(PermissionLevel, {optional: true}) declare authorizing_account: PermissionLevel | ||
@Struct.field(Weight) declare weight: Weight | ||
@@ -234,3 +237,10 @@ @Struct.field(UInt32) declare threshold: UInt32 | ||
if (this.extra.packed_trx) { | ||
return Serializer.decode({data: this.extra.packed_trx, type: Transaction}) | ||
switch (this.extra.compression) { | ||
case 'none': { | ||
return Serializer.decode({data: this.extra.packed_trx, type: Transaction}) | ||
} | ||
default: { | ||
throw new Error(`Unsupported compression type ${this.extra.compression}`) | ||
} | ||
} | ||
} | ||
@@ -689,1 +699,6 @@ } | ||
} | ||
export interface GetAccountsByAuthorizersParams { | ||
accounts?: NameType[] | ||
keys?: PublicKeyType[] | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1113733
20305