@t402/svm 2.4.0 → 2.6.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/cjs/exact/client/index.d.ts +3 -3
- package/dist/cjs/exact/facilitator/index.d.ts +1 -1
- package/dist/cjs/exact/v1/client/index.d.ts +1 -1
- package/dist/cjs/exact/v1/facilitator/index.d.ts +1 -1
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/{scheme-ByJE6QYY.d.ts → scheme-BVGniSnN.d.ts} +1 -1
- package/dist/cjs/{signer-BMkbhFYE.d.ts → signer-V35oXttt.d.ts} +2 -2
- package/dist/cjs/v1/index.d.ts +1 -1
- package/dist/esm/exact/client/index.d.mts +3 -3
- package/dist/esm/exact/facilitator/index.d.mts +1 -1
- package/dist/esm/exact/v1/client/index.d.mts +1 -1
- package/dist/esm/exact/v1/facilitator/index.d.mts +1 -1
- package/dist/esm/index.d.mts +3 -3
- package/dist/esm/{scheme-DRerE5zq.d.mts → scheme-CdkPigWY.d.mts} +1 -1
- package/dist/esm/{signer-BMkbhFYE.d.mts → signer-V35oXttt.d.mts} +2 -2
- package/dist/esm/v1/index.d.mts +1 -1
- package/package.json +26 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { E as ExactSvmScheme } from '../../scheme-
|
|
2
|
-
import {
|
|
1
|
+
export { E as ExactSvmScheme } from '../../scheme-BVGniSnN.js';
|
|
2
|
+
import { SelectPaymentRequirements, PaymentPolicy, t402Client } from '@t402/core/client';
|
|
3
3
|
import { Network } from '@t402/core/types';
|
|
4
|
-
import { C as ClientSvmSigner } from '../../signer-
|
|
4
|
+
import { C as ClientSvmSigner } from '../../signer-V35oXttt.js';
|
|
5
5
|
import '@solana/kit';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemeNetworkFacilitator, PaymentPayload, PaymentRequirements, VerifyResponse, SettleResponse, Network } from '@t402/core/types';
|
|
2
|
-
import { F as FacilitatorSvmSigner } from '../../signer-
|
|
2
|
+
import { F as FacilitatorSvmSigner } from '../../signer-V35oXttt.js';
|
|
3
3
|
import { t402Facilitator } from '@t402/core/facilitator';
|
|
4
4
|
import '@solana/kit';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemeNetworkClient, PaymentRequirements, PaymentPayload, Network } from '@t402/core/types';
|
|
2
|
-
import { C as ClientSvmSigner, a as ClientSvmConfig } from '../../../signer-
|
|
2
|
+
import { C as ClientSvmSigner, a as ClientSvmConfig } from '../../../signer-V35oXttt.js';
|
|
3
3
|
import '@solana/kit';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemeNetworkFacilitator, PaymentPayload, PaymentRequirements, VerifyResponse, SettleResponse } from '@t402/core/types';
|
|
2
|
-
import { F as FacilitatorSvmSigner } from '../../../signer-
|
|
2
|
+
import { F as FacilitatorSvmSigner } from '../../../signer-V35oXttt.js';
|
|
3
3
|
import '@solana/kit';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { E as ExactSvmScheme } from './scheme-
|
|
2
|
-
export { a as ClientSvmConfig, C as ClientSvmSigner,
|
|
1
|
+
export { E as ExactSvmScheme } from './scheme-BVGniSnN.js';
|
|
2
|
+
export { a as ClientSvmConfig, C as ClientSvmSigner, b as FacilitatorRpcClient, c as FacilitatorRpcConfig, F as FacilitatorSvmSigner, t as toClientSvmSigner, d as toFacilitatorSvmSigner } from './signer-V35oXttt.js';
|
|
3
3
|
export { UptoSvmAuthorization, UptoSvmExtra, UptoSvmPayload, isUptoSvmPayload } from './upto/index.js';
|
|
4
|
-
import {
|
|
4
|
+
import { RpcDevnet, SolanaRpcApiDevnet, RpcTestnet, SolanaRpcApiTestnet, RpcMainnet, SolanaRpcApiMainnet, Transaction } from '@solana/kit';
|
|
5
5
|
import { Network } from '@t402/core/types';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemeNetworkClient, PaymentRequirements, PaymentPayload } from '@t402/core/types';
|
|
2
|
-
import { C as ClientSvmSigner, a as ClientSvmConfig } from './signer-
|
|
2
|
+
import { C as ClientSvmSigner, a as ClientSvmConfig } from './signer-V35oXttt.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* SVM client implementation for the Exact payment scheme.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TransactionSigner,
|
|
1
|
+
import { TransactionSigner, RpcDevnet, SolanaRpcApiDevnet, RpcTestnet, SolanaRpcApiTestnet, RpcMainnet, SolanaRpcApiMainnet, Address, MessagePartialSigner } from '@solana/kit';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Client-side signer for creating and signing Solana transactions
|
|
@@ -120,4 +120,4 @@ type FacilitatorRpcConfig = FacilitatorRpcClient | Record<string, FacilitatorRpc
|
|
|
120
120
|
*/
|
|
121
121
|
declare function toFacilitatorSvmSigner(signer: TransactionSigner & MessagePartialSigner, rpcConfig?: FacilitatorRpcConfig): FacilitatorSvmSigner;
|
|
122
122
|
|
|
123
|
-
export { type ClientSvmSigner as C, type FacilitatorSvmSigner as F, type ClientSvmConfig as a,
|
|
123
|
+
export { type ClientSvmSigner as C, type FacilitatorSvmSigner as F, type ClientSvmConfig as a, type FacilitatorRpcClient as b, type FacilitatorRpcConfig as c, toFacilitatorSvmSigner as d, toClientSvmSigner as t };
|
package/dist/cjs/v1/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { E as ExactSvmScheme } from '../../scheme-
|
|
2
|
-
import {
|
|
1
|
+
export { E as ExactSvmScheme } from '../../scheme-CdkPigWY.mjs';
|
|
2
|
+
import { SelectPaymentRequirements, PaymentPolicy, t402Client } from '@t402/core/client';
|
|
3
3
|
import { Network } from '@t402/core/types';
|
|
4
|
-
import { C as ClientSvmSigner } from '../../signer-
|
|
4
|
+
import { C as ClientSvmSigner } from '../../signer-V35oXttt.mjs';
|
|
5
5
|
import '@solana/kit';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemeNetworkFacilitator, PaymentPayload, PaymentRequirements, VerifyResponse, SettleResponse, Network } from '@t402/core/types';
|
|
2
|
-
import { F as FacilitatorSvmSigner } from '../../signer-
|
|
2
|
+
import { F as FacilitatorSvmSigner } from '../../signer-V35oXttt.mjs';
|
|
3
3
|
import { t402Facilitator } from '@t402/core/facilitator';
|
|
4
4
|
import '@solana/kit';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemeNetworkClient, PaymentRequirements, PaymentPayload, Network } from '@t402/core/types';
|
|
2
|
-
import { C as ClientSvmSigner, a as ClientSvmConfig } from '../../../signer-
|
|
2
|
+
import { C as ClientSvmSigner, a as ClientSvmConfig } from '../../../signer-V35oXttt.mjs';
|
|
3
3
|
import '@solana/kit';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemeNetworkFacilitator, PaymentPayload, PaymentRequirements, VerifyResponse, SettleResponse } from '@t402/core/types';
|
|
2
|
-
import { F as FacilitatorSvmSigner } from '../../../signer-
|
|
2
|
+
import { F as FacilitatorSvmSigner } from '../../../signer-V35oXttt.mjs';
|
|
3
3
|
import '@solana/kit';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { E as ExactSvmScheme } from './scheme-
|
|
2
|
-
export { a as ClientSvmConfig, C as ClientSvmSigner,
|
|
1
|
+
export { E as ExactSvmScheme } from './scheme-CdkPigWY.mjs';
|
|
2
|
+
export { a as ClientSvmConfig, C as ClientSvmSigner, b as FacilitatorRpcClient, c as FacilitatorRpcConfig, F as FacilitatorSvmSigner, t as toClientSvmSigner, d as toFacilitatorSvmSigner } from './signer-V35oXttt.mjs';
|
|
3
3
|
export { UptoSvmAuthorization, UptoSvmExtra, UptoSvmPayload, isUptoSvmPayload } from './upto/index.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { RpcDevnet, SolanaRpcApiDevnet, RpcTestnet, SolanaRpcApiTestnet, RpcMainnet, SolanaRpcApiMainnet, Transaction } from '@solana/kit';
|
|
5
5
|
import { Network } from '@t402/core/types';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemeNetworkClient, PaymentRequirements, PaymentPayload } from '@t402/core/types';
|
|
2
|
-
import { C as ClientSvmSigner, a as ClientSvmConfig } from './signer-
|
|
2
|
+
import { C as ClientSvmSigner, a as ClientSvmConfig } from './signer-V35oXttt.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* SVM client implementation for the Exact payment scheme.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TransactionSigner,
|
|
1
|
+
import { TransactionSigner, RpcDevnet, SolanaRpcApiDevnet, RpcTestnet, SolanaRpcApiTestnet, RpcMainnet, SolanaRpcApiMainnet, Address, MessagePartialSigner } from '@solana/kit';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Client-side signer for creating and signing Solana transactions
|
|
@@ -120,4 +120,4 @@ type FacilitatorRpcConfig = FacilitatorRpcClient | Record<string, FacilitatorRpc
|
|
|
120
120
|
*/
|
|
121
121
|
declare function toFacilitatorSvmSigner(signer: TransactionSigner & MessagePartialSigner, rpcConfig?: FacilitatorRpcConfig): FacilitatorSvmSigner;
|
|
122
122
|
|
|
123
|
-
export { type ClientSvmSigner as C, type FacilitatorSvmSigner as F, type ClientSvmConfig as a,
|
|
123
|
+
export { type ClientSvmSigner as C, type FacilitatorSvmSigner as F, type ClientSvmConfig as a, type FacilitatorRpcClient as b, type FacilitatorRpcConfig as c, toFacilitatorSvmSigner as d, toClientSvmSigner as t };
|
package/dist/esm/v1/index.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t402/svm",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"main": "./dist/cjs/index.js",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/cjs/index.d.ts",
|
|
@@ -13,35 +13,36 @@
|
|
|
13
13
|
],
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"author": "T402 Team",
|
|
16
|
-
"repository":
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/t402-io/t402.git",
|
|
19
|
+
"directory": "sdks/typescript/packages/mechanisms/svm"
|
|
20
|
+
},
|
|
17
21
|
"description": "t402 Payment Protocol SVM Implementation",
|
|
18
22
|
"devDependencies": {
|
|
19
|
-
"@eslint/js": "^9.
|
|
20
|
-
"@types/node": "^25.2.
|
|
21
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
22
|
-
"@typescript-eslint/parser": "^8.
|
|
23
|
+
"@eslint/js": "^9.39.2",
|
|
24
|
+
"@types/node": "^25.2.3",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
26
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
23
27
|
"eslint": "^9.24.0",
|
|
24
28
|
"eslint-plugin-import": "^2.31.0",
|
|
25
|
-
"eslint-plugin-jsdoc": "^62.
|
|
26
|
-
"eslint-plugin-prettier": "^5.
|
|
27
|
-
"glob": "^13.0.
|
|
28
|
-
"prettier": "3.
|
|
29
|
-
"tsup": "^8.
|
|
29
|
+
"eslint-plugin-jsdoc": "^62.6.0",
|
|
30
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
31
|
+
"glob": "^13.0.5",
|
|
32
|
+
"prettier": "3.8.1",
|
|
33
|
+
"tsup": "^8.5.1",
|
|
30
34
|
"tsx": "^4.21.0",
|
|
31
|
-
"typescript": "^5.
|
|
35
|
+
"typescript": "^5.9.3",
|
|
32
36
|
"vite": "^7.3.1",
|
|
33
|
-
"vite-tsconfig-paths": "^
|
|
37
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
34
38
|
"vitest": "^3.2.4"
|
|
35
39
|
},
|
|
36
40
|
"dependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"@solana-program/
|
|
39
|
-
"@solana-program/token": "^0.9.0",
|
|
40
|
-
"@solana
|
|
41
|
-
"@
|
|
42
|
-
"@solana/transaction-confirmation": "^5.4.0",
|
|
43
|
-
"zod": "^3.24.2",
|
|
44
|
-
"@t402/core": "2.4.0"
|
|
41
|
+
"@solana-program/compute-budget": "^0.13.0",
|
|
42
|
+
"@solana-program/token": "^0.11.0",
|
|
43
|
+
"@solana-program/token-2022": "^0.9.0",
|
|
44
|
+
"@solana/kit": "^6.1.0",
|
|
45
|
+
"@t402/core": "2.6.0"
|
|
45
46
|
},
|
|
46
47
|
"exports": {
|
|
47
48
|
".": {
|
|
@@ -128,6 +129,10 @@
|
|
|
128
129
|
"files": [
|
|
129
130
|
"dist"
|
|
130
131
|
],
|
|
132
|
+
"homepage": "https://t402.io",
|
|
133
|
+
"publishConfig": {
|
|
134
|
+
"access": "public"
|
|
135
|
+
},
|
|
131
136
|
"scripts": {
|
|
132
137
|
"start": "tsx --env-file=.env index.ts",
|
|
133
138
|
"build": "tsup",
|