@trustvc/trustvc 2.8.0 → 2.9.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/cjs/{document-store/deploy.js → deploy/document-store.js} +18 -18
- package/dist/cjs/deploy/token-registry.js +97 -0
- package/dist/cjs/document-store/document-store-roles.js +4 -10
- package/dist/cjs/document-store/index.js +7 -2
- package/dist/cjs/document-store/transferOwnership.js +55 -7
- package/dist/cjs/index.js +8 -0
- package/dist/cjs/token-registry-functions/index.js +7 -0
- package/dist/cjs/token-registry-functions/ownerOf.js +9 -7
- package/dist/cjs/token-registry-functions/utils.js +39 -0
- package/dist/cjs/token-registry-v5/index.js +4 -4
- package/dist/cjs/utils/ethers/index.js +6 -2
- package/dist/esm/{document-store/deploy.js → deploy/document-store.js} +19 -19
- package/dist/esm/deploy/token-registry.js +95 -0
- package/dist/esm/document-store/document-store-roles.js +4 -10
- package/dist/esm/document-store/index.js +2 -1
- package/dist/esm/document-store/transferOwnership.js +55 -7
- package/dist/esm/index.js +1 -1
- package/dist/esm/token-registry-functions/index.js +1 -0
- package/dist/esm/token-registry-functions/ownerOf.js +9 -7
- package/dist/esm/token-registry-functions/utils.js +38 -2
- package/dist/esm/token-registry-v5/index.js +1 -1
- package/dist/esm/utils/ethers/index.js +7 -4
- package/dist/types/deploy/document-store.d.ts +77 -0
- package/dist/types/deploy/token-registry.d.ts +82 -0
- package/dist/types/document-store/grant-role.d.ts +2 -2
- package/dist/types/document-store/index.d.ts +2 -1
- package/dist/types/document-store/transferOwnership.d.ts +5 -5
- package/dist/types/index.d.ts +16 -13
- package/dist/types/token-registry-functions/index.d.ts +1 -0
- package/dist/types/token-registry-functions/ownerOf.d.ts +1 -1
- package/dist/types/token-registry-functions/types.d.ts +26 -1
- package/dist/types/token-registry-functions/utils.d.ts +7 -4
- package/dist/types/token-registry-v5/index.d.ts +1 -2
- package/dist/types/utils/ethers/index.d.ts +6 -5
- package/package.json +1 -1
- package/dist/types/document-store/deploy.d.ts +0 -29
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Signer as Signer$1, ContractTransactionReceipt } from 'ethersV6';
|
|
2
|
-
import { Signer, ContractReceipt } from 'ethers';
|
|
3
|
-
import { CHAIN_ID } from '../utils/supportedChains/index.js';
|
|
4
|
-
import { GasValue } from '../token-registry-functions/types.js';
|
|
5
|
-
import '../utils/gasStation/index.js';
|
|
6
|
-
import '../utils/network/index.js';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Deploys a new DocumentStore contract.
|
|
10
|
-
* Supports both Ethers v5 and v6 signers.
|
|
11
|
-
* @param {string} storeName - The name of the document store.
|
|
12
|
-
* @param {string} owner - The owner address of the document store.
|
|
13
|
-
* @param {SignerV5 | SignerV6} signer - Signer instance (Ethers v5 or v6) that authorizes the deployment.
|
|
14
|
-
* @param {DeployOptions} options - Optional transaction metadata including gas values and chain ID.
|
|
15
|
-
* @returns {Promise<TransactionReceipt>} A promise resolving to the deployed contract address and transaction hash.
|
|
16
|
-
* @throws {Error} If the signer provider is not provided.
|
|
17
|
-
* @throws {Error} If the store name or owner address is not provided.
|
|
18
|
-
* @throws {Error} If deployment fails.
|
|
19
|
-
*/
|
|
20
|
-
interface DeployOptions {
|
|
21
|
-
chainId?: CHAIN_ID;
|
|
22
|
-
maxFeePerGas?: GasValue;
|
|
23
|
-
maxPriorityFeePerGas?: GasValue;
|
|
24
|
-
isTransferable?: boolean;
|
|
25
|
-
}
|
|
26
|
-
type TransactionReceipt = ContractReceipt | ContractTransactionReceipt;
|
|
27
|
-
declare const deployDocumentStore: (storeName: string, owner: string, signer: Signer | Signer$1, options?: DeployOptions) => Promise<TransactionReceipt>;
|
|
28
|
-
|
|
29
|
-
export { type DeployOptions, type TransactionReceipt, deployDocumentStore };
|