Skip to content

Commit

Permalink
Point IOTA to iota
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldizsar Mezei committed Oct 4, 2023
1 parent 229f7ef commit f340132
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
19 changes: 8 additions & 11 deletions packages/functions/src/services/wallet/wallet.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,17 @@ export interface SendToManyTargets {
nativeTokens?: NativeToken[];
}

// TODO set IOTA to correct node
const NODES = {
[Network.SMR]: ['https://smr1.svrs.io/', 'https://smr3.svrs.io/'],
[Network.RMS]: ['https://rms1.svrs.io/'],
// [Network.IOTA]: [
// 'https://us3.svrs.io/',
// 'https://us4.svrs.io/',
// 'https://hs5.svrs.io/',
// 'https://hs6.svrs.io/',
// 'https://chrysalis-nodes.iota.org',
// ],
// [Network.ATOI]: ['https://devnet.svrs.io/'],
[Network.IOTA]: ['https://smr1.svrs.io/', 'https://smr3.svrs.io/'],
[Network.ATOI]: ['https://rms1.svrs.io/'],
[Network.IOTA]: [
'https://us3.svrs.io/',
'https://us4.svrs.io/',
'https://hs5.svrs.io/',
'https://hs6.svrs.io/',
'https://chrysalis-nodes.iota.org',
],
[Network.ATOI]: ['https://devnet.svrs.io/'],
};

const getClient = async (network: Network) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/functions/test/milestone.sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ const addressInDb = async (addresses: string[]) => {
};

syncMilestones(COL.MILESTONE_RMS);
//TODO syncMilestones(COL.MILESTONE_ATOI, Network.ATOI);
syncMilestones(COL.MILESTONE_ATOI);
4 changes: 2 additions & 2 deletions packages/interfaces/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export const generateRandomFileName = () =>
export const getMilestoneCol = (network: Network) => {
switch (network) {
case Network.IOTA:
return COL.MILESTONE_SMR;
return COL.MILESTONE;
case Network.ATOI:
return COL.MILESTONE_RMS; //TODO set ti back to ATOI
return COL.MILESTONE_ATOI;
case Network.SMR:
return COL.MILESTONE_SMR;
case Network.RMS:
Expand Down

0 comments on commit f340132

Please sign in to comment.