Skip to content

Commit

Permalink
Remove atoi milestone, point atoi to rms
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldizsar Mezei committed Oct 4, 2023
1 parent be43eef commit 4898dd0
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 50 deletions.
40 changes: 0 additions & 40 deletions packages/functions/src/dbRoll/iota.otr.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/functions/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { WEN_FUNC, WEN_FUNC_TRIGGER } from '@build-5/interfaces';
import { algoliaTrigger } from './algolia/algolia.trigger';
import { iotaOtr } from './dbRoll/iota.otr';
import { validateAddress } from './runtime/firebase/address';
import { generateCustomToken } from './runtime/firebase/auth';
import {
Expand Down Expand Up @@ -203,6 +202,3 @@ exports[WEN_FUNC.claimSpace] = claimSpace;
exports[WEN_FUNC.importMintedToken] = importMintedToken;

exports[WEN_FUNC.uploadFile] = uploadFile;

// TODO remove this
exports['iota_otr'] = iotaOtr;
2 changes: 1 addition & 1 deletion packages/functions/src/services/wallet/wallet.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const NODES = {
'https://hs5.svrs.io/',
'https://hs6.svrs.io/',
],
[Network.ATOI]: ['https://devnet.svrs.io/'],
[Network.ATOI]: ['https://rms1.svrs.io/'],
};

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

syncMilestones(COL.MILESTONE_RMS);
syncMilestones(COL.MILESTONE_ATOI);
1 change: 0 additions & 1 deletion packages/interfaces/src/api/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export enum PublicCollections {
PROPOSAL = 'proposal',
NOTIFICATION = 'notification',
MILESTONE = 'milestone',
MILESTONE_ATOI = 'milestone_atoi',
MILESTONE_RMS = 'milestone_rms',
MILESTONE_SMR = 'milestone_smr',
TRANSACTION = 'transaction',
Expand Down
1 change: 0 additions & 1 deletion packages/interfaces/src/models/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export enum COL {
PROPOSAL = 'proposal',
NOTIFICATION = 'notification',
MILESTONE = 'milestone',
MILESTONE_ATOI = 'milestone_atoi',
MILESTONE_RMS = 'milestone_rms',
MILESTONE_SMR = 'milestone_smr',
TRANSACTION = 'transaction',
Expand Down
3 changes: 1 addition & 2 deletions packages/interfaces/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ export const getMilestoneCol = (network: Network) => {
switch (network) {
case Network.IOTA:
return COL.MILESTONE;
case Network.ATOI:
return COL.MILESTONE_ATOI;
case Network.SMR:
return COL.MILESTONE_SMR;
case Network.RMS:
case Network.ATOI:
return COL.MILESTONE_RMS;
}
};

0 comments on commit 4898dd0

Please sign in to comment.