@cheqd/sdk-esm 5.3.7-develop.1 → 5.4.0-develop.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/build/cjs/src/index.d.ts +142 -0
- package/build/cjs/src/index.d.ts.map +1 -0
- package/build/cjs/src/index.js +184 -0
- package/build/cjs/src/index.js.map +1 -0
- package/build/cjs/src/modules/_.d.ts +81 -0
- package/build/cjs/src/modules/_.d.ts.map +1 -0
- package/build/cjs/src/modules/_.js +93 -0
- package/build/cjs/src/modules/_.js.map +1 -0
- package/build/cjs/src/modules/did.d.ts +488 -0
- package/build/cjs/src/modules/did.d.ts.map +1 -0
- package/build/cjs/src/modules/did.js +1249 -0
- package/build/cjs/src/modules/did.js.map +1 -0
- package/build/cjs/src/modules/feeabstraction.d.ts +429 -0
- package/build/cjs/src/modules/feeabstraction.d.ts.map +1 -0
- package/build/cjs/src/modules/feeabstraction.js +474 -0
- package/build/cjs/src/modules/feeabstraction.js.map +1 -0
- package/build/cjs/src/modules/feemarket.d.ts +244 -0
- package/build/cjs/src/modules/feemarket.d.ts.map +1 -0
- package/build/cjs/src/modules/feemarket.js +297 -0
- package/build/cjs/src/modules/feemarket.js.map +1 -0
- package/build/cjs/src/modules/oracle.d.ts +563 -0
- package/build/cjs/src/modules/oracle.d.ts.map +1 -0
- package/build/cjs/src/modules/oracle.js +784 -0
- package/build/cjs/src/modules/oracle.js.map +1 -0
- package/build/cjs/src/modules/resource.d.ts +330 -0
- package/build/cjs/src/modules/resource.d.ts.map +1 -0
- package/build/cjs/src/modules/resource.js +556 -0
- package/build/cjs/src/modules/resource.js.map +1 -0
- package/build/cjs/src/querier.d.ts +62 -0
- package/build/cjs/src/querier.d.ts.map +1 -0
- package/build/cjs/src/querier.js +87 -0
- package/build/cjs/src/querier.js.map +1 -0
- package/build/cjs/src/registry.d.ts +18 -0
- package/build/cjs/src/registry.d.ts.map +1 -0
- package/build/cjs/src/registry.js +23 -0
- package/build/cjs/src/registry.js.map +1 -0
- package/build/cjs/src/signer.d.ts +250 -0
- package/build/cjs/src/signer.d.ts.map +1 -0
- package/build/cjs/src/signer.js +617 -0
- package/build/cjs/src/signer.js.map +1 -0
- package/build/cjs/src/types.d.ts +221 -0
- package/build/cjs/src/types.d.ts.map +1 -0
- package/build/cjs/src/types.js.map +1 -0
- package/build/cjs/src/utils.d.ts +233 -0
- package/build/cjs/src/utils.d.ts.map +1 -0
- package/build/cjs/src/utils.js +571 -0
- package/build/cjs/src/utils.js.map +1 -0
- package/build/{index.d.ts → esm/src/index.d.ts} +7 -3
- package/build/esm/src/index.d.ts.map +1 -0
- package/build/{index.js → esm/src/index.js} +3 -1
- package/build/esm/src/index.js.map +1 -0
- package/build/esm/src/modules/_.d.ts.map +1 -0
- package/build/esm/src/modules/_.js.map +1 -0
- package/build/{modules → esm/src/modules}/did.d.ts +109 -7
- package/build/esm/src/modules/did.d.ts.map +1 -0
- package/build/{modules → esm/src/modules}/did.js +212 -6
- package/build/esm/src/modules/did.js.map +1 -0
- package/build/esm/src/modules/feeabstraction.d.ts.map +1 -0
- package/build/esm/src/modules/feeabstraction.js.map +1 -0
- package/build/esm/src/modules/feemarket.d.ts.map +1 -0
- package/build/esm/src/modules/feemarket.js.map +1 -0
- package/build/esm/src/modules/oracle.d.ts +563 -0
- package/build/esm/src/modules/oracle.d.ts.map +1 -0
- package/build/esm/src/modules/oracle.js +784 -0
- package/build/esm/src/modules/oracle.js.map +1 -0
- package/build/{modules → esm/src/modules}/resource.d.ts +132 -6
- package/build/esm/src/modules/resource.d.ts.map +1 -0
- package/build/esm/src/modules/resource.js +556 -0
- package/build/esm/src/modules/resource.js.map +1 -0
- package/build/esm/src/querier.d.ts.map +1 -0
- package/build/esm/src/querier.js.map +1 -0
- package/build/esm/src/registry.d.ts.map +1 -0
- package/build/esm/src/registry.js.map +1 -0
- package/build/esm/src/signer.d.ts.map +1 -0
- package/build/esm/src/signer.js.map +1 -0
- package/build/{types → esm/src}/types.d.ts +27 -1
- package/build/esm/src/types.d.ts.map +1 -0
- package/build/esm/src/types.js +43 -0
- package/build/esm/src/types.js.map +1 -0
- package/build/esm/src/utils.d.ts.map +1 -0
- package/build/esm/src/utils.js.map +1 -0
- package/build/types/cjs/src/index.d.ts +142 -0
- package/build/types/cjs/src/index.d.ts.map +1 -0
- package/build/types/cjs/src/modules/_.d.ts +81 -0
- package/build/types/cjs/src/modules/_.d.ts.map +1 -0
- package/build/types/cjs/src/modules/did.d.ts +488 -0
- package/build/types/cjs/src/modules/did.d.ts.map +1 -0
- package/build/types/cjs/src/modules/feeabstraction.d.ts +429 -0
- package/build/types/cjs/src/modules/feeabstraction.d.ts.map +1 -0
- package/build/types/cjs/src/modules/feemarket.d.ts +244 -0
- package/build/types/cjs/src/modules/feemarket.d.ts.map +1 -0
- package/build/types/cjs/src/modules/oracle.d.ts +563 -0
- package/build/types/cjs/src/modules/oracle.d.ts.map +1 -0
- package/build/types/cjs/src/modules/resource.d.ts +330 -0
- package/build/types/cjs/src/modules/resource.d.ts.map +1 -0
- package/build/types/cjs/src/querier.d.ts +62 -0
- package/build/types/cjs/src/querier.d.ts.map +1 -0
- package/build/types/cjs/src/registry.d.ts +18 -0
- package/build/types/cjs/src/registry.d.ts.map +1 -0
- package/build/types/cjs/src/signer.d.ts +250 -0
- package/build/types/cjs/src/signer.d.ts.map +1 -0
- package/build/types/cjs/src/types.d.ts +221 -0
- package/build/types/cjs/src/types.d.ts.map +1 -0
- package/build/types/cjs/src/utils.d.ts +233 -0
- package/build/types/cjs/src/utils.d.ts.map +1 -0
- package/build/types/{index.d.ts → esm/src/index.d.ts} +7 -3
- package/build/types/esm/src/index.d.ts.map +1 -0
- package/build/types/esm/src/modules/_.d.ts.map +1 -0
- package/build/types/{modules → esm/src/modules}/did.d.ts +109 -7
- package/build/types/esm/src/modules/did.d.ts.map +1 -0
- package/build/types/esm/src/modules/feeabstraction.d.ts.map +1 -0
- package/build/types/esm/src/modules/feemarket.d.ts.map +1 -0
- package/build/types/esm/src/modules/oracle.d.ts +563 -0
- package/build/types/esm/src/modules/oracle.d.ts.map +1 -0
- package/build/types/{modules → esm/src/modules}/resource.d.ts +132 -6
- package/build/types/esm/src/modules/resource.d.ts.map +1 -0
- package/build/types/esm/src/querier.d.ts.map +1 -0
- package/build/types/esm/src/registry.d.ts.map +1 -0
- package/build/types/esm/src/signer.d.ts.map +1 -0
- package/build/{types.d.ts → types/esm/src/types.d.ts} +27 -1
- package/build/types/esm/src/types.d.ts.map +1 -0
- package/build/types/esm/src/utils.d.ts.map +1 -0
- package/package.json +2 -2
- package/build/index.d.ts.map +0 -1
- package/build/index.js.map +0 -1
- package/build/modules/_.d.ts.map +0 -1
- package/build/modules/_.js.map +0 -1
- package/build/modules/did.d.ts.map +0 -1
- package/build/modules/did.js.map +0 -1
- package/build/modules/feeabstraction.d.ts.map +0 -1
- package/build/modules/feeabstraction.js.map +0 -1
- package/build/modules/feemarket.d.ts.map +0 -1
- package/build/modules/feemarket.js.map +0 -1
- package/build/modules/resource.d.ts.map +0 -1
- package/build/modules/resource.js +0 -297
- package/build/modules/resource.js.map +0 -1
- package/build/querier.d.ts.map +0 -1
- package/build/querier.js.map +0 -1
- package/build/registry.d.ts.map +0 -1
- package/build/registry.js.map +0 -1
- package/build/signer.d.ts.map +0 -1
- package/build/signer.js.map +0 -1
- package/build/types/index.d.ts.map +0 -1
- package/build/types/modules/_.d.ts.map +0 -1
- package/build/types/modules/did.d.ts.map +0 -1
- package/build/types/modules/feeabstraction.d.ts.map +0 -1
- package/build/types/modules/feemarket.d.ts.map +0 -1
- package/build/types/modules/resource.d.ts.map +0 -1
- package/build/types/querier.d.ts.map +0 -1
- package/build/types/registry.d.ts.map +0 -1
- package/build/types/signer.d.ts.map +0 -1
- package/build/types/types.d.ts.map +0 -1
- package/build/types/utils.d.ts.map +0 -1
- package/build/types.d.ts.map +0 -1
- package/build/types.js.map +0 -1
- package/build/utils.d.ts.map +0 -1
- package/build/utils.js.map +0 -1
- /package/build/{types.js → cjs/src/types.js} +0 -0
- /package/build/{modules → esm/src/modules}/_.d.ts +0 -0
- /package/build/{modules → esm/src/modules}/_.js +0 -0
- /package/build/{modules → esm/src/modules}/feeabstraction.d.ts +0 -0
- /package/build/{modules → esm/src/modules}/feeabstraction.js +0 -0
- /package/build/{modules → esm/src/modules}/feemarket.d.ts +0 -0
- /package/build/{modules → esm/src/modules}/feemarket.js +0 -0
- /package/build/{querier.d.ts → esm/src/querier.d.ts} +0 -0
- /package/build/{querier.js → esm/src/querier.js} +0 -0
- /package/build/{registry.d.ts → esm/src/registry.d.ts} +0 -0
- /package/build/{registry.js → esm/src/registry.js} +0 -0
- /package/build/{signer.d.ts → esm/src/signer.d.ts} +0 -0
- /package/build/{signer.js → esm/src/signer.js} +0 -0
- /package/build/{types → esm/src}/utils.d.ts +0 -0
- /package/build/{utils.js → esm/src/utils.js} +0 -0
- /package/build/types/{modules → esm/src/modules}/_.d.ts +0 -0
- /package/build/types/{modules → esm/src/modules}/feeabstraction.d.ts +0 -0
- /package/build/types/{modules → esm/src/modules}/feemarket.d.ts +0 -0
- /package/build/types/{querier.d.ts → esm/src/querier.d.ts} +0 -0
- /package/build/types/{registry.d.ts → esm/src/registry.d.ts} +0 -0
- /package/build/types/{signer.d.ts → esm/src/signer.d.ts} +0 -0
- /package/build/{utils.d.ts → types/esm/src/utils.d.ts} +0 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { IKeyPair, IKeyValuePair, ISignInputs, VerificationMethods, TMethodSpecificId, MethodSpecificIdAlgo, TVerificationKey, TVerificationKeyPrefix, CheqdNetwork, IVerificationKeys, VerificationMethod, DIDDocument, SpecValidationResult, Service } from './types';
|
|
2
|
+
import { KeyPair } from '@stablelib/ed25519-cjs';
|
|
3
|
+
import { DirectSecp256k1HdWallet, DirectSecp256k1Wallet } from '@cosmjs/proto-signing-cjs';
|
|
4
|
+
import { EnglishMnemonic as _ } from '@cosmjs/crypto-cjs';
|
|
5
|
+
import { Service as ProtoService, DidDoc } from '@cheqd/ts-proto-cjs/cheqd/did/v2';
|
|
6
|
+
import { MsgCreateResourcePayload } from '@cheqd/ts-proto-cjs/cheqd/resource/v2';
|
|
7
|
+
import { Coin } from 'cosmjs-types-cjs/cosmos/base/v1beta1/coin';
|
|
8
|
+
import { BackoffOptions } from 'exponential-backoff-cjs';
|
|
9
|
+
/**
|
|
10
|
+
* Represents an importable Ed25519 key with hexadecimal encoding.
|
|
11
|
+
* This type ensures type safety for Ed25519 key operations.
|
|
12
|
+
*/
|
|
13
|
+
export type TImportableEd25519Key = {
|
|
14
|
+
/** Public key in hexadecimal format */
|
|
15
|
+
publicKeyHex: string;
|
|
16
|
+
/** Private key in hexadecimal format */
|
|
17
|
+
privateKeyHex: string;
|
|
18
|
+
/** Key identifier */
|
|
19
|
+
kid: string;
|
|
20
|
+
/** Key type, must be 'Ed25519' */
|
|
21
|
+
type: 'Ed25519';
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Utility object for validating TImportableEd25519Key objects.
|
|
25
|
+
* Provides type guard functionality to ensure key structure integrity.
|
|
26
|
+
*/
|
|
27
|
+
export declare const TImportableEd25519Key: {
|
|
28
|
+
/**
|
|
29
|
+
* Type guard to validate if an object is a valid TImportableEd25519Key.
|
|
30
|
+
*
|
|
31
|
+
* @param key - Object to validate
|
|
32
|
+
* @returns True if the object is a valid TImportableEd25519Key
|
|
33
|
+
*/
|
|
34
|
+
isValid(key: any): key is TImportableEd25519Key;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Compares two arrays of key-value pairs for equality.
|
|
38
|
+
*
|
|
39
|
+
* @param kv1 - First array of key-value pairs
|
|
40
|
+
* @param kv2 - Second array of key-value pairs
|
|
41
|
+
* @returns True if both arrays contain identical key-value pairs in the same order
|
|
42
|
+
*/
|
|
43
|
+
export declare function isEqualKeyValuePair(kv1: IKeyValuePair[], kv2: IKeyValuePair[]): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Extended English mnemonic class with additional validation patterns.
|
|
46
|
+
* Provides regex pattern matching for mnemonic phrase validation.
|
|
47
|
+
*/
|
|
48
|
+
export declare class EnglishMnemonic extends _ {
|
|
49
|
+
/** Regular expression pattern for validating English mnemonic phrases */
|
|
50
|
+
static readonly _mnemonicMatcher: RegExp;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Creates signing inputs from an importable Ed25519 key by matching it with verification methods.
|
|
54
|
+
* Supports multiple verification method types and key formats.
|
|
55
|
+
*
|
|
56
|
+
* @param key - The Ed25519 key to create signing inputs from
|
|
57
|
+
* @param verificationMethod - Array of verification methods to match against
|
|
58
|
+
* @returns Signing inputs containing verification method ID and private key
|
|
59
|
+
* @throws Error if key validation fails or no matching verification method is found
|
|
60
|
+
*/
|
|
61
|
+
export declare function createSignInputsFromImportableEd25519Key(key: TImportableEd25519Key, verificationMethod: VerificationMethod[]): ISignInputs;
|
|
62
|
+
/**
|
|
63
|
+
* Creates a raw Ed25519 key pair using the StableLib library.
|
|
64
|
+
*
|
|
65
|
+
* @param seed - Optional seed string for deterministic key generation
|
|
66
|
+
* @returns Raw KeyPair object with publicKey and secretKey as Uint8Arrays
|
|
67
|
+
*/
|
|
68
|
+
export declare function createKeyPairRaw(seed?: string): KeyPair;
|
|
69
|
+
/**
|
|
70
|
+
* Creates an Ed25519 key pair with Base64-encoded keys.
|
|
71
|
+
*
|
|
72
|
+
* @param seed - Optional seed string for deterministic key generation
|
|
73
|
+
* @returns Key pair with Base64-encoded public and private keys
|
|
74
|
+
*/
|
|
75
|
+
export declare function createKeyPairBase64(seed?: string): IKeyPair;
|
|
76
|
+
/**
|
|
77
|
+
* Creates an Ed25519 key pair with hexadecimal-encoded keys.
|
|
78
|
+
*
|
|
79
|
+
* @param seed - Optional seed string for deterministic key generation
|
|
80
|
+
* @returns Key pair with hexadecimal-encoded public and private keys
|
|
81
|
+
*/
|
|
82
|
+
export declare function createKeyPairHex(seed?: string): IKeyPair;
|
|
83
|
+
/**
|
|
84
|
+
* Creates verification keys structure with DID URLs and key identifiers.
|
|
85
|
+
* Supports multiple algorithm types and network configurations.
|
|
86
|
+
*
|
|
87
|
+
* @param publicKey - Public key in base64 or hex format
|
|
88
|
+
* @param algo - Algorithm for method-specific ID generation
|
|
89
|
+
* @param keyFragment - Key fragment for the verification key identifier
|
|
90
|
+
* @param network - Cheqd network (defaults to Testnet)
|
|
91
|
+
* @param methodSpecificId - Optional pre-computed method-specific ID
|
|
92
|
+
* @param didUrl - Optional pre-computed DID URL
|
|
93
|
+
* @returns Verification keys structure with all identifiers
|
|
94
|
+
* @throws Error if public key format is invalid
|
|
95
|
+
*/
|
|
96
|
+
export declare function createVerificationKeys(publicKey: string, algo: MethodSpecificIdAlgo, keyFragment: TVerificationKey<TVerificationKeyPrefix, number>, network?: CheqdNetwork, methodSpecificId?: TMethodSpecificId, didUrl?: string): IVerificationKeys;
|
|
97
|
+
/**
|
|
98
|
+
* Creates DID verification methods from verification method types and keys.
|
|
99
|
+
* Supports Ed25519 keys in multiple formats (multibase, base58, JWK).
|
|
100
|
+
*
|
|
101
|
+
* @param verificationMethodTypes - Array of verification method types to create
|
|
102
|
+
* @param verificationKeys - Array of verification keys corresponding to each type
|
|
103
|
+
* @returns Array of formatted verification methods for DID documents
|
|
104
|
+
*/
|
|
105
|
+
export declare function createDidVerificationMethod(verificationMethodTypes: VerificationMethods[], verificationKeys: IVerificationKeys[]): VerificationMethod[];
|
|
106
|
+
/**
|
|
107
|
+
* Creates a complete DID document payload with verification methods and controllers.
|
|
108
|
+
*
|
|
109
|
+
* @param verificationMethods - Array of verification methods for the DID
|
|
110
|
+
* @param verificationKeys - Array of verification keys for authentication
|
|
111
|
+
* @param controller - Optional array of controller DIDs (defaults to self-controlled)
|
|
112
|
+
* @returns Complete DID document with all required fields
|
|
113
|
+
* @throws Error if verification methods or keys are missing
|
|
114
|
+
*/
|
|
115
|
+
export declare function createDidPayload(verificationMethods: VerificationMethod[], verificationKeys: IVerificationKeys[], controller?: string[]): DIDDocument;
|
|
116
|
+
/**
|
|
117
|
+
* Validates a DID document against the Cheqd specification and converts to protobuf format.
|
|
118
|
+
* Ensures all required fields are present and verification methods are supported.
|
|
119
|
+
*
|
|
120
|
+
* @param didDocument - DID document to validate
|
|
121
|
+
* @returns Validation result with protobuf conversion or error details
|
|
122
|
+
*/
|
|
123
|
+
export declare function validateSpecCompliantPayload(didDocument: DIDDocument): SpecValidationResult;
|
|
124
|
+
/**
|
|
125
|
+
* Creates a Cosmos wallet from a seed phrase or private key.
|
|
126
|
+
* Automatically detects whether the input is a mnemonic phrase or hex-encoded private key.
|
|
127
|
+
*
|
|
128
|
+
* @param cosmosPayerSeed - Mnemonic phrase or hexadecimal private key
|
|
129
|
+
* @returns Promise resolving to DirectSecp256k1HdWallet or DirectSecp256k1Wallet
|
|
130
|
+
*/
|
|
131
|
+
export declare function createCosmosPayerWallet(cosmosPayerSeed: string): Promise<DirectSecp256k1HdWallet | DirectSecp256k1Wallet>;
|
|
132
|
+
/**
|
|
133
|
+
* Converts a raw Ed25519 public key to multibase format with proper multicodec header.
|
|
134
|
+
*
|
|
135
|
+
* @param key - Raw Ed25519 public key as Uint8Array
|
|
136
|
+
* @returns Multibase-encoded string with Ed25519 multicodec prefix
|
|
137
|
+
*/
|
|
138
|
+
export declare function toMultibaseRaw(key: Uint8Array): import("multiformats-cjs/bases/base").Multibase<"z">;
|
|
139
|
+
/**
|
|
140
|
+
* Creates a MsgCreateDidDoc payload ready for signing.
|
|
141
|
+
* Validates the DID document and converts it to protobuf format.
|
|
142
|
+
*
|
|
143
|
+
* @param didPayload - DID document to create message payload from
|
|
144
|
+
* @param versionId - Version identifier for the DID document
|
|
145
|
+
* @returns Encoded message payload bytes ready for signing
|
|
146
|
+
*/
|
|
147
|
+
export declare function createMsgCreateDidDocPayloadToSign(didPayload: DIDDocument, versionId: string): Promise<Uint8Array<ArrayBuffer>>;
|
|
148
|
+
/** Alias for createMsgCreateDidDocPayloadToSign - used for DID document updates */
|
|
149
|
+
export declare const createMsgUpdateDidDocPayloadToSign: typeof createMsgCreateDidDocPayloadToSign;
|
|
150
|
+
/**
|
|
151
|
+
* Creates a MsgDeactivateDidDoc payload ready for signing.
|
|
152
|
+
*
|
|
153
|
+
* @param didPayload - DID document containing the ID to deactivate
|
|
154
|
+
* @param versionId - Optional version identifier for the deactivation
|
|
155
|
+
* @returns Encoded deactivation message payload bytes ready for signing
|
|
156
|
+
*/
|
|
157
|
+
export declare function createMsgDeactivateDidDocPayloadToSign(didPayload: DIDDocument, versionId?: string): Uint8Array<ArrayBuffer>;
|
|
158
|
+
/**
|
|
159
|
+
* Creates a MsgCreateResource payload ready for signing.
|
|
160
|
+
*
|
|
161
|
+
* @param payload - Resource creation payload (partial or complete)
|
|
162
|
+
* @returns Encoded resource creation message payload bytes ready for signing
|
|
163
|
+
*/
|
|
164
|
+
export declare function createMsgResourcePayloadToSign(payload: Partial<MsgCreateResourcePayload> | MsgCreateResourcePayload): Uint8Array<ArrayBuffer>;
|
|
165
|
+
/**
|
|
166
|
+
* Derives a Cosmos account address from a hexadecimal public key.
|
|
167
|
+
* Converts the public key to the appropriate format and generates a bech32 address.
|
|
168
|
+
*
|
|
169
|
+
* @param publicKeyHex - Secp256k1 public key in hexadecimal format
|
|
170
|
+
* @returns Bech32-encoded Cheqd account address
|
|
171
|
+
*/
|
|
172
|
+
export declare function getCosmosAccount(publicKeyHex: string): string;
|
|
173
|
+
/**
|
|
174
|
+
* Checks the balance of all coins for a given address on the blockchain.
|
|
175
|
+
*
|
|
176
|
+
* @param address - Bech32-encoded account address to check balance for
|
|
177
|
+
* @param rpcAddress - RPC endpoint URL of the blockchain node
|
|
178
|
+
* @returns Promise resolving to array of coin balances
|
|
179
|
+
*/
|
|
180
|
+
export declare function checkBalance(address: string, rpcAddress: string): Promise<readonly Coin[]>;
|
|
181
|
+
/**
|
|
182
|
+
* Checks if a given input is valid JSON.
|
|
183
|
+
*
|
|
184
|
+
* @param input - Input to validate as JSON
|
|
185
|
+
* @returns True if the input is a valid JSON string
|
|
186
|
+
*/
|
|
187
|
+
export declare function isJSON(input: any): boolean;
|
|
188
|
+
/** Default configuration options for exponential backoff retry logic */
|
|
189
|
+
export declare const DefaultBackoffOptions: BackoffOptions;
|
|
190
|
+
/**
|
|
191
|
+
* Retries a function with exponential backoff strategy.
|
|
192
|
+
* Provides configurable retry logic with jitter and delay options.
|
|
193
|
+
*
|
|
194
|
+
* @template T - Return type of the function being retried
|
|
195
|
+
* @param fn - Async function to retry
|
|
196
|
+
* @param options - Optional backoff configuration (uses defaults if not provided)
|
|
197
|
+
* @returns Promise resolving to the function result or undefined if all retries fail
|
|
198
|
+
*/
|
|
199
|
+
export declare function retry<T>(fn: () => Promise<T>, options?: BackoffOptions): Promise<T | undefined>;
|
|
200
|
+
/**
|
|
201
|
+
* Normalizes the authentication property of a DID document to an array of strings.
|
|
202
|
+
* Handles both string references and embedded verification method objects.
|
|
203
|
+
*
|
|
204
|
+
* @param didDocument - DID document to normalize authentication for
|
|
205
|
+
* @returns Array of authentication method identifiers
|
|
206
|
+
* @throws Error if authentication section is missing
|
|
207
|
+
*/
|
|
208
|
+
export declare function normalizeAuthentication(didDocument: DIDDocument): string[];
|
|
209
|
+
/**
|
|
210
|
+
* Normalizes the controller property of a DID document to an array of strings.
|
|
211
|
+
* Defaults to self-controlled if no controller is specified.
|
|
212
|
+
*
|
|
213
|
+
* @param didDocument - DID document to normalize controller for
|
|
214
|
+
* @returns Array of controller DID identifiers
|
|
215
|
+
*/
|
|
216
|
+
export declare function normalizeController(didDocument: DIDDocument): string[];
|
|
217
|
+
/**
|
|
218
|
+
* Normalizes DID document services to protobuf format.
|
|
219
|
+
* Converts service endpoints to arrays and includes optional properties.
|
|
220
|
+
*
|
|
221
|
+
* @param didDocument - DID document containing services to normalize
|
|
222
|
+
* @returns Array of protobuf-formatted services or undefined if no services
|
|
223
|
+
*/
|
|
224
|
+
export declare function normalizeService(didDocument: DIDDocument): ProtoService[] | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Converts protobuf services back to standard DID document service format.
|
|
227
|
+
* Handles special context requirements for LinkedDomains services.
|
|
228
|
+
*
|
|
229
|
+
* @param didDocument - Protobuf DID document containing services to denormalize
|
|
230
|
+
* @returns Array of standard DID document services
|
|
231
|
+
*/
|
|
232
|
+
export declare function denormalizeService(didDocument: DidDoc): Service[];
|
|
233
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../cjs/src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,QAAQ,EACR,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EAGpB,OAAO,EACP,MAAM,SAAS,CAAC;AAIjB,OAAO,EAA4C,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC3F,OAAO,EAAE,eAAe,IAAI,CAAC,EAAU,MAAM,oBAAoB,CAAC;AAIlE,OAAO,EAEN,OAAO,IAAI,YAAY,EAGvB,MAAM,EACN,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAGjF,OAAO,EAAE,IAAI,EAAE,MAAM,2CAA2C,CAAC;AACjE,OAAO,EAAW,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAElE;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IACnC,uCAAuC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,kCAAkC;IAClC,IAAI,EAAE,SAAS,CAAC;CA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;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,EAAE,CAS1E;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,EAAE,CAItE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,WAAW,GAAG,YAAY,EAAE,GAAG,SAAS,CAYrF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,EAAE,CAqBjE"}
|
|
@@ -8,6 +8,9 @@ import { CheqdNetwork, IModuleMethodMap } from './types.js';
|
|
|
8
8
|
import { GasPrice } from '@cosmjs/stargate';
|
|
9
9
|
import { CheqdQuerier } from './querier.js';
|
|
10
10
|
import { FeeabstractionExtension, FeeabstractionModule, MinimalImportableFeeabstractionModule } from './modules/feeabstraction.js';
|
|
11
|
+
import { OracleExtension } from './modules/oracle.js';
|
|
12
|
+
import { MinimalImportableOracleModule } from './modules/oracle';
|
|
13
|
+
import { OracleModule } from '../../cjs/src/modules/oracle';
|
|
11
14
|
/**
|
|
12
15
|
* Configuration options for initializing the CheqdSDK
|
|
13
16
|
*/
|
|
@@ -30,7 +33,7 @@ export interface ICheqdSDKOptions {
|
|
|
30
33
|
/**
|
|
31
34
|
* Default SDK modules that provide core functionality for DID, Resource, Feemarket, and Fee abstraction operations
|
|
32
35
|
*/
|
|
33
|
-
export type DefaultCheqdSDKModules = MinimalImportableDIDModule & MinimalImportableResourceModule & MinimalImportableFeemarketModule & MinimalImportableFeeabstractionModule;
|
|
36
|
+
export type DefaultCheqdSDKModules = MinimalImportableDIDModule & MinimalImportableResourceModule & MinimalImportableFeemarketModule & MinimalImportableFeeabstractionModule & MinimalImportableOracleModule;
|
|
34
37
|
/**
|
|
35
38
|
* Main CheqdSDK class that provides a comprehensive interface for interacting with the Cheqd blockchain.
|
|
36
39
|
* This class orchestrates modules for DID operations, resource management, fee market interactions,
|
|
@@ -49,7 +52,7 @@ export declare class CheqdSDK {
|
|
|
49
52
|
/** Signing client for executing transactions on the blockchain */
|
|
50
53
|
signer: CheqdSigningStargateClient;
|
|
51
54
|
/** Query client with extensions for reading blockchain data */
|
|
52
|
-
querier: CheqdQuerier & DidExtension & ResourceExtension & FeemarketExtension & FeeabstractionExtension;
|
|
55
|
+
querier: CheqdQuerier & DidExtension & ResourceExtension & FeemarketExtension & FeeabstractionExtension & OracleExtension;
|
|
53
56
|
/** Configuration options passed during SDK initialization */
|
|
54
57
|
options: ICheqdSDKOptions;
|
|
55
58
|
/** List of method names that are protected from external access */
|
|
@@ -126,12 +129,13 @@ export declare function filterUnauthorizedMethods(methods: IModuleMethodMap, aut
|
|
|
126
129
|
* @returns Promise resolving to a fully initialized and ready-to-use CheqdSDK instance
|
|
127
130
|
*/
|
|
128
131
|
export declare function createCheqdSDK(options: ICheqdSDKOptions): Promise<CheqdSDK>;
|
|
129
|
-
export { DIDModule, ResourceModule, FeemarketModule, FeeabstractionModule };
|
|
132
|
+
export { DIDModule, ResourceModule, FeemarketModule, FeeabstractionModule, OracleModule };
|
|
130
133
|
export { AbstractCheqdSDKModule, applyMixins } from './modules/_.js';
|
|
131
134
|
export { DidExtension, MinimalImportableDIDModule, MsgCreateDidDocEncodeObject, MsgCreateDidDocResponseEncodeObject, MsgUpdateDidDocEncodeObject, MsgUpdateDidDocResponseEncodeObject, MsgDeactivateDidDocEncodeObject, MsgDeactivateDidDocResponseEncodeObject, contexts, defaultDidExtensionKey, protobufLiterals as protobufLiteralsDid, typeUrlMsgCreateDidDoc, typeUrlMsgCreateDidDocResponse, typeUrlMsgUpdateDidDoc, typeUrlMsgUpdateDidDocResponse, typeUrlMsgDeactivateDidDoc, typeUrlMsgDeactivateDidDocResponse, setupDidExtension, isMsgCreateDidDocEncodeObject, isMsgUpdateDidDocEncodeObject, isMsgDeactivateDidDocEncodeObject, } from './modules/did.js';
|
|
132
135
|
export { ResourceExtension, MinimalImportableResourceModule, defaultResourceExtensionKey, protobufLiterals as protobufLiteralsResource, typeUrlMsgCreateResource, typeUrlMsgCreateResourceResponse, setupResourceExtension, isMsgCreateResourceEncodeObject, } from './modules/resource.js';
|
|
133
136
|
export { FeemarketExtension, MinimalImportableFeemarketModule, DefaultGasPriceTiers, defaultFeemarketExtensionKey, defaultGasPriceTiers, protobufLiterals as protobufLiteralsFeemarket, typeUrlGasPriceResponse, typeUrlGasPricesResponse, typeUrlParamsResponse, setupFeemarketExtension, isGasPriceEncodeObject, isGasPricesEncodeObject, isParamsEncodeObject, } from './modules/feemarket.js';
|
|
134
137
|
export { FeeabstractionExtension, MinimalImportableFeeabstractionModule, defaultFeeabstractionExtensionKey, protobufLiterals as protobufLiteralsFeeabstraction, typeUrlMsgAddHostZone, typeUrlMsgAddHostZoneResponse, typeUrlMsgFundFeeAbsModuleAccount, typeUrlMsgFundFeeAbsModuleAccountResponse, typeUrlMsgRemoveHostZone, typeUrlMsgRemoveHostZoneResponse, typeUrlMsgUpdateHostZone, typeUrlMsgUpdateHostZoneResponse, typeUrlMsgSendQueryIbcDenomTWAP, typeUrlMsgSendQueryIbcDenomTWAPResponse, typeUrlMsgSwapCrossChain, typeUrlMsgSwapCrossChainResponse, typeUrlMsgUpdateParams, typeUrlMsgUpdateParamsResponse, setupFeeabstractionExtension, isMsgAddHostZoneEncodeObject, isMsgAddHostZoneResponseEncodeObject, isMsgFundFeeAbsModuleAccountEncodeObject, isMsgFundFeeAbsModuleAccountResponseEncodeObject, isMsgRemoveHostZoneEncodeObject, isMsgRemoveHostZoneResponseEncodeObject, isMsgUpdateHostZoneEncodeObject, isMsgUpdateHostZoneResponseEncodeObject, isMsgSendQueryIbcDenomTWAPEncodeObject, isMsgSendQueryIbcDenomTWAPResponseEncodeObject, isMsgSwapCrossChainEncodeObject, isMsgSwapCrossChainResponseEncodeObject, isMsgUpdateParamsEncodeObject, isMsgUpdateParamsResponseEncodeObject, } from './modules/feeabstraction.js';
|
|
138
|
+
export { OracleExtension, MinimalImportableOracleModule, OracleGovProposalOptions, MsgAggregateExchangeRatePrevoteEncodeObject, MsgAggregateExchangeRateVoteEncodeObject, MsgDelegateFeedConsentEncodeObject, MsgLegacyGovUpdateParamsEncodeObject, MsgGovUpdateParamsEncodeObject, MsgGovAddDenomsEncodeObject, MsgGovRemoveCurrencyPairProvidersEncodeObject, MsgGovRemoveCurrencyDeviationThresholdsEncodeObject, MsgGovCancelUpdateParamPlanEncodeObject, defaultOracleExtensionKey, protobufLiterals as protobufLiteralsOracle, typeUrlMsgAggregateExchangeRatePrevote, typeUrlMsgAggregateExchangeRatePrevoteResponse, typeUrlMsgAggregateExchangeRateVote, typeUrlMsgAggregateExchangeRateVoteResponse, typeUrlMsgDelegateFeedConsent, typeUrlMsgDelegateFeedConsentResponse, typeUrlMsgLegacyGovUpdateParams, typeUrlMsgLegacyGovUpdateParamsResponse, typeUrlMsgGovUpdateParams, typeUrlMsgGovUpdateParamsResponse, typeUrlMsgGovAddDenoms, typeUrlMsgGovAddDenomsResponse, typeUrlMsgGovRemoveCurrencyPairProviders, typeUrlMsgGovRemoveCurrencyPairProvidersResponse, typeUrlMsgGovRemoveCurrencyDeviationThresholds, typeUrlMsgGovRemoveCurrencyDeviationThresholdsResponse, typeUrlMsgGovCancelUpdateParamPlan, typeUrlMsgGovCancelUpdateParamPlanResponse, isMsgAggregateExchangeRatePrevoteEncodeObject, isMsgAggregateExchangeRateVoteEncodeObject, isMsgDelegateFeedConsentEncodeObject, isMsgLegacyGovUpdateParamsEncodeObject, isMsgGovUpdateParamsEncodeObject, isMsgGovAddDenomsEncodeObject, isMsgGovRemoveCurrencyPairProvidersEncodeObject, isMsgGovRemoveCurrencyDeviationThresholdsEncodeObject, isMsgGovCancelUpdateParamPlanEncodeObject, setupOracleExtension, } from './modules/oracle.js';
|
|
135
139
|
export * from './signer.js';
|
|
136
140
|
export * from './querier.js';
|
|
137
141
|
export * from './registry.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC5E,MAAM,EAAE,CAAC,EACT,GAAG,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAC/B,CAAC,CAEH;AAED;;;;;;GAMG;AAEH,wBAAgB,sCAAsC,CAAC,MAAM,EAAE,GAAG,GAAG,QAAQ,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAErG;AAED,wBAAgB,8CAA8C,CAAC,MAAM,EAAE,GAAG,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAEpG;AAED,wBAAgB,WAAW,CAAC,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,gBAAgB,CAmBnF"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { DeliverTxResponse, QueryClient } from '@cosmjs/stargate';
|
|
2
2
|
import { AbstractCheqdSDKModule, MinimalImportableCheqdSDKModule } from './_.js';
|
|
3
3
|
import { CheqdSigningStargateClient } from '../signer.js';
|
|
4
|
-
import { DIDDocument, DidStdFee, IContext, ISignInputs, QueryExtensionSetup, SpecValidationResult, DIDDocumentWithMetadata, AuthenticationValidationResult } from '../types.js';
|
|
5
|
-
import { MsgCreateDidDoc, MsgCreateDidDocResponse, MsgDeactivateDidDoc, MsgDeactivateDidDocResponse, MsgUpdateDidDoc, MsgUpdateDidDocResponse, SignInfo, QueryAllDidDocVersionsMetadataResponse, DidDocWithMetadata, DidDoc, Metadata } from '@cheqd/ts-proto/cheqd/did/v2/index.js';
|
|
4
|
+
import { DIDDocument, DidStdFee, IContext, ISignInputs, QueryExtensionSetup, SpecValidationResult, DIDDocumentWithMetadata, AuthenticationValidationResult, DidFeeOptions } from '../types.js';
|
|
5
|
+
import { MsgCreateDidDoc, MsgCreateDidDocResponse, MsgDeactivateDidDoc, MsgDeactivateDidDocResponse, MsgUpdateDidDoc, MsgUpdateDidDocResponse, SignInfo, QueryAllDidDocVersionsMetadataResponse, DidDocWithMetadata, DidDoc, Metadata, QueryParamsResponse, FeeRange } from '@cheqd/ts-proto/cheqd/did/v2/index.js';
|
|
6
6
|
import { EncodeObject, GeneratedType } from '@cosmjs/proto-signing';
|
|
7
7
|
import { CheqdQuerier } from '../querier.js';
|
|
8
8
|
import { DIDDocumentMetadata } from 'did-resolver';
|
|
9
|
+
import { OracleExtension } from './oracle.js';
|
|
10
|
+
import { Coin } from 'cosmjs-types/cosmos/base/v1beta1/coin.js';
|
|
9
11
|
/** Default extension key for DID-related query operations */
|
|
10
12
|
export declare const defaultDidExtensionKey: "did";
|
|
11
13
|
/**
|
|
@@ -172,6 +174,8 @@ export type DidExtension = {
|
|
|
172
174
|
readonly didDocVersion: (id: string, versionId: string) => Promise<DidDocWithMetadata>;
|
|
173
175
|
/** Query metadata for all versions of a DID document */
|
|
174
176
|
readonly allDidDocVersionsMetadata: (id: string, paginationKey?: Uint8Array) => Promise<QueryAllDidDocVersionsMetadataResponse>;
|
|
177
|
+
/** Query DID module parameters */
|
|
178
|
+
readonly params: () => Promise<QueryParamsResponse>;
|
|
175
179
|
};
|
|
176
180
|
};
|
|
177
181
|
/**
|
|
@@ -190,6 +194,10 @@ export declare class DIDModule extends AbstractCheqdSDKModule {
|
|
|
190
194
|
static readonly registryTypes: Iterable<[string, GeneratedType]>;
|
|
191
195
|
/** Base denomination for Cheqd network transactions */
|
|
192
196
|
static readonly baseMinimalDenom: "ncheq";
|
|
197
|
+
/** Base denomination in USD for Cheqd network transactions */
|
|
198
|
+
static readonly baseUsdDenom: "usd";
|
|
199
|
+
/** Default slippage tolerance in base points (BPS) */
|
|
200
|
+
static readonly defaultSlippageBps = 500n;
|
|
193
201
|
/**
|
|
194
202
|
* Standard fee amounts for DID operations.
|
|
195
203
|
* These represent the default costs for different DID document operations.
|
|
@@ -210,18 +218,45 @@ export declare class DIDModule extends AbstractCheqdSDKModule {
|
|
|
210
218
|
readonly amount: "10000000000";
|
|
211
219
|
readonly denom: "ncheq";
|
|
212
220
|
};
|
|
221
|
+
/** Default fee for creating a new DID document in USD */
|
|
222
|
+
readonly DefaultCreateDidDocFeeUSD: {
|
|
223
|
+
readonly amount: "2000000000000000000";
|
|
224
|
+
readonly denom: "usd";
|
|
225
|
+
};
|
|
226
|
+
/** Default fee for updating an existing DID document in USD */
|
|
227
|
+
readonly DefaultUpdateDidDocFeeUSD: {
|
|
228
|
+
readonly amount: "1000000000000000000";
|
|
229
|
+
readonly denom: "usd";
|
|
230
|
+
};
|
|
231
|
+
/** Default fee for deactivating a DID document in USD */
|
|
232
|
+
readonly DefaultDeactivateDidDocFeeUSD: {
|
|
233
|
+
readonly amount: "400000000000000000";
|
|
234
|
+
readonly denom: "usd";
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Standard gas limits for DID operations.
|
|
239
|
+
* These represent the default gas limits for different DID document operations.
|
|
240
|
+
*/
|
|
241
|
+
static readonly gasLimits: {
|
|
242
|
+
/** Gas limit for creating a new DID document */
|
|
243
|
+
readonly CreateDidDocGasLimit: "360000";
|
|
244
|
+
/** Gas limit for updating an existing DID document */
|
|
245
|
+
readonly UpdateDidDocGasLimit: "360000";
|
|
246
|
+
/** Gas limit for deactivating a DID document */
|
|
247
|
+
readonly DeactivateDidDocGasLimit: "360000";
|
|
213
248
|
};
|
|
214
249
|
/** Querier extension setup function for DID operations */
|
|
215
250
|
static readonly querierExtensionSetup: QueryExtensionSetup<DidExtension>;
|
|
216
251
|
/** Querier instance with DID extension capabilities */
|
|
217
|
-
querier: CheqdQuerier & DidExtension;
|
|
252
|
+
querier: CheqdQuerier & DidExtension & OracleExtension;
|
|
218
253
|
/**
|
|
219
254
|
* Constructs a new DID module instance.
|
|
220
255
|
*
|
|
221
256
|
* @param signer - Signing client for blockchain transactions
|
|
222
257
|
* @param querier - Querier client with DID extension for data retrieval
|
|
223
258
|
*/
|
|
224
|
-
constructor(signer: CheqdSigningStargateClient, querier: CheqdQuerier & DidExtension);
|
|
259
|
+
constructor(signer: CheqdSigningStargateClient, querier: CheqdQuerier & DidExtension & OracleExtension);
|
|
225
260
|
/**
|
|
226
261
|
* Gets the registry types for DID message encoding/decoding.
|
|
227
262
|
*
|
|
@@ -244,11 +279,12 @@ export declare class DIDModule extends AbstractCheqdSDKModule {
|
|
|
244
279
|
* @param fee - Transaction fee configuration or 'auto' for automatic calculation
|
|
245
280
|
* @param memo - Optional transaction memo
|
|
246
281
|
* @param versionId - Optional version identifier for the DID document
|
|
282
|
+
* @param feeOptions - Optional fee options for the transaction
|
|
247
283
|
* @param context - Optional SDK context for accessing clients
|
|
248
284
|
* @returns Promise resolving to the transaction response
|
|
249
285
|
* @throws Error if DID payload is not spec compliant or authentication is invalid
|
|
250
286
|
*/
|
|
251
|
-
createDidDocTx(signInputs: ISignInputs[] | SignInfo[], didPayload: DIDDocument, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, versionId?: string, context?: IContext): Promise<DeliverTxResponse>;
|
|
287
|
+
createDidDocTx(signInputs: ISignInputs[] | SignInfo[], didPayload: DIDDocument, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, versionId?: string, feeOptions?: DidFeeOptions, context?: IContext): Promise<DeliverTxResponse>;
|
|
252
288
|
/**
|
|
253
289
|
* Updates an existing DID document transaction on the blockchain.
|
|
254
290
|
* Validates the updated DID payload and handles key rotation scenarios.
|
|
@@ -259,11 +295,12 @@ export declare class DIDModule extends AbstractCheqdSDKModule {
|
|
|
259
295
|
* @param fee - Transaction fee configuration or 'auto' for automatic calculation
|
|
260
296
|
* @param memo - Optional transaction memo
|
|
261
297
|
* @param versionId - Optional version identifier for the updated DID document
|
|
298
|
+
* @param feeOptions - Optional fee options for the transaction
|
|
262
299
|
* @param context - Optional SDK context for accessing clients
|
|
263
300
|
* @returns Promise resolving to the transaction response
|
|
264
301
|
* @throws Error if DID payload is not spec compliant or authentication is invalid
|
|
265
302
|
*/
|
|
266
|
-
updateDidDocTx(signInputs: ISignInputs[] | SignInfo[], didPayload: DIDDocument, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, versionId?: string, context?: IContext): Promise<DeliverTxResponse>;
|
|
303
|
+
updateDidDocTx(signInputs: ISignInputs[] | SignInfo[], didPayload: DIDDocument, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, versionId?: string, feeOptions?: DidFeeOptions, context?: IContext): Promise<DeliverTxResponse>;
|
|
267
304
|
/**
|
|
268
305
|
* Deactivates an existing DID document transaction on the blockchain.
|
|
269
306
|
* Validates authentication and creates a deactivation transaction.
|
|
@@ -274,11 +311,12 @@ export declare class DIDModule extends AbstractCheqdSDKModule {
|
|
|
274
311
|
* @param fee - Transaction fee configuration or 'auto' for automatic calculation
|
|
275
312
|
* @param memo - Optional transaction memo
|
|
276
313
|
* @param versionId - Optional version identifier for the deactivation
|
|
314
|
+
* @param feeOptions - Optional fee options for the transaction
|
|
277
315
|
* @param context - Optional SDK context for accessing clients
|
|
278
316
|
* @returns Promise resolving to the transaction response
|
|
279
317
|
* @throws Error if DID payload is not spec compliant or authentication is invalid
|
|
280
318
|
*/
|
|
281
|
-
deactivateDidDocTx(signInputs: ISignInputs[] | SignInfo[], didPayload: DIDDocument, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, versionId?: string, context?: IContext): Promise<DeliverTxResponse>;
|
|
319
|
+
deactivateDidDocTx(signInputs: ISignInputs[] | SignInfo[], didPayload: DIDDocument, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, versionId?: string, feeOptions?: DidFeeOptions, context?: IContext): Promise<DeliverTxResponse>;
|
|
282
320
|
/**
|
|
283
321
|
* Queries a DID document by its identifier.
|
|
284
322
|
* Retrieves the latest version of the DID document with metadata.
|
|
@@ -309,6 +347,70 @@ export declare class DIDModule extends AbstractCheqdSDKModule {
|
|
|
309
347
|
didDocumentVersionsMetadata: DIDDocumentMetadata[];
|
|
310
348
|
pagination: QueryAllDidDocVersionsMetadataResponse['pagination'];
|
|
311
349
|
}>;
|
|
350
|
+
/**
|
|
351
|
+
* Queries the DID module parameters from the blockchain.
|
|
352
|
+
* @param context - Optional SDK context for accessing clients
|
|
353
|
+
* @returns Promise resolving to the DID module parameters
|
|
354
|
+
*/
|
|
355
|
+
queryParams(context?: IContext): Promise<QueryParamsResponse>;
|
|
356
|
+
/**
|
|
357
|
+
* Generates oracle-powered fees for creating a DID document.
|
|
358
|
+
*
|
|
359
|
+
* @param feePayer - Address of the account that will pay the transaction fees
|
|
360
|
+
* @param granter - Optional address of the account granting fee payment permissions
|
|
361
|
+
* @param feeOptions - Options for fetching oracle fees
|
|
362
|
+
* @param context - Optional SDK context for accessing clients
|
|
363
|
+
* @returns Promise resolving to the fee configuration for DID document creation with oracle fees
|
|
364
|
+
*/
|
|
365
|
+
generateCreateDidDocFees(feePayer: string, granter?: string, feeOptions?: DidFeeOptions, context?: IContext): Promise<DidStdFee>;
|
|
366
|
+
/**
|
|
367
|
+
* Generates oracle-powered fees for updating a DID document.
|
|
368
|
+
*
|
|
369
|
+
* @param feePayer - Address of the account that will pay the transaction fees
|
|
370
|
+
* @param granter - Optional address of the account granting fee payment permissions
|
|
371
|
+
* @param feeOptions - Options for fetching oracle fees
|
|
372
|
+
* @param context - Optional SDK context for accessing clients
|
|
373
|
+
* @returns Promise resolving to the fee configuration for DID document update with oracle fees
|
|
374
|
+
*/
|
|
375
|
+
generateUpdateDidDocFees(feePayer: string, granter?: string, fetchOptions?: DidFeeOptions, context?: IContext): Promise<DidStdFee>;
|
|
376
|
+
/** Generates oracle-powered fees for deactivating a DID document.
|
|
377
|
+
*
|
|
378
|
+
* @param feePayer - Address of the account that will pay the transaction fees
|
|
379
|
+
* @param granter - Optional address of the account granting fee payment permissions
|
|
380
|
+
* @param feeOptions - Options for fetching oracle fees
|
|
381
|
+
* @param context - Optional SDK context for accessing clients
|
|
382
|
+
* @returns Promise resolving to the fee configuration for DID document deactivation with oracle fees
|
|
383
|
+
*/
|
|
384
|
+
generateDeactivateDidDocFees(feePayer: string, granter?: string, feeOptions?: DidFeeOptions, context?: IContext): Promise<DidStdFee>;
|
|
385
|
+
/**
|
|
386
|
+
* Gets the fee range for a specific DID operation from the module parameters.
|
|
387
|
+
* @param feeParams - DID module fee parameters
|
|
388
|
+
* @param operation - DID operation type ('create', 'update', 'deactivate')
|
|
389
|
+
* @param feeOptions - Options for fee retrieval
|
|
390
|
+
* @returns Promise resolving to the fee range for the specified operation
|
|
391
|
+
*/
|
|
392
|
+
getPriceRangeFromParams(feeParams: QueryParamsResponse, operation: 'create' | 'update' | 'deactivate', feeOptions?: DidFeeOptions): Promise<FeeRange>;
|
|
393
|
+
/**
|
|
394
|
+
* Calculates the oracle fee amount based on the provided fee range and options.
|
|
395
|
+
* @param feeRange - Fee range for the DID operation
|
|
396
|
+
* @param feeOptions - Options for fee calculation
|
|
397
|
+
* @param context - Optional SDK context for accessing clients
|
|
398
|
+
* @returns Promise resolving to the calculated fee amount as a Coin
|
|
399
|
+
*/
|
|
400
|
+
private calculateOracleFeeAmount;
|
|
401
|
+
/**
|
|
402
|
+
* Applies slippage to a given coin amount based on the specified basis points.
|
|
403
|
+
* @param coin - Coin amount to apply slippage to
|
|
404
|
+
* @param slippageBps - Slippage in basis points (bps)
|
|
405
|
+
* @returns Coin with adjusted amount after applying slippage
|
|
406
|
+
*/
|
|
407
|
+
static applySlippageToCoin(coin: Coin, slippageBps: number): Coin;
|
|
408
|
+
/**
|
|
409
|
+
* Checks if a fee range represents a fixed fee (minAmount equals maxAmount).
|
|
410
|
+
* @param feeRange - Fee range to check
|
|
411
|
+
* @returns True if the fee range is fixed, false otherwise
|
|
412
|
+
*/
|
|
413
|
+
static isFixedRange(feeRange: FeeRange): boolean;
|
|
312
414
|
/**
|
|
313
415
|
* Validates a DID document against the Cheqd specification requirements.
|
|
314
416
|
* Ensures all required fields are present and verification methods are supported.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"did.d.ts","sourceRoot":"","sources":["../../../../../src/modules/did.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,iBAAiB,EAAE,WA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