@oobe-protocol-labs/synapse-sap-sdk 0.15.0 → 0.15.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.
Files changed (151) hide show
  1. package/dist/cjs/client.js +1 -1
  2. package/dist/cjs/client.js.map +1 -1
  3. package/dist/esm/client.js +1 -1
  4. package/dist/esm/client.js.map +1 -1
  5. package/package.json +1 -1
  6. package/dist/esm/instructions/memory.d.ts +0 -8
  7. package/dist/esm/instructions/memory.d.ts.map +0 -1
  8. package/dist/esm/instructions/memory.js +0 -234
  9. package/dist/esm/instructions/memory.js.map +0 -1
  10. package/dist/types/constants/addresses.d.ts +0 -117
  11. package/dist/types/constants/addresses.d.ts.map +0 -1
  12. package/dist/types/constants/index.d.ts +0 -31
  13. package/dist/types/constants/index.d.ts.map +0 -1
  14. package/dist/types/constants/limits.d.ts +0 -149
  15. package/dist/types/constants/limits.d.ts.map +0 -1
  16. package/dist/types/constants/network.d.ts +0 -81
  17. package/dist/types/constants/network.d.ts.map +0 -1
  18. package/dist/types/constants/payments.d.ts +0 -121
  19. package/dist/types/constants/payments.d.ts.map +0 -1
  20. package/dist/types/constants/programs.d.ts +0 -69
  21. package/dist/types/constants/programs.d.ts.map +0 -1
  22. package/dist/types/constants/seeds.d.ts +0 -82
  23. package/dist/types/constants/seeds.d.ts.map +0 -1
  24. package/dist/types/core/client.d.ts +0 -467
  25. package/dist/types/core/client.d.ts.map +0 -1
  26. package/dist/types/core/connection.d.ts +0 -305
  27. package/dist/types/core/connection.d.ts.map +0 -1
  28. package/dist/types/core/index.d.ts +0 -20
  29. package/dist/types/core/index.d.ts.map +0 -1
  30. package/dist/types/errors/index.d.ts +0 -335
  31. package/dist/types/errors/index.d.ts.map +0 -1
  32. package/dist/types/events/geyser.d.ts +0 -150
  33. package/dist/types/events/geyser.d.ts.map +0 -1
  34. package/dist/types/events/index.d.ts +0 -248
  35. package/dist/types/events/index.d.ts.map +0 -1
  36. package/dist/types/idl/index.d.ts +0 -70
  37. package/dist/types/idl/index.d.ts.map +0 -1
  38. package/dist/types/index.d.ts +0 -86
  39. package/dist/types/index.d.ts.map +0 -1
  40. package/dist/types/modules/agent.d.ts +0 -156
  41. package/dist/types/modules/agent.d.ts.map +0 -1
  42. package/dist/types/modules/attestation.d.ts +0 -96
  43. package/dist/types/modules/attestation.d.ts.map +0 -1
  44. package/dist/types/modules/base.d.ts +0 -215
  45. package/dist/types/modules/base.d.ts.map +0 -1
  46. package/dist/types/modules/escrow-v2.d.ts +0 -285
  47. package/dist/types/modules/escrow-v2.d.ts.map +0 -1
  48. package/dist/types/modules/feedback.d.ts +0 -105
  49. package/dist/types/modules/feedback.d.ts.map +0 -1
  50. package/dist/types/modules/index.d.ts +0 -27
  51. package/dist/types/modules/index.d.ts.map +0 -1
  52. package/dist/types/modules/indexing.d.ts +0 -200
  53. package/dist/types/modules/indexing.d.ts.map +0 -1
  54. package/dist/types/modules/ledger.d.ts +0 -150
  55. package/dist/types/modules/ledger.d.ts.map +0 -1
  56. package/dist/types/modules/receipt.d.ts +0 -91
  57. package/dist/types/modules/receipt.d.ts.map +0 -1
  58. package/dist/types/modules/staking.d.ts +0 -51
  59. package/dist/types/modules/staking.d.ts.map +0 -1
  60. package/dist/types/modules/subscription.d.ts +0 -33
  61. package/dist/types/modules/subscription.d.ts.map +0 -1
  62. package/dist/types/modules/tools.d.ts +0 -172
  63. package/dist/types/modules/tools.d.ts.map +0 -1
  64. package/dist/types/modules/vault.d.ts +0 -240
  65. package/dist/types/modules/vault.d.ts.map +0 -1
  66. package/dist/types/parser/client.d.ts +0 -123
  67. package/dist/types/parser/client.d.ts.map +0 -1
  68. package/dist/types/parser/complete.d.ts +0 -90
  69. package/dist/types/parser/complete.d.ts.map +0 -1
  70. package/dist/types/parser/index.d.ts +0 -40
  71. package/dist/types/parser/index.d.ts.map +0 -1
  72. package/dist/types/parser/inner.d.ts +0 -114
  73. package/dist/types/parser/inner.d.ts.map +0 -1
  74. package/dist/types/parser/instructions.d.ts +0 -76
  75. package/dist/types/parser/instructions.d.ts.map +0 -1
  76. package/dist/types/parser/transaction.d.ts +0 -77
  77. package/dist/types/parser/transaction.d.ts.map +0 -1
  78. package/dist/types/parser/types.d.ts +0 -154
  79. package/dist/types/parser/types.d.ts.map +0 -1
  80. package/dist/types/pda/index.d.ts +0 -527
  81. package/dist/types/pda/index.d.ts.map +0 -1
  82. package/dist/types/plugin/index.d.ts +0 -171
  83. package/dist/types/plugin/index.d.ts.map +0 -1
  84. package/dist/types/plugin/protocols.d.ts +0 -152
  85. package/dist/types/plugin/protocols.d.ts.map +0 -1
  86. package/dist/types/plugin/schemas.d.ts +0 -829
  87. package/dist/types/plugin/schemas.d.ts.map +0 -1
  88. package/dist/types/postgres/adapter.d.ts +0 -355
  89. package/dist/types/postgres/adapter.d.ts.map +0 -1
  90. package/dist/types/postgres/index.d.ts +0 -24
  91. package/dist/types/postgres/index.d.ts.map +0 -1
  92. package/dist/types/postgres/serializers.d.ts +0 -30
  93. package/dist/types/postgres/serializers.d.ts.map +0 -1
  94. package/dist/types/postgres/sync.d.ts +0 -156
  95. package/dist/types/postgres/sync.d.ts.map +0 -1
  96. package/dist/types/postgres/types.d.ts +0 -167
  97. package/dist/types/postgres/types.d.ts.map +0 -1
  98. package/dist/types/registries/builder.d.ts +0 -333
  99. package/dist/types/registries/builder.d.ts.map +0 -1
  100. package/dist/types/registries/discovery.d.ts +0 -333
  101. package/dist/types/registries/discovery.d.ts.map +0 -1
  102. package/dist/types/registries/fairscale.d.ts +0 -680
  103. package/dist/types/registries/fairscale.d.ts.map +0 -1
  104. package/dist/types/registries/index.d.ts +0 -52
  105. package/dist/types/registries/index.d.ts.map +0 -1
  106. package/dist/types/registries/metaplex-bridge.d.ts +0 -488
  107. package/dist/types/registries/metaplex-bridge.d.ts.map +0 -1
  108. package/dist/types/registries/session.d.ts +0 -317
  109. package/dist/types/registries/session.d.ts.map +0 -1
  110. package/dist/types/registries/x402.d.ts +0 -523
  111. package/dist/types/registries/x402.d.ts.map +0 -1
  112. package/dist/types/types/accounts.d.ts +0 -817
  113. package/dist/types/types/accounts.d.ts.map +0 -1
  114. package/dist/types/types/common.d.ts +0 -166
  115. package/dist/types/types/common.d.ts.map +0 -1
  116. package/dist/types/types/endpoint.d.ts +0 -161
  117. package/dist/types/types/endpoint.d.ts.map +0 -1
  118. package/dist/types/types/enums.d.ts +0 -353
  119. package/dist/types/types/enums.d.ts.map +0 -1
  120. package/dist/types/types/index.d.ts +0 -29
  121. package/dist/types/types/index.d.ts.map +0 -1
  122. package/dist/types/types/instructions.d.ts +0 -400
  123. package/dist/types/types/instructions.d.ts.map +0 -1
  124. package/dist/types/utils/anchor-errors.d.ts +0 -61
  125. package/dist/types/utils/anchor-errors.d.ts.map +0 -1
  126. package/dist/types/utils/endpoint-validator.d.ts +0 -110
  127. package/dist/types/utils/endpoint-validator.d.ts.map +0 -1
  128. package/dist/types/utils/escrow-validation.d.ts +0 -145
  129. package/dist/types/utils/escrow-validation.d.ts.map +0 -1
  130. package/dist/types/utils/hash.d.ts +0 -75
  131. package/dist/types/utils/hash.d.ts.map +0 -1
  132. package/dist/types/utils/index.d.ts +0 -36
  133. package/dist/types/utils/index.d.ts.map +0 -1
  134. package/dist/types/utils/merchant-validator.d.ts +0 -176
  135. package/dist/types/utils/merchant-validator.d.ts.map +0 -1
  136. package/dist/types/utils/network-normalizer.d.ts +0 -120
  137. package/dist/types/utils/network-normalizer.d.ts.map +0 -1
  138. package/dist/types/utils/priority-fee.d.ts +0 -205
  139. package/dist/types/utils/priority-fee.d.ts.map +0 -1
  140. package/dist/types/utils/rpc-strategy.d.ts +0 -179
  141. package/dist/types/utils/rpc-strategy.d.ts.map +0 -1
  142. package/dist/types/utils/schemas.d.ts +0 -351
  143. package/dist/types/utils/schemas.d.ts.map +0 -1
  144. package/dist/types/utils/serialization.d.ts +0 -69
  145. package/dist/types/utils/serialization.d.ts.map +0 -1
  146. package/dist/types/utils/validation.d.ts +0 -29
  147. package/dist/types/utils/validation.d.ts.map +0 -1
  148. package/dist/types/utils/volume-curve.d.ts +0 -60
  149. package/dist/types/utils/volume-curve.d.ts.map +0 -1
  150. package/dist/types/utils/x402-direct.d.ts +0 -114
  151. package/dist/types/utils/x402-direct.d.ts.map +0 -1
@@ -1,81 +0,0 @@
1
- /**
2
- * @module constants/network
3
- * @description Solana network identifiers for x402 payment headers.
4
- *
5
- * x402 providers validate the `X-Payment-Network` header against their
6
- * own network identifier. Some providers (e.g. Coinbase, Phantom) accept
7
- * the human-readable cluster name (`solana:mainnet-beta`), while others
8
- * (e.g. Kamiyo, Helius x402) require the Solana genesis-hash form
9
- * (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`).
10
- *
11
- * Use {@link SapNetwork} to select the correct format, or pass any
12
- * custom string where needed.
13
- *
14
- * @category Constants
15
- * @since v0.4.3
16
- *
17
- * @example
18
- * ```ts
19
- * import { SapNetwork } from "@synapse-sap/sdk";
20
- *
21
- * // Standard cluster name (default)
22
- * const ctx = await x402.preparePayment(agentWallet, {
23
- * pricePerCall: 1000, deposit: 100_000,
24
- * networkIdentifier: SapNetwork.SOLANA_MAINNET,
25
- * });
26
- *
27
- * // Genesis-hash form for providers that require it
28
- * const ctx2 = await x402.preparePayment(agentWallet, {
29
- * pricePerCall: 1000, deposit: 100_000,
30
- * networkIdentifier: SapNetwork.SOLANA_MAINNET_GENESIS,
31
- * });
32
- * ```
33
- */
34
- /**
35
- * @name SapNetwork
36
- * @description Network identifier strings for x402 `X-Payment-Network` headers.
37
- *
38
- * Two mainnet forms exist because x402 providers disagree on the canonical
39
- * identifier:
40
- *
41
- * | Constant | Value | Accepted by |
42
- * |-------------------------|----------------------------------------------|----------------------|
43
- * | `SOLANA_MAINNET` | `solana:mainnet-beta` | Coinbase, Phantom |
44
- * | `SOLANA_MAINNET_GENESIS`| `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` | Kamiyo, Helius x402 |
45
- * | `SOLANA_DEVNET` | `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` | Devnet providers |
46
- * | `SOLANA_DEVNET_NAMED` | `solana:devnet` | Local / test flows |
47
- *
48
- * If your provider requires a different format, pass a raw string instead.
49
- *
50
- * @category Constants
51
- * @since v0.4.3
52
- */
53
- export declare const SapNetwork: {
54
- /**
55
- * Mainnet-beta, human-readable cluster name.
56
- * Default value used by the SDK prior to v0.4.3.
57
- */
58
- readonly SOLANA_MAINNET: "solana:mainnet-beta";
59
- /**
60
- * Mainnet-beta, genesis-hash form (CAIP-2 compliant).
61
- * Required by Kamiyo, Helius x402, and other providers that validate
62
- * against the Solana genesis hash.
63
- */
64
- readonly SOLANA_MAINNET_GENESIS: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
65
- /**
66
- * Devnet, genesis-hash form (CAIP-2 compliant).
67
- */
68
- readonly SOLANA_DEVNET: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
69
- /**
70
- * Devnet, human-readable cluster name.
71
- * Useful for local development and test validators.
72
- */
73
- readonly SOLANA_DEVNET_NAMED: "solana:devnet";
74
- };
75
- /**
76
- * @name SapNetworkId
77
- * @description Union type of all known {@link SapNetwork} values.
78
- * Accept `SapNetworkId | string` where custom identifiers are allowed.
79
- */
80
- export type SapNetworkId = (typeof SapNetwork)[keyof typeof SapNetwork];
81
- //# sourceMappingURL=network.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../src/constants/network.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAMH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU;IACrB;;;OAGG;;IAGH;;;;OAIG;;IAGH;;OAEG;;IAGH;;;OAGG;;CAEK,CAAC;AAEX;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC"}
@@ -1,121 +0,0 @@
1
- /**
2
- * @module constants/payments
3
- * @description Payment-token allowlist + agent stake collateral constants
4
- * mirroring the on-chain v0.10.0 hardening.
5
- *
6
- * The on-chain program now accepts only:
7
- * - **Native SOL** — signalled by `tokenMint = null` on escrow creation.
8
- * - **USDC mainnet** — `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`.
9
- * - **USDC devnet** — `4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU`.
10
- *
11
- * Any other SPL mint passed to `createEscrow` / `createEscrowV2` is
12
- * rejected on-chain with `PaymentTokenNotAllowed` (error code 6093).
13
- *
14
- * Additionally, the agent owner MUST have an `AgentStake` PDA with
15
- * `staked_amount >= MIN_AGENT_STAKE_LAMPORTS` (0.1 SOL) BEFORE any
16
- * client can create a new escrow against that agent. Use
17
- * {@link StakingModule.initStake} + {@link StakingModule.deposit}
18
- * to satisfy the requirement.
19
- *
20
- * @category Constants
21
- * @since v0.10.0
22
- */
23
- import { PublicKey } from "@solana/web3.js";
24
- /**
25
- * USDC mint on Solana mainnet-beta (Circle).
26
- *
27
- * @name USDC_MINT_MAINNET
28
- * @category Constants
29
- * @since v0.10.0
30
- */
31
- export declare const USDC_MINT_MAINNET: PublicKey;
32
- /**
33
- * USDC mint on Solana devnet (Circle test mint).
34
- *
35
- * @name USDC_MINT_DEVNET
36
- * @category Constants
37
- * @since v0.10.0
38
- */
39
- export declare const USDC_MINT_DEVNET: PublicKey;
40
- /**
41
- * Minimum agent stake required to gate escrow creation, expressed in lamports.
42
- * Mirrors `AgentStake::MIN_STAKE` on-chain (`100_000_000` = 0.1 SOL).
43
- *
44
- * @name MIN_AGENT_STAKE_LAMPORTS
45
- * @category Constants
46
- * @since v0.10.0
47
- */
48
- export declare const MIN_AGENT_STAKE_LAMPORTS: bigint;
49
- /**
50
- * Slash share applied on a lost dispute, in basis points.
51
- * Mirrors `AgentStake::SLASH_BPS` on-chain (`5_000` = 50%).
52
- *
53
- * @name SLASH_BPS
54
- * @category Constants
55
- * @since v0.11.0
56
- */
57
- export declare const SLASH_BPS = 5000n;
58
- /**
59
- * Stake coverage ratio enforced at `createEscrowV2` (basis points).
60
- * Mirrors `AgentStake::STAKE_COVERAGE_BPS` on-chain. Currently equal to
61
- * {@link SLASH_BPS} so the slash on a lost dispute is fully collateralised.
62
- *
63
- * @name STAKE_COVERAGE_BPS
64
- * @category Constants
65
- * @since v0.11.0
66
- */
67
- export declare const STAKE_COVERAGE_BPS = 5000n;
68
- /**
69
- * Unstake cooldown in seconds. Mirrors `AgentStake::UNSTAKE_COOLDOWN_SECONDS`
70
- * on-chain (`604_800` = 7 days). Replaces the misnamed pre-v0.11
71
- * `UNSTAKE_COOLDOWN_SLOTS` constant which was never used by handlers.
72
- *
73
- * @name UNSTAKE_COOLDOWN_SECONDS
74
- * @category Constants
75
- * @since v0.11.0
76
- */
77
- export declare const UNSTAKE_COOLDOWN_SECONDS = 604800;
78
- /**
79
- * Required `staked_amount` (lamports) for an agent to accept an escrow of
80
- * `escrowLamports`. Equal to `max(MIN_AGENT_STAKE_LAMPORTS,
81
- * escrowLamports * STAKE_COVERAGE_BPS / 10_000)`.
82
- *
83
- * Mirrors the on-chain check enforced in `create_escrow_v2` (v0.11 H-1).
84
- * Use this to preflight an escrow create call and surface an actionable
85
- * error before paying tx fees.
86
- *
87
- * @name computeRequiredStakeLamports
88
- * @category Constants
89
- * @since v0.11.0
90
- */
91
- export declare function computeRequiredStakeLamports(escrowLamports: bigint): bigint;
92
- /**
93
- * Maximum delegate duration (seconds) accepted by `add_vault_delegate`.
94
- * Mirrors `VaultDelegate::MAX_DELEGATE_DURATION_SECS` on-chain
95
- * (`365 * 86_400` = 1 year).
96
- *
97
- * @name MAX_DELEGATE_DURATION_SECS
98
- * @category Constants
99
- * @since v0.10.0
100
- */
101
- export declare const MAX_DELEGATE_DURATION_SECS: number;
102
- /**
103
- * Returns true when `mint` is an accepted USDC mint (mainnet or devnet).
104
- *
105
- * @name isAcceptedUsdcMint
106
- * @param mint - Candidate SPL token mint.
107
- * @category Constants
108
- * @since v0.10.0
109
- */
110
- export declare function isAcceptedUsdcMint(mint: PublicKey): boolean;
111
- /**
112
- * Returns true when the (optional) `tokenMint` is acceptable as escrow payment.
113
- * `null` represents native SOL and is always accepted.
114
- *
115
- * @name isAcceptedPaymentToken
116
- * @param tokenMint - The mint passed to `createEscrow*`. `null` = SOL.
117
- * @category Constants
118
- * @since v0.10.0
119
- */
120
- export declare function isAcceptedPaymentToken(tokenMint: PublicKey | null): boolean;
121
- //# sourceMappingURL=payments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../../src/constants/payments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,WAE7B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,WAE5B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,QAAsB,CAAC;AAE5D;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,QAAS,CAAC;AAEhC;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,QAAY,CAAC;AAE5C;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,SAAU,CAAC;AAEhD;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAM3E;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,QAAe,CAAC;AAEvD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAE3D;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,GAAG,OAAO,CAE3E"}
@@ -1,69 +0,0 @@
1
- /**
2
- * @module constants/programs
3
- * @description SAP v2 program IDs for each Solana cluster.
4
- *
5
- * The canonical program address is shared across mainnet, devnet,
6
- * and localnet. If you deploy a custom instance, override the
7
- * program ID in `SapClient.from(provider, customProgramId)`.
8
- *
9
- * @category Constants
10
- * @since v0.1.0
11
- */
12
- import { PublicKey } from "@solana/web3.js";
13
- /**
14
- * SAP v2 program address string (base58).
15
- *
16
- * Vanity keypair derived from the `SAPpUh…` prefix.
17
- *
18
- * @name SAP_PROGRAM_ADDRESS
19
- * @description The canonical on-chain program address shared by all Solana clusters.
20
- * @category Constants
21
- * @since v0.1.0
22
- * @see {@link SAP_PROGRAM_ID}
23
- */
24
- export declare const SAP_PROGRAM_ADDRESS = "SAPpUhsWLJG1FfkGRcXagEDMrMsWGjbky7AyhGpFETZ";
25
- /**
26
- * SAP v2 mainnet-beta program ID.
27
- *
28
- * @name MAINNET_SAP_PROGRAM_ID
29
- * @description `PublicKey` instance of {@link SAP_PROGRAM_ADDRESS} for mainnet-beta.
30
- * @category Constants
31
- * @since v0.1.0
32
- * @see {@link SAP_PROGRAM_ADDRESS}
33
- */
34
- export declare const MAINNET_SAP_PROGRAM_ID: PublicKey;
35
- /**
36
- * SAP v2 devnet program ID.
37
- *
38
- * @name DEVNET_SAP_PROGRAM_ID
39
- * @description `PublicKey` instance of {@link SAP_PROGRAM_ADDRESS} for devnet.
40
- * @category Constants
41
- * @since v0.1.0
42
- * @see {@link SAP_PROGRAM_ADDRESS}
43
- */
44
- export declare const DEVNET_SAP_PROGRAM_ID: PublicKey;
45
- /**
46
- * Localnet / solana-test-validator program ID.
47
- *
48
- * Override with your own keypair if deploying locally at a different address.
49
- *
50
- * @name LOCALNET_SAP_PROGRAM_ID
51
- * @description `PublicKey` instance of {@link SAP_PROGRAM_ADDRESS} for localnet / `solana-test-validator`.
52
- * @category Constants
53
- * @since v0.1.0
54
- * @see {@link SAP_PROGRAM_ADDRESS}
55
- */
56
- export declare const LOCALNET_SAP_PROGRAM_ID: PublicKey;
57
- /**
58
- * Default program ID used by `SapClient.from()` when no explicit ID is provided.
59
- *
60
- * Alias for {@link MAINNET_SAP_PROGRAM_ID}.
61
- *
62
- * @name SAP_PROGRAM_ID
63
- * @description Convenience alias pointing to the mainnet-beta program ID.
64
- * @category Constants
65
- * @since v0.1.0
66
- * @see {@link MAINNET_SAP_PROGRAM_ID}
67
- */
68
- export declare const SAP_PROGRAM_ID: PublicKey;
69
- //# sourceMappingURL=programs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"programs.d.ts","sourceRoot":"","sources":["../../../src/constants/programs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,gDACe,CAAC;AAMhD;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,WAAqC,CAAC;AAEzE;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,WAAqC,CAAC;AAExE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,WAAqC,CAAC;AAE1E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,WAAyB,CAAC"}
@@ -1,82 +0,0 @@
1
- /**
2
- * @module constants/seeds
3
- * @description PDA seed prefix constants.
4
- *
5
- * Every seed string mirrors the Rust `#[account(seeds = [...])]` definitions.
6
- *
7
- * @category Constants
8
- * @since v0.1.0
9
- */
10
- /**
11
- * PDA seed prefix lookup table.
12
- *
13
- * Each key corresponds to an on-chain account type, and the value is the
14
- * UTF-8 string used as the first seed segment in
15
- * `PublicKey.findProgramAddressSync`.
16
- *
17
- * @name SEEDS
18
- * @description Maps logical account names to their Rust-defined PDA seed prefix strings.
19
- * @category Constants
20
- * @since v0.1.0
21
- * @example
22
- * ```ts
23
- * import { SEEDS } from "@synapse-sap/sdk/constants";
24
- *
25
- * Buffer.from(SEEDS.AGENT); // => "sap_agent"
26
- * ```
27
- * @see {@link SeedKey}
28
- */
29
- export declare const SEEDS: {
30
- readonly AGENT: "sap_agent";
31
- readonly FEEDBACK: "sap_feedback";
32
- readonly CAPABILITY_INDEX: "sap_cap_idx";
33
- readonly PROTOCOL_INDEX: "sap_proto_idx";
34
- readonly GLOBAL: "sap_global";
35
- readonly PLUGIN: "sap_plugin";
36
- readonly MEMORY: "sap_memory";
37
- readonly MEMORY_CHUNK: "sap_mem_chunk";
38
- readonly VAULT: "sap_vault";
39
- readonly SESSION: "sap_session";
40
- readonly EPOCH: "sap_epoch";
41
- readonly DELEGATE: "sap_delegate";
42
- readonly TOOL: "sap_tool";
43
- readonly CHECKPOINT: "sap_checkpoint";
44
- readonly ESCROW: "sap_escrow";
45
- readonly ESCROW_V2: "sap_escrow_v2";
46
- readonly STATS: "sap_stats";
47
- readonly TOOL_CATEGORY: "sap_tool_cat";
48
- readonly ATTESTATION: "sap_attest";
49
- readonly LEDGER: "sap_ledger";
50
- readonly LEDGER_PAGE: "sap_page";
51
- readonly BUFFER: "sap_buffer";
52
- readonly DIGEST: "sap_digest";
53
- readonly PENDING: "sap_pending";
54
- readonly DISPUTE: "sap_dispute";
55
- readonly STAKE: "sap_stake";
56
- readonly SUBSCRIPTION: "sap_sub";
57
- readonly SHARD: "sap_shard";
58
- readonly INDEX_PAGE: "sap_idx_page";
59
- /** v0.12 — On-chain pricing menu for escrow price validation. Seeds: `["sap_pricing", agent_pda]`. */
60
- readonly PRICING: "sap_pricing";
61
- /**
62
- * @since v0.10.0 — Anti-replay receipt PDA bound to (escrow, service_hash) or (escrow, batch_root).
63
- * Created via `init` on every settle_calls / settle_batch / settle_calls_v2; replays fail.
64
- */
65
- readonly SETTLEMENT_RECEIPT: "sap_recv";
66
- /**
67
- * @deprecated v0.10.0 — Was reserved for receipt batch merkle root (never used on-chain).
68
- * Use {@link SEEDS.SETTLEMENT_RECEIPT} (`sap_recv`) instead. Will be removed in v0.11.0.
69
- */
70
- readonly RECEIPT: "sap_receipt";
71
- };
72
- /**
73
- * Union type of all valid keys in the {@link SEEDS} object.
74
- *
75
- * @name SeedKey
76
- * @description String literal union derived from `keyof typeof SEEDS`.
77
- * @category Constants
78
- * @since v0.1.0
79
- * @see {@link SEEDS}
80
- */
81
- export type SeedKey = keyof typeof SEEDS;
82
- //# sourceMappingURL=seeds.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seeds.d.ts","sourceRoot":"","sources":["../../../src/constants/seeds.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8BhB,sGAAsG;;IAEtG;;;OAGG;;IAEH;;;OAGG;;CAEK,CAAC;AAEX;;;;;;;;GAQG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,KAAK,CAAC"}