@mysten-incubation/suipay-buyer 0.3.0-dev.3 → 0.3.0-dev.4
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/{chunk-XHHXRSY3.js → chunk-XQA5ISYE.js} +54 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -1
- package/dist/{native-transfer-BN4VEDV0.d.ts → native-transfer-BSiUmi3i.d.ts} +49 -0
- package/dist/native-transfer.d.ts +1 -1
- package/dist/native-transfer.js +1 -1
- package/package.json +1 -1
|
@@ -1622,6 +1622,55 @@ var REQUEST_CODES = {
|
|
|
1622
1622
|
nextAction: "fix_request",
|
|
1623
1623
|
user: { title: "Address not found", message: "That web address doesn't exist. Check the spelling and try again." }
|
|
1624
1624
|
},
|
|
1625
|
+
"request.recipient_changed": {
|
|
1626
|
+
surfaces: ["gateway"],
|
|
1627
|
+
status: 409,
|
|
1628
|
+
title: "Pay-to address changed while its registry was being checked",
|
|
1629
|
+
paymentState: "not_charged",
|
|
1630
|
+
retry: "never",
|
|
1631
|
+
nextAction: "fix_request",
|
|
1632
|
+
user: {
|
|
1633
|
+
title: "Retry this publish",
|
|
1634
|
+
message: "The payout address changed while its payment registry was being checked. Retry so the current address is checked."
|
|
1635
|
+
}
|
|
1636
|
+
},
|
|
1637
|
+
"request.recipient_registry_invalid": {
|
|
1638
|
+
surfaces: ["gateway"],
|
|
1639
|
+
status: 409,
|
|
1640
|
+
title: "Payment registry does not verify for this deployment",
|
|
1641
|
+
paymentState: "not_charged",
|
|
1642
|
+
retry: "never",
|
|
1643
|
+
nextAction: "fix_request",
|
|
1644
|
+
user: {
|
|
1645
|
+
title: "Registry does not match",
|
|
1646
|
+
message: "The payout address's payment registry does not match this deployment. Fix it, then publish again."
|
|
1647
|
+
}
|
|
1648
|
+
},
|
|
1649
|
+
"request.recipient_registry_missing": {
|
|
1650
|
+
surfaces: ["gateway"],
|
|
1651
|
+
status: 409,
|
|
1652
|
+
title: "Pay-to address has no payment registry",
|
|
1653
|
+
paymentState: "not_charged",
|
|
1654
|
+
retry: "never",
|
|
1655
|
+
nextAction: "fix_request",
|
|
1656
|
+
user: {
|
|
1657
|
+
title: "Create a payment registry",
|
|
1658
|
+
message: "This payout address has no payment registry on this network yet. Create it in the seller console, then publish again."
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1661
|
+
"request.recipient_registry_unreadable": {
|
|
1662
|
+
surfaces: ["gateway"],
|
|
1663
|
+
status: 503,
|
|
1664
|
+
title: "Payment registry could not be read",
|
|
1665
|
+
paymentState: "not_charged",
|
|
1666
|
+
retry: "after_delay",
|
|
1667
|
+
retryAfterSeconds: 5,
|
|
1668
|
+
nextAction: "retry_later",
|
|
1669
|
+
user: {
|
|
1670
|
+
title: "Registry unread",
|
|
1671
|
+
message: "The payment registry could not be read just now. Wait a moment and try again."
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1625
1674
|
"request.redirect_refused": {
|
|
1626
1675
|
surfaces: ["console_server", "sdk"],
|
|
1627
1676
|
status: 422,
|
|
@@ -2926,6 +2975,11 @@ var CONTEXT_ALLOWLIST = /* @__PURE__ */ new Set([
|
|
|
2926
2975
|
"rails",
|
|
2927
2976
|
"shard",
|
|
2928
2977
|
"metric",
|
|
2978
|
+
// Gateway readiness gauge. Fixed marks only: 0 or 1, and up, down, skipped, unknown.
|
|
2979
|
+
"ready",
|
|
2980
|
+
"grpc",
|
|
2981
|
+
"enoki",
|
|
2982
|
+
"postgres",
|
|
2929
2983
|
"alarm",
|
|
2930
2984
|
"alert",
|
|
2931
2985
|
"from",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as ErrorCode, P as PaymentState, N as NextAction, R as Receipt, C as CodeFor, D as DelegationScope, O as Offer } from './native-transfer-
|
|
2
|
-
export { B as BuildNativeTransferInput, M as McpPaymentSigner, a as NativeTransferAccept, b as NativeTransferBuild, c as NativeTransferError, d as NativeTransferGas, e as NativeTransferSignerInput, S as SuiPayError, f as SuiPayErrorFields, g as buildMcpPaymentPayload, h as buildNativeTransferBytes, i as createNativeTransferSigner, j as inspectNativeTransfer, t as toErrorFields } from './native-transfer-
|
|
1
|
+
import { E as ErrorCode, P as PaymentState, N as NextAction, R as Receipt, C as CodeFor, D as DelegationScope, O as Offer } from './native-transfer-BSiUmi3i.js';
|
|
2
|
+
export { B as BuildNativeTransferInput, M as McpPaymentSigner, a as NativeTransferAccept, b as NativeTransferBuild, c as NativeTransferError, d as NativeTransferGas, e as NativeTransferSignerInput, S as SuiPayError, f as SuiPayErrorFields, g as buildMcpPaymentPayload, h as buildNativeTransferBytes, i as createNativeTransferSigner, j as inspectNativeTransfer, t as toErrorFields } from './native-transfer-BSiUmi3i.js';
|
|
3
3
|
import { SuiGrpcClient } from '@mysten/sui/grpc';
|
|
4
4
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
5
5
|
import { KeyObject } from 'node:crypto';
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
parseErrorPayload,
|
|
14
14
|
stricterPaymentState,
|
|
15
15
|
toErrorFields
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XQA5ISYE.js";
|
|
17
17
|
|
|
18
18
|
// src/mcp.ts
|
|
19
19
|
async function buildMcpPaymentPayload(paymentRequired, signer) {
|
|
@@ -2574,6 +2574,14 @@ var SERVICE_STATE_TRANSITIONS = Object.freeze([
|
|
|
2574
2574
|
to: "payout_change",
|
|
2575
2575
|
actors: ["system"],
|
|
2576
2576
|
requires: ["reason_code"]
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
id: "T25",
|
|
2580
|
+
dimension: "suspension",
|
|
2581
|
+
from: ["binding_changed"],
|
|
2582
|
+
to: "none",
|
|
2583
|
+
actors: ["system"],
|
|
2584
|
+
requires: ["reason_code"]
|
|
2577
2585
|
}
|
|
2578
2586
|
]);
|
|
2579
2587
|
|
|
@@ -2706,6 +2706,55 @@ declare const ERRORS: {
|
|
|
2706
2706
|
readonly message: "That web address doesn't exist. Check the spelling and try again.";
|
|
2707
2707
|
};
|
|
2708
2708
|
};
|
|
2709
|
+
readonly 'request.recipient_changed': {
|
|
2710
|
+
readonly surfaces: readonly ["gateway"];
|
|
2711
|
+
readonly status: 409;
|
|
2712
|
+
readonly title: "Pay-to address changed while its registry was being checked";
|
|
2713
|
+
readonly paymentState: "not_charged";
|
|
2714
|
+
readonly retry: "never";
|
|
2715
|
+
readonly nextAction: "fix_request";
|
|
2716
|
+
readonly user: {
|
|
2717
|
+
readonly title: "Retry this publish";
|
|
2718
|
+
readonly message: "The payout address changed while its payment registry was being checked. Retry so the current address is checked.";
|
|
2719
|
+
};
|
|
2720
|
+
};
|
|
2721
|
+
readonly 'request.recipient_registry_invalid': {
|
|
2722
|
+
readonly surfaces: readonly ["gateway"];
|
|
2723
|
+
readonly status: 409;
|
|
2724
|
+
readonly title: "Payment registry does not verify for this deployment";
|
|
2725
|
+
readonly paymentState: "not_charged";
|
|
2726
|
+
readonly retry: "never";
|
|
2727
|
+
readonly nextAction: "fix_request";
|
|
2728
|
+
readonly user: {
|
|
2729
|
+
readonly title: "Registry does not match";
|
|
2730
|
+
readonly message: "The payout address's payment registry does not match this deployment. Fix it, then publish again.";
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2733
|
+
readonly 'request.recipient_registry_missing': {
|
|
2734
|
+
readonly surfaces: readonly ["gateway"];
|
|
2735
|
+
readonly status: 409;
|
|
2736
|
+
readonly title: "Pay-to address has no payment registry";
|
|
2737
|
+
readonly paymentState: "not_charged";
|
|
2738
|
+
readonly retry: "never";
|
|
2739
|
+
readonly nextAction: "fix_request";
|
|
2740
|
+
readonly user: {
|
|
2741
|
+
readonly title: "Create a payment registry";
|
|
2742
|
+
readonly message: "This payout address has no payment registry on this network yet. Create it in the seller console, then publish again.";
|
|
2743
|
+
};
|
|
2744
|
+
};
|
|
2745
|
+
readonly 'request.recipient_registry_unreadable': {
|
|
2746
|
+
readonly surfaces: readonly ["gateway"];
|
|
2747
|
+
readonly status: 503;
|
|
2748
|
+
readonly title: "Payment registry could not be read";
|
|
2749
|
+
readonly paymentState: "not_charged";
|
|
2750
|
+
readonly retry: "after_delay";
|
|
2751
|
+
readonly retryAfterSeconds: 5;
|
|
2752
|
+
readonly nextAction: "retry_later";
|
|
2753
|
+
readonly user: {
|
|
2754
|
+
readonly title: "Registry unread";
|
|
2755
|
+
readonly message: "The payment registry could not be read just now. Wait a moment and try again.";
|
|
2756
|
+
};
|
|
2757
|
+
};
|
|
2709
2758
|
readonly 'request.redirect_refused': {
|
|
2710
2759
|
readonly surfaces: readonly ["console_server", "sdk"];
|
|
2711
2760
|
readonly status: 422;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '@mysten/sui/client';
|
|
2
|
-
export { B as BuildNativeTransferInput, a as NativeTransferAccept, b as NativeTransferBuild, c as NativeTransferError, k as NativeTransferErrorCode, d as NativeTransferGas, e as NativeTransferSignerInput, h as buildNativeTransferBytes, i as createNativeTransferSigner, j as inspectNativeTransfer } from './native-transfer-
|
|
2
|
+
export { B as BuildNativeTransferInput, a as NativeTransferAccept, b as NativeTransferBuild, c as NativeTransferError, k as NativeTransferErrorCode, d as NativeTransferGas, e as NativeTransferSignerInput, h as buildNativeTransferBytes, i as createNativeTransferSigner, j as inspectNativeTransfer } from './native-transfer-BSiUmi3i.js';
|
package/dist/native-transfer.js
CHANGED
package/package.json
CHANGED