@vechain/connex
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -384,3 +384,3 @@ /** | ||
origin: string | ||
delegator?: string | ||
delegator?: string | null | ||
nonce: string | ||
@@ -530,3 +530,3 @@ dependsOn: string | null | ||
*/ | ||
delegate(handler: SigningService.DelegationHandler): this | ||
delegate(handler: DelegationHandler): this | ||
@@ -537,3 +537,3 @@ /** | ||
*/ | ||
request(msg: SigningService.TxMessage): Promise<SigningService.TxResponse> | ||
request(msg: TxMessage): Promise<TxResponse> | ||
} | ||
@@ -559,3 +559,3 @@ | ||
*/ | ||
request(msg: SigningService.CertMessage): Promise<SigningService.CertResponse> | ||
request(msg: CertMessage): Promise<CertResponse> | ||
} | ||
@@ -567,43 +567,38 @@ | ||
namespace SigningService { | ||
type TxMessage = Array<{ | ||
to: string | null | ||
value: string | number | ||
data?: string | ||
/** | ||
* comment to the clause | ||
*/ | ||
comment?: string | ||
}> | ||
type TxMessage = Array<Thor.Clause & { | ||
/** comment to the clause */ | ||
comment?: string | ||
/** as the hint for wallet to decode clause data */ | ||
abi?: object | ||
}> | ||
type CertMessage = { | ||
purpose: 'identification' | 'agreement' | ||
payload: { | ||
type: 'text' | ||
content: string | ||
} | ||
type CertMessage = { | ||
purpose: 'identification' | 'agreement' | ||
payload: { | ||
type: 'text' | ||
content: string | ||
} | ||
} | ||
type TxResponse = { | ||
txid: string | ||
type TxResponse = { | ||
txid: string | ||
signer: string | ||
} | ||
type CertResponse = { | ||
annex: { | ||
domain: string | ||
timestamp: number | ||
signer: string | ||
} | ||
signature: string | ||
} | ||
type CertResponse = { | ||
annex: { | ||
domain: string | ||
timestamp: number | ||
signer: string | ||
} | ||
signature: string | ||
} | ||
/** | ||
* returns object contains signature of fee delegator | ||
* @param unsignedTx.raw RLP-encoded unsigned tx in hex form | ||
* @param unsignedTx.origin address of intended tx origin | ||
*/ | ||
type DelegationHandler = (unsignedTx: { raw: string, origin: string }) => Promise<{ signature: string }> | ||
} | ||
/** | ||
* returns object contains signature of fee delegator | ||
* @param unsignedTx.raw RLP-encoded unsigned tx in hex form | ||
* @param unsignedTx.origin address of intended tx origin | ||
*/ | ||
type DelegationHandler = (unsignedTx: { raw: string, origin: string }) => Promise<{ signature: string }> | ||
} | ||
@@ -610,0 +605,0 @@ type ErrorType = 'BadParameter' | 'Rejected' |
{ | ||
"name": "@vechain/connex", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Standard interface to connect DApp with VeChain and user", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
26885
524