Comparing version 1.5.3 to 1.6.0
@@ -39,3 +39,3 @@ "use strict"; | ||
if (attributes.last_tx == undefined) { | ||
transaction.last_tx = await this.wallets.getLastTransactionID(from); | ||
transaction.last_tx = await this.transactions.getTransactionAnchor(); | ||
} | ||
@@ -74,3 +74,3 @@ if (typeof attributes.data === "string") { | ||
if (attributes.last_tx == undefined) { | ||
transaction.last_tx = await this.wallets.getLastTransactionID(from); | ||
transaction.last_tx = await this.transactions.getTransactionAnchor(); | ||
} | ||
@@ -77,0 +77,0 @@ const siloResource = await this.silo.parseUri(siloUri); |
@@ -20,2 +20,3 @@ /// <reference types="node" /> | ||
constructor(api: Api, crypto: CryptoInterface); | ||
getTransactionAnchor(): Promise<string>; | ||
getPrice(byteSize: number, targetAddress?: string): Promise<string>; | ||
@@ -22,0 +23,0 @@ get(id: string): Promise<Transaction>; |
@@ -11,2 +11,7 @@ "use strict"; | ||
} | ||
getTransactionAnchor() { | ||
return this.api.get(`tx_anchor`).then(response => { | ||
return response.data; | ||
}); | ||
} | ||
getPrice(byteSize, targetAddress) { | ||
@@ -13,0 +18,0 @@ let endpoint = targetAddress |
{ | ||
"name": "arweave", | ||
"version": "1.5.3", | ||
"version": "1.6.0", | ||
"description": "Arweave JS client library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,3 +39,3 @@ "use strict"; | ||
if (attributes.last_tx == undefined) { | ||
transaction.last_tx = await this.wallets.getLastTransactionID(from); | ||
transaction.last_tx = await this.transactions.getTransactionAnchor(); | ||
} | ||
@@ -74,3 +74,3 @@ if (typeof attributes.data === "string") { | ||
if (attributes.last_tx == undefined) { | ||
transaction.last_tx = await this.wallets.getLastTransactionID(from); | ||
transaction.last_tx = await this.transactions.getTransactionAnchor(); | ||
} | ||
@@ -77,0 +77,0 @@ const siloResource = await this.silo.parseUri(siloUri); |
@@ -20,2 +20,3 @@ /// <reference types="node" /> | ||
constructor(api: Api, crypto: CryptoInterface); | ||
getTransactionAnchor(): Promise<string>; | ||
getPrice(byteSize: number, targetAddress?: string): Promise<string>; | ||
@@ -22,0 +23,0 @@ get(id: string): Promise<Transaction>; |
@@ -11,2 +11,7 @@ "use strict"; | ||
} | ||
getTransactionAnchor() { | ||
return this.api.get(`tx_anchor`).then(response => { | ||
return response.data; | ||
}); | ||
} | ||
getPrice(byteSize, targetAddress) { | ||
@@ -13,0 +18,0 @@ let endpoint = targetAddress |
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 not supported yet
Sorry, the diff of this file is not supported yet
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
802325
8668