@vechain/connex.driver-nodejs
Advanced tools
Comparing version 1.0.0-beta-14 to 1.0.0-beta-16
@@ -30,3 +30,3 @@ /// <reference types="@vechain/connex" /> | ||
filterTransferLogs(arg: object): Promise<any>; | ||
abstract buildTx(msg: Connex.Driver.BuildTxArg, option: Connex.Driver.BuildTxOption): Promise<Connex.Driver.BuildTxResult>; | ||
abstract signTx(msg: Connex.Driver.SignTxArg, option: Connex.Driver.SignTxOption): Promise<Connex.Driver.SignTxResult>; | ||
abstract signCert(msg: Connex.Driver.SignCertArg, options: Connex.Driver.SignCertOption): Promise<Connex.Driver.SignCertResult>; | ||
@@ -33,0 +33,0 @@ abstract isAddressOwned(addr: string): boolean; |
@@ -23,3 +23,3 @@ /// <reference types="@vechain/connex" /> | ||
constructor(net: Net, genesis: Connex.Thor.Block, initialHead?: Connex.Thor.Status['head'], wallet?: Wallet | undefined); | ||
buildTx(msg: Connex.Driver.BuildTxArg, options: Connex.Driver.BuildTxOption): Promise<Connex.Driver.BuildTxResult>; | ||
signTx(msg: Connex.Driver.SignTxArg, option: Connex.Driver.SignTxOption): Promise<Connex.Driver.SignTxResult>; | ||
signCert(msg: Connex.Driver.SignCertArg, options: Connex.Driver.SignCertOption): Promise<Connex.Driver.SignCertResult>; | ||
@@ -26,0 +26,0 @@ isAddressOwned(addr: string): boolean; |
@@ -46,7 +46,7 @@ "use strict"; | ||
} | ||
buildTx(msg, options) { | ||
signTx(msg, option) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const key = this.findKey(options.signer); | ||
const key = this.findKey(option.signer); | ||
const clauses = msg.map(c => ({ to: c.to, value: c.value, data: c.data })); | ||
const gas = options.gas || | ||
const gas = option.gas || | ||
(yield this.estimateGas(clauses, key.address)); | ||
@@ -60,44 +60,41 @@ const txBody = { | ||
gas, | ||
dependsOn: options.dependsOn || null, | ||
dependsOn: option.dependsOn || null, | ||
nonce: '0x' + crypto_1.randomBytes(8).toString('hex') | ||
}; | ||
const delegatedTx = new transaction_1.Transaction(Object.assign({}, txBody, { reserved: { features: 1 /* vip191 */ } })); | ||
let tx; | ||
if (option.delegationHandler) { | ||
const delegatedTx = new transaction_1.Transaction(Object.assign({}, txBody, { reserved: { features: 1 /* vip191 */ } })); | ||
const originSig = yield key.sign(delegatedTx.signingHash()); | ||
try { | ||
const result = yield option.delegationHandler({ | ||
raw: '0x' + delegatedTx.encode().toString('hex'), | ||
origin: key.address | ||
}); | ||
delegatedTx.signature = Buffer.concat([originSig, Buffer.from(result.signature.slice(2), 'hex')]); | ||
tx = delegatedTx; | ||
} | ||
catch (err) { | ||
// tslint:disable-next-line: no-console | ||
console.warn('tx delegation error: ', err); | ||
// fallback to non-vip191 tx | ||
} | ||
} | ||
if (!tx) { | ||
tx = new transaction_1.Transaction(txBody); | ||
tx.signature = yield key.sign(tx.signingHash()); | ||
} | ||
const raw = '0x' + tx.encode().toString('hex'); | ||
if (this.onTxCommit) { | ||
this.onTxCommit({ | ||
id: tx.id, | ||
raw, | ||
resend: () => __awaiter(this, void 0, void 0, function* () { | ||
yield this.sendTx(raw); | ||
}) | ||
}); | ||
} | ||
yield this.sendTx(raw); | ||
return { | ||
raw: '0x' + delegatedTx.encode().toString('hex'), | ||
origin: key.address, | ||
sign: (delegation) => __awaiter(this, void 0, void 0, function* () { | ||
let tx; | ||
if (delegation && !delegation.error) { | ||
tx = delegatedTx; | ||
const originSig = yield key.sign(tx.signingHash()); | ||
tx.signature = Buffer.concat([ | ||
originSig, | ||
Buffer.from(delegation.signature.slice(2), 'hex') | ||
]); | ||
} | ||
else { | ||
if (delegation && delegation.error) { | ||
// tslint:disable-next-line: no-console | ||
console.warn('tx delegation error: ', delegation.error); | ||
// fallback to non-vip191 tx | ||
} | ||
tx = new transaction_1.Transaction(txBody); | ||
tx.signature = yield key.sign(tx.signingHash()); | ||
} | ||
const raw = '0x' + tx.encode().toString('hex'); | ||
if (this.onTxCommit) { | ||
this.onTxCommit({ | ||
id: tx.id, | ||
raw, | ||
resend: () => __awaiter(this, void 0, void 0, function* () { | ||
yield this.sendTx(raw); | ||
}) | ||
}); | ||
} | ||
yield this.sendTx(raw); | ||
return { | ||
txid: tx.id, | ||
signer: key.address | ||
}; | ||
}) | ||
txid: tx.id, | ||
signer: key.address | ||
}; | ||
@@ -151,2 +148,2 @@ }); | ||
exports.Driver = Driver; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJpdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2RyaXZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQ0EseURBQW1EO0FBRW5ELDhEQUEwRDtBQUMxRCw4REFBMEQ7QUFDMUQsMERBQXlEO0FBQ3pELG1DQUFvQztBQUVwQywyQ0FBMkM7QUFDM0MsTUFBYSxNQUFPLFNBQVEsaUNBQWM7SUFpQ3RDLFlBQ0ksR0FBUSxFQUNSLE9BQTBCLEVBQzFCLFdBQXdDLEVBQ3ZCLE1BQWU7UUFFaEMsS0FBSyxDQUFDLEdBQUcsRUFBRSxPQUFPLEVBQUUsV0FBVyxDQUFDLENBQUE7UUFGZixXQUFNLEdBQU4sTUFBTSxDQUFTO1FBVnBDLGlDQUFpQztRQUMxQixhQUFRLEdBQUc7WUFDZCxVQUFVLEVBQUUsRUFBRTtZQUNkLFlBQVksRUFBRSxDQUFDO1NBQ2xCLENBQUE7SUFTRCxDQUFDO0lBdkNEOzs7OztPQUtHO0lBQ0ksTUFBTSxDQUFPLE9BQU8sQ0FBQyxHQUFRLEVBQUUsTUFBZTs7WUFDakQsTUFBTSxPQUFPLEdBQXNCLE1BQU0sR0FBRyxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsVUFBVSxDQUFDLENBQUE7WUFDcEUsTUFBTSxJQUFJLEdBQXNCLE1BQU0sR0FBRyxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsYUFBYSxFQUMvRCxFQUFFLE9BQU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UMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxDQUFBO1lBRXRELE9BQU8sWUFBWSxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDLE9BQU8sR0FBRyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7UUFDM0QsQ0FBQztLQUFBO0NBQ0o7QUE5SkQsd0JBOEpDIn0= |
{ | ||
"name": "@vechain/connex.driver-nodejs", | ||
"version": "1.0.0-beta-14", | ||
"version": "1.0.0-beta-16", | ||
"description": "Connex framework driver implementation in NodeJS", | ||
@@ -15,3 +15,3 @@ "main": "dist/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/qianbin/connex.driver-nodejs.git" | ||
"url": "git+https://github.com/vechain/connex.driver-nodejs.git" | ||
}, | ||
@@ -27,5 +27,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/qianbin/connex.driver-nodejs/issues" | ||
"url": "https://github.com/vechain/connex.driver-nodejs/issues" | ||
}, | ||
"homepage": "https://github.com/qianbin/connex.driver-nodejs#readme", | ||
"homepage": "https://github.com/vechain/connex.driver-nodejs#readme", | ||
"devDependencies": { | ||
@@ -40,3 +40,3 @@ "@types/lru-cache": "^5.1.0", | ||
"@vechain/connex": "^1.3.2", | ||
"@vechain/connex.driver": "^1.0.0-beta-9", | ||
"@vechain/connex.driver": "^1.0.0-beta-16", | ||
"axios": "^0.19.0", | ||
@@ -43,0 +43,0 @@ "bignumber.js": "^9.0.0", |
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
72480
991