Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sekaiking committed Aug 6, 2023
1 parent bc04c70 commit a85b83e
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 1,506 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ bOS-workspace allows you to run a local server similar to `bos-loader` that can

```bash
# Install dependencies
yarn start
yarn install
# Run the server
yarn dev
```
Expand All @@ -137,7 +137,7 @@ To build the widgets for deployment, run the following command:

```bash
# Install dependencies
yarn start
yarn install
# Build the widgets
yarn build
```
Expand Down
3 changes: 2 additions & 1 deletion apps/astraplusplus/bos.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"appAccount": "astraplusplus.ndctools.near",
"aliases": {
"nui": "nearui.near"
"nui": "nearui.near",
"pikespeakApiKey": "36f2b87a-7ee6-40d8-80b9-5e68e587a5b5"
}
}
6 changes: 3 additions & 3 deletions apps/astraplusplus/type/dao.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
}
},
{
"name": "coolDownPeriod",
"name": "gracePeriod",
"type": "number",
"required": true,
"number": {
Expand All @@ -94,11 +94,11 @@
{
"name": "profileImage",
"required": false,
"type": "/*__@appAccount__*//type/image"
"type": "string"
},
{
"name": "coverImage",
"type": "/*__@appAccount__*//type/image",
"type": "string",
"required": false
}
],
Expand Down
33 changes: 0 additions & 33 deletions apps/astraplusplus/type/image.jsonc

This file was deleted.

2 changes: 1 addition & 1 deletion apps/astraplusplus/widget/DAO/Funds/TransactionLine.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (direction === "out") {
method: "GET",
headers: {
"Content-Type": "application/json",
"x-api-key": "36f2b87a-7ee6-40d8-80b9-5e68e587a5b5",
"x-api-key": "/*__@replace:pikespeakApiKey__*/",
},
},
);
Expand Down
2 changes: 1 addition & 1 deletion apps/astraplusplus/widget/DAO/Funds/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const widgetOwner = props.widgetOwner || "/*__@appAccount__*/";
const daoId = props.daoId;

const baseApi = "https://api.pikespeak.ai";
const publicApiKey = "36f2b87a-7ee6-40d8-80b9-5e68e587a5b5";
const publicApiKey = "/*__@replace:pikespeakApiKey__*/";

const fetchApiConfig = {
mode: "cors",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const daoId = props.daoId;
const proposalsPerPage = props.proposalsPerPage ?? 10; // Number of proposals to fetch at a time

const apiUrl = `https://api.pikespeak.ai/daos/proposals`;
const publicApiKey = "36f2b87a-7ee6-40d8-80b9-5e68e587a5b5";
const publicApiKey = "/*__@replace:pikespeakApiKey__*/";
const resPerPage = 10;

const defaultMultiSelectMode = Storage.privateGet("multiSelectMode");
Expand Down
2 changes: 1 addition & 1 deletion apps/astraplusplus/widget/DAOs/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (!daoId) {
}
// -- Pikespeak API
const baseApi = "https://api.pikespeak.ai";
const publicApiKey = "36f2b87a-7ee6-40d8-80b9-5e68e587a5b5";
const publicApiKey = "/*__@replace:pikespeakApiKey__*/";

const fetchApiConfig = {
mode: "cors",
Expand Down
2 changes: 1 addition & 1 deletion apps/astraplusplus/widget/DAOs/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const renderHeader = () => (
</div>
);

const publicApiKey = "36f2b87a-7ee6-40d8-80b9-5e68e587a5b5";
const publicApiKey = "/*__@replace:pikespeakApiKey__*/";
const resPerPage = 10;

const forgeUrl = (apiUrl, params) =>
Expand Down
2 changes: 1 addition & 1 deletion tools/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function uploadData(appFolder) {

const argsBase64 = Buffer.from(JSON.stringify(args)).toString("base64");

const command = `near contract call-function as-transaction social.near set base64-args '${argsBase64}' prepaid-gas '300.000 TeraGas' attached-deposit '0.01 NEAR' sign-as ${appAccount} network-config mainnet`;
const command = `near contract call-function as-transaction social.near set base64-args '${argsBase64}' prepaid-gas '300.000 TeraGas' attached-deposit '0.001 NEAR' sign-as ${appAccount} network-config mainnet`;

try {
execSync(command, {
Expand Down
Loading

0 comments on commit a85b83e

Please sign in to comment.