@palindromepay/sdk 2.1.7 → 2.1.8
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/PalindromePaySDK.d.ts +2 -0
- package/dist/PalindromePaySDK.js +3 -1
- package/dist/config.d.ts +4 -4
- package/dist/config.js +4 -4
- package/package.json +1 -1
|
@@ -101,6 +101,8 @@ export interface PalindromePaySDKConfig {
|
|
|
101
101
|
/** Apollo client for subgraph queries (required) */
|
|
102
102
|
apolloClient: ApolloClient;
|
|
103
103
|
chain?: Chain;
|
|
104
|
+
/** Use Base Sepolia testnet contract (default: false = Base mainnet) */
|
|
105
|
+
testnet?: boolean;
|
|
104
106
|
/** Cache TTL in milliseconds (default: 5000) */
|
|
105
107
|
cacheTTL?: number;
|
|
106
108
|
/** Maximum cache entries before LRU eviction (default: 1000) */
|
package/dist/PalindromePaySDK.js
CHANGED
|
@@ -249,7 +249,9 @@ class PalindromePaySDK {
|
|
|
249
249
|
};
|
|
250
250
|
/** Cached fee basis points (lazily computed from contract) */
|
|
251
251
|
this.cachedFeeBps = null;
|
|
252
|
-
this.contractAddress =
|
|
252
|
+
this.contractAddress = config.testnet
|
|
253
|
+
? config_1.CONFIG.TESTNET_CONTRACT_ADDRESS
|
|
254
|
+
: config_1.CONFIG.CONTRACT_ADDRESS;
|
|
253
255
|
this.abiEscrow = PalindromePay_json_1.default.abi;
|
|
254
256
|
this.abiWallet = PalindromePayWallet_json_1.default.abi;
|
|
255
257
|
this.abiERC20 = USDT_json_1.default.abi;
|
package/dist/config.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { Address } from "viem";
|
|
|
3
3
|
* Default configuration for Palindrome Pay SDK
|
|
4
4
|
*/
|
|
5
5
|
export declare const CONFIG: {
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly
|
|
6
|
+
/** PalindromePay contract address (Base mainnet) */
|
|
7
|
+
readonly CONTRACT_ADDRESS: Address;
|
|
8
|
+
/** PalindromePay contract address (Base Sepolia testnet) */
|
|
9
|
+
readonly TESTNET_CONTRACT_ADDRESS: Address;
|
|
10
10
|
};
|
package/dist/config.js
CHANGED
|
@@ -5,8 +5,8 @@ exports.CONFIG = void 0;
|
|
|
5
5
|
* Default configuration for Palindrome Pay SDK
|
|
6
6
|
*/
|
|
7
7
|
exports.CONFIG = {
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
/** PalindromePay contract address (Base mainnet) */
|
|
9
|
+
CONTRACT_ADDRESS: "0x47631c5Efe9AA709A020638B51E05b07e32FAF43",
|
|
10
|
+
/** PalindromePay contract address (Base Sepolia testnet) */
|
|
11
|
+
TESTNET_CONTRACT_ADDRESS: "0x2de68eec06080d7bc947c484aaff903e75bc08ea",
|
|
12
12
|
};
|
package/package.json
CHANGED