@wharfkit/abicache
Advanced tools
Comparing version 1.0.1-beta1 to 1.0.1-beta2
@@ -6,3 +6,3 @@ import { ABI, API, NameType, ABIDef, APIClient } from '@wharfkit/antelope'; | ||
readonly cache: Map<string, ABI>; | ||
readonly pending: Map<string, Promise<API.v1.GetAbiResponse>>; | ||
readonly pending: Map<string, Promise<API.v1.GetRawAbiResponse>>; | ||
getAbi(account: NameType): Promise<ABI>; | ||
@@ -17,3 +17,3 @@ setAbi(account: NameType, abi: ABIDef): void; | ||
readonly cache: Map<string, ABI>; | ||
readonly pending: Map<string, Promise<API.v1.GetAbiResponse>>; | ||
readonly pending: Map<string, Promise<API.v1.GetRawAbiResponse>>; | ||
constructor(client: APIClient); | ||
@@ -20,0 +20,0 @@ getAbi(account: NameType): Promise<ABI>; |
@@ -21,3 +21,3 @@ 'use strict'; | ||
if (!getAbi) { | ||
getAbi = this.client.v1.chain.get_abi(account); | ||
getAbi = this.client.v1.chain.get_raw_abi(account); | ||
this.pending.set(key, getAbi); | ||
@@ -24,0 +24,0 @@ } |
@@ -15,3 +15,3 @@ import { ABI } from '@wharfkit/antelope'; | ||
if (!getAbi) { | ||
getAbi = this.client.v1.chain.get_abi(account); | ||
getAbi = this.client.v1.chain.get_raw_abi(account); | ||
this.pending.set(key, getAbi); | ||
@@ -18,0 +18,0 @@ } |
{ | ||
"name": "@wharfkit/abicache", | ||
"description": "ABI Caching Mechanism for use in Session and Contract Kits", | ||
"version": "1.0.1-beta1", | ||
"version": "1.0.1-beta2", | ||
"homepage": "https://github.com/wharfkit/abicache", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause", |
@@ -6,3 +6,3 @@ import {ABI, ABIDef, API, APIClient, NameType} from '@wharfkit/antelope' | ||
readonly cache: Map<string, ABI> | ||
readonly pending: Map<string, Promise<API.v1.GetAbiResponse>> | ||
readonly pending: Map<string, Promise<API.v1.GetRawAbiResponse>> | ||
getAbi(account: NameType): Promise<ABI> | ||
@@ -17,3 +17,3 @@ setAbi(account: NameType, abi: ABIDef): void | ||
readonly cache: Map<string, ABI> = new Map() | ||
readonly pending: Map<string, Promise<API.v1.GetAbiResponse>> = new Map() | ||
readonly pending: Map<string, Promise<API.v1.GetRawAbiResponse>> = new Map() | ||
@@ -28,3 +28,3 @@ constructor(readonly client: APIClient) {} | ||
if (!getAbi) { | ||
getAbi = this.client.v1.chain.get_abi(account) | ||
getAbi = this.client.v1.chain.get_raw_abi(account) | ||
this.pending.set(key, getAbi) | ||
@@ -31,0 +31,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
217671