@terra-money/terra.js
Advanced tools
Comparing version 0.4.14-beta.0 to 0.4.14-beta.1
@@ -9,2 +9,6 @@ import { LCDClient } from './LCDClient'; | ||
constructor(lcd: LCDClient, key: Key); | ||
accountNumberAndSequence(): Promise<{ | ||
account_number: number; | ||
sequence: number; | ||
}>; | ||
accountNumber(): Promise<number>; | ||
@@ -11,0 +15,0 @@ sequence(): Promise<number>; |
@@ -46,36 +46,34 @@ "use strict"; | ||
} | ||
Wallet.prototype.accountNumberAndSequence = function () { | ||
return this.lcd.auth.accountInfo(this.key.accAddress).then(function (d) { | ||
if (d instanceof core_1.Account) { | ||
return { | ||
account_number: d.account_number, | ||
sequence: d.sequence, | ||
}; | ||
} | ||
return { | ||
account_number: d.BaseAccount.account_number, | ||
sequence: d.BaseAccount.sequence, | ||
}; | ||
}); | ||
}; | ||
Wallet.prototype.accountNumber = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.lcd.auth.accountInfo(this.key.accAddress).then(function (d) { | ||
if (d instanceof core_1.Account) { | ||
return d.account_number; | ||
} | ||
else { | ||
return d.BaseAccount.account_number; | ||
} | ||
})]; | ||
}); | ||
return this.lcd.auth.accountInfo(this.key.accAddress).then(function (d) { | ||
if (d instanceof core_1.Account) { | ||
return d.account_number; | ||
} | ||
return d.BaseAccount.account_number; | ||
}); | ||
}; | ||
Wallet.prototype.sequence = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.lcd.auth.accountInfo(this.key.accAddress).then(function (d) { | ||
if (d instanceof core_1.Account) { | ||
return d.sequence; | ||
} | ||
else { | ||
return d.BaseAccount.sequence; | ||
} | ||
})]; | ||
}); | ||
return this.lcd.auth.accountInfo(this.key.accAddress).then(function (d) { | ||
if (d instanceof core_1.Account) { | ||
return d.sequence; | ||
} | ||
return d.BaseAccount.sequence; | ||
}); | ||
}; | ||
Wallet.prototype.createTx = function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.lcd.tx.create(this.key.accAddress, options)]; | ||
}); | ||
}); | ||
return this.lcd.tx.create(this.key.accAddress, options); | ||
}; | ||
@@ -82,0 +80,0 @@ Wallet.prototype.createAndSignTx = function (options) { |
{ | ||
"version": "0.4.14-beta.0", | ||
"version": "0.4.14-beta.1", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/index.js", |
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
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
5294334
16280