@molpha/sdk 0.2.0-dev-20261005191253 → 0.2.0-dev-20261007162054
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 +34 -8
- package/dist/index.d.ts +27 -16
- package/dist/index.js +22 -7
- package/dist/index.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/{wallet--IGHoCtG.d.ts → wallet-DGe_pi93.d.ts} +11 -0
- package/idl/profiles/dev/molpha.json +7841 -0
- package/idl/profiles/stable/molpha.json +5563 -0
- package/package.json +5 -1
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Wallet } from '@anchor-lang/core';
|
|
2
|
-
import { r as SolanaKeypair, M as MolphaWallet } from './wallet
|
|
2
|
+
import { r as SolanaKeypair, M as MolphaWallet } from './wallet-DGe_pi93.js';
|
|
3
3
|
import '@solana/kit';
|
|
4
4
|
|
|
5
5
|
/** Load a Solana CLI keypair JSON file (array of 64 bytes) into a `Keypair`. */
|
|
@@ -189,6 +189,15 @@ interface UpstreamTerms {
|
|
|
189
189
|
domain: AssetDomain;
|
|
190
190
|
/** The source URL these terms were read from. */
|
|
191
191
|
resource: string;
|
|
192
|
+
/**
|
|
193
|
+
* The source's `payment-identifier` extension (x402 idempotency), when it declares one. A source that
|
|
194
|
+
* requires it rejects a payment without an identifier, so each authorization echoes the declaration
|
|
195
|
+
* with its own `info.id`.
|
|
196
|
+
*/
|
|
197
|
+
paymentIdentifier?: {
|
|
198
|
+
info: Record<string, unknown>;
|
|
199
|
+
schema?: unknown;
|
|
200
|
+
};
|
|
192
201
|
}
|
|
193
202
|
/**
|
|
194
203
|
* The gateway's relayed quote for a paywalled source, from `extensions.upstream`
|
|
@@ -196,6 +205,8 @@ interface UpstreamTerms {
|
|
|
196
205
|
* and network come from the source's own 402, which the caller reads directly.
|
|
197
206
|
*/
|
|
198
207
|
interface UpstreamQuote {
|
|
208
|
+
/** The integrated provider whose paid host this is, when it is one. */
|
|
209
|
+
provider?: string;
|
|
199
210
|
resource: string;
|
|
200
211
|
signaturesRequired: number;
|
|
201
212
|
redundancyBuffer: number;
|