mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
move files around, rename them
This commit is contained in:
parent
7ef816ea80
commit
b3eea7ab47
@ -5,12 +5,12 @@ import { getLogger, Logger } from 'log4js'
|
||||
import * as v from 'valibot'
|
||||
import { CONFIG } from '../../config'
|
||||
import { LOG4JS_BASE_CATEGORY } from '../../config/const'
|
||||
import { AddressType } from '../../data/AddressType.enum'
|
||||
import { Uuidv4Hash } from '../../data/Uuidv4Hash'
|
||||
import { AddressType } from '../../enum/AddressType'
|
||||
import { GradidoNodeErrorCodes } from '../../enum/GradidoNodeErrorCodes'
|
||||
import { addressTypeSchema, confirmedTransactionSchema } from '../../schemas/typeConverter.schema'
|
||||
import { Hex32, Hex32Input, HieroId, hex32Schema } from '../../schemas/typeGuard.schema'
|
||||
import { isPortOpenRetry } from '../../utils/network'
|
||||
import { GradidoNodeErrorCodes } from './GradidoNodeErrorCodes'
|
||||
import {
|
||||
TransactionIdentifierInput,
|
||||
TransactionsRangeInput,
|
||||
|
||||
@ -1,15 +0,0 @@
|
||||
// enum for graphql
|
||||
// error groups for resolver answers
|
||||
export enum TransactionErrorType {
|
||||
NOT_IMPLEMENTED_YET = 'Not Implemented yet',
|
||||
MISSING_PARAMETER = 'Missing parameter',
|
||||
INVALID_PARAMETER = 'Invalid parameter',
|
||||
ALREADY_EXIST = 'Already exist',
|
||||
DB_ERROR = 'DB Error',
|
||||
PROTO_DECODE_ERROR = 'Proto Decode Error',
|
||||
PROTO_ENCODE_ERROR = 'Proto Encode Error',
|
||||
INVALID_SIGNATURE = 'Invalid Signature',
|
||||
LOGIC_ERROR = 'Logic Error',
|
||||
NOT_FOUND = 'Not found',
|
||||
VALIDATION_ERROR = 'Validation Error',
|
||||
}
|
||||
@ -9,7 +9,7 @@ import { getLogger } from 'log4js'
|
||||
import * as v from 'valibot'
|
||||
import { HieroClient } from '../../client/hiero/HieroClient'
|
||||
import { LOG4JS_BASE_CATEGORY } from '../../config/const'
|
||||
import { InputTransactionType } from '../../enum/InputTransactionType'
|
||||
import { InputTransactionType } from '../../data/InputTransactionType.enum'
|
||||
import {
|
||||
CommunityInput,
|
||||
communitySchema,
|
||||
|
||||
@ -5,8 +5,8 @@ import { randomBytes } from 'crypto'
|
||||
import { AddressType_COMMUNITY_HUMAN } from 'gradido-blockchain-js'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import * as v from 'valibot'
|
||||
import { AccountType } from '../enum/AccountType'
|
||||
import { InputTransactionType } from '../enum/InputTransactionType'
|
||||
import { AccountType } from '../data/AccountType.enum'
|
||||
import { InputTransactionType } from '../data/InputTransactionType.enum'
|
||||
import {
|
||||
gradidoAmountSchema,
|
||||
HieroId,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import * as v from 'valibot'
|
||||
import { AccountType } from '../enum/AccountType'
|
||||
import { InputTransactionType } from '../enum/InputTransactionType'
|
||||
import { AccountType } from '../data/AccountType.enum'
|
||||
import { InputTransactionType } from '../data/InputTransactionType.enum'
|
||||
import { identifierAccountSchema, identifierCommunityAccountSchema } from './account.schema'
|
||||
import { addressTypeSchema, dateSchema } from './typeConverter.schema'
|
||||
import {
|
||||
|
||||
@ -4,7 +4,7 @@ import { TypeCompiler } from '@sinclair/typebox/compiler'
|
||||
import { Static, TypeBoxFromValibot } from '@sinclair/typemap'
|
||||
import { AddressType_COMMUNITY_AUF } from 'gradido-blockchain-js'
|
||||
import * as v from 'valibot'
|
||||
import { AccountType } from '../enum/AccountType'
|
||||
import { AccountType } from '../data/AccountType.enum'
|
||||
import {
|
||||
accountTypeSchema,
|
||||
addressTypeSchema,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { ConfirmedTransaction } from 'gradido-blockchain-js'
|
||||
import * as v from 'valibot'
|
||||
import { AccountType } from '../enum/AccountType'
|
||||
import { AddressType } from '../enum/AddressType'
|
||||
import { AccountType } from '../data/AccountType.enum'
|
||||
import { AddressType } from '../data/AddressType.enum'
|
||||
import {
|
||||
confirmedTransactionFromBase64,
|
||||
isAddressType,
|
||||
|
||||
@ -4,8 +4,8 @@ import {
|
||||
InteractionDeserialize,
|
||||
MemoryBlock,
|
||||
} from 'gradido-blockchain-js'
|
||||
import { AccountType } from '../enum/AccountType'
|
||||
import { AddressType } from '../enum/AddressType'
|
||||
import { AccountType } from '../data/AccountType.enum'
|
||||
import { AddressType } from '../data/AddressType.enum'
|
||||
|
||||
export const confirmedTransactionFromBase64 = (base64: string): ConfirmedTransaction => {
|
||||
const confirmedTransactionBinaryPtr = MemoryBlock.createPtr(MemoryBlock.fromBase64(base64))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user