From 4ade6ccf1c222801a6b6e91f01ba2d49e41d89fe Mon Sep 17 00:00:00 2001 From: Sebastian Pape <0xneo11@gmail.com> Date: Fri, 15 Mar 2024 19:39:52 +0100 Subject: [PATCH] v13.9.0: L2 are now cheaper, thx to dancun --- dist/esm/index.evm.js | 16 ++++++++-------- dist/esm/index.js | 16 ++++++++-------- dist/esm/index.solana.js | 16 ++++++++-------- dist/umd/index.evm.js | 16 ++++++++-------- dist/umd/index.js | 16 ++++++++-------- dist/umd/index.solana.js | 16 ++++++++-------- package.evm.json | 2 +- package.json | 2 +- package.solana.json | 2 +- src/costs.js | 22 +++++++++++----------- 10 files changed, 62 insertions(+), 62 deletions(-) diff --git a/dist/esm/index.evm.js b/dist/esm/index.evm.js index 933ab72..4851eae 100644 --- a/dist/esm/index.evm.js +++ b/dist/esm/index.evm.js @@ -50371,21 +50371,21 @@ const getBlockchainCost = (blockchain) => { case 'solana': return 0.000125 case 'gnosis': - return 0.009 + return 0.0090 + case 'base': + return 0.0095 + case 'optimism': + return 0.0096 case 'polygon': - return 0.01 + return 0.011 case 'fantom': return 0.05 case 'avalanche': return 0.10 + case 'arbitrum': + return 0.11 case 'bsc': return 0.20 - case 'base': - return 0.25 - case 'arbitrum': - return 0.30 - case 'optimism': - return 0.40 case 'ethereum': return 10.0 default: diff --git a/dist/esm/index.js b/dist/esm/index.js index 8f567a8..1ed8302 100644 --- a/dist/esm/index.js +++ b/dist/esm/index.js @@ -1941,21 +1941,21 @@ const getBlockchainCost = (blockchain) => { case 'solana': return 0.000125 case 'gnosis': - return 0.009 + return 0.0090 + case 'base': + return 0.0095 + case 'optimism': + return 0.0096 case 'polygon': - return 0.01 + return 0.011 case 'fantom': return 0.05 case 'avalanche': return 0.10 + case 'arbitrum': + return 0.11 case 'bsc': return 0.20 - case 'base': - return 0.25 - case 'arbitrum': - return 0.30 - case 'optimism': - return 0.40 case 'ethereum': return 10.0 default: diff --git a/dist/esm/index.solana.js b/dist/esm/index.solana.js index 3df0c8c..37096f6 100644 --- a/dist/esm/index.solana.js +++ b/dist/esm/index.solana.js @@ -3242,21 +3242,21 @@ const getBlockchainCost = (blockchain) => { case 'solana': return 0.000125 case 'gnosis': - return 0.009 + return 0.0090 + case 'base': + return 0.0095 + case 'optimism': + return 0.0096 case 'polygon': - return 0.01 + return 0.011 case 'fantom': return 0.05 case 'avalanche': return 0.10 + case 'arbitrum': + return 0.11 case 'bsc': return 0.20 - case 'base': - return 0.25 - case 'arbitrum': - return 0.30 - case 'optimism': - return 0.40 case 'ethereum': return 10.0 default: diff --git a/dist/umd/index.evm.js b/dist/umd/index.evm.js index 3c790e3..276633c 100644 --- a/dist/umd/index.evm.js +++ b/dist/umd/index.evm.js @@ -50377,21 +50377,21 @@ case 'solana': return 0.000125 case 'gnosis': - return 0.009 + return 0.0090 + case 'base': + return 0.0095 + case 'optimism': + return 0.0096 case 'polygon': - return 0.01 + return 0.011 case 'fantom': return 0.05 case 'avalanche': return 0.10 + case 'arbitrum': + return 0.11 case 'bsc': return 0.20 - case 'base': - return 0.25 - case 'arbitrum': - return 0.30 - case 'optimism': - return 0.40 case 'ethereum': return 10.0 default: diff --git a/dist/umd/index.js b/dist/umd/index.js index af60a98..e59008d 100644 --- a/dist/umd/index.js +++ b/dist/umd/index.js @@ -1946,21 +1946,21 @@ case 'solana': return 0.000125 case 'gnosis': - return 0.009 + return 0.0090 + case 'base': + return 0.0095 + case 'optimism': + return 0.0096 case 'polygon': - return 0.01 + return 0.011 case 'fantom': return 0.05 case 'avalanche': return 0.10 + case 'arbitrum': + return 0.11 case 'bsc': return 0.20 - case 'base': - return 0.25 - case 'arbitrum': - return 0.30 - case 'optimism': - return 0.40 case 'ethereum': return 10.0 default: diff --git a/dist/umd/index.solana.js b/dist/umd/index.solana.js index 24b8cc0..dc5a150 100644 --- a/dist/umd/index.solana.js +++ b/dist/umd/index.solana.js @@ -3247,21 +3247,21 @@ case 'solana': return 0.000125 case 'gnosis': - return 0.009 + return 0.0090 + case 'base': + return 0.0095 + case 'optimism': + return 0.0096 case 'polygon': - return 0.01 + return 0.011 case 'fantom': return 0.05 case 'avalanche': return 0.10 + case 'arbitrum': + return 0.11 case 'bsc': return 0.20 - case 'base': - return 0.25 - case 'arbitrum': - return 0.30 - case 'optimism': - return 0.40 case 'ethereum': return 10.0 default: diff --git a/package.evm.json b/package.evm.json index 6b20cf9..6eebfad 100644 --- a/package.evm.json +++ b/package.evm.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-payments-evm", "moduleName": "Web3Payments", - "version": "13.8.0", + "version": "13.9.0", "description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.", "main": "dist/umd/index.evm.js", "module": "dist/esm/index.evm.js", diff --git a/package.json b/package.json index a855ab4..d8e42ae 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-payments", "moduleName": "Web3Payments", - "version": "13.8.0", + "version": "13.9.0", "description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.", "main": "dist/umd/index.js", "module": "dist/esm/index.js", diff --git a/package.solana.json b/package.solana.json index e15d009..d392504 100644 --- a/package.solana.json +++ b/package.solana.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-payments-solana", "moduleName": "Web3Payments", - "version": "13.8.0", + "version": "13.9.0", "description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.", "main": "dist/umd/index.solana.js", "module": "dist/esm/index.solana.js", diff --git a/src/costs.js b/src/costs.js index 005240c..d93517e 100644 --- a/src/costs.js +++ b/src/costs.js @@ -6,10 +6,16 @@ const getBlockchainCost = (blockchain) => { return 0.000125 break; case 'gnosis': - return 0.009 + return 0.0090 + break; + case 'base': + return 0.0095 + break; + case 'optimism': + return 0.0096 break; case 'polygon': - return 0.01 + return 0.011 break; case 'fantom': return 0.05 @@ -17,17 +23,11 @@ const getBlockchainCost = (blockchain) => { case 'avalanche': return 0.10 break; - case 'bsc': - return 0.20 - break; - case 'base': - return 0.25 - break; case 'arbitrum': - return 0.30 + return 0.11 break; - case 'optimism': - return 0.40 + case 'bsc': + return 0.20 break; case 'ethereum': return 10.0