@entros/pulse-sdk 1.4.1 → 1.5.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/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2306 -57
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2306 -57
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -622,6 +622,18 @@ interface StoredVerificationData {
|
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
624
|
* Fetch identity state from the on-chain IdentityState PDA.
|
|
625
|
+
*
|
|
626
|
+
* Uses the bundled `entros_anchor.json` IDL (copied verbatim from
|
|
627
|
+
* `protocol-core/target/idl/`) instead of `Program.fetchIdl`, which
|
|
628
|
+
* adds a 150-300ms RPC round-trip per call to fetch the IDL from chain.
|
|
629
|
+
* Account decoding is identical; the only difference is that IDL changes
|
|
630
|
+
* now require an SDK bump rather than a chain-side IDL upload — in
|
|
631
|
+
* practice that's already true since on-chain Anchor changes need
|
|
632
|
+
* matching SDK updates anyway.
|
|
633
|
+
*
|
|
634
|
+
* When the on-chain `entros_anchor` program changes, re-copy
|
|
635
|
+
* `protocol-core/target/idl/entros_anchor.json` into `src/protocol/idl/`
|
|
636
|
+
* and bump the SDK minor version.
|
|
625
637
|
*/
|
|
626
638
|
declare function fetchIdentityState(walletPubkey: string, connection: any): Promise<IdentityState | null>;
|
|
627
639
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -622,6 +622,18 @@ interface StoredVerificationData {
|
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
624
|
* Fetch identity state from the on-chain IdentityState PDA.
|
|
625
|
+
*
|
|
626
|
+
* Uses the bundled `entros_anchor.json` IDL (copied verbatim from
|
|
627
|
+
* `protocol-core/target/idl/`) instead of `Program.fetchIdl`, which
|
|
628
|
+
* adds a 150-300ms RPC round-trip per call to fetch the IDL from chain.
|
|
629
|
+
* Account decoding is identical; the only difference is that IDL changes
|
|
630
|
+
* now require an SDK bump rather than a chain-side IDL upload — in
|
|
631
|
+
* practice that's already true since on-chain Anchor changes need
|
|
632
|
+
* matching SDK updates anyway.
|
|
633
|
+
*
|
|
634
|
+
* When the on-chain `entros_anchor` program changes, re-copy
|
|
635
|
+
* `protocol-core/target/idl/entros_anchor.json` into `src/protocol/idl/`
|
|
636
|
+
* and bump the SDK minor version.
|
|
625
637
|
*/
|
|
626
638
|
declare function fetchIdentityState(walletPubkey: string, connection: any): Promise<IdentityState | null>;
|
|
627
639
|
/**
|