Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code submission for FLIP fest 'Playground Feature: Improve the resource explorer 29 - Milestone 3' #175

Merged
merged 6 commits into from
Nov 8, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .env.local

This file was deleted.

1 change: 1 addition & 0 deletions codegen.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
overwrite: true
schema:
- "http://localhost:8080/query"
- "https://playground.staging.flow.dapperlabs.com/query"
- "src/api/apollo/local.graphql"
documents: "src/api/apollo/**/*.ts"
Expand Down
21,413 changes: 19 additions & 21,394 deletions package-lock.json

Large diffs are not rendered by default.

302 changes: 151 additions & 151 deletions src/api/apollo/generated/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,157 +10,43 @@ export type Scalars = {
Boolean: boolean;
Int: number;
Float: number;
UUID: any;
Version: any;
Address: any;
UUID: any;
MaxStalker marked this conversation as resolved.
Show resolved Hide resolved
ExecutionResultValue: any;
RawExecutionResult: any;
};

export type Project = {
__typename?: 'Project';
id: Scalars['UUID'];
publicId: Scalars['UUID'];
parentId?: Maybe<Scalars['UUID']>;
title: Scalars['String'];
seed: Scalars['Int'];
version: Scalars['Version'];
persist?: Maybe<Scalars['Boolean']>;
mutable?: Maybe<Scalars['Boolean']>;
accounts?: Maybe<Array<Account>>;
transactionTemplates?: Maybe<Array<TransactionTemplate>>;
transactionExecutions?: Maybe<Array<TransactionExecution>>;
scriptTemplates?: Maybe<Array<ScriptTemplate>>;
scriptExecutions?: Maybe<Array<ScriptExecution>>;
};

export type NewProject = {
accounts?: Maybe<Array<Scalars['String']>>;
parentId?: Maybe<Scalars['UUID']>;
title: Scalars['String'];
scriptTemplates?: Maybe<Array<NewProjectScriptTemplate>>;
seed: Scalars['Int'];
accounts?: Maybe<Array<Scalars['String']>>;
title: Scalars['String'];
transactionTemplates?: Maybe<Array<NewProjectTransactionTemplate>>;
scriptTemplates?: Maybe<Array<NewProjectScriptTemplate>>;
};

export type NewProjectTransactionTemplate = {
title: Scalars['String'];
script: Scalars['String'];
};

export type NewScriptExecution = {
projectId: Scalars['UUID'];
script: Scalars['String'];
arguments?: Maybe<Array<Scalars['String']>>;
};

export type ProgramPosition = {
__typename?: 'ProgramPosition';
offset: Scalars['Int'];
line: Scalars['Int'];
column: Scalars['Int'];
};

export type Query = {
__typename?: 'Query';
account: Account;
activeProject: Scalars['Boolean'];
activeProjectId?: Maybe<Scalars['Int']>;
cachedExecutionResults: Array<Maybe<ExecutionResults>>;
localProject?: Maybe<Project>;
playgroundInfo: PlaygroundInfo;
project: Project;
scriptTemplate: ScriptTemplate;
transactionTemplate: TransactionTemplate;
};


export type QueryAccountArgs = {
accountId?: Maybe<Scalars['String']>;
id: Scalars['UUID'];
projectId: Scalars['UUID'];
};


export type QueryProjectArgs = {
id: Scalars['UUID'];
};


export type QueryScriptTemplateArgs = {
id: Scalars['UUID'];
projectId: Scalars['UUID'];
};


export type QueryTransactionTemplateArgs = {
id: Scalars['UUID'];
projectId: Scalars['UUID'];
};

export type TransactionTemplate = {
__typename?: 'TransactionTemplate';
id: Scalars['UUID'];
index: Scalars['Int'];
title: Scalars['String'];
script: Scalars['String'];
};

export type TransactionExecution = {
__typename?: 'TransactionExecution';
id: Scalars['UUID'];
script: Scalars['String'];
arguments?: Maybe<Array<Scalars['String']>>;
signers: Array<Account>;
errors?: Maybe<Array<ProgramError>>;
events: Array<Maybe<Event>>;
logs: Array<Scalars['String']>;
};

export type NewTransactionTemplate = {
projectId: Scalars['UUID'];
title: Scalars['String'];
script: Scalars['String'];
};

export type UpdateTransactionTemplate = {
export type UpdateProject = {
id: Scalars['UUID'];
persist?: Maybe<Scalars['Boolean']>;
title?: Maybe<Scalars['String']>;
projectId: Scalars['UUID'];
index?: Maybe<Scalars['Int']>;
script?: Maybe<Scalars['String']>;
};



export type ProgramError = {
__typename?: 'ProgramError';
message: Scalars['String'];
startPosition?: Maybe<ProgramPosition>;
endPosition?: Maybe<ProgramPosition>;
};

export type ScriptExecution = {
__typename?: 'ScriptExecution';
id: Scalars['UUID'];
export type NewScriptTemplate = {
projectId: Scalars['UUID'];
script: Scalars['String'];
arguments?: Maybe<Array<Scalars['String']>>;
errors?: Maybe<Array<ProgramError>>;
value: Scalars['String'];
logs: Array<Scalars['String']>;
};

export type NewProjectScriptTemplate = {
title: Scalars['String'];
script: Scalars['String'];
};

export type UpdateScriptTemplate = {
id: Scalars['UUID'];
title?: Maybe<Scalars['String']>;
export type NewScriptExecution = {
arguments?: Maybe<Array<Scalars['String']>>;
projectId: Scalars['UUID'];
index?: Maybe<Scalars['Int']>;
script?: Maybe<Scalars['String']>;
script: Scalars['String'];
};

export type Mutation = {
Expand Down Expand Up @@ -255,61 +141,175 @@ export type MutationUpdateTransactionTemplateArgs = {
input: UpdateTransactionTemplate;
};


export type ProgramPosition = {
__typename?: 'ProgramPosition';
column: Scalars['Int'];
line: Scalars['Int'];
offset: Scalars['Int'];
};

export type UpdateTransactionTemplate = {
id: Scalars['UUID'];
index?: Maybe<Scalars['Int']>;
projectId: Scalars['UUID'];
script?: Maybe<Scalars['String']>;
title?: Maybe<Scalars['String']>;
};


export type Project = {
__typename?: 'Project';
accounts?: Maybe<Array<Account>>;
id: Scalars['UUID'];
mutable?: Maybe<Scalars['Boolean']>;
parentId?: Maybe<Scalars['UUID']>;
persist?: Maybe<Scalars['Boolean']>;
publicId: Scalars['UUID'];
scriptExecutions?: Maybe<Array<ScriptExecution>>;
scriptTemplates?: Maybe<Array<ScriptTemplate>>;
seed: Scalars['Int'];
title: Scalars['String'];
transactionExecutions?: Maybe<Array<TransactionExecution>>;
transactionTemplates?: Maybe<Array<TransactionTemplate>>;
version: Scalars['Version'];
};

export type ProgramError = {
__typename?: 'ProgramError';
endPosition?: Maybe<ProgramPosition>;
message: Scalars['String'];
startPosition?: Maybe<ProgramPosition>;
};

export type NewTransactionExecution = {
arguments?: Maybe<Array<Scalars['String']>>;
projectId: Scalars['UUID'];
script: Scalars['String'];
signers?: Maybe<Array<Scalars['Address']>>;
};

export type NewTransactionTemplate = {
projectId: Scalars['UUID'];
script: Scalars['String'];
title: Scalars['String'];
};

export type UpdateScriptTemplate = {
id: Scalars['UUID'];
index?: Maybe<Scalars['Int']>;
projectId: Scalars['UUID'];
script?: Maybe<Scalars['String']>;
title?: Maybe<Scalars['String']>;
};

export type ScriptTemplate = {
__typename?: 'ScriptTemplate';
id: Scalars['UUID'];
index: Scalars['Int'];
script: Scalars['String'];
title: Scalars['String'];
};

export type NewProjectScriptTemplate = {
script: Scalars['String'];
title: Scalars['String'];
};

export type UpdateAccount = {
deployedCode?: Maybe<Scalars['String']>;
draftCode?: Maybe<Scalars['String']>;
id: Scalars['UUID'];
projectId: Scalars['UUID'];
};


export type PlaygroundInfo = {
__typename?: 'PlaygroundInfo';
apiVersion: Scalars['Version'];
cadenceVersion: Scalars['Version'];
};

export type TransactionTemplate = {
__typename?: 'TransactionTemplate';
id: Scalars['UUID'];
index: Scalars['Int'];
script: Scalars['String'];
title: Scalars['String'];
};

export type Event = {
__typename?: 'Event';
type: Scalars['String'];
values: Array<Scalars['String']>;
};

export type ScriptTemplate = {
__typename?: 'ScriptTemplate';
id: Scalars['UUID'];
index: Scalars['Int'];
title: Scalars['String'];
script: Scalars['String'];
export type Query = {
__typename?: 'Query';
account: Account;
activeProject: Scalars['Boolean'];
activeProjectId?: Maybe<Scalars['Int']>;
cachedExecutionResults: Array<Maybe<ExecutionResults>>;
localProject?: Maybe<Project>;
playgroundInfo: PlaygroundInfo;
project: Project;
scriptTemplate: ScriptTemplate;
transactionTemplate: TransactionTemplate;
};

export type UpdateProject = {

export type QueryAccountArgs = {
accountId?: Maybe<Scalars['String']>;
id: Scalars['UUID'];
title?: Maybe<Scalars['String']>;
persist?: Maybe<Scalars['Boolean']>;
projectId: Scalars['UUID'];
};

export type UpdateAccount = {

export type QueryProjectArgs = {
id: Scalars['UUID'];
projectId: Scalars['UUID'];
draftCode?: Maybe<Scalars['String']>;
deployedCode?: Maybe<Scalars['String']>;
};

export type Account = {
__typename?: 'Account';

export type QueryScriptTemplateArgs = {
id: Scalars['UUID'];
address: Scalars['Address'];
draftCode: Scalars['String'];
deployedCode: Scalars['String'];
deployedContracts: Array<Scalars['String']>;
state: Scalars['String'];
projectId: Scalars['UUID'];
};


export type NewTransactionExecution = {
export type QueryTransactionTemplateArgs = {
id: Scalars['UUID'];
projectId: Scalars['UUID'];
script: Scalars['String'];
signers?: Maybe<Array<Scalars['Address']>>;
};

export type TransactionExecution = {
__typename?: 'TransactionExecution';
arguments?: Maybe<Array<Scalars['String']>>;
errors?: Maybe<Array<ProgramError>>;
events: Array<Maybe<Event>>;
id: Scalars['UUID'];
logs: Array<Scalars['String']>;
script: Scalars['String'];
signers: Array<Account>;
};

export type NewScriptTemplate = {
projectId: Scalars['UUID'];
title: Scalars['String'];
export type ScriptExecution = {
__typename?: 'ScriptExecution';
arguments?: Maybe<Array<Scalars['String']>>;
errors?: Maybe<Array<ProgramError>>;
id: Scalars['UUID'];
logs: Array<Scalars['String']>;
script: Scalars['String'];
value: Scalars['String'];
};

export type Account = {
__typename?: 'Account';
address: Scalars['Address'];
deployedCode: Scalars['String'];
deployedContracts: Array<Scalars['String']>;
draftCode: Scalars['String'];
id: Scalars['UUID'];
state: Scalars['String'];
};


Expand Down
Loading