@solana/actions
Advanced tools
Comparing version 1.4.0 to 1.5.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ACTIONS_CORS_HEADERS_MIDDLEWARE = exports.ACTIONS_CORS_HEADERS = exports.BLINKS_QUERY_PARAM = exports.MEMO_PROGRAM_ID = exports.HTTPS_PROTOCOL = void 0; | ||
exports.ACTIONS_CORS_HEADERS_MIDDLEWARE = exports.ACTIONS_CORS_HEADERS = exports.BLOCKCHAIN_IDS = exports.BLINKS_QUERY_PARAM = exports.MEMO_PROGRAM_ID = exports.HTTPS_PROTOCOL = void 0; | ||
/** @internal */ | ||
@@ -17,2 +17,12 @@ exports.HTTPS_PROTOCOL = "https:"; | ||
/** | ||
* Blockchain IDs for Solana from CAIP | ||
* | ||
* @see https://namespaces.chainagnostic.org/solana/caip10 | ||
*/ | ||
exports.BLOCKCHAIN_IDS = { | ||
mainnet: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", | ||
devnet: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1", | ||
testnet: "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z", | ||
}; | ||
/** | ||
* Standard headers for use within frameworks that use the native `HeadersInit` (like NextJS) | ||
@@ -26,3 +36,3 @@ * | ||
"Access-Control-Allow-Methods": "GET,POST,PUT,OPTIONS", | ||
"Access-Control-Allow-Headers": "Content-Type, Authorization, Content-Encoding, Accept-Encoding", | ||
"Access-Control-Allow-Headers": "Content-Type, Authorization, Content-Encoding, Accept-Encoding, X-Action-Version, X-Blockchain-Ids", | ||
"Content-Type": "application/json", | ||
@@ -45,4 +55,6 @@ }; | ||
"Accept-Encoding", | ||
"X-Action-Version", | ||
"X-Blockchain-Ids", | ||
], | ||
}; | ||
//# sourceMappingURL=constants.js.map |
@@ -19,2 +19,3 @@ "use strict"; | ||
__exportStar(require("./constants.js"), exports); | ||
__exportStar(require("./utils.js"), exports); | ||
__exportStar(require("./encodeURL.js"), exports); | ||
@@ -21,0 +22,0 @@ __exportStar(require("./parseURL.js"), exports); |
@@ -14,2 +14,12 @@ /** @internal */ | ||
/** | ||
* Blockchain IDs for Solana from CAIP | ||
* | ||
* @see https://namespaces.chainagnostic.org/solana/caip10 | ||
*/ | ||
export const BLOCKCHAIN_IDS = { | ||
mainnet: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", | ||
devnet: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1", | ||
testnet: "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z", | ||
}; | ||
/** | ||
* Standard headers for use within frameworks that use the native `HeadersInit` (like NextJS) | ||
@@ -23,3 +33,3 @@ * | ||
"Access-Control-Allow-Methods": "GET,POST,PUT,OPTIONS", | ||
"Access-Control-Allow-Headers": "Content-Type, Authorization, Content-Encoding, Accept-Encoding", | ||
"Access-Control-Allow-Headers": "Content-Type, Authorization, Content-Encoding, Accept-Encoding, X-Action-Version, X-Blockchain-Ids", | ||
"Content-Type": "application/json", | ||
@@ -42,4 +52,6 @@ }; | ||
"Accept-Encoding", | ||
"X-Action-Version", | ||
"X-Blockchain-Ids", | ||
], | ||
}; | ||
//# sourceMappingURL=constants.js.map |
export * from "./types.js"; | ||
export * from "./constants.js"; | ||
export * from "./utils.js"; | ||
export * from "./encodeURL.js"; | ||
@@ -4,0 +5,0 @@ export * from "./parseURL.js"; |
@@ -12,2 +12,12 @@ /** Program Id for the SPL Memo program */ | ||
/** | ||
* Blockchain IDs for Solana from CAIP | ||
* | ||
* @see https://namespaces.chainagnostic.org/solana/caip10 | ||
*/ | ||
export declare const BLOCKCHAIN_IDS: { | ||
mainnet: string; | ||
devnet: string; | ||
testnet: string; | ||
}; | ||
/** | ||
* Standard headers for use within frameworks that use the native `HeadersInit` (like NextJS) | ||
@@ -18,3 +28,3 @@ * | ||
*/ | ||
export declare const ACTIONS_CORS_HEADERS: HeadersInit; | ||
export declare const ACTIONS_CORS_HEADERS: Record<string, string>; | ||
/** | ||
@@ -21,0 +31,0 @@ * Standard headers for use within frameworks that use middleware to handle CORS headers |
export * from "./types.js"; | ||
export * from "./constants.js"; | ||
export * from "./utils.js"; | ||
export * from "./encodeURL.js"; | ||
@@ -4,0 +5,0 @@ export * from "./parseURL.js"; |
{ | ||
"name": "@solana/actions", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"author": "Solana Maintainers <maintainers@solana.foundation>", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/solana-developers/solana-actions", |
@@ -17,2 +17,13 @@ /** @internal */ | ||
/** | ||
* Blockchain IDs for Solana from CAIP | ||
* | ||
* @see https://namespaces.chainagnostic.org/solana/caip10 | ||
*/ | ||
export const BLOCKCHAIN_IDS = { | ||
mainnet: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", | ||
devnet: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1", | ||
testnet: "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z", | ||
}; | ||
/** | ||
* Standard headers for use within frameworks that use the native `HeadersInit` (like NextJS) | ||
@@ -23,7 +34,7 @@ * | ||
*/ | ||
export const ACTIONS_CORS_HEADERS: HeadersInit = { | ||
export const ACTIONS_CORS_HEADERS: Record<string, string> = { | ||
"Access-Control-Allow-Origin": "*", | ||
"Access-Control-Allow-Methods": "GET,POST,PUT,OPTIONS", | ||
"Access-Control-Allow-Headers": | ||
"Content-Type, Authorization, Content-Encoding, Accept-Encoding", | ||
"Content-Type, Authorization, Content-Encoding, Accept-Encoding, X-Action-Version, X-Blockchain-Ids", | ||
"Content-Type": "application/json", | ||
@@ -47,3 +58,5 @@ }; | ||
"Accept-Encoding", | ||
"X-Action-Version", | ||
"X-Blockchain-Ids", | ||
], | ||
}; |
export * from "./types.js"; | ||
export * from "./constants.js"; | ||
export * from "./utils.js"; | ||
@@ -4,0 +5,0 @@ export * from "./encodeURL.js"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
153430
81
2431
9