diff --git a/dev.html b/dev.html
index 9496aca..5242b16 100644
--- a/dev.html
+++ b/dev.html
@@ -3,7 +3,7 @@
diff --git a/dist/esm/index.js b/dist/esm/index.js
index 9c6743c..78aa836 100644
--- a/dist/esm/index.js
+++ b/dist/esm/index.js
@@ -53,7 +53,7 @@ var getAssets = async (options) => {
const address = options.accounts[blockchain];
const controller = new AbortController();
setTimeout(()=>controller.abort(), 10000);
- fetch(`https://public.depay.fi/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
+ fetch(`https://public.depay.com/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
.catch((error) => { console.log(error); resolve([]); })
.then((response) => {
if(response && response.ok) {
diff --git a/dist/umd/index.js b/dist/umd/index.js
index 4000f4c..5b11635 100644
--- a/dist/umd/index.js
+++ b/dist/umd/index.js
@@ -54,7 +54,7 @@
const address = options.accounts[blockchain];
const controller = new AbortController();
setTimeout(()=>controller.abort(), 10000);
- fetch(`https://public.depay.fi/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
+ fetch(`https://public.depay.com/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
.catch((error) => { console.log(error); resolve([]); })
.then((response) => {
if(response && response.ok) {
diff --git a/package.json b/package.json
index 433263f..717fc1e 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-assets",
"moduleName": "Web3Assets",
- "version": "6.5.0",
+ "version": "6.5.1",
"description": "",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
@@ -26,7 +26,7 @@
"crypto",
"blockchain"
],
- "author": "depay.fi",
+ "author": "depay.com",
"license": "MIT",
"bugs": {
"url": "https://github.com/DePayFi/web3-assets/issues"
diff --git a/src/getAssets.js b/src/getAssets.js
index 2e56392..c44bee2 100644
--- a/src/getAssets.js
+++ b/src/getAssets.js
@@ -51,7 +51,7 @@ export default async (options) => {
const address = options.accounts[blockchain]
const controller = new AbortController()
setTimeout(()=>controller.abort(), 10000)
- fetch(`https://public.depay.fi/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
+ fetch(`https://public.depay.com/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
.catch((error) => { console.log(error); resolve([]) })
.then((response) => {
if(response && response.ok) {
diff --git a/tests/units/dripAssets.spec.js b/tests/units/dripAssets.spec.js
index 36ec0b3..7ad8f0f 100644
--- a/tests/units/dripAssets.spec.js
+++ b/tests/units/dripAssets.spec.js
@@ -28,7 +28,7 @@ describe('dripAssets', ()=>{
mock({ call: { return: '56789', to: '0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb', api: Token[blockchain].DEFAULT, method: 'balanceOf', params: accounts[0] }, provider, blockchain })
})
- fetchMock.get({ url: `https://public.depay.fi/accounts/ethereum/${accounts[0]}/assets` },
+ fetchMock.get({ url: `https://public.depay.com/accounts/ethereum/${accounts[0]}/assets` },
[{
"name": "Ether",
"symbol": "ETH",
@@ -45,7 +45,7 @@ describe('dripAssets', ()=>{
}]
)
- fetchMock.get({ url: `https://public.depay.fi/accounts/bsc/${accounts[0]}/assets` },
+ fetchMock.get({ url: `https://public.depay.com/accounts/bsc/${accounts[0]}/assets` },
[{
"name": "BNB Coin",
"symbol": "BNB",
@@ -62,7 +62,7 @@ describe('dripAssets', ()=>{
}]
)
- fetchMock.get({ url: `https://public.depay.fi/accounts/polygon/${accounts[0]}/assets` },
+ fetchMock.get({ url: `https://public.depay.com/accounts/polygon/${accounts[0]}/assets` },
[{
"name": "Matic",
"symbol": "MATIC",
@@ -805,7 +805,7 @@ describe('dripAssets', ()=>{
it('completes drip', async ()=>{
- fetchMock.get({ url: `https://public.depay.fi/accounts/ethereum/${accounts[0]}/assets`, overwriteRoutes: true }, 502)
+ fetchMock.get({ url: `https://public.depay.com/accounts/ethereum/${accounts[0]}/assets`, overwriteRoutes: true }, 502)
let drippedAssets = []
let dripsCount = 0
diff --git a/tests/units/getAssets.spec.js b/tests/units/getAssets.spec.js
index d8f5932..d1eb202 100644
--- a/tests/units/getAssets.spec.js
+++ b/tests/units/getAssets.spec.js
@@ -15,7 +15,7 @@ describe('getAssets', ()=>{
it('fetches the assets for a given account without any connected wallet', async()=> {
let address = '0xEcA533Ef096f191A35DE76aa4580FA3A722724bE'
fetchMock.get({
- url: `https://public.depay.fi/accounts/ethereum/${address}/assets`,
+ url: `https://public.depay.com/accounts/ethereum/${address}/assets`,
}, [{
"name": "Ether",
"symbol": "ETH",
@@ -31,7 +31,7 @@ describe('getAssets', ()=>{
}]
)
fetchMock.get({
- url: `https://public.depay.fi/accounts/bsc/${address}/assets`,
+ url: `https://public.depay.com/accounts/bsc/${address}/assets`,
}, [{
"name": "BNB",
"symbol": "BNB",
@@ -47,7 +47,7 @@ describe('getAssets', ()=>{
}]
)
fetchMock.get({
- url: `https://public.depay.fi/accounts/polygon/${address}/assets`,
+ url: `https://public.depay.com/accounts/polygon/${address}/assets`,
}, [{
"name": "Matic",
"symbol": "Matic",
@@ -120,7 +120,7 @@ describe('getAssets', ()=>{
it('only fetches the requested assets (Type 20 Tokens)', async()=> {
let address = '0xEcA533Ef096f191A35DE76aa4580FA3A722724bE'
fetchMock.get({
- url: `https://public.depay.fi/accounts/ethereum/${address}/assets`,
+ url: `https://public.depay.com/accounts/ethereum/${address}/assets`,
}, [{
"name": "Ether",
"symbol": "ETH",
@@ -136,7 +136,7 @@ describe('getAssets', ()=>{
}]
)
fetchMock.get({
- url: `https://public.depay.fi/accounts/bsc/${address}/assets`,
+ url: `https://public.depay.com/accounts/bsc/${address}/assets`,
}, [{
"name": "BNB",
"symbol": "BNB",
@@ -174,7 +174,7 @@ describe('getAssets', ()=>{
it('only fetches the requested assets (NATIVE Tokens)', async()=> {
let address = '0xEcA533Ef096f191A35DE76aa4580FA3A722724bE'
fetchMock.get({
- url: `https://public.depay.fi/accounts/ethereum/${address}/assets`,
+ url: `https://public.depay.com/accounts/ethereum/${address}/assets`,
}, [{
"name": "Ether",
"symbol": "ETH",
@@ -190,7 +190,7 @@ describe('getAssets', ()=>{
}]
)
fetchMock.get({
- url: `https://public.depay.fi/accounts/bsc/${address}/assets`,
+ url: `https://public.depay.com/accounts/bsc/${address}/assets`,
}, [{
"name": "BNB",
"symbol": "BNB",
@@ -231,7 +231,7 @@ describe('getAssets', ()=>{
it('excludes assets (Type 20 Tokens)', async()=> {
let address = '0xEcA533Ef096f191A35DE76aa4580FA3A722724bE'
fetchMock.get({
- url: `https://public.depay.fi/accounts/ethereum/${address}/assets`,
+ url: `https://public.depay.com/accounts/ethereum/${address}/assets`,
}, [{
"name": "Ether",
"symbol": "ETH",
@@ -247,7 +247,7 @@ describe('getAssets', ()=>{
}]
)
fetchMock.get({
- url: `https://public.depay.fi/accounts/bsc/${address}/assets`,
+ url: `https://public.depay.com/accounts/bsc/${address}/assets`,
}, [{
"name": "BNB",
"symbol": "BNB",
@@ -285,7 +285,7 @@ describe('getAssets', ()=>{
it('excludes assets (NATIVE Tokens)', async()=> {
let address = '0xEcA533Ef096f191A35DE76aa4580FA3A722724bE'
fetchMock.get({
- url: `https://public.depay.fi/accounts/ethereum/${address}/assets`,
+ url: `https://public.depay.com/accounts/ethereum/${address}/assets`,
}, [{
"name": "Ether",
"symbol": "ETH",
@@ -301,7 +301,7 @@ describe('getAssets', ()=>{
}]
)
fetchMock.get({
- url: `https://public.depay.fi/accounts/bsc/${address}/assets`,
+ url: `https://public.depay.com/accounts/bsc/${address}/assets`,
}, [{
"name": "BNB",
"symbol": "BNB",
@@ -342,7 +342,7 @@ describe('getAssets', ()=>{
beforeEach(()=>{
mock({ blockchain: 'ethereum', wallet: 'metamask' })
fetchMock.get({
- url: 'https://public.depay.fi/accounts/ethereum/0xd8da6bf26964af9d7eed9e03e53415d37aa96045/assets',
+ url: 'https://public.depay.com/accounts/ethereum/0xd8da6bf26964af9d7eed9e03e53415d37aa96045/assets',
}, [{
"name": "Dai Stablecoin",
"symbol": "DAI",
@@ -351,7 +351,7 @@ describe('getAssets', ()=>{
}]
)
fetchMock.get({
- url: 'https://public.depay.fi/accounts/bsc/0xd8da6bf26964af9d7eed9e03e53415d37aa96045/assets',
+ url: 'https://public.depay.com/accounts/bsc/0xd8da6bf26964af9d7eed9e03e53415d37aa96045/assets',
}, [{
"name": "PancakeSwap",
"symbol": "CAKE",
@@ -394,11 +394,11 @@ describe('getAssets', ()=>{
it('still resolves with nothing', async()=> {
let address = '0xEcA533Ef096f191A35DE76aa4580FA3A722724bE'
fetchMock.get({
- url: `https://public.depay.fi/accounts/ethereum/${address}/assets`,
+ url: `https://public.depay.com/accounts/ethereum/${address}/assets`,
}, 502
)
fetchMock.get({
- url: `https://public.depay.fi/accounts/bsc/${address}/assets`,
+ url: `https://public.depay.com/accounts/bsc/${address}/assets`,
}, [{
"name": "BNB",
"symbol": "BNB",
@@ -435,7 +435,7 @@ describe('getAssets', ()=>{
])
fetchMock.get({
- url: `https://public.depay.fi/accounts/bsc/${address}/assets`,
+ url: `https://public.depay.com/accounts/bsc/${address}/assets`,
overwriteRoutes: true
}, 502
)