-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nara' into luxor/reduce-council-budget
- Loading branch information
Showing
98 changed files
with
5,317 additions
and
66,756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ TYPEORM_LOGGING=error | |
BLOCK_HEIGHT=0 | ||
|
||
# Query node GraphQL server port | ||
# Remember to change it in COLOSSUS_QUERY_NODE_URL and DISTRIBUTOR_QUERY_NODE_URL as well | ||
GRAPHQL_SERVER_PORT=8081 | ||
PROCESSOR_STATE_APP_PORT=8082 | ||
PROCESSOR_HOST=processor | ||
|
@@ -48,11 +47,11 @@ GRAPHQL_SERVER_HOST=localhost | |
# Websocket RPC endpoint containers will use. | ||
JOYSTREAM_NODE_WS=ws://joystream-node:9944/ | ||
|
||
# Query node which colossus will use | ||
COLOSSUS_QUERY_NODE_URL=http://graphql-server:8081/graphql | ||
# Storage Squid (graphql-server) which colossus will use | ||
COLOSSUS_STORAGE_SQUID_URL=http://squid-graphql-server:4352/graphql | ||
|
||
# Query node which distributor will use | ||
DISTRIBUTOR_QUERY_NODE_URL=http://graphql-server:8081/graphql | ||
# Storage Squid (graphql-server) which distributor will use | ||
DISTRIBUTOR_STORAGE_SQUID_URL=http://squid-graphql-server:4352/graphql | ||
|
||
# Indexer gateway used by processor. If you don't use the local indexer set this to a remote gateway | ||
PROCESSOR_INDEXER_GATEWAY=http://hydra-indexer-gateway:4000/graphql | ||
|
@@ -154,7 +153,7 @@ [email protected] | |
SQD_DEBUG=api:* | ||
OPENAPI_PLAYGROUND=true | ||
|
||
ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-http://squid-archive-gateway:8000/graphql} | ||
ORION_ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-http://squid-archive-gateway:8000/graphql} | ||
|
||
# ===================================================================================== | ||
|
||
|
@@ -168,3 +167,22 @@ TELEMETRY_ENDPOINT=http://collector:4318 | |
# We do not provide a default value - scripts that startup a joystream-node service | ||
# Should be explicit about what version to use. | ||
# JOYSTREAM_NODE_TAG=latest | ||
|
||
# ===================================================================================== | ||
## Storage-Squid configuration | ||
|
||
# Db config | ||
SQUID_DB_HOST=squid_db | ||
SQUID_DB_NAME=squid | ||
SQUID_DB_PASS=squid | ||
SQUID_DB_PORT=23332 | ||
|
||
# Processor service prometheus port | ||
SQUID_PROCESSOR_PROMETHEUS_PORT=3338 | ||
|
||
# Graphql server port | ||
SQUID_GQL_PORT=4352 | ||
|
||
# Archive gateway host (Should not be set in local development) | ||
# For running a production storage-squid instance uncomment the following line (to use the subsquid hosted archive) | ||
# SQUID_ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-https://v2.archive.subsquid.io/network/joystream} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { flags } from '@oclif/command' | ||
import WorkingGroupsCommandBase from '../../base/WorkingGroupsCommandBase' | ||
import { WorkingGroups } from '../../Types' | ||
import { VerifyValidator, RemarkMetadataAction } from '@joystream/metadata-protobuf' | ||
import { metadataToString } from '../../helpers/serialization' | ||
import Long from 'long' | ||
import chalk from 'chalk' | ||
|
||
export default class VerifyValidatorCommand extends WorkingGroupsCommandBase { | ||
static description = | ||
'Verify or un-verify the membership profile bound to a validator account. Available to membership workers only.' | ||
|
||
static args = [ | ||
{ | ||
name: 'memberId', | ||
required: true, | ||
description: 'ID of the membership bound to the validator account.', | ||
}, | ||
] | ||
|
||
static flags = { | ||
unverify: flags.boolean({ | ||
default: false, | ||
description: 'Whether the profile should be un-verified.', | ||
}), | ||
|
||
...WorkingGroupsCommandBase.flags, | ||
} | ||
|
||
async run(): Promise<void> { | ||
const worker = await this.getRequiredWorkerContext() | ||
if (!worker || this.group !== WorkingGroups.Membership) { | ||
return this.error('Only membership workers can perform this command') | ||
} | ||
|
||
const { args, flags } = this.parse(VerifyValidatorCommand) | ||
const memberId = Long.fromNumber(args.memberId) | ||
const verifyValidator = !flags.unverify | ||
|
||
const meta = new RemarkMetadataAction({ | ||
verifyValidator: new VerifyValidator({ | ||
memberId, | ||
isVerified: verifyValidator, | ||
}), | ||
}) | ||
const message = metadataToString(RemarkMetadataAction, meta) | ||
|
||
const keyPair = await this.getDecodedPair(worker.roleAccount) | ||
const result = await this.sendAndFollowNamedTx(keyPair, 'membershipWorkingGroup', 'workerRemark', [ | ||
worker.workerId, | ||
message, | ||
]) | ||
|
||
const block = result.status.isInBlock ? result.status.asInBlock : undefined | ||
const successMessage = `The validator profile ${args.memberId} was set to${verifyValidator ? '' : ' not'} verified.` | ||
const inBlockMessage = block ? `(In block ${block})` : '' | ||
this.log(chalk.green(`${successMessage} ${inBlockMessage}`)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.