Skip to content

Commit

Permalink
Merge pull request #26 from protofire/staging-harmony
Browse files Browse the repository at this point in the history
Stake Balances + ONE value at transaction time
  • Loading branch information
leonimella authored Feb 3, 2025
2 parents b2f73bd + 329ecd2 commit b576d52
Show file tree
Hide file tree
Showing 32 changed files with 1,195 additions and 810 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEY=xxx
NEXT_PUBLIC_AUTH0_CLIENT_ID=xxx
FAVICON_GENERATOR_API_KEY=xxx
NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEY=xxx
NEXT_PUBLIC_MULTI_SHARDS_PROXY_URL=xxx
NEXT_PUBLIC_MULTI_SHARDS_PROXY_URL=xxx
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": false,
}
2 changes: 2 additions & 0 deletions configs/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import chain from './chain';
import * as features from './features';
import meta from './meta';
import services from './services';
import stakingApi from './stakingApi';
import UI from './ui';

const config = Object.freeze({
Expand All @@ -14,6 +15,7 @@ const config = Object.freeze({
features,
services,
meta,
stakingApi,
});

export default config;
12 changes: 12 additions & 0 deletions configs/app/stakingApi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { getEnvValue } from './utils';

const apiEndpoint = getEnvValue('NEXT_PUBLIC_STAKING_API_HOST');
const apiNetwork = getEnvValue('NEXT_PUBLIC_STAKING_API_NETWORK');

const stakingApi = Object.freeze({
endpoint: apiEndpoint,
host: `${ apiEndpoint }/networks/${ apiNetwork }/delegations`,
network: apiNetwork,
});

export default stakingApi;
5 changes: 2 additions & 3 deletions deploy/tools/envs-validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ async function run() {

await checkPlaceholdersCongruity(appEnvs);
await validateEnvs(appEnvs);

} catch (error) {
process.exit(1);
}
Expand All @@ -42,7 +41,7 @@ async function validateEnvs(appEnvs: Record<string, string>) {

for await (const envName of envsWithJsonConfig) {
if (appEnvs[envName]) {
appEnvs[envName] = await getExternalJsonContent(envName) || '[]';
appEnvs[envName] = (await getExternalJsonContent(envName)) || '[]';
}
}

Expand Down Expand Up @@ -125,7 +124,7 @@ function getEnvsPlaceholders(filePath: string): Promise<Array<string>> {
}

const lines = data.split('\n');
const variables = lines.map(line => {
const variables = lines.map((line) => {
const variable = line.split('=')[0];
return variable.trim();
});
Expand Down
Loading

0 comments on commit b576d52

Please sign in to comment.