diff --git a/README.md b/README.md index b7a70113b..655183995 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ from database constructs merkle tree and at periodic, configurable intervals sen By default all backend apps are working with Cardano Pre-Production network. ```shell -cd cf-ballot-app/backend-services/voting-admin-app +cd cf-cardano-ballot/backend-services/voting-admin-app ./gradlew bootRun ``` @@ -86,7 +86,7 @@ Instructions on how to create a new voting event can be found [here](./backend-s By default all backend apps are working with Cardano Pre-Production network. ```shell -cd cf-ballot-app/backend-services/voting-ledger-follower-app +cd cf-cardano-ballot/backend-services/voting-ledger-follower-app ./gradlew bootRun ``` This will launch main voting-ledger-follower-app on port: 9090 by default. @@ -95,7 +95,7 @@ For a detailed description and interactive interface of the API, visit the Swagg ### Voting App ```shell -cd cf-ballot-app/backend-services/voting-app +cd cf-cardano-ballot/backend-services/voting-app ./gradlew bootRun ``` @@ -105,7 +105,7 @@ For a detailed description and interactive interface of the API, visit the Swagg ### Voting Verification ```shell -cd cf-ballot-app/backend-services/voting-verification-app +cd cf-cardano-ballot/backend-services/voting-verification-app ./gradlew bootRun ``` @@ -117,8 +117,7 @@ Instructions on how to run the `Vote Verification` app can be found [here](./bac ### Voting Commitment App ```bash -git clone https://github.com/cardano-foundation/vote-commitment-service.git -cd vote-commitment-service +cd cf-cardano-ballot/backend-services/vote-commitment-app cp .env.template .env # Update .env with required values (e.g. organiser's mnemonic) # Run the service locally via: @@ -129,7 +128,7 @@ cp .env.template .env ```bash export AWS_SNS_ACCESS_KEY_ID=... export AWS_SNS_SECRET_ACCESS_KEY=... -cd cf-ballot-app/backend-services/user-verification-service +cd cf-cardano-ballot/backend-services/user-verification-service ./gradlew bootRun ``` @@ -153,7 +152,8 @@ Copy the [`.env.example`](ui/summit-2023/.env.example) file and rename it as `.e Then run: ```shell -cd cf-ballot-app/ui/summit-2023 +cd cf-cardano-ballot/ui/summit-2023 +cp .env.example .env npm i npm run start ``` @@ -163,7 +163,7 @@ All backend apps will generate TypeScript types for the frontend by using the fo As an example: ```shell -cd voting-app +cd cf-cardano-ballot/backend-services/voting-app ./gradlew buildAndCopyTypescriptTypes -Pui_project_name=summit-2023 ``` This will generate TypeScript types in the ui/summit-2023/build/typescript-generator/voting-app-types.ts diff --git a/backend-services/vote-commitment-app/README.md b/backend-services/vote-commitment-app/README.md index 237b35079..a0ad8b932 100644 --- a/backend-services/vote-commitment-app/README.md +++ b/backend-services/vote-commitment-app/README.md @@ -35,8 +35,7 @@ at different time intervals). ### Development ```bash -git clone https://github.com/cardano-foundation/vote-commitment-service.git -cd vote-commitment-service +cd cf-cardano-ballot/backend-services/vote-commitment-app cp .env.template .env # Update .env with required values (e.g. organiser's mnemonic) # Run the service locally via: diff --git a/backend-services/voting-admin-app/README.md b/backend-services/voting-admin-app/README.md index 52f717e16..99a2836ef 100644 --- a/backend-services/voting-admin-app/README.md +++ b/backend-services/voting-admin-app/README.md @@ -5,6 +5,7 @@ Application to be used by the organisers to create events and proposals. # Run in docker ``` +cd cf-cardano-ballot/backend-services/voting-admin-app docker run -it --rm \ -e SPRING_PROFILES_ACTIVE=prod \ -e CARDANO_NETWORK=main \ diff --git a/ui/summit-2023/README.md b/ui/summit-2023/README.md index ded868153..628e17877 100644 --- a/ui/summit-2023/README.md +++ b/ui/summit-2023/README.md @@ -25,6 +25,14 @@ In the project directory, you can run: This will install all packages in node_modules folder. +### Create a .env file + +Before running the app you need to create a .env file by executing the following command: + +```bash +cp .env.example .env +``` + #### `npm start` Runs the app in the development mode.\ @@ -46,31 +54,30 @@ Your app is ready to be deployed! To run the backend services you will need to open multiple terminals and follow this instructions: ### Terminal 1 - [Data follower app](/backend-services/vote-commitment-app/) on port: 9090 -Edit ``application.properties``: -1. Comment CIP-1694 Pre Ratification start block. -2. Uncomment CF Summit 2023 start block + ```bash -cd voting-ledger-follower-app +cd cf-cardano-ballot/backend-services/voting-ledger-follower-app ./gradlew bootRun - ``` ### Terminal 2 - [Voting app](/backend-services/voting-app/) on port: 9091 ```bash -cd voting-app +cd cf-cardano-ballot/backend-services/voting-app ./gradlew bootRun ``` ### Terminal 3 - [Vote verification app](/backend-services/voting-verification-app/) on port: 9092 ```bash -cd voting-verification-app +cd cf-cardano-ballot/backend-services/voting-verification-app ./gradlew bootRun ``` ### Terminal 4 - [User verification app](/backend-services/user-verification-service/) on port: 9093 + +To run this service you need to provide your own AWS credentials to enable the sms verification service. ```bash export AWS_SNS_ACCESS_KEY_ID=... export AWS_SNS_SECRET_ACCESS_KEY=... -cd user-verification-service +cd cf-cardano-ballot/backend-services/user-verification-service ./gradlew bootRun ``` diff --git a/ui/summit-2023/src/types/voting-app-types.ts b/ui/summit-2023/src/types/voting-app-types.ts index 5b89b292b..3a482400f 100644 --- a/ui/summit-2023/src/types/voting-app-types.ts +++ b/ui/summit-2023/src/types/voting-app-types.ts @@ -1,814 +1,860 @@ /* tslint:disable */ /* eslint-disable */ -// Generated using typescript-generator version 3.2.1263 on 2023-09-22 11:54:21. +// Generated using typescript-generator version 3.2.1263 on 2023-11-30 16:17:07. export interface Either extends Value, Serializable { - left: L; - right: boolean; - orNull: R; + left: L; + right: boolean; + orNull: R; } -export interface L1MerkleCommitment { - signedVotes: CompactVote[]; - root: MerkleElement; - eventId: string; +export interface Leaderboard { } -export interface L1MerkleTree { - root: MerkleElement; - rootHash: string; - transactionHash: string; - absoluteSlot: number; -} - -export interface L1MerkleTreeBuilder {} - -export interface L1SubmissionData { - txHash: string; - slot: number; -} - -export interface Leaderboard {} - export interface ByCategoryStats { - id: string; - votes: number; - votingPower: string; + id: string; + votes: number; + votingPower: string; } -export interface ByCategoryStatsBuilder {} +export interface ByCategoryStatsBuilder { +} export interface ByEventStats { - event: string; - totalVotesCount: number; - totalVotingPower: string; - categories: ByCategoryStats[]; + event: string; + totalVotesCount: number; + totalVotingPower: string; + categories: ByCategoryStats[]; } -export interface ByEventStatsBuilder {} +export interface ByEventStatsBuilder { +} export interface ByProposalsInCategoryStats { - category: string; - proposals: { [index: string]: Votes }; + category: string; + proposals: { [index: string]: Votes }; } -export interface ByProposalsInCategoryStatsBuilder {} +export interface ByProposalsInCategoryStatsBuilder { +} -export interface LeaderboardBuilder {} +export interface LeaderboardBuilder { +} export interface Votes { - votes: number; - votingPower: string; + votes: number; + votingPower: string; } -export interface VotesBuilder {} - -export interface WinnerStats { - categoryId: string; - proposalId: string; +export interface VotesBuilder { } -export interface WinnerStatsBuilder {} - export interface LoginResult { - accessToken: string; - expiresAt: Date; -} - -export interface TxBody { - txDataHex: string; + accessToken: string; + expiresAt: Date; } export interface UserVotes { - categoryId: string; - proposalId: string; + categoryId: string; + proposalId: string; } export interface VoteReceipt { - id: string; - event: string; - category: string; - proposal: string; - votingPower?: string; - voterStakingAddress: string; - coseSignature: string; - cosePublicKey?: string; - status: Status; - merkleProof: MerkleProof; - finalityScore?: FinalityScore; - votedAtSlot: string; + id: string; + event: string; + category: string; + proposal: string; + votingPower?: string; + voterStakingAddress: string; + coseSignature: string; + cosePublicKey?: string; + status: Status; + merkleProof: MerkleProof; + finalityScore?: FinalityScore; + votedAtSlot: string; } export interface MerkleProof { - transactionHash: string; - absoluteSlot?: number; - blockHash?: string; - rootHash: string; - steps: MerkleProofItem[]; + transactionHash: string; + absoluteSlot?: number; + blockHash?: string; + rootHash: string; + steps: MerkleProofItem[]; } -export interface MerkleProofBuilder {} +export interface MerkleProofBuilder { +} export interface MerkleProofItem { - type: MerkleProofType; - hash: string; + type: MerkleProofType; + hash: string; } -export interface MerkleProofItemBuilder {} - -export interface VoteReceiptBuilder {} - -export interface VoteSerialisations {} +export interface MerkleProofItemBuilder { +} -export interface WellKnownPointWithProtocolMagic { - wellKnownPointForNetwork?: Point; - protocolMagic: number; +export interface VoteReceiptBuilder { } export interface AbstractTimestampEntity { - createdAt: Date; - updatedAt: Date; + createdAt: Date; + updatedAt: Date; } export interface Vote extends AbstractTimestampEntity { - id: string; - idNumericHash: number; - eventId: string; - categoryId: string; - proposalId: string; - voterStakingAddress: string; - coseSignature: string; - cosePublicKey?: string; - votingPower?: number; - votedAtSlot: number; + id: string; + idNumericHash: number; + eventId: string; + categoryId: string; + proposalId: string; + voterStakingAddress: string; + coseSignature: string; + cosePublicKey?: string; + votingPower?: number; + votedAtSlot: number; } -export interface VoteBuilder {} +export interface VoteBuilder { +} export interface VoteMerkleProof extends AbstractTimestampEntity { - voteId: string; - voteIdNumericHash: number; - eventId: string; - rootHash: string; - l1TransactionHash: string; - proofItemsJson: string; - invalidated: boolean; - absoluteSlot: number; + voteId: string; + voteIdNumericHash: number; + eventId: string; + rootHash: string; + l1TransactionHash: string; + proofItemsJson: string; + invalidated: boolean; + absoluteSlot: number; } -export interface VoteMerkleProofBuilder {} +export interface VoteMerkleProofBuilder { +} export interface CIP93Envelope { - uri: string; - action: string; - actionText: string; - slot: string; - data: T; - slotAsLong: number; - actionAsEnum?: Web3Action; + uri: string; + action: string; + actionText: string; + slot: string; + data: T; + slotAsLong: number; + actionAsEnum?: Web3Action; } -export interface CIP93EnvelopeBuilder {} +export interface CIP93EnvelopeBuilder { +} export interface JwtLoginEnvelope { - event: string; - address: string; - network: string; - role: string; + event: string; + address: string; + network: string; + role: string; } export interface SignedWeb3Request { - coseSignature: string; - cosePublicKey?: string; + coseSignature: string; + cosePublicKey?: string; } -export interface SignedWeb3RequestBuilder {} +export interface SignedWeb3RequestBuilder { +} export interface ViewVoteReceiptEnvelope { - address: string; - network: string; - event: string; - category: string; + address: string; + network: string; + event: string; + category: string; } export interface VoteEnvelope { - id: string; - address: string; - event: string; - category: string; - proposal: string; - proposalText?: string; - network: string; - votedAt: string; - votingPower?: string; - votedAtSlot: number; + id: string; + address: string; + event: string; + category: string; + proposal: string; + proposalText?: string; + network: string; + votedAt: string; + votingPower?: string; + votedAtSlot: number; +} + +export interface VoteEnvelopeBuilder { +} + +export interface DefaultLoginService extends LoginService { } -export interface VoteEnvelopeBuilder {} +export interface DefaultLoginService__BeanDefinitions { +} -export interface DefaultLoginService extends LoginService {} +export interface DefaultLoginService__TestContext001_BeanDefinitions { +} -export interface DefaultLoginService__BeanDefinitions {} +export interface LoginService { +} -export interface LoginService {} +export interface LoginSystemDetector { +} -export interface LoginSystemDetector {} +export interface LoginSystemDetector__BeanDefinitions { +} -export interface LoginSystemDetector__BeanDefinitions {} +export interface LoginSystemDetector__TestContext001_BeanDefinitions { +} export interface JwtAuthenticationToken extends AbstractAuthenticationToken { - stakeAddress: string; + stakeAddress: string; } export interface JwtFilter extends OncePerRequestFilter { - beanName: string; - servletContext: ServletContext; + beanName: string; + servletContext: ServletContext; } -export interface JwtFilter__BeanDefinitions {} +export interface JwtFilter__BeanDefinitions { +} + +export interface JwtFilter__TestContext001_BeanDefinitions { +} export interface JwtPrincipal extends Principal, AuthenticatedPrincipal { - signedJWT: SignedJWT; + signedJWT: SignedJWT; +} + +export interface JwtService { } -export interface JwtService {} +export interface JwtService__Autowiring { +} + +export interface JwtService__BeanDefinitions { +} -export interface JwtService__Autowiring {} +export interface JwtService__TestContext001_Autowiring { +} -export interface JwtService__BeanDefinitions {} +export interface JwtService__TestContext001_BeanDefinitions { +} export interface Web3AuthenticationToken extends AbstractAuthenticationToken { - details: Web3Details; + details: Web3Details; } export interface Web3Details { - stakeAddress: string; - event: EventDetailsResponse; - action: Web3Action; - cip30VerificationResult: Cip30VerificationResult; - envelope: CIP93Envelope<{ [index: string]: any }>; - signedWeb3Request: SignedWeb3Request; - chainTip: ChainTipResponse; - network: CardanoNetwork; + stakeAddress: string; + event: EventDetailsResponse; + action: Web3Action; + cip30VerificationResult: Cip30VerificationResult; + envelope: CIP93Envelope<{ [index: string]: any }>; + signedWeb3Request: SignedWeb3Request; + chainTip: ChainTipResponse; + network: CardanoNetwork; } -export interface Web3DetailsBuilder {} +export interface Web3DetailsBuilder { +} export interface Web3Filter extends OncePerRequestFilter { - beanName: string; - servletContext: ServletContext; + beanName: string; + servletContext: ServletContext; +} + +export interface Web3Filter__BeanDefinitions { } -export interface Web3Filter__BeanDefinitions {} +export interface Web3Filter__TestContext001_BeanDefinitions { +} -export interface BackendServiceBlockchainTransactionSubmissionService extends BlockchainTransactionSubmissionService {} +export interface ExpirationService { +} -export interface BlockchainTransactionSubmissionService {} +export interface ExpirationService__Autowiring { +} -export interface Noop extends BlockchainTransactionSubmissionService {} +export interface ExpirationService__BeanDefinitions { +} -export interface CardanoSubmitApiBlockchainTransactionSubmissionService - extends BlockchainTransactionSubmissionService {} +export interface ExpirationService__TestContext001_Autowiring { +} -export interface ExpirationService {} +export interface ExpirationService__TestContext001_BeanDefinitions { +} -export interface ExpirationService__Autowiring {} +export interface JsonService { +} -export interface ExpirationService__BeanDefinitions {} +export interface JsonService__Autowiring { +} -export interface JsonService {} +export interface JsonService__BeanDefinitions { +} -export interface JsonService__Autowiring {} +export interface JsonService__TestContext001_Autowiring { +} -export interface JsonService__BeanDefinitions {} +export interface JsonService__TestContext001_BeanDefinitions { +} -export interface DefaultLeaderBoardService extends LeaderBoardService {} +export interface AbstractWinnersService { +} -export interface DefaultLeaderBoardService__BeanDefinitions {} +export interface DBHighLevelLeaderBoardService extends HighLevelLeaderBoardService { +} -export interface LeaderBoardService {} +export interface DBHighLevelLeaderBoardService__BeanDefinitions { +} -export interface MerkleProofSerdeService {} +export interface DBHighLevelLeaderBoardService__TestContext001_BeanDefinitions { +} -export interface MerkleProofSerdeService__Autowiring {} +export interface DBLeaderboardWinnersService extends AbstractWinnersService, LeaderboardWinnersService { +} -export interface MerkleProofSerdeService__BeanDefinitions {} +export interface DBLeaderboardWinnersService__Autowiring { +} -export interface VoteCommitmentService {} +export interface DBLeaderboardWinnersService__BeanDefinitions { +} -export interface VoteCommitmentService__BeanDefinitions {} +export interface DBLeaderboardWinnersService__TestContext001_Autowiring { +} -export interface VoteMerkleProofService {} +export interface DBLeaderboardWinnersService__TestContext001_BeanDefinitions { +} -export interface VoteMerkleProofService__BeanDefinitions {} +export interface HighLevelLeaderBoardService { +} -export interface DefaultTransactionSubmissionService extends TransactionSubmissionService {} +export interface L1LeaderboardWinnersService extends AbstractWinnersService, LeaderboardWinnersService { +} -export interface DefaultTransactionSubmissionService__Autowiring {} +export interface L1LeaderboardWinnersService__Autowiring { +} -export interface DefaultTransactionSubmissionService__BeanDefinitions {} +export interface L1LeaderboardWinnersService__BeanDefinitions { +} -export interface L1SubmissionService {} +export interface L1LeaderboardWinnersService__TestContext001_Autowiring { +} -export interface L1SubmissionService__Autowiring {} +export interface L1LeaderboardWinnersService__TestContext001_BeanDefinitions { +} -export interface L1SubmissionService__BeanDefinitions {} +export interface LeaderboardWinnersProvider { +} -export interface L1TransactionCreator {} +export interface LeaderboardWinnersProvider__Autowiring { +} -export interface L1TransactionCreator__Autowiring {} +export interface LeaderboardWinnersProvider__BeanDefinitions { +} -export interface L1TransactionCreator__BeanDefinitions {} +export interface LeaderboardWinnersProvider__TestContext001_Autowiring { +} -export interface MetadataSerialiser {} +export interface LeaderboardWinnersProvider__TestContext001_BeanDefinitions { +} -export interface MetadataSerialiser__BeanDefinitions {} +export interface LeaderboardWinnersService { +} -export interface TransactionSubmissionService {} +export interface MerkleProofSerdeService { +} -export interface DefaultVoteService extends VoteService {} +export interface MerkleProofSerdeService__BeanDefinitions { +} -export interface DefaultVoteService__BeanDefinitions {} +export interface MerkleProofSerdeService__TestContext001_BeanDefinitions { +} -export interface VoteService {} +export interface VoteMerkleProofService { +} -export interface RollbackHandler {} +export interface VoteMerkleProofService__BeanDefinitions { +} -export interface RollbackHandler__Autowiring {} +export interface VoteMerkleProofService__TestContext001_BeanDefinitions { +} -export interface RollbackHandler__BeanDefinitions {} +export interface DefaultVoteService extends VoteService { +} -export interface Problem { - instance: URI; - type: URI; - parameters: { [index: string]: any }; - detail: string; - status: StatusType; - title: string; +export interface DefaultVoteService__BeanDefinitions { } -export interface Serializable {} +export interface DefaultVoteService__TestContext001_BeanDefinitions { +} -export interface CompactVote { - coseSignature: string; - cosePublicKey?: string; +export interface VoteService { } -export interface MerkleElement { - empty: boolean; +export interface Problem { + type: URI; + title: string; + status: StatusType; + detail: string; + instance: URI; + parameters: { [index: string]: any }; } -export interface Point { - slot: number; - hash: string; +export interface Serializable { } export interface GrantedAuthority extends Serializable { - authority: string; + authority: string; } -export interface AbstractAuthenticationToken extends Authentication, CredentialsContainer {} +export interface AbstractAuthenticationToken extends Authentication, CredentialsContainer { +} export interface Environment extends PropertyResolver { - activeProfiles: string[]; - defaultProfiles: string[]; + activeProfiles: string[]; + defaultProfiles: string[]; } export interface FilterConfig { - servletContext: ServletContext; - filterName: string; - initParameterNames: Enumeration; + filterName: string; + servletContext: ServletContext; + initParameterNames: Enumeration; } export interface ServletContext { - sessionTimeout: number; - classLoader: ClassLoader; - majorVersion: number; - minorVersion: number; - responseCharacterEncoding: string; - requestCharacterEncoding: string; - defaultSessionTrackingModes: SessionTrackingMode[]; - effectiveSessionTrackingModes: SessionTrackingMode[]; - attributeNames: Enumeration; - contextPath: string; - virtualServerName: string; - serverInfo: string; - servletContextName: string; - servletRegistrations: { [index: string]: ServletRegistration }; - sessionCookieConfig: SessionCookieConfig; - filterRegistrations: { [index: string]: FilterRegistration }; - /** - * @deprecated - */ - servletNames: Enumeration; - effectiveMinorVersion: number; - jspConfigDescriptor: JspConfigDescriptor; - /** - * @deprecated - */ - servlets: Enumeration; - initParameterNames: Enumeration; - effectiveMajorVersion: number; -} - -export interface OncePerRequestFilter extends GenericFilterBean {} + contextPath: string; + majorVersion: number; + minorVersion: number; + effectiveMajorVersion: number; + effectiveMinorVersion: number; + /** + * @deprecated + */ + servlets: Enumeration; + /** + * @deprecated + */ + servletNames: Enumeration; + serverInfo: string; + initParameterNames: Enumeration; + attributeNames: Enumeration; + servletContextName: string; + servletRegistrations: { [index: string]: ServletRegistration }; + filterRegistrations: { [index: string]: FilterRegistration }; + sessionCookieConfig: SessionCookieConfig; + defaultSessionTrackingModes: SessionTrackingMode[]; + effectiveSessionTrackingModes: SessionTrackingMode[]; + jspConfigDescriptor: JspConfigDescriptor; + classLoader: ClassLoader; + virtualServerName: string; + sessionTimeout: number; + requestCharacterEncoding: string; + responseCharacterEncoding: string; +} + +export interface OncePerRequestFilter extends GenericFilterBean { +} export interface SignedJWT extends JWSObject, JWT { - header: JWSHeader; + header: JWSHeader; } export interface Principal { - name: string; + name: string; } export interface AuthenticatedPrincipal { - name: string; + name: string; } export interface EventDetailsResponse { - id: string; - finished: boolean; - notStarted: boolean; - isStarted: boolean; - active: boolean; - proposalsReveal: boolean; - commitmentsWindowOpen: boolean; - allowVoteChanging: boolean; - highLevelEventResultsWhileVoting: boolean; - highLevelCategoryResultsWhileVoting: boolean; - categoryResultsWhileVoting: boolean; - votingEventType: VotingEventType; - categories: CategoryDetailsResponse[]; - eventInactive: boolean; + id: string; + organisers: string; + finished: boolean; + notStarted: boolean; + isStarted: boolean; + active: boolean; + proposalsReveal: boolean; + commitmentsWindowOpen: boolean; + allowVoteChanging: boolean; + highLevelEventResultsWhileVoting: boolean; + highLevelCategoryResultsWhileVoting: boolean; + categoryResultsWhileVoting: boolean; + votingEventType: VotingEventType; + categories: CategoryDetailsResponse[]; + tallies: Tally[]; + eventInactive: boolean; } export interface Cip30VerificationResult { - validationError?: ValidationError; - address?: any; - ed25519PublicKey: any; - ed25519Signature: any; - message: any; - cosePayload: any; - valid: boolean; + validationError?: ValidationError; + address?: any; + ed25519PublicKey: any; + ed25519Signature: any; + message: any; + cosePayload: any; + valid: boolean; } export interface ChainTipResponse { - hash: string; - epochNo: number; - absoluteSlot: number; - synced: boolean; - network: CardanoNetwork; - notSynced: boolean; + hash: string; + epochNo: number; + absoluteSlot: number; + synced: boolean; + network: CardanoNetwork; + notSynced: boolean; } -export interface URI extends Comparable, Serializable {} +export interface URI extends Comparable, Serializable { +} export interface StatusType { - statusCode: number; - reasonPhrase: string; + statusCode: number; + reasonPhrase: string; } export interface Value extends Iterable { - empty: boolean; - orNull: T; - singleValued: boolean; - async: boolean; - lazy: boolean; + orNull: T; + async: boolean; + empty: boolean; + lazy: boolean; + singleValued: boolean; } export interface Authentication extends Principal, Serializable { - authorities: GrantedAuthority[]; - details: any; - authenticated: boolean; - credentials: any; - principal: any; + authorities: GrantedAuthority[]; + credentials: any; + details: any; + principal: any; + authenticated: boolean; } -export interface CredentialsContainer {} +export interface CredentialsContainer { +} -export interface PropertyResolver {} +export interface PropertyResolver { +} -export interface Enumeration {} +export interface Enumeration { +} -export interface ClassLoader {} +export interface Servlet { + servletConfig: ServletConfig; + servletInfo: string; +} export interface ServletRegistration extends Registration { - runAsRole: string; - mappings: string[]; + mappings: string[]; + runAsRole: string; } -export interface SessionCookieConfig { - domain: string; - name: string; - path: string; - comment: string; - httpOnly: boolean; - secure: boolean; - maxAge: number; +export interface FilterRegistration extends Registration { + servletNameMappings: string[]; + urlPatternMappings: string[]; } -export interface FilterRegistration extends Registration { - servletNameMappings: string[]; - urlPatternMappings: string[]; +export interface SessionCookieConfig { + name: string; + domain: string; + path: string; + comment: string; + httpOnly: boolean; + secure: boolean; + maxAge: number; } export interface JspConfigDescriptor { - jspPropertyGroups: JspPropertyGroupDescriptor[]; - taglibs: TaglibDescriptor[]; + taglibs: TaglibDescriptor[]; + jspPropertyGroups: JspPropertyGroupDescriptor[]; } -export interface Servlet { - servletConfig: ServletConfig; - servletInfo: string; +export interface ClassLoader { } -export interface GenericFilterBean - extends Filter, - BeanNameAware, - EnvironmentAware, - EnvironmentCapable, - ServletContextAware, - InitializingBean, - DisposableBean { - filterConfig: FilterConfig; +export interface GenericFilterBean extends Filter, BeanNameAware, EnvironmentAware, EnvironmentCapable, ServletContextAware, InitializingBean, DisposableBean { + filterConfig: FilterConfig; } export interface Payload extends Serializable { - origin: Origin; + origin: Origin; } -export interface Base64URL extends Base64 {} +export interface Base64URL extends Base64 { +} export interface JWSHeader extends CommonSEHeader { - algorithm: JWSAlgorithm; - base64URLEncodePayload: boolean; + algorithm: JWSAlgorithm; + base64URLEncodePayload: boolean; } export interface JWTClaimsSet extends Serializable { - claims: { [index: string]: any }; - issuer: string; - expirationTime: Date; - issueTime: Date; - notBeforeTime: Date; - audience: string[]; - subject: string; - jwtid: string; + claims: { [index: string]: any }; + issuer: string; + subject: string; + audience: string[]; + expirationTime: Date; + notBeforeTime: Date; + issueTime: Date; + jwtid: string; } export interface JWSObject extends JOSEObject { - header: JWSHeader; - signature: Base64URL; - state: State; - signingInput: any; + header: JWSHeader; + signature: Base64URL; + state: State; + signingInput: any; } export interface JWT extends Serializable { - header: Header; - parsedString: string; - parsedParts: Base64URL[]; - jwtclaimsSet: JWTClaimsSet; + header: Header; + jwtclaimsSet: JWTClaimsSet; + parsedParts: Base64URL[]; + parsedString: string; } export interface CategoryDetailsResponse { - id: string; - gdprProtection: boolean; - proposals: ProposalDetailsResponse[]; + id: string; + gdprProtection: boolean; + proposals: ProposalDetailsResponse[]; } -export interface Registration { - name: string; - className: string; - initParameters: { [index: string]: string }; +export interface Tally { + name: string; + type: TallyType; } -export interface JspPropertyGroupDescriptor { - buffer: string; - trimDirectiveWhitespaces: string; - deferredSyntaxAllowedAsLiteral: string; - errorOnUndeclaredNamespace: string; - includeCodas: string[]; - defaultContentType: string; - pageEncoding: string; - scriptingInvalid: string; - includePreludes: string[]; - urlPatterns: string[]; - elIgnored: string; - isXml: string; +export interface ServletConfig { + servletName: string; + servletContext: ServletContext; + initParameterNames: Enumeration; +} + +export interface Registration { + name: string; + className: string; + initParameters: { [index: string]: string }; } export interface TaglibDescriptor { - taglibURI: string; - taglibLocation: string; + taglibURI: string; + taglibLocation: string; } -export interface ServletConfig { - servletName: string; - servletContext: ServletContext; - initParameterNames: Enumeration; +export interface JspPropertyGroupDescriptor { + urlPatterns: string[]; + elIgnored: string; + pageEncoding: string; + scriptingInvalid: string; + isXml: string; + includePreludes: string[]; + includeCodas: string[]; + deferredSyntaxAllowedAsLiteral: string; + trimDirectiveWhitespaces: string; + defaultContentType: string; + buffer: string; + errorOnUndeclaredNamespace: string; } -export interface Filter {} +export interface Filter { +} -export interface BeanNameAware extends Aware {} +export interface BeanNameAware extends Aware { +} -export interface EnvironmentAware extends Aware {} +export interface EnvironmentAware extends Aware { +} export interface EnvironmentCapable { - environment: Environment; + environment: Environment; } -export interface ServletContextAware extends Aware {} +export interface ServletContextAware extends Aware { +} -export interface InitializingBean {} +export interface InitializingBean { +} -export interface DisposableBean {} +export interface DisposableBean { +} -export interface Base64 extends Serializable {} +export interface Base64 extends Serializable { +} export interface JWK extends Serializable { - keyStore: KeyStore; - algorithm: Algorithm; - expirationTime: Date; - private: boolean; - x509CertSHA256Thumbprint: Base64URL; - requiredParams: { [index: string]: any }; - parsedX509CertChain: X509Certificate[]; - issueTime: Date; - notBeforeTime: Date; - x509CertChain: Base64[]; - keyOperations: KeyOperation[]; - /** - * @deprecated - */ - x509CertThumbprint: Base64URL; - x509CertURL: URI; - keyType: KeyType; - keyID: string; - keyUse: KeyUse; -} - -export interface JWSAlgorithm extends Algorithm {} + keyStore: KeyStore; + keyType: KeyType; + keyUse: KeyUse; + keyOperations: KeyOperation[]; + algorithm: Algorithm; + keyID: string; + x509CertURL: URI; + /** + * @deprecated + */ + x509CertThumbprint: Base64URL; + x509CertSHA256Thumbprint: Base64URL; + x509CertChain: Base64[]; + parsedX509CertChain: X509Certificate[]; + expirationTime: Date; + notBeforeTime: Date; + issueTime: Date; + requiredParams: { [index: string]: any }; + private: boolean; +} + +export interface JWSAlgorithm extends Algorithm { +} export interface JOSEObjectType extends Serializable { - type: string; + type: string; } export interface CommonSEHeader extends Header { - jwk: JWK; - x509CertSHA256Thumbprint: Base64URL; - x509CertChain: Base64[]; - /** - * @deprecated - */ - x509CertThumbprint: Base64URL; - x509CertURL: URI; - keyID: string; - jwkurl: URI; + jwk: JWK; + jwkurl: URI; + x509CertURL: URI; + /** + * @deprecated + */ + x509CertThumbprint: Base64URL; + x509CertSHA256Thumbprint: Base64URL; + x509CertChain: Base64[]; + keyID: string; } export interface JOSEObject extends Serializable { - payload: Payload; - parsedParts: Base64URL[]; - header: Header; - parsedString: string; + payload: Payload; + parsedParts: Base64URL[]; + header: Header; + parsedString: string; } export interface Header extends Serializable { - customParams: { [index: string]: any }; - parsedBase64URL: Base64URL; - algorithm: Algorithm; - contentType: string; - type: JOSEObjectType; - includedParams: string[]; - criticalParams: string[]; + customParams: { [index: string]: any }; + parsedBase64URL: Base64URL; + algorithm: Algorithm; + type: JOSEObjectType; + contentType: string; + criticalParams: string[]; + includedParams: string[]; } export interface ProposalDetailsResponse { - id: string; - name: string; + id: string; + name: string; } -export interface Comparable {} +export interface Comparable { +} -export interface Iterable {} +export interface Iterable { +} -export interface Aware {} +export interface Aware { +} export interface KeyStore { - type: string; - provider: { [index: string]: any }; + type: string; + provider: { [index: string]: any }; } -export interface Algorithm extends Serializable { - name: string; - requirement: Requirement; +export interface KeyType extends Serializable { + value: string; + requirement: Requirement; } -export interface X509Certificate extends Certificate, X509Extension { - serialNumber: number; - /** - * @deprecated since 16 - */ - subjectDN: Principal; - /** - * @deprecated since 16 - */ - issuerDN: Principal; - notBefore: Date; - notAfter: Date; - sigAlgParams: any; - extendedKeyUsage: string[]; - tbscertificate: any; - sigAlgOID: string; - issuerUniqueID: boolean[]; - subjectUniqueID: boolean[]; - issuerAlternativeNames: any[][]; - keyUsage: boolean[]; - sigAlgName: string; - signature: any; - basicConstraints: number; - issuerX500Principal: X500Principal; - subjectX500Principal: X500Principal; - version: number; - subjectAlternativeNames: any[][]; +export interface KeyUse extends Serializable { + value: string; } -export interface KeyType extends Serializable { - value: string; - requirement: Requirement; +export interface Algorithm extends Serializable { + name: string; + requirement: Requirement; } -export interface KeyUse extends Serializable { - value: string; +export interface X509Certificate extends Certificate, X509Extension { + version: number; + serialNumber: number; + /** + * @deprecated since 16 + */ + issuerDN: Principal; + issuerX500Principal: X500Principal; + /** + * @deprecated since 16 + */ + subjectDN: Principal; + subjectX500Principal: X500Principal; + notBefore: Date; + notAfter: Date; + tbscertificate: any; + signature: any; + sigAlgName: string; + sigAlgOID: string; + sigAlgParams: any; + issuerUniqueID: boolean[]; + subjectUniqueID: boolean[]; + keyUsage: boolean[]; + extendedKeyUsage: string[]; + basicConstraints: number; + subjectAlternativeNames: any[][]; + issuerAlternativeNames: any[][]; } export interface X500Principal extends Principal, Serializable { - encoded: any; + encoded: any; } -export interface PublicKey extends Key {} +export interface PublicKey extends Key { +} export interface Certificate extends Serializable { - type: string; - encoded: any; - publicKey: PublicKey; + type: string; + encoded: any; + publicKey: PublicKey; } export interface X509Extension { - nonCriticalExtensionOIDs: string[]; - criticalExtensionOIDs: string[]; + criticalExtensionOIDs: string[]; + nonCriticalExtensionOIDs: string[]; } export interface Key extends Serializable { - algorithm: string; - encoded: any; - format: string; + algorithm: string; + format: string; + encoded: any; } -export type CardanoNetwork = 'MAIN' | 'PREPROD' | 'PREVIEW' | 'DEV'; +export type CardanoNetwork = "MAIN" | "PREPROD" | "PREVIEW" | "DEV"; + +export type Role = "VOTER"; -export type OnChainEventType = 'COMMITMENTS' | 'EVENT_REGISTRATION' | 'CATEGORY_REGISTRATION'; +export type SchemaVersion = "V1"; -export type Role = 'VOTER'; +export type TallyType = "HYDRA"; -export type SchemaVersion = 'V1'; +export type MerkleProofType = "L" | "R"; -export type MerkleProofType = 'L' | 'R'; +export type Status = "BASIC" | "PARTIAL" | "ROLLBACK" | "FULL"; -export type Status = 'BASIC' | 'PARTIAL' | 'ROLLBACK' | 'FULL'; +export type VotingEventType = "USER_BASED" | "STAKE_BASED" | "BALANCE_BASED"; -export type VotingEventType = 'USER_BASED' | 'STAKE_BASED' | 'BALANCE_BASED'; +export type VotingPowerAsset = "ADA"; -export type VotingPowerAsset = 'ADA'; +export type WinnerLeaderboardSource = "l1" | "db"; -export type Web3Action = - | 'CAST_VOTE' - | 'VIEW_VOTE_RECEIPT' - | 'LOGIN' - | 'IS_VOTE_CASTING_ALLOWED' - | 'IS_VOTE_CHANGING_ALLOWED' - | 'VOTES'; +export type Web3Action = "CAST_VOTE" | "VIEW_VOTE_RECEIPT" | "LOGIN" | "IS_VOTE_CASTING_ALLOWED" | "IS_VOTE_CHANGING_ALLOWED" | "VOTES"; -export type LoginSystem = 'JWT' | 'CIP93'; +export type LoginSystem = "JWT" | "CIP93"; -export type FinalityScore = 'LOW' | 'MEDIUM' | 'HIGH' | 'VERY_HIGH' | 'FINAL'; +export type FinalityScore = "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH" | "FINAL"; -export type SessionTrackingMode = 'COOKIE' | 'URL' | 'SSL'; +export type SessionTrackingMode = "COOKIE" | "URL" | "SSL"; -export type State = 'UNSIGNED' | 'SIGNED' | 'VERIFIED'; +export type State = "UNSIGNED" | "SIGNED" | "VERIFIED"; -export type ValidationError = 'UNKNOWN' | 'CIP8_FORMAT_ERROR' | 'NO_PUBLIC_KEY'; +export type ValidationError = "UNKNOWN" | "CIP8_FORMAT_ERROR" | "NO_PUBLIC_KEY"; -export type Origin = 'JSON' | 'STRING' | 'BYTE_ARRAY' | 'BASE64URL' | 'JWS_OBJECT' | 'SIGNED_JWT'; +export type Origin = "JSON" | "STRING" | "BYTE_ARRAY" | "BASE64URL" | "JWS_OBJECT" | "SIGNED_JWT"; -export type KeyOperation = - | 'SIGN' - | 'VERIFY' - | 'ENCRYPT' - | 'DECRYPT' - | 'WRAP_KEY' - | 'UNWRAP_KEY' - | 'DERIVE_KEY' - | 'DERIVE_BITS'; +export type KeyOperation = "SIGN" | "VERIFY" | "ENCRYPT" | "DECRYPT" | "WRAP_KEY" | "UNWRAP_KEY" | "DERIVE_KEY" | "DERIVE_BITS"; -export type Requirement = 'REQUIRED' | 'RECOMMENDED' | 'OPTIONAL'; +export type Requirement = "REQUIRED" | "RECOMMENDED" | "OPTIONAL";