Skip to content

Commit

Permalink
Merge pull request #116 from freespek/th/cleanup
Browse files Browse the repository at this point in the history
Clean up dead code
  • Loading branch information
thpani authored Aug 27, 2024
2 parents c74fc5b + fd56753 commit 3b8c487
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 1,226 deletions.
9 changes: 0 additions & 9 deletions solarkraft/src/VerificationStatus.ts

This file was deleted.

13 changes: 0 additions & 13 deletions solarkraft/src/environment.d.ts

This file was deleted.

11 changes: 10 additions & 1 deletion solarkraft/src/fetcher/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
readdirSync,
writeFileSync,
} from 'node:fs'
import { VerificationStatus } from '../VerificationStatus.js'

const JSONbig = JSONbigint({ useNativeBigInt: true })

Expand All @@ -29,6 +28,16 @@ const JSONbig = JSONbigint({ useNativeBigInt: true })
*/
export type FieldsMap = OrderedMap<string, any>

/**
* Result of `solarkraft verify`.
* `Unknown` is the default if `verify` hasn't been run.
*/
export enum VerificationStatus {
NoViolation = 0,
Violation = 1,
Unknown = 2,
}

/**
* A storage entry for a performed contract call.
*/
Expand Down
2 changes: 1 addition & 1 deletion solarkraft/src/invokeAlert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
Keypair,
scValToNative,
} from '@stellar/stellar-sdk'
import { VerificationStatus } from './VerificationStatus.js'
import { Api } from '@stellar/stellar-sdk/rpc'
import { VerificationStatus } from './fetcher/storage.js'

/**
* @license
Expand Down
85 changes: 0 additions & 85 deletions solarkraft/src/io/itf.ts

This file was deleted.

211 changes: 0 additions & 211 deletions solarkraft/src/io/xdrToState.ts

This file was deleted.

7 changes: 5 additions & 2 deletions solarkraft/src/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
*/

import { existsSync, readdirSync } from 'fs'
import { storagePath, yieldListEntriesForContract } from './fetcher/storage.js'
import {
storagePath,
yieldListEntriesForContract,
VerificationStatus,
} from './fetcher/storage.js'
import { join } from 'node:path'
import { VerificationStatus } from './VerificationStatus.js'

// the length of a contract id in its string representation
const CONTRACT_ID_LENGTH = 56
Expand Down
8 changes: 0 additions & 8 deletions solarkraft/src/state/state.ts

This file was deleted.

Loading

0 comments on commit 3b8c487

Please sign in to comment.