moltspay 2.0.0 → 2.4.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/.env.example +23 -0
- package/CHANGELOG.md +551 -0
- package/README.md +466 -8
- package/dist/cdp/index.js.map +1 -1
- package/dist/cdp/index.mjs.map +1 -1
- package/dist/chains/index.d.mts +69 -4
- package/dist/chains/index.d.ts +69 -4
- package/dist/chains/index.js +45 -1
- package/dist/chains/index.js.map +1 -1
- package/dist/chains/index.mjs +39 -1
- package/dist/chains/index.mjs.map +1 -1
- package/dist/cli/index.js +5444 -2126
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +5457 -2133
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/index.d.mts +307 -1
- package/dist/client/index.d.ts +307 -1
- package/dist/client/index.js +639 -34
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +656 -52
- package/dist/client/index.mjs.map +1 -1
- package/dist/client/web/index.mjs.map +1 -1
- package/dist/facilitators/index.d.mts +512 -10
- package/dist/facilitators/index.d.ts +512 -10
- package/dist/facilitators/index.js +925 -13
- package/dist/facilitators/index.js.map +1 -1
- package/dist/facilitators/index.mjs +906 -12
- package/dist/facilitators/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2843 -551
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2849 -558
- package/dist/index.mjs.map +1 -1
- package/dist/mcp/index.js +635 -32
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/index.mjs +660 -57
- package/dist/mcp/index.mjs.map +1 -1
- package/dist/server/index.d.mts +252 -11
- package/dist/server/index.d.ts +252 -11
- package/dist/server/index.js +2049 -261
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +2049 -261
- package/dist/server/index.mjs.map +1 -1
- package/dist/verify/index.js.map +1 -1
- package/dist/verify/index.mjs.map +1 -1
- package/dist/wallet/index.js.map +1 -1
- package/dist/wallet/index.mjs.map +1 -1
- package/package.json +14 -2
- package/schemas/moltspay.services.schema.json +127 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Charge, ChargeStatus, MoltsPayServer, MoltsPayServerOptions, PaymentRequest, ProviderConfig, RegisteredSkill, ServiceConfig, ServicesManifest, SkillFunction } from './server/index.mjs';
|
|
2
|
-
export { ClientConfig, MoltsPayClient, MoltsPayClientOptions, PaymentRequired, ProviderInfo, ServiceInfo, ServicesResponse, VerifyResponse, WalletData } from './client/index.mjs';
|
|
2
|
+
export { ClientConfig, MoltsPayClient, MoltsPayClientOptions, PaymentRequired, ProviderInfo, ServiceInfo, ServicesResponse, VerifyResponse, WalletData, WechatClient, WechatClientOptions, WechatPayOptions, WechatPaymentResult, WechatPaymentSession, WechatPendingInfo, WechatSessionStatus, WechatStartOptions } from './client/index.mjs';
|
|
3
3
|
export { CHAINS, ERC20_ABI, getChain, getChainById, listChains } from './chains/index.mjs';
|
|
4
4
|
export { c as createWallet, g as getWalletAddress, l as loadWallet, w as walletExists } from './createWallet-D53qu7ie.mjs';
|
|
5
5
|
export { VerifyPaymentParams, VerifyPaymentResult, getTransactionStatus, verifyPayment, waitForTransaction } from './verify/index.mjs';
|
|
@@ -65,7 +65,7 @@ declare const alipayLog: {
|
|
|
65
65
|
* The Alipay skill guide §5 forbids skipping any step; each maps to one
|
|
66
66
|
* `alipay-bot` spawn. This class drives them in order and hands the caller a
|
|
67
67
|
* single terminal `AlipayPaymentResult`, so paying via Alipay looks the same
|
|
68
|
-
* as awaiting an EVM settle (design §5.2.3 "
|
|
68
|
+
* as awaiting an EVM settle (design §5.2.3 "key design").
|
|
69
69
|
*
|
|
70
70
|
* 0. ensureCli() version gate (≥ MIN_CLI_VERSION)
|
|
71
71
|
* 1b. alipay-bot payment-intent … session handshake
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Charge, ChargeStatus, MoltsPayServer, MoltsPayServerOptions, PaymentRequest, ProviderConfig, RegisteredSkill, ServiceConfig, ServicesManifest, SkillFunction } from './server/index.js';
|
|
2
|
-
export { ClientConfig, MoltsPayClient, MoltsPayClientOptions, PaymentRequired, ProviderInfo, ServiceInfo, ServicesResponse, VerifyResponse, WalletData } from './client/index.js';
|
|
2
|
+
export { ClientConfig, MoltsPayClient, MoltsPayClientOptions, PaymentRequired, ProviderInfo, ServiceInfo, ServicesResponse, VerifyResponse, WalletData, WechatClient, WechatClientOptions, WechatPayOptions, WechatPaymentResult, WechatPaymentSession, WechatPendingInfo, WechatSessionStatus, WechatStartOptions } from './client/index.js';
|
|
3
3
|
export { CHAINS, ERC20_ABI, getChain, getChainById, listChains } from './chains/index.js';
|
|
4
4
|
export { c as createWallet, g as getWalletAddress, l as loadWallet, w as walletExists } from './createWallet-D53qu7ie.js';
|
|
5
5
|
export { VerifyPaymentParams, VerifyPaymentResult, getTransactionStatus, verifyPayment, waitForTransaction } from './verify/index.js';
|
|
@@ -65,7 +65,7 @@ declare const alipayLog: {
|
|
|
65
65
|
* The Alipay skill guide §5 forbids skipping any step; each maps to one
|
|
66
66
|
* `alipay-bot` spawn. This class drives them in order and hands the caller a
|
|
67
67
|
* single terminal `AlipayPaymentResult`, so paying via Alipay looks the same
|
|
68
|
-
* as awaiting an EVM settle (design §5.2.3 "
|
|
68
|
+
* as awaiting an EVM settle (design §5.2.3 "key design").
|
|
69
69
|
*
|
|
70
70
|
* 0. ensureCli() version gate (≥ MIN_CLI_VERSION)
|
|
71
71
|
* 1b. alipay-bot payment-intent … session handshake
|