From d57bf29e7feadf89d1ce92289f517f030f2685c4 Mon Sep 17 00:00:00 2001 From: Sebastian Pape Date: Wed, 6 Sep 2023 17:43:39 +0200 Subject: [PATCH] v13.6.2: new router addresses --- dist/esm/index.evm.js | 18 +++++++++--------- dist/esm/index.js | 18 +++++++++--------- dist/esm/index.solana.js | 18 +++++++++--------- dist/umd/index.evm.js | 18 +++++++++--------- dist/umd/index.js | 18 +++++++++--------- dist/umd/index.solana.js | 18 +++++++++--------- examples/base.md | 2 +- package.evm.json | 2 +- package.json | 2 +- package.solana.json | 2 +- src/platforms/evm/routers.js | 18 +++++++++--------- tests/units/routers.evm.spec.js | 18 +++++++++--------- tests/units/routers.spec.js | 18 +++++++++--------- 13 files changed, 85 insertions(+), 85 deletions(-) diff --git a/dist/esm/index.evm.js b/dist/esm/index.evm.js index e683bf0..d3ba5b1 100644 --- a/dist/esm/index.evm.js +++ b/dist/esm/index.evm.js @@ -45535,47 +45535,47 @@ const API = [{"inputs":[{"internalType":"address","name":"_PERMIT2","type":"addr var routers$1 = { ethereum: { - address: '0x93C946371fE3B2439a78E9572C8be6134678E54E', + address: '0xcbfc518FB621828fa6f0F4647D42931476ea473b', api: API }, bsc: { - address: '0xB0645B8Bb814733Dde4C4f745890f9720e8152fc', + address: '0xAc68Ee6Bc43Bf075C0522a15E665547CFd28628D', api: API }, polygon: { - address: '0x673271Af8f91A44cdBA143B96ac4B63210556f91', + address: '0x1eD1e2dEEEa8B5C802663780284eDa63f62A3825', api: API }, fantom: { - address: '0x67d907B883120DD7c78C503cF0049aD271804b46', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, avalanche: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, gnosis: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, arbitrum: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, optimism: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, base: { - address: '0x2CA727BC33915823e3D05fe043d310B8c5b2dC5b', + address: '0xfAD2F276D464EAdB71435127BA2c2e9dDefb93a4', api: API }, diff --git a/dist/esm/index.js b/dist/esm/index.js index b620295..1180b17 100644 --- a/dist/esm/index.js +++ b/dist/esm/index.js @@ -1841,47 +1841,47 @@ const API = [{"inputs":[{"internalType":"address","name":"_PERMIT2","type":"addr var routers$1 = { ethereum: { - address: '0x93C946371fE3B2439a78E9572C8be6134678E54E', + address: '0xcbfc518FB621828fa6f0F4647D42931476ea473b', api: API }, bsc: { - address: '0xB0645B8Bb814733Dde4C4f745890f9720e8152fc', + address: '0xAc68Ee6Bc43Bf075C0522a15E665547CFd28628D', api: API }, polygon: { - address: '0x673271Af8f91A44cdBA143B96ac4B63210556f91', + address: '0x1eD1e2dEEEa8B5C802663780284eDa63f62A3825', api: API }, fantom: { - address: '0x67d907B883120DD7c78C503cF0049aD271804b46', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, avalanche: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, gnosis: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, arbitrum: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, optimism: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, base: { - address: '0x2CA727BC33915823e3D05fe043d310B8c5b2dC5b', + address: '0xfAD2F276D464EAdB71435127BA2c2e9dDefb93a4', api: API }, diff --git a/dist/esm/index.solana.js b/dist/esm/index.solana.js index 60da1e8..20fa75e 100644 --- a/dist/esm/index.solana.js +++ b/dist/esm/index.solana.js @@ -3139,47 +3139,47 @@ const API = [{"inputs":[{"internalType":"address","name":"_PERMIT2","type":"addr var solanaRouters = { ethereum: { - address: '0x93C946371fE3B2439a78E9572C8be6134678E54E', + address: '0xcbfc518FB621828fa6f0F4647D42931476ea473b', api: API }, bsc: { - address: '0xB0645B8Bb814733Dde4C4f745890f9720e8152fc', + address: '0xAc68Ee6Bc43Bf075C0522a15E665547CFd28628D', api: API }, polygon: { - address: '0x673271Af8f91A44cdBA143B96ac4B63210556f91', + address: '0x1eD1e2dEEEa8B5C802663780284eDa63f62A3825', api: API }, fantom: { - address: '0x67d907B883120DD7c78C503cF0049aD271804b46', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, avalanche: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, gnosis: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, arbitrum: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, optimism: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, base: { - address: '0x2CA727BC33915823e3D05fe043d310B8c5b2dC5b', + address: '0xfAD2F276D464EAdB71435127BA2c2e9dDefb93a4', api: API }, diff --git a/dist/umd/index.evm.js b/dist/umd/index.evm.js index d3869fc..bd77111 100644 --- a/dist/umd/index.evm.js +++ b/dist/umd/index.evm.js @@ -45541,47 +45541,47 @@ var routers$1 = { ethereum: { - address: '0x93C946371fE3B2439a78E9572C8be6134678E54E', + address: '0xcbfc518FB621828fa6f0F4647D42931476ea473b', api: API }, bsc: { - address: '0xB0645B8Bb814733Dde4C4f745890f9720e8152fc', + address: '0xAc68Ee6Bc43Bf075C0522a15E665547CFd28628D', api: API }, polygon: { - address: '0x673271Af8f91A44cdBA143B96ac4B63210556f91', + address: '0x1eD1e2dEEEa8B5C802663780284eDa63f62A3825', api: API }, fantom: { - address: '0x67d907B883120DD7c78C503cF0049aD271804b46', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, avalanche: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, gnosis: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, arbitrum: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, optimism: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, base: { - address: '0x2CA727BC33915823e3D05fe043d310B8c5b2dC5b', + address: '0xfAD2F276D464EAdB71435127BA2c2e9dDefb93a4', api: API }, diff --git a/dist/umd/index.js b/dist/umd/index.js index f6056c2..e21b567 100644 --- a/dist/umd/index.js +++ b/dist/umd/index.js @@ -1846,47 +1846,47 @@ var routers$1 = { ethereum: { - address: '0x93C946371fE3B2439a78E9572C8be6134678E54E', + address: '0xcbfc518FB621828fa6f0F4647D42931476ea473b', api: API }, bsc: { - address: '0xB0645B8Bb814733Dde4C4f745890f9720e8152fc', + address: '0xAc68Ee6Bc43Bf075C0522a15E665547CFd28628D', api: API }, polygon: { - address: '0x673271Af8f91A44cdBA143B96ac4B63210556f91', + address: '0x1eD1e2dEEEa8B5C802663780284eDa63f62A3825', api: API }, fantom: { - address: '0x67d907B883120DD7c78C503cF0049aD271804b46', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, avalanche: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, gnosis: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, arbitrum: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, optimism: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, base: { - address: '0x2CA727BC33915823e3D05fe043d310B8c5b2dC5b', + address: '0xfAD2F276D464EAdB71435127BA2c2e9dDefb93a4', api: API }, diff --git a/dist/umd/index.solana.js b/dist/umd/index.solana.js index 5db9e9d..b2aa1e1 100644 --- a/dist/umd/index.solana.js +++ b/dist/umd/index.solana.js @@ -3144,47 +3144,47 @@ var solanaRouters = { ethereum: { - address: '0x93C946371fE3B2439a78E9572C8be6134678E54E', + address: '0xcbfc518FB621828fa6f0F4647D42931476ea473b', api: API }, bsc: { - address: '0xB0645B8Bb814733Dde4C4f745890f9720e8152fc', + address: '0xAc68Ee6Bc43Bf075C0522a15E665547CFd28628D', api: API }, polygon: { - address: '0x673271Af8f91A44cdBA143B96ac4B63210556f91', + address: '0x1eD1e2dEEEa8B5C802663780284eDa63f62A3825', api: API }, fantom: { - address: '0x67d907B883120DD7c78C503cF0049aD271804b46', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, avalanche: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, gnosis: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, arbitrum: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, optimism: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, base: { - address: '0x2CA727BC33915823e3D05fe043d310B8c5b2dC5b', + address: '0xfAD2F276D464EAdB71435127BA2c2e9dDefb93a4', api: API }, diff --git a/examples/base.md b/examples/base.md index 389149d..6e2a568 100644 --- a/examples/base.md +++ b/examples/base.md @@ -7,7 +7,7 @@ let routes = await Web3Payments.route({ blockchain: 'base', token: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA', amount: 1, - toAddress: '0x08B277154218CCF3380CAE48d630DA13462E3950' + toAddress: '0x4e260bB2b25EC6F3A59B478fCDe5eD5B8D783B02' } ], from: { diff --git a/package.evm.json b/package.evm.json index 23352a6..785ccfe 100644 --- a/package.evm.json +++ b/package.evm.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-payments-evm", "moduleName": "Web3Payments", - "version": "13.6.1", + "version": "13.6.2", "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 c03da13..f3d1dea 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-payments", "moduleName": "Web3Payments", - "version": "13.6.1", + "version": "13.6.2", "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 e173f27..693f53b 100644 --- a/package.solana.json +++ b/package.solana.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-payments-solana", "moduleName": "Web3Payments", - "version": "13.6.1", + "version": "13.6.2", "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/platforms/evm/routers.js b/src/platforms/evm/routers.js index 884dc11..12ca10c 100644 --- a/src/platforms/evm/routers.js +++ b/src/platforms/evm/routers.js @@ -3,47 +3,47 @@ const API = [{"inputs":[{"internalType":"address","name":"_PERMIT2","type":"addr export default { ethereum: { - address: '0x93C946371fE3B2439a78E9572C8be6134678E54E', + address: '0xcbfc518FB621828fa6f0F4647D42931476ea473b', api: API }, bsc: { - address: '0xB0645B8Bb814733Dde4C4f745890f9720e8152fc', + address: '0xAc68Ee6Bc43Bf075C0522a15E665547CFd28628D', api: API }, polygon: { - address: '0x673271Af8f91A44cdBA143B96ac4B63210556f91', + address: '0x1eD1e2dEEEa8B5C802663780284eDa63f62A3825', api: API }, fantom: { - address: '0x67d907B883120DD7c78C503cF0049aD271804b46', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, avalanche: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, gnosis: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11', api: API }, arbitrum: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, optimism: { - address: '0xC9850b32475f4fdE5c972EA6f967982a3c435D10', + address: '0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2', api: API }, base: { - address: '0x2CA727BC33915823e3D05fe043d310B8c5b2dC5b', + address: '0xfAD2F276D464EAdB71435127BA2c2e9dDefb93a4', api: API }, diff --git a/tests/units/routers.evm.spec.js b/tests/units/routers.evm.spec.js index ca2d455..1713cbe 100644 --- a/tests/units/routers.evm.spec.js +++ b/tests/units/routers.evm.spec.js @@ -4,31 +4,31 @@ describe('routers', ()=> { it('exports the payment routers', async ()=>{ - expect(routers.ethereum.address).toEqual('0x93C946371fE3B2439a78E9572C8be6134678E54E') + expect(routers.ethereum.address).toEqual('0xcbfc518FB621828fa6f0F4647D42931476ea473b') expect(typeof routers.ethereum.api === 'object').toEqual(true) - expect(routers.bsc.address).toEqual('0xB0645B8Bb814733Dde4C4f745890f9720e8152fc') + expect(routers.bsc.address).toEqual('0xAc68Ee6Bc43Bf075C0522a15E665547CFd28628D') expect(typeof routers.bsc.api === 'object').toEqual(true) - expect(routers.polygon.address).toEqual('0x673271Af8f91A44cdBA143B96ac4B63210556f91') + expect(routers.polygon.address).toEqual('0x1eD1e2dEEEa8B5C802663780284eDa63f62A3825') expect(typeof routers.polygon.api === 'object').toEqual(true) - expect(routers.fantom.address).toEqual('0x67d907B883120DD7c78C503cF0049aD271804b46') + expect(routers.fantom.address).toEqual('0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11') expect(typeof routers.fantom.api === 'object').toEqual(true) - expect(routers.avalanche.address).toEqual('0xC9850b32475f4fdE5c972EA6f967982a3c435D10') + expect(routers.avalanche.address).toEqual('0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11') expect(typeof routers.avalanche.api === 'object').toEqual(true) - expect(routers.gnosis.address).toEqual('0xC9850b32475f4fdE5c972EA6f967982a3c435D10') + expect(routers.gnosis.address).toEqual('0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11') expect(typeof routers.gnosis.api === 'object').toEqual(true) - expect(routers.arbitrum.address).toEqual('0xC9850b32475f4fdE5c972EA6f967982a3c435D10') + expect(routers.arbitrum.address).toEqual('0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2') expect(typeof routers.arbitrum.api === 'object').toEqual(true) - expect(routers.optimism.address).toEqual('0xC9850b32475f4fdE5c972EA6f967982a3c435D10') + expect(routers.optimism.address).toEqual('0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2') expect(typeof routers.optimism.api === 'object').toEqual(true) - expect(routers.base.address).toEqual('0x2CA727BC33915823e3D05fe043d310B8c5b2dC5b') + expect(routers.base.address).toEqual('0xfAD2F276D464EAdB71435127BA2c2e9dDefb93a4') expect(typeof routers.base.api === 'object').toEqual(true) }) }) diff --git a/tests/units/routers.spec.js b/tests/units/routers.spec.js index 198236e..3e19ccc 100644 --- a/tests/units/routers.spec.js +++ b/tests/units/routers.spec.js @@ -4,31 +4,31 @@ describe('routers', ()=> { it('exports the payment routers', async ()=>{ - expect(routers.ethereum.address).toEqual('0x93C946371fE3B2439a78E9572C8be6134678E54E') + expect(routers.ethereum.address).toEqual('0xcbfc518FB621828fa6f0F4647D42931476ea473b') expect(typeof routers.ethereum.api === 'object').toEqual(true) - expect(routers.bsc.address).toEqual('0xB0645B8Bb814733Dde4C4f745890f9720e8152fc') + expect(routers.bsc.address).toEqual('0xAc68Ee6Bc43Bf075C0522a15E665547CFd28628D') expect(typeof routers.bsc.api === 'object').toEqual(true) - expect(routers.polygon.address).toEqual('0x673271Af8f91A44cdBA143B96ac4B63210556f91') + expect(routers.polygon.address).toEqual('0x1eD1e2dEEEa8B5C802663780284eDa63f62A3825') expect(typeof routers.polygon.api === 'object').toEqual(true) - expect(routers.fantom.address).toEqual('0x67d907B883120DD7c78C503cF0049aD271804b46') + expect(routers.fantom.address).toEqual('0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11') expect(typeof routers.fantom.api === 'object').toEqual(true) - expect(routers.avalanche.address).toEqual('0xC9850b32475f4fdE5c972EA6f967982a3c435D10') + expect(routers.avalanche.address).toEqual('0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11') expect(typeof routers.avalanche.api === 'object').toEqual(true) - expect(routers.gnosis.address).toEqual('0xC9850b32475f4fdE5c972EA6f967982a3c435D10') + expect(routers.gnosis.address).toEqual('0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11') expect(typeof routers.gnosis.api === 'object').toEqual(true) - expect(routers.arbitrum.address).toEqual('0xC9850b32475f4fdE5c972EA6f967982a3c435D10') + expect(routers.arbitrum.address).toEqual('0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2') expect(typeof routers.arbitrum.api === 'object').toEqual(true) - expect(routers.optimism.address).toEqual('0xC9850b32475f4fdE5c972EA6f967982a3c435D10') + expect(routers.optimism.address).toEqual('0x47dF3990e8827EfF23b01e1CD7de309E8C6364a2') expect(typeof routers.optimism.api === 'object').toEqual(true) - expect(routers.base.address).toEqual('0x2CA727BC33915823e3D05fe043d310B8c5b2dC5b') + expect(routers.base.address).toEqual('0xfAD2F276D464EAdB71435127BA2c2e9dDefb93a4') expect(typeof routers.base.api === 'object').toEqual(true) }) })