opacity-issuer-core 0.2.2 → 0.3.0
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/README.md +12 -2
- package/dist/index-B8xCRZt1.d.cts +452 -0
- package/dist/index-g1WcqTfP.d.ts +452 -0
- package/dist/index.cjs +439 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +182 -130
- package/dist/index.d.ts +182 -130
- package/dist/index.js +440 -57
- package/dist/index.js.map +1 -1
- package/dist/subgraph.d.cts +4 -415
- package/dist/subgraph.d.ts +4 -415
- package/package.json +1 -1
- package/dist/transport-0_X4HTI6.d.ts +0 -39
- package/dist/transport-uaC5Yl3p.d.cts +0 -39
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { O as OpacityIssuerError } from './
|
|
2
|
-
export { F as FetchLike,
|
|
1
|
+
import { O as OpacityIssuerError, a as OpacityIndexerNamespace } from './index-B8xCRZt1.cjs';
|
|
2
|
+
export { F as FetchLike, K as OpacityAttestationError, M as OpacityConfigError } from './index-B8xCRZt1.cjs';
|
|
3
3
|
export { AttestationSessionResponseLike, BuildSandboxAddSelfTransactionParams, BuildSandboxRegisterIssuerTransactionParams, BuildSandboxSetSelfTraitTransactionParams, DOCUMENT_ACCEPTANCE_PRIMARY_TYPE, DOCUMENT_ACCEPTANCE_TYPEHASH, DOCUMENT_ACCEPTANCE_TYPES, DOCUMENT_ATTESTOR_DOMAIN_NAME, DOCUMENT_ATTESTOR_DOMAIN_VERSION, DocumentAcceptanceMessage, DocumentAcceptanceTypedData, DocumentAttestorDomain, ECDSA_SIGNATURE_BYTES, EIP712_DOMAIN_TYPE, Eip712JsonPayload, Eip712TypeField, EthersTypedData, JsonRpcTransaction, MAX_ATTESTATION_LIFETIME_SECONDS, ProbeSandboxRegistryParams, SANDBOX_CHAIN_ID, SANDBOX_DEPLOYMENTS, SANDBOX_IMPLEMENTATION_VERSION, SANDBOX_TRAIT_IDS, SEPOLIA_CHAIN_ID, SandboxAddSelfWriteContractRequest, SandboxDeployment, SandboxProbeClient, SandboxProbeEvidence, SandboxRegisterIssuerWriteContractRequest, SandboxRegistryProbe, SandboxSetSelfTraitWriteContractRequest, ServerAttestationTypedData, ToViemTypedDataOptions, VerifyAttestationSessionFields, VerifyAttestationSessionParams, VerifyAttestationSessionResponseParams, WriteContractRequest, assertDocumentMatchesHash, buildAttestDocumentTransaction, buildDocumentAcceptanceTypedData, buildSandboxAddSelfTransaction, buildSandboxRegisterIssuerTransaction, buildSandboxSetSelfTraitTransaction, documentAttestorAbi, documentTraitId, getSandboxDeployment, hashDocument, hashDocumentAcceptance, probeSandboxRegistry, requireSandboxDeployment, sandboxAllowlistRegistryAbi, sandboxUserId, toEip1193Json, toEip1193TypedData, toEip712Json, toEip712JsonPayload, toEthersTypedData, toJsonRpcTransaction, toSandboxAddSelfWriteContractRequest, toSandboxRegisterIssuerWriteContractRequest, toSandboxSetSelfTraitWriteContractRequest, toViemTypedData, toWriteContractRequest, verifyAttestationSession } from './documents/index.cjs';
|
|
4
4
|
export { A as AttestationErrorCode, a as AttestationSession, B as BuildAttestDocumentTransactionParams, b as BuildDocumentAcceptanceTypedDataParams, C as ClockOptions, D as DocumentAttestorContext, T as TransactionRequest } from './types-B4Yi7WA4.cjs';
|
|
5
5
|
import * as viem from 'viem';
|
|
6
|
-
import { PublicClient, WalletClient, Address, Hex, Hash, TransactionReceipt,
|
|
6
|
+
import { PublicClient, WalletClient, Address, Hex, Hash, TransactionReceipt, Abi, ContractFunctionName, ContractFunctionArgs, Transport, Chain, PrivateKeyAccount } from 'viem';
|
|
7
7
|
|
|
8
8
|
/** SecurityTokenVault deposit plus errors from its ERC20 / SecurityToken mint path. */
|
|
9
9
|
declare const securityTokenVaultAbi: readonly [{
|
|
@@ -10060,130 +10060,6 @@ declare function createTransfersNamespace(options?: TransferClientOptions): {
|
|
|
10060
10060
|
};
|
|
10061
10061
|
type OpacityTransfersNamespace = ReturnType<typeof createTransfersNamespace>;
|
|
10062
10062
|
|
|
10063
|
-
/** Trusted protocol addresses, obtained from the deployment manifest, not issuerId or a URL. */
|
|
10064
|
-
interface IssuerProtocolDeployment {
|
|
10065
|
-
chainId: number;
|
|
10066
|
-
factory: Address;
|
|
10067
|
-
allowlistRegistry: Address;
|
|
10068
|
-
beaconRegistry: Address;
|
|
10069
|
-
policyEngine?: Address | undefined;
|
|
10070
|
-
policyRegistry?: Address | undefined;
|
|
10071
|
-
tokenTraitRegistry?: Address | undefined;
|
|
10072
|
-
overrideHelper?: Address | undefined;
|
|
10073
|
-
ruleSetOrchestrator?: Address | undefined;
|
|
10074
|
-
}
|
|
10075
|
-
type FactoryArgs = ContractFunctionArgs<typeof issuerFactoryAbi, 'nonpayable', 'deployToken'>;
|
|
10076
|
-
type IssuerTokenConfig = FactoryArgs[0];
|
|
10077
|
-
type IssuerEngineConfig = FactoryArgs[1];
|
|
10078
|
-
type IssuerAttachedPolicy = IssuerEngineConfig['policies'][number];
|
|
10079
|
-
interface IssuerDeployTokenParams {
|
|
10080
|
-
deployment: IssuerProtocolDeployment;
|
|
10081
|
-
issuer: Address;
|
|
10082
|
-
config: IssuerTokenConfig;
|
|
10083
|
-
engine: IssuerEngineConfig;
|
|
10084
|
-
/** Optional optimistic check before send. Factory has no on-chain expected-nonce argument. */
|
|
10085
|
-
expectedNonce?: bigint | undefined;
|
|
10086
|
-
}
|
|
10087
|
-
interface IssuerClientOptions {
|
|
10088
|
-
chainId?: number | undefined;
|
|
10089
|
-
publicClient?: PublicClient | undefined;
|
|
10090
|
-
walletClient?: WalletClient | undefined;
|
|
10091
|
-
}
|
|
10092
|
-
/** Explicit wallet intent, usable by any wallet adapter. Absence of to means contract creation. */
|
|
10093
|
-
interface IssuerTransaction {
|
|
10094
|
-
to?: Address | undefined;
|
|
10095
|
-
from: Address;
|
|
10096
|
-
chainId: number;
|
|
10097
|
-
data: Hex;
|
|
10098
|
-
value: 0n;
|
|
10099
|
-
}
|
|
10100
|
-
type IssuerDeploymentBlocker = 'issuer-not-authorized' | 'factory-not-authorized' | 'inactive-beacon' | 'policy-not-approved' | 'nonce-changed';
|
|
10101
|
-
interface PreparedIssuerDeployment {
|
|
10102
|
-
params: IssuerDeployTokenParams;
|
|
10103
|
-
blockNumber: bigint;
|
|
10104
|
-
issuerNonce: bigint;
|
|
10105
|
-
predictedToken: Address;
|
|
10106
|
-
resolvedBeaconVariant: Hex;
|
|
10107
|
-
beacon: Address;
|
|
10108
|
-
issuerAuthorized: boolean;
|
|
10109
|
-
factoryAuthorized: boolean;
|
|
10110
|
-
/** Investor KYC is a distinct permission from issuer authorization. */
|
|
10111
|
-
issuerAllowed: boolean;
|
|
10112
|
-
registryAdmin: Address;
|
|
10113
|
-
nativeBalance: bigint;
|
|
10114
|
-
unapprovedPolicies: readonly Address[];
|
|
10115
|
-
blockers: readonly IssuerDeploymentBlocker[];
|
|
10116
|
-
readyToSimulate: boolean;
|
|
10117
|
-
transaction: IssuerTransaction;
|
|
10118
|
-
}
|
|
10119
|
-
interface SubmittedIssuerTransaction {
|
|
10120
|
-
kind: 'transaction';
|
|
10121
|
-
hash: Hash;
|
|
10122
|
-
transaction: IssuerTransaction;
|
|
10123
|
-
}
|
|
10124
|
-
interface SubmittedIssuerDeployment {
|
|
10125
|
-
kind: 'deployment';
|
|
10126
|
-
hash: Hash;
|
|
10127
|
-
transaction: IssuerTransaction;
|
|
10128
|
-
params: IssuerDeployTokenParams;
|
|
10129
|
-
predictedToken: Address;
|
|
10130
|
-
issuerNonce: bigint;
|
|
10131
|
-
}
|
|
10132
|
-
interface IssuerWaitOptions {
|
|
10133
|
-
confirmations?: number | undefined;
|
|
10134
|
-
timeout?: number | undefined;
|
|
10135
|
-
pollingInterval?: number | undefined;
|
|
10136
|
-
}
|
|
10137
|
-
interface IssuerReceiptResult {
|
|
10138
|
-
/** confirmed proves the exact transaction succeeded, not permanent state or an economic outcome. */
|
|
10139
|
-
status: 'confirmed' | 'reverted' | 'unverified' | 'replaced';
|
|
10140
|
-
submittedHash: Hash;
|
|
10141
|
-
hash: Hash;
|
|
10142
|
-
receipt: TransactionReceipt;
|
|
10143
|
-
replacementReason?: 'repriced' | 'cancelled' | 'replaced' | undefined;
|
|
10144
|
-
}
|
|
10145
|
-
interface IssuerDeploymentReceiptResult extends IssuerReceiptResult {
|
|
10146
|
-
/** Present only after exact transaction AND factory deployment event verification. */
|
|
10147
|
-
token?: Address | undefined;
|
|
10148
|
-
}
|
|
10149
|
-
interface IssuerTokenParams {
|
|
10150
|
-
chainId: number;
|
|
10151
|
-
token: Address;
|
|
10152
|
-
tokenId?: bigint | undefined;
|
|
10153
|
-
account?: Address | undefined;
|
|
10154
|
-
}
|
|
10155
|
-
type IssuerSandboxRegistrationBlocker = 'unsupported-sandbox-version' | 'registry-paused' | 'terminal-identity';
|
|
10156
|
-
/** Use a trusted deployment manifest, or an explicit registry operation context. */
|
|
10157
|
-
type IssuerSandboxAccountParams = IssuerOperationContext | {
|
|
10158
|
-
deployment: IssuerProtocolDeployment;
|
|
10159
|
-
from: Address;
|
|
10160
|
-
};
|
|
10161
|
-
/** Capability marker describes the registry, not the policy registry, orchestrator or vault variant. */
|
|
10162
|
-
interface IssuerSandboxCapabilities {
|
|
10163
|
-
chainId: number;
|
|
10164
|
-
registry: Address;
|
|
10165
|
-
account: Address;
|
|
10166
|
-
blockNumber: bigint;
|
|
10167
|
-
/** null means sandboxVersion is absent/reverts; transport failures are propagated instead. */
|
|
10168
|
-
sandboxVersion: bigint | null;
|
|
10169
|
-
supportsSelfOnboarding: boolean;
|
|
10170
|
-
supportsSelfTraits: boolean;
|
|
10171
|
-
supportsIssuerRegistration: boolean;
|
|
10172
|
-
paused: boolean;
|
|
10173
|
-
issuerAuthorized: boolean;
|
|
10174
|
-
allowed: boolean;
|
|
10175
|
-
userId: Hex;
|
|
10176
|
-
entryStatus: number;
|
|
10177
|
-
}
|
|
10178
|
-
interface IssuerPolicyApprovalParams extends IssuerOperationContext {
|
|
10179
|
-
implementation: Address;
|
|
10180
|
-
}
|
|
10181
|
-
/** An explicit full replacement of the target token's current attachment list. */
|
|
10182
|
-
interface IssuerRuleSetParams extends IssuerOperationContext {
|
|
10183
|
-
token: Address;
|
|
10184
|
-
rules: ContractFunctionArgs<typeof issuerRuleSetOrchestratorAbi, 'nonpayable', 'applyRuleSet'>[1];
|
|
10185
|
-
}
|
|
10186
|
-
|
|
10187
10063
|
/** PR #156 ordinals; these are part of the contracts' wire format. */
|
|
10188
10064
|
declare const IssuerRuleType: {
|
|
10189
10065
|
readonly tradingDisabled: 0;
|
|
@@ -10547,6 +10423,175 @@ declare function buildOverrideTransferTransaction(params: {
|
|
|
10547
10423
|
from: Address;
|
|
10548
10424
|
}): IssuerTransaction;
|
|
10549
10425
|
|
|
10426
|
+
/** Protocol addresses resolved from the configured indexer and verified on chain, or explicitly trusted by the caller. */
|
|
10427
|
+
interface IssuerProtocolDeployment {
|
|
10428
|
+
chainId: number;
|
|
10429
|
+
factory: Address;
|
|
10430
|
+
allowlistRegistry: Address;
|
|
10431
|
+
beaconRegistry: Address;
|
|
10432
|
+
policyEngine?: Address | undefined;
|
|
10433
|
+
policyRegistry?: Address | undefined;
|
|
10434
|
+
tokenTraitRegistry?: Address | undefined;
|
|
10435
|
+
overrideHelper?: Address | undefined;
|
|
10436
|
+
ruleSetOrchestrator?: Address | undefined;
|
|
10437
|
+
}
|
|
10438
|
+
type FactoryArgs = ContractFunctionArgs<typeof issuerFactoryAbi, 'nonpayable', 'deployToken'>;
|
|
10439
|
+
type IssuerTokenConfig = FactoryArgs[0];
|
|
10440
|
+
type IssuerEngineConfig = FactoryArgs[1];
|
|
10441
|
+
type IssuerAttachedPolicy = IssuerEngineConfig['policies'][number];
|
|
10442
|
+
interface IssuerDeployTokenParams {
|
|
10443
|
+
deployment: IssuerProtocolDeployment;
|
|
10444
|
+
issuer: Address;
|
|
10445
|
+
config: IssuerTokenConfig;
|
|
10446
|
+
engine: IssuerEngineConfig;
|
|
10447
|
+
/** Optional optimistic check before send. Factory has no on-chain expected-nonce argument. */
|
|
10448
|
+
expectedNonce?: bigint | undefined;
|
|
10449
|
+
}
|
|
10450
|
+
interface IssuerClientOptions {
|
|
10451
|
+
chainId?: number | undefined;
|
|
10452
|
+
publicClient?: PublicClient | undefined;
|
|
10453
|
+
walletClient?: WalletClient | undefined;
|
|
10454
|
+
/** Required only for discoverDeployment; never inferred from static sandbox manifests. */
|
|
10455
|
+
indexer?: IssuerDiscoveryIndexer | undefined;
|
|
10456
|
+
}
|
|
10457
|
+
/** Explicit wallet intent, usable by any wallet adapter. Absence of to means contract creation. */
|
|
10458
|
+
interface IssuerTransaction {
|
|
10459
|
+
to?: Address | undefined;
|
|
10460
|
+
from: Address;
|
|
10461
|
+
chainId: number;
|
|
10462
|
+
data: Hex;
|
|
10463
|
+
value: 0n;
|
|
10464
|
+
}
|
|
10465
|
+
type IssuerDeploymentBlocker = 'issuer-not-authorized' | 'factory-not-authorized' | 'inactive-beacon' | 'policy-not-approved' | 'nonce-changed';
|
|
10466
|
+
interface PreparedIssuerDeployment {
|
|
10467
|
+
params: IssuerDeployTokenParams;
|
|
10468
|
+
blockNumber: bigint;
|
|
10469
|
+
issuerNonce: bigint;
|
|
10470
|
+
predictedToken: Address;
|
|
10471
|
+
resolvedBeaconVariant: Hex;
|
|
10472
|
+
beacon: Address;
|
|
10473
|
+
issuerAuthorized: boolean;
|
|
10474
|
+
factoryAuthorized: boolean;
|
|
10475
|
+
/** Investor KYC is a distinct permission from issuer authorization. */
|
|
10476
|
+
issuerAllowed: boolean;
|
|
10477
|
+
registryAdmin: Address;
|
|
10478
|
+
nativeBalance: bigint;
|
|
10479
|
+
unapprovedPolicies: readonly Address[];
|
|
10480
|
+
blockers: readonly IssuerDeploymentBlocker[];
|
|
10481
|
+
readyToSimulate: boolean;
|
|
10482
|
+
transaction: IssuerTransaction;
|
|
10483
|
+
}
|
|
10484
|
+
interface SubmittedIssuerTransaction {
|
|
10485
|
+
kind: 'transaction';
|
|
10486
|
+
hash: Hash;
|
|
10487
|
+
transaction: IssuerTransaction;
|
|
10488
|
+
}
|
|
10489
|
+
interface SubmittedIssuerDeployment {
|
|
10490
|
+
kind: 'deployment';
|
|
10491
|
+
hash: Hash;
|
|
10492
|
+
transaction: IssuerTransaction;
|
|
10493
|
+
params: IssuerDeployTokenParams;
|
|
10494
|
+
predictedToken: Address;
|
|
10495
|
+
issuerNonce: bigint;
|
|
10496
|
+
}
|
|
10497
|
+
interface IssuerWaitOptions {
|
|
10498
|
+
confirmations?: number | undefined;
|
|
10499
|
+
timeout?: number | undefined;
|
|
10500
|
+
pollingInterval?: number | undefined;
|
|
10501
|
+
}
|
|
10502
|
+
interface IssuerReceiptResult {
|
|
10503
|
+
/** confirmed proves the exact transaction succeeded, not permanent state or an economic outcome. */
|
|
10504
|
+
status: 'confirmed' | 'reverted' | 'unverified' | 'replaced';
|
|
10505
|
+
submittedHash: Hash;
|
|
10506
|
+
hash: Hash;
|
|
10507
|
+
receipt: TransactionReceipt;
|
|
10508
|
+
replacementReason?: 'repriced' | 'cancelled' | 'replaced' | undefined;
|
|
10509
|
+
}
|
|
10510
|
+
interface IssuerDeploymentReceiptResult extends IssuerReceiptResult {
|
|
10511
|
+
/** Present only after exact transaction AND factory deployment event verification. */
|
|
10512
|
+
token?: Address | undefined;
|
|
10513
|
+
}
|
|
10514
|
+
interface IssuerTokenParams {
|
|
10515
|
+
chainId: number;
|
|
10516
|
+
token: Address;
|
|
10517
|
+
tokenId?: bigint | undefined;
|
|
10518
|
+
account?: Address | undefined;
|
|
10519
|
+
}
|
|
10520
|
+
type IssuerSandboxRegistrationBlocker = 'unsupported-sandbox-version' | 'registry-paused' | 'terminal-identity';
|
|
10521
|
+
/** Use a trusted deployment manifest, or an explicit registry operation context. */
|
|
10522
|
+
type IssuerSandboxAccountParams = IssuerOperationContext | {
|
|
10523
|
+
deployment: IssuerProtocolDeployment;
|
|
10524
|
+
from: Address;
|
|
10525
|
+
};
|
|
10526
|
+
/** Capability marker describes the registry, not the policy registry, orchestrator or vault variant. */
|
|
10527
|
+
interface IssuerSandboxCapabilities {
|
|
10528
|
+
chainId: number;
|
|
10529
|
+
registry: Address;
|
|
10530
|
+
account: Address;
|
|
10531
|
+
blockNumber: bigint;
|
|
10532
|
+
/** null means sandboxVersion is absent/reverts; transport failures are propagated instead. */
|
|
10533
|
+
sandboxVersion: bigint | null;
|
|
10534
|
+
supportsSelfOnboarding: boolean;
|
|
10535
|
+
supportsSelfTraits: boolean;
|
|
10536
|
+
supportsIssuerRegistration: boolean;
|
|
10537
|
+
paused: boolean;
|
|
10538
|
+
issuerAuthorized: boolean;
|
|
10539
|
+
allowed: boolean;
|
|
10540
|
+
userId: Hex;
|
|
10541
|
+
entryStatus: number;
|
|
10542
|
+
}
|
|
10543
|
+
interface IssuerPolicyApprovalParams extends IssuerOperationContext {
|
|
10544
|
+
implementation: Address;
|
|
10545
|
+
}
|
|
10546
|
+
/** An explicit full replacement of the target token's current attachment list. */
|
|
10547
|
+
interface IssuerRuleSetParams extends IssuerOperationContext {
|
|
10548
|
+
token: Address;
|
|
10549
|
+
rules: ContractFunctionArgs<typeof issuerRuleSetOrchestratorAbi, 'nonpayable', 'applyRuleSet'>[1];
|
|
10550
|
+
}
|
|
10551
|
+
|
|
10552
|
+
/** Works with either the direct subgraph client or the existing hosted indexer endpoints. */
|
|
10553
|
+
type IssuerDiscoveryIndexer = Pick<OpacityIndexerNamespace, 'getMetadata' | 'getRegistry' | 'listTokens' | 'getToken'>;
|
|
10554
|
+
interface ResolveIssuerDeploymentParams {
|
|
10555
|
+
chainId: number;
|
|
10556
|
+
/** Optional existing indexed token that selects an environment; it need not belong to you. */
|
|
10557
|
+
token?: Address;
|
|
10558
|
+
/** Fail rather than silently truncate discovery. Default 100; maximum 1000. */
|
|
10559
|
+
maxTokens?: number;
|
|
10560
|
+
}
|
|
10561
|
+
interface ResolvedIssuerDeployment {
|
|
10562
|
+
deployment: IssuerProtocolDeployment;
|
|
10563
|
+
/** Approved implementations of every policy kind supported by this SDK, not attached rules. */
|
|
10564
|
+
policies: Record<IssuerPolicyKind, readonly Address[]>;
|
|
10565
|
+
defaultBeaconVariant: Hex;
|
|
10566
|
+
beacon: Address;
|
|
10567
|
+
evidence: {
|
|
10568
|
+
subgraphDeployment: string;
|
|
10569
|
+
blockNumber: bigint;
|
|
10570
|
+
blockHash: Hash;
|
|
10571
|
+
timestamp: bigint;
|
|
10572
|
+
verifiedAtBlock: bigint;
|
|
10573
|
+
verifiedAtBlockHash: Hash;
|
|
10574
|
+
sourceTokens: readonly Address[];
|
|
10575
|
+
};
|
|
10576
|
+
}
|
|
10577
|
+
interface ResolveIssuerDeploymentOptions {
|
|
10578
|
+
indexer?: IssuerDiscoveryIndexer | undefined;
|
|
10579
|
+
publicClient?: PublicClient | undefined;
|
|
10580
|
+
}
|
|
10581
|
+
/**
|
|
10582
|
+
* Read-only discovery for NEW asset deployments. No issuer ownership, preset addresses, wallet,
|
|
10583
|
+
* or backend tenant is needed. The configured indexer is the environment selection boundary:
|
|
10584
|
+
* canonical RPC receipts and current contract relationships independently verify its candidates.
|
|
10585
|
+
*
|
|
10586
|
+
* Existing indexed token deployment events identify factories because the deployed subgraph's
|
|
10587
|
+
* public API does not enumerate factory contracts. An empty index cannot bootstrap a brand-new
|
|
10588
|
+
* protocol deployment. Ambiguous factories require an explicit source token selection.
|
|
10589
|
+
* Policy infrastructure is rooted in the registry owner's platformOperator configuration,
|
|
10590
|
+
* never an issuer-selected token engine. The operator must expose its governed policyEngine.
|
|
10591
|
+
* Asset-specific trait registries, administrators and helpers are deliberately never inherited.
|
|
10592
|
+
*/
|
|
10593
|
+
declare function resolveIssuerDeployment(input: ResolveIssuerDeploymentParams, options: ResolveIssuerDeploymentOptions): Promise<ResolvedIssuerDeployment>;
|
|
10594
|
+
|
|
10550
10595
|
/** Explicit opt-in to an engine-free token; base registry compliance still applies. */
|
|
10551
10596
|
declare const EMPTY_ISSUER_ENGINE: IssuerEngineConfig;
|
|
10552
10597
|
declare const DEFAULT_ISSUER_BEACON_VARIANT: "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
@@ -10576,7 +10621,10 @@ declare function buildIssuerAdapterDeployment(input: IssuerAdapterDeploymentPara
|
|
|
10576
10621
|
/** A plain, permissionless registry deployment. Assign it to the token before setting traits. */
|
|
10577
10622
|
declare function buildIssuerTokenTraitRegistryDeployment(input: IssuerAuxiliaryDeploymentParams): IssuerTransaction;
|
|
10578
10623
|
|
|
10579
|
-
/**
|
|
10624
|
+
/**
|
|
10625
|
+
* Historical v3 snapshot, not live address discovery.
|
|
10626
|
+
* @deprecated Use issuers.discoverDeployment() for the configured indexed environment.
|
|
10627
|
+
*/
|
|
10580
10628
|
declare const SANDBOX_ISSUER_DEPLOYMENT: Readonly<IssuerProtocolDeployment>;
|
|
10581
10629
|
|
|
10582
10630
|
declare class OpacityIssuerOperationError extends OpacityIssuerError {
|
|
@@ -10586,11 +10634,15 @@ declare class OpacityIssuerOperationError extends OpacityIssuerError {
|
|
|
10586
10634
|
});
|
|
10587
10635
|
}
|
|
10588
10636
|
|
|
10637
|
+
type IssuerDiscoverDeploymentParams = Omit<ResolveIssuerDeploymentParams, 'chainId'> & {
|
|
10638
|
+
chainId?: number | undefined;
|
|
10639
|
+
};
|
|
10589
10640
|
/**
|
|
10590
|
-
* RPC-
|
|
10641
|
+
* Indexed deployment discovery and RPC-verified issuer lifecycle. Explicit sends simulate once immediately before a wallet action.
|
|
10591
10642
|
* Save records immediately; after an uncertain send/receipt, reconcile before any resubmission.
|
|
10592
10643
|
*/
|
|
10593
10644
|
declare function createIssuersNamespace(options?: IssuerClientOptions): {
|
|
10645
|
+
discoverDeployment: (params?: IssuerDiscoverDeploymentParams) => Promise<ResolvedIssuerDeployment>;
|
|
10594
10646
|
prepareDeployment: (input: IssuerDeployTokenParams) => Promise<PreparedIssuerDeployment>;
|
|
10595
10647
|
simulateDeployment: (input: IssuerDeployTokenParams) => Promise<PreparedIssuerDeployment>;
|
|
10596
10648
|
sendDeployment: (input: IssuerDeployTokenParams) => Promise<SubmittedIssuerDeployment>;
|
|
@@ -11338,4 +11390,4 @@ declare function validateSandboxLinkedWalletProgress(input: SandboxLinkedWalletP
|
|
|
11338
11390
|
/** Restore a completed linked test wallet without funding, onboarding, signing, or network I/O. */
|
|
11339
11391
|
declare function restoreSandboxLinkedWallet<chain extends Chain>(input: SandboxLinkedWalletProgress, options: RestoreSandboxUserWalletOptions<chain>): WalletClient<Transport, chain, PrivateKeyAccount>;
|
|
11340
11392
|
|
|
11341
|
-
export { type CeilingBalanceConfig, type CreateSandboxLinkedWalletParams, type CreateSandboxUserParams, DEFAULT_ISSUER_BEACON_VARIANT, EMPTY_ISSUER_ENGINE, ISSUER_CONTRACTS_COMMIT, ISSUER_CONTRACTS_PR, type IssuerAdapterDeploymentParams, type IssuerAttachedPolicy, type IssuerAuxiliaryDeploymentParams, type IssuerClientOptions, IssuerDenominatorMode, type IssuerDeployTokenParams, type IssuerDeploymentBlocker, type IssuerDeploymentReceiptResult, type IssuerEngineConfig, IssuerGuardMode, type IssuerOperationContext, type IssuerOperationParams, type IssuerOverrideAuthorization, type IssuerOverrideOperation, type IssuerPolicyApprovalParams, type IssuerPolicyEngineOperation, type IssuerPolicyKind, type IssuerProtocolDeployment, type IssuerReceiptResult, type IssuerRuleSetParams, IssuerRuleType, type IssuerSandboxAccountParams, type IssuerSandboxCapabilities, type IssuerSandboxRegistrationBlocker, type IssuerSandboxRegistryOperation, type IssuerSandboxVaultAdminOperation, type IssuerSandboxVaultAdminParams, type IssuerTokenConfig, type IssuerTokenOperation, type IssuerTokenParams, type IssuerTransaction, type IssuerVaultDeploymentParams, type IssuerWaitOptions, OpacityIssuerError, OpacityIssuerOperationError, type OpacityIssuersNamespace, OpacityPurchaseError, type OpacityPurchasesNamespace, OpacityTransferError, type OpacityTransfersNamespace, type PolicyAttachment, type PolicyBatchOperation, type PolicyChange, type PolicyGuard, type PrepareSandboxUserParams, type PreparedIssuerDeployment, type PreparedPurchase, type PreparedSandboxUser, type PreparedSandboxWalletLink, type PreparedTransfer, type PurchaseApprovalRequest, type PurchaseApprovalStep, type PurchaseBlocker, type PurchaseBuyerState, type PurchaseClientOptions, type PurchaseDeployment, type PurchaseOffering, type PurchaseParams, type PurchaseQuote, type PurchaseQuoteParams, type PurchaseReceiptResult, type PurchaseTransaction, type PurchaseWaitOptions, type PurchaseWriteRequest, type RestoreSandboxUserWalletOptions, SANDBOX_ISSUER_DEPLOYMENT, SANDBOX_PURCHASE_DEPLOYMENT, SEPOLIA_SANDBOX_MANIFEST, SandboxLinkedWalletCreationError, type SandboxLinkedWalletProgress, SandboxTransferError, type SandboxTransferProgress, type SandboxUserBlocker, SandboxUserCreationError, type SandboxUserCreationProgress, type SandboxUserFundingTransaction, type SandboxUserStep, type SandboxUserTrait, type SandboxUserTraits, type SandboxWalletLinkBlocker, SandboxWalletLinkError, type SandboxWalletLinkIntent, type SandboxWalletLinkParams, type SandboxWalletLinkProgress, type SandboxWalletLinksNamespace, type SendSandboxWalletLinkParams, type SubmittedIssuerDeployment, type SubmittedIssuerTransaction, type SubmittedPurchase, type SubmittedPurchaseApproval, type SubmittedSandboxUserFunding, type SubmittedSandboxWalletLink, type SubmittedTransfer, type TransferBlocker, type TransferClientOptions, type TransferDeployment, type TransferGasEstimate, type TransferParams, type TransferReceiptResult, type TransferRejection, type TransferSandboxUserParams, type TransferTransaction, type TransferWaitOptions, type TransferWriteRequest, buildAdapterOperation, buildConfigureVaultTransaction, buildForcedTransferTransaction, buildIssuerAdapterDeployment, buildIssuerDeployTokenTransaction, buildIssuerSandboxAddSelfTransaction, buildIssuerSandboxRegisterIssuerTransaction, buildIssuerSandboxSetSelfTraitTransaction, buildIssuerSandboxVaultDeployment, buildIssuerTokenTraitRegistryDeployment, buildIssuerVaultDeployment, buildMintTransaction, buildOverrideOperation, buildOverrideTransferTransaction, buildOverrideTransferTypedData, buildPaymentTokenOperation, buildPolicyEngineOperation, buildPolicyModuleOperation, buildPolicyRegistryOperation, buildPurchaseTransaction, buildPurchaseWriteRequest, buildRuleSetOperation, buildSandboxRegistryOperation, buildSandboxVaultOperation, buildSandboxWalletLinkTransaction, buildSandboxWalletLinkTypedData, buildSetIssuerAdminTransaction, buildSetUserTraitsTransactions, buildSetWalletsTransaction, buildTokenMetadataTransactions, buildTokenOperation, buildTransferTransaction, buildTransferWriteRequest, buildVaultOperation, createIssuersNamespace, createPolicyAttachment, createPolicyBatch, createPolicyReplacementBatch, createPurchasesNamespace, createSandboxLinkedWallet, createSandboxUser, createSandboxWalletLinksNamespace, createTransfersNamespace, encodeAllowedTransfereeConfig, encodeCeilingBalanceConfig, encodeDenylistConfig, encodeFloorBalanceConfig, encodeHolderCountCapConfig, encodeInsiderFreezeConfig, encodeSelfTransferOnlyConfig, encodeTradingDisabledConfig, issuerAdapterAbi, issuerAdapterBytecode, issuerBeaconRegistryAbi, issuerFactoryAbi, issuerLensAbi, issuerOverrideHelperAbi, issuerOverrideTypes, issuerPaymentTokenAbi, issuerPolicyEngineAbi, issuerPolicyModuleAbis, issuerPolicyRegistryAbi, issuerPolicyTypes, issuerRegistryAbi, issuerRuleSetOrchestratorAbi, issuerSandboxVaultAbi, issuerSandboxVaultBytecode, issuerTokenAbi, issuerTokenTraitRegistryAbi, issuerTokenTraitRegistryBytecode, issuerVaultAbi, issuerVaultBytecode, parsePurchaseAmount, parseTransferAmount, prepareSandboxUser, purchasePaymentTokenAbi, purchaseRegistryAbi, purchaseSecurityTokenAbi, resolveSandboxUserTraits, restoreSandboxLinkedWallet, restoreSandboxUserWallet, sandboxJurisdictionTraitId, sandboxTraitId, sandboxWalletLinkAbi, sandboxWalletLinkTypes, securityTokenVaultAbi, transferSandboxUser, validateSandboxLinkedWalletProgress, validateSandboxWalletLinkIntent, validateSandboxWalletLinkParams, waitForSandboxUserFunding, walletLinkData, walletLinkWaitOptions };
|
|
11393
|
+
export { type CeilingBalanceConfig, type CreateSandboxLinkedWalletParams, type CreateSandboxUserParams, DEFAULT_ISSUER_BEACON_VARIANT, EMPTY_ISSUER_ENGINE, ISSUER_CONTRACTS_COMMIT, ISSUER_CONTRACTS_PR, type IssuerAdapterDeploymentParams, type IssuerAttachedPolicy, type IssuerAuxiliaryDeploymentParams, type IssuerClientOptions, IssuerDenominatorMode, type IssuerDeployTokenParams, type IssuerDeploymentBlocker, type IssuerDeploymentReceiptResult, type IssuerDiscoverDeploymentParams, type IssuerDiscoveryIndexer, type IssuerEngineConfig, IssuerGuardMode, type IssuerOperationContext, type IssuerOperationParams, type IssuerOverrideAuthorization, type IssuerOverrideOperation, type IssuerPolicyApprovalParams, type IssuerPolicyEngineOperation, type IssuerPolicyKind, type IssuerProtocolDeployment, type IssuerReceiptResult, type IssuerRuleSetParams, IssuerRuleType, type IssuerSandboxAccountParams, type IssuerSandboxCapabilities, type IssuerSandboxRegistrationBlocker, type IssuerSandboxRegistryOperation, type IssuerSandboxVaultAdminOperation, type IssuerSandboxVaultAdminParams, type IssuerTokenConfig, type IssuerTokenOperation, type IssuerTokenParams, type IssuerTransaction, type IssuerVaultDeploymentParams, type IssuerWaitOptions, OpacityIssuerError, OpacityIssuerOperationError, type OpacityIssuersNamespace, OpacityPurchaseError, type OpacityPurchasesNamespace, OpacityTransferError, type OpacityTransfersNamespace, type PolicyAttachment, type PolicyBatchOperation, type PolicyChange, type PolicyGuard, type PrepareSandboxUserParams, type PreparedIssuerDeployment, type PreparedPurchase, type PreparedSandboxUser, type PreparedSandboxWalletLink, type PreparedTransfer, type PurchaseApprovalRequest, type PurchaseApprovalStep, type PurchaseBlocker, type PurchaseBuyerState, type PurchaseClientOptions, type PurchaseDeployment, type PurchaseOffering, type PurchaseParams, type PurchaseQuote, type PurchaseQuoteParams, type PurchaseReceiptResult, type PurchaseTransaction, type PurchaseWaitOptions, type PurchaseWriteRequest, type ResolveIssuerDeploymentOptions, type ResolveIssuerDeploymentParams, type ResolvedIssuerDeployment, type RestoreSandboxUserWalletOptions, SANDBOX_ISSUER_DEPLOYMENT, SANDBOX_PURCHASE_DEPLOYMENT, SEPOLIA_SANDBOX_MANIFEST, SandboxLinkedWalletCreationError, type SandboxLinkedWalletProgress, SandboxTransferError, type SandboxTransferProgress, type SandboxUserBlocker, SandboxUserCreationError, type SandboxUserCreationProgress, type SandboxUserFundingTransaction, type SandboxUserStep, type SandboxUserTrait, type SandboxUserTraits, type SandboxWalletLinkBlocker, SandboxWalletLinkError, type SandboxWalletLinkIntent, type SandboxWalletLinkParams, type SandboxWalletLinkProgress, type SandboxWalletLinksNamespace, type SendSandboxWalletLinkParams, type SubmittedIssuerDeployment, type SubmittedIssuerTransaction, type SubmittedPurchase, type SubmittedPurchaseApproval, type SubmittedSandboxUserFunding, type SubmittedSandboxWalletLink, type SubmittedTransfer, type TransferBlocker, type TransferClientOptions, type TransferDeployment, type TransferGasEstimate, type TransferParams, type TransferReceiptResult, type TransferRejection, type TransferSandboxUserParams, type TransferTransaction, type TransferWaitOptions, type TransferWriteRequest, buildAdapterOperation, buildConfigureVaultTransaction, buildForcedTransferTransaction, buildIssuerAdapterDeployment, buildIssuerDeployTokenTransaction, buildIssuerSandboxAddSelfTransaction, buildIssuerSandboxRegisterIssuerTransaction, buildIssuerSandboxSetSelfTraitTransaction, buildIssuerSandboxVaultDeployment, buildIssuerTokenTraitRegistryDeployment, buildIssuerVaultDeployment, buildMintTransaction, buildOverrideOperation, buildOverrideTransferTransaction, buildOverrideTransferTypedData, buildPaymentTokenOperation, buildPolicyEngineOperation, buildPolicyModuleOperation, buildPolicyRegistryOperation, buildPurchaseTransaction, buildPurchaseWriteRequest, buildRuleSetOperation, buildSandboxRegistryOperation, buildSandboxVaultOperation, buildSandboxWalletLinkTransaction, buildSandboxWalletLinkTypedData, buildSetIssuerAdminTransaction, buildSetUserTraitsTransactions, buildSetWalletsTransaction, buildTokenMetadataTransactions, buildTokenOperation, buildTransferTransaction, buildTransferWriteRequest, buildVaultOperation, createIssuersNamespace, createPolicyAttachment, createPolicyBatch, createPolicyReplacementBatch, createPurchasesNamespace, createSandboxLinkedWallet, createSandboxUser, createSandboxWalletLinksNamespace, createTransfersNamespace, encodeAllowedTransfereeConfig, encodeCeilingBalanceConfig, encodeDenylistConfig, encodeFloorBalanceConfig, encodeHolderCountCapConfig, encodeInsiderFreezeConfig, encodeSelfTransferOnlyConfig, encodeTradingDisabledConfig, issuerAdapterAbi, issuerAdapterBytecode, issuerBeaconRegistryAbi, issuerFactoryAbi, issuerLensAbi, issuerOverrideHelperAbi, issuerOverrideTypes, issuerPaymentTokenAbi, issuerPolicyEngineAbi, issuerPolicyModuleAbis, issuerPolicyRegistryAbi, issuerPolicyTypes, issuerRegistryAbi, issuerRuleSetOrchestratorAbi, issuerSandboxVaultAbi, issuerSandboxVaultBytecode, issuerTokenAbi, issuerTokenTraitRegistryAbi, issuerTokenTraitRegistryBytecode, issuerVaultAbi, issuerVaultBytecode, parsePurchaseAmount, parseTransferAmount, prepareSandboxUser, purchasePaymentTokenAbi, purchaseRegistryAbi, purchaseSecurityTokenAbi, resolveIssuerDeployment, resolveSandboxUserTraits, restoreSandboxLinkedWallet, restoreSandboxUserWallet, sandboxJurisdictionTraitId, sandboxTraitId, sandboxWalletLinkAbi, sandboxWalletLinkTypes, securityTokenVaultAbi, transferSandboxUser, validateSandboxLinkedWalletProgress, validateSandboxWalletLinkIntent, validateSandboxWalletLinkParams, waitForSandboxUserFunding, walletLinkData, walletLinkWaitOptions };
|