@0xpolygonid/js-sdk 1.26.0 → 1.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/types/iden3comm/handlers/credential-proposal.d.ts +1 -5
- package/dist/types/iden3comm/types/protocol/contract-request.d.ts +1 -1
- package/dist/types/iden3comm/types/protocol/payment.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasicMessage, DIDDocument, IPackageManager,
|
|
1
|
+
import { BasicMessage, DIDDocument, IPackageManager, PackerParams } from '../types';
|
|
2
2
|
import { DID } from '@iden3/js-iden3-core';
|
|
3
3
|
import { Proposal, ProposalRequestCredential, ProposalRequestMessage, ProposalMessage } from '../types/protocol/proposal-request';
|
|
4
4
|
import { IIdentityWallet } from '../../identity';
|
|
@@ -6,10 +6,6 @@ import { AbstractMessageHandler, BasicHandlerOptions, IProtocolMessageHandler }
|
|
|
6
6
|
/** @beta ProposalRequestCreationOptions represents proposal-request creation options */
|
|
7
7
|
export type ProposalRequestCreationOptions = {
|
|
8
8
|
credentials: ProposalRequestCredential[];
|
|
9
|
-
metadata?: {
|
|
10
|
-
type: string;
|
|
11
|
-
data?: JsonDocumentObject;
|
|
12
|
-
};
|
|
13
9
|
did_doc?: DIDDocument;
|
|
14
10
|
expires_time?: Date;
|
|
15
11
|
};
|
|
@@ -26,7 +26,7 @@ export type ContractInvokeResponseBody = {
|
|
|
26
26
|
};
|
|
27
27
|
/** OnChainZeroKnowledgeProofResponse represents structure of onchain zero knowledge proof response */
|
|
28
28
|
export type OnChainZeroKnowledgeProofResponse = ZeroKnowledgeProofResponse & {
|
|
29
|
-
txHash
|
|
29
|
+
txHash?: string;
|
|
30
30
|
};
|
|
31
31
|
/** ContractInvokeTransactionData represents structure of contract invoke transaction data object */
|
|
32
32
|
export type ContractInvokeTransactionData = {
|
|
@@ -4,6 +4,8 @@ import { PROTOCOL_MESSAGE_TYPE } from '../../constants';
|
|
|
4
4
|
/** @beta PaymentRequestMessage is struct the represents payment-request message */
|
|
5
5
|
export type PaymentRequestMessage = BasicMessage & {
|
|
6
6
|
body: PaymentRequestMessageBody;
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
7
9
|
type: typeof PROTOCOL_MESSAGE_TYPE.PAYMENT_REQUEST_MESSAGE_TYPE;
|
|
8
10
|
};
|
|
9
11
|
/** @beta PaymentRequestMessageBody is struct the represents body for payment-request */
|
|
@@ -66,6 +68,8 @@ export type EthereumEip712Signature2021 = {
|
|
|
66
68
|
/** @beta PaymentMessage is struct the represents payment message */
|
|
67
69
|
export type PaymentMessage = BasicMessage & {
|
|
68
70
|
body: PaymentMessageBody;
|
|
71
|
+
from: string;
|
|
72
|
+
to: string;
|
|
69
73
|
type: typeof PROTOCOL_MESSAGE_TYPE.PAYMENT_MESSAGE_TYPE;
|
|
70
74
|
};
|
|
71
75
|
/** @beta PaymentMessageBody is struct the represents body for payment message */
|