kawasekit 0.1.0 → 0.2.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/dist/asset-domain-4Ioxqn28.d.cts +348 -0
- package/dist/asset-domain-4Ioxqn28.d.ts +348 -0
- package/dist/{chunk-YMABXRCK.js → chunk-6CNAYQOL.js} +2 -2
- package/dist/chunk-6CNAYQOL.js.map +1 -0
- package/dist/{chunk-E2EG72U2.js → chunk-SMAZUZFO.js} +4 -9
- package/dist/chunk-SMAZUZFO.js.map +1 -0
- package/dist/{chunk-RUWCCP37.js → chunk-THTVJZ2Q.js} +5 -10
- package/dist/chunk-THTVJZ2Q.js.map +1 -0
- package/dist/{chunk-VPRR3TNA.js → chunk-VXZHS74W.js} +59 -51
- package/dist/chunk-VXZHS74W.js.map +1 -0
- package/dist/{chunk-UQ7WJY6O.js → chunk-XRSZTZVZ.js} +2 -2
- package/dist/{chunk-UQ7WJY6O.js.map → chunk-XRSZTZVZ.js.map} +1 -1
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/{index-Z6AL1MR_.d.cts → index-Cn6kg7KH.d.cts} +1 -1
- package/dist/{index-BaAOB0xd.d.ts → index-f-Xg86P9.d.ts} +1 -1
- package/dist/index.cjs +14 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -170
- package/dist/index.d.ts +5 -170
- package/dist/index.js +5 -5
- package/dist/policy/index.cjs.map +1 -1
- package/dist/policy/index.d.cts +1 -1
- package/dist/policy/index.d.ts +1 -1
- package/dist/policy/index.js +1 -1
- package/dist/signer/index.cjs +9 -6
- package/dist/signer/index.cjs.map +1 -1
- package/dist/signer/index.d.cts +2 -2
- package/dist/signer/index.d.ts +2 -2
- package/dist/signer/index.js +3 -3
- package/dist/{spending-policy-DZSNHqnD.d.ts → spending-policy-DKZN3Sg8.d.ts} +3 -2
- package/dist/{spending-policy-DqBRDUxx.d.cts → spending-policy-DaajDg9B.d.cts} +3 -2
- package/dist/x402/index.cjs +9 -6
- package/dist/x402/index.cjs.map +1 -1
- package/dist/x402/index.d.cts +2 -2
- package/dist/x402/index.d.ts +2 -2
- package/dist/x402/index.js +2 -2
- package/package.json +1 -1
- package/dist/asset-domain-CpJuDkI2.d.cts +0 -102
- package/dist/asset-domain-CpJuDkI2.d.ts +0 -102
- package/dist/chunk-E2EG72U2.js.map +0 -1
- package/dist/chunk-RUWCCP37.js.map +0 -1
- package/dist/chunk-VPRR3TNA.js.map +0 -1
- package/dist/chunk-YMABXRCK.js.map +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { transferJpyc } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
import { transferJpyc } from '../chunk-XRSZTZVZ.js';
|
|
3
|
+
import '../chunk-SMAZUZFO.js';
|
|
4
4
|
import '../chunk-PVUKX6IF.js';
|
|
5
5
|
import '../chunk-LEHWRDVS.js';
|
|
6
6
|
import '../chunk-TTX3RBIZ.js';
|
|
7
7
|
import '../chunk-QHUCU5YX.js';
|
|
8
8
|
import { issueSessionKey, serializeSessionEnvelope, restoreSessionAccount, revokeSessionKey, rotateSessionKey, parseSessionEnvelope } from '../chunk-N3CVLISJ.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-THTVJZ2Q.js';
|
|
10
|
+
import '../chunk-VXZHS74W.js';
|
|
11
11
|
import '../chunk-WMVJNPX2.js';
|
|
12
12
|
import { createJpycDailyLimitPolicies } from '../chunk-E47SIVFY.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-6CNAYQOL.js';
|
|
14
14
|
import { JPYC_DECIMALS, getJpycAddress, jpycAbi } from '../chunk-KT7XDT2T.js';
|
|
15
15
|
import { zerodevRpcUrl, polygon, polygonAmoy } from '../chunk-SOTYGX67.js';
|
|
16
16
|
import { __commonJS, __require, __toESM } from '../chunk-7D4SUZUM.js';
|
|
@@ -980,7 +980,7 @@ function registerTransferCommand(program2) {
|
|
|
980
980
|
}
|
|
981
981
|
|
|
982
982
|
// cli/index.ts
|
|
983
|
-
var CLI_VERSION = "0.
|
|
983
|
+
var CLI_VERSION = "0.2.0" ;
|
|
984
984
|
var program = new Command();
|
|
985
985
|
program.name("kawasekit").description(
|
|
986
986
|
"kawasekit \u2014 CLI for the kawasekit SDK (AI-agent stablecoin payments, Japan-first, JPYC-native)."
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as X402AssetParam } from './asset-domain-
|
|
1
|
+
import { X as X402AssetParam } from './asset-domain-4Ioxqn28.cjs';
|
|
2
2
|
import { Chain, Account, Address, WalletClient, Transport, PublicClient } from 'viem';
|
|
3
3
|
import { a as PolicyGatedSigner, N as NonBypassableEnforcement, b as PolicyRejection } from './types-IEl-iOIx.cjs';
|
|
4
4
|
import { g as X402PaymentRequirements, h as X402ResourceInfo, e as X402PaymentPayload, f as X402PaymentRequiredResponse, l as X402SettlementResponse, F as Facilitator } from './types-TpS_8ztt.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as X402AssetParam } from './asset-domain-
|
|
1
|
+
import { X as X402AssetParam } from './asset-domain-4Ioxqn28.js';
|
|
2
2
|
import { Chain, Account, Address, WalletClient, Transport, PublicClient } from 'viem';
|
|
3
3
|
import { a as PolicyGatedSigner, N as NonBypassableEnforcement, b as PolicyRejection } from './types-IEl-iOIx.js';
|
|
4
4
|
import { g as X402PaymentRequirements, h as X402ResourceInfo, e as X402PaymentPayload, f as X402PaymentRequiredResponse, l as X402SettlementResponse, F as Facilitator } from './types-BR9UcvJO.js';
|
package/dist/index.cjs
CHANGED
|
@@ -646,6 +646,14 @@ function resolveAssetParam(asset) {
|
|
|
646
646
|
`unsupported kind ${JSON.stringify(exhaustive.kind)}. Expected "known" or "unsafeOverride".`
|
|
647
647
|
);
|
|
648
648
|
}
|
|
649
|
+
function resolvedAssetToEip3009Domain(asset, chainId) {
|
|
650
|
+
return {
|
|
651
|
+
name: asset.name,
|
|
652
|
+
version: asset.version,
|
|
653
|
+
chainId,
|
|
654
|
+
verifyingContract: asset.verifyingContract
|
|
655
|
+
};
|
|
656
|
+
}
|
|
649
657
|
var transferWithAuthorizationTypes = {
|
|
650
658
|
TransferWithAuthorization: [
|
|
651
659
|
{ name: "from", type: "address" },
|
|
@@ -797,12 +805,7 @@ function createLocalPolicyGatedSigner(params) {
|
|
|
797
805
|
}
|
|
798
806
|
const signed = await signTransferWithAuthorization(
|
|
799
807
|
account,
|
|
800
|
-
|
|
801
|
-
name: pinned.name,
|
|
802
|
-
version: pinned.version,
|
|
803
|
-
chainId: intent.chainId,
|
|
804
|
-
verifyingContract: pinned.verifyingContract
|
|
805
|
-
},
|
|
808
|
+
resolvedAssetToEip3009Domain(pinned, intent.chainId),
|
|
806
809
|
{
|
|
807
810
|
from,
|
|
808
811
|
to: intent.to,
|
|
@@ -977,12 +980,7 @@ function createX402PaymentSigner(params) {
|
|
|
977
980
|
) : generateAuthorizationNonce();
|
|
978
981
|
const signed = await signTransferWithAuthorization(
|
|
979
982
|
account,
|
|
980
|
-
|
|
981
|
-
name: pinnedDomain.name,
|
|
982
|
-
version: pinnedDomain.version,
|
|
983
|
-
chainId,
|
|
984
|
-
verifyingContract: pinnedDomain.verifyingContract
|
|
985
|
-
},
|
|
983
|
+
resolvedAssetToEip3009Domain(pinnedDomain, chainId),
|
|
986
984
|
{
|
|
987
985
|
from: account.address,
|
|
988
986
|
to: payTo,
|
|
@@ -2861,6 +2859,7 @@ exports.avalanche = avalanche;
|
|
|
2861
2859
|
exports.avalancheFuji = avalancheFuji;
|
|
2862
2860
|
exports.buildPaymentRequiredResponse = buildPaymentRequiredResponse;
|
|
2863
2861
|
exports.buildPaymentRequirements = buildPaymentRequirements;
|
|
2862
|
+
exports.cancelAuthorizationTypes = cancelAuthorizationTypes;
|
|
2864
2863
|
exports.chainIdToX402Network = chainIdToX402Network;
|
|
2865
2864
|
exports.createAgentSmartAccount = createAgentSmartAccount;
|
|
2866
2865
|
exports.createCoinbaseFacilitator = createCoinbaseFacilitator;
|
|
@@ -2904,7 +2903,9 @@ exports.parseIdempotencyRecord = parseIdempotencyRecord;
|
|
|
2904
2903
|
exports.parseSessionEnvelope = parseSessionEnvelope;
|
|
2905
2904
|
exports.polygon = polygon;
|
|
2906
2905
|
exports.polygonAmoy = polygonAmoy;
|
|
2906
|
+
exports.receiveWithAuthorizationTypes = receiveWithAuthorizationTypes;
|
|
2907
2907
|
exports.requireNonBypassable = requireNonBypassable;
|
|
2908
|
+
exports.resolvedAssetToEip3009Domain = resolvedAssetToEip3009Domain;
|
|
2908
2909
|
exports.restoreSessionAccount = restoreSessionAccount;
|
|
2909
2910
|
exports.revokeSessionKey = revokeSessionKey;
|
|
2910
2911
|
exports.rotateSessionKey = rotateSessionKey;
|
|
@@ -2916,6 +2917,7 @@ exports.signReceiveWithAuthorization = signReceiveWithAuthorization;
|
|
|
2916
2917
|
exports.signTransferWithAuthorization = signTransferWithAuthorization;
|
|
2917
2918
|
exports.supportedChains = supportedChains;
|
|
2918
2919
|
exports.transferJpyc = transferJpyc;
|
|
2920
|
+
exports.transferWithAuthorizationTypes = transferWithAuthorizationTypes;
|
|
2919
2921
|
exports.wrapFetch = wrapFetch;
|
|
2920
2922
|
exports.x402NetworkToChainId = x402NetworkToChainId;
|
|
2921
2923
|
exports.zerodevRpcUrl = zerodevRpcUrl;
|