@molpha/sdk 0.2.0-dev-20261005112114 → 0.2.0-dev-20261006113121
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 +59 -2
- package/dist/{chunk-2X22JY7Q.js → chunk-H77BBZOL.js} +6 -3
- package/dist/chunk-H77BBZOL.js.map +1 -0
- package/dist/index.d.ts +228 -19
- package/dist/index.js +384 -54
- package/dist/index.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/{wallet-LqCFWwV4.d.ts → wallet--IGHoCtG.d.ts} +1 -1
- package/idl/molpha.json +17 -0
- package/idl/profiles/dev/molpha.json +7841 -0
- package/idl/profiles/stable/molpha.json +5563 -0
- package/package.json +5 -1
- package/dist/chunk-2X22JY7Q.js.map +0 -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--IGHoCtG.js';
|
|
3
3
|
import '@solana/kit';
|
|
4
4
|
|
|
5
5
|
/** Load a Solana CLI keypair JSON file (array of 64 bytes) into a `Keypair`. */
|
package/dist/utils.js
CHANGED
|
@@ -242,4 +242,4 @@ declare function signerFromKeypair(keypair: SolanaKeypair): Signer;
|
|
|
242
242
|
/** Resolve the gateway auth signer for a Molpha wallet, if available. */
|
|
243
243
|
declare function gatewaySignerFromWallet(wallet: Wallet): Signer | undefined;
|
|
244
244
|
|
|
245
|
-
export { type APIConfig as A, type EvmSigner as E, type MolphaWallet as M, type
|
|
245
|
+
export { type APIConfig as A, type EvmSigner as E, type MolphaWallet as M, type Node as N, type RegistrySelectionConfig as R, type Signer as S, type UpstreamQuote as U, type AssetDomain as a, type UpstreamTerms as b, type SourcePaymentOptions as c, type NodeKeyVerifier as d, type NodesInfo as e, type Attestation as f, type SolanaAccountMeta as g, type SolanaConnection as h, type SolanaAddress as i, type NodeKeyVerifierArgs as j, type AggregationConfig as k, type AttestationPayload as l, type EncKeyBundle as m, type NumericConfig as n, type RegistryInfo as o, type SchnorrSignature as p, gatewaySignerFromWallet as q, type SolanaKeypair as r, signerFromKeypair as s };
|
package/idl/molpha.json
CHANGED
|
@@ -4980,6 +4980,11 @@
|
|
|
4980
4980
|
"code": 6100,
|
|
4981
4981
|
"name": "InvalidRentReceiver",
|
|
4982
4982
|
"msg": "rent receiver must be the account that paid for the closed account"
|
|
4983
|
+
},
|
|
4984
|
+
{
|
|
4985
|
+
"code": 6101,
|
|
4986
|
+
"name": "InvalidInitialTau",
|
|
4987
|
+
"msg": "initial_tau is below the minimum ticket threshold"
|
|
4983
4988
|
}
|
|
4984
4989
|
],
|
|
4985
4990
|
"types": [
|
|
@@ -6019,6 +6024,18 @@
|
|
|
6019
6024
|
{
|
|
6020
6025
|
"name": "protocol_fee_bps",
|
|
6021
6026
|
"type": "u16"
|
|
6027
|
+
},
|
|
6028
|
+
{
|
|
6029
|
+
"name": "initial_tau",
|
|
6030
|
+
"docs": [
|
|
6031
|
+
"Ticket threshold of the two genesis epochs: a round is a ticket when the 64-bit prefix of its",
|
|
6032
|
+
"ticket hash is below it, so the sampling probability is `initial_tau / 2^64`. Size it as",
|
|
6033
|
+
"`2^64 * target_tickets_per_epoch / expected_rounds_per_epoch`. `u64::MAX` samples every round",
|
|
6034
|
+
"(every round then costs a ticket transaction until the controller, which moves the",
|
|
6035
|
+
"threshold at most 8x per epoch with a two-epoch lag, brings it down). Must be at least",
|
|
6036
|
+
"`TAU_MIN`."
|
|
6037
|
+
],
|
|
6038
|
+
"type": "u64"
|
|
6022
6039
|
}
|
|
6023
6040
|
]
|
|
6024
6041
|
}
|