Skip to content

Commit a37f3a5

Browse files
authored
fix: mainnet subgraph url (#29)
1 parent 5068f58 commit a37f3a5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"test": "echo \"Error: no test specified\" && exit 1",
77
"prepare": "husky install",
88
"start:testnet": "LINEAR_BOS_URL=https://test.near.org/linear-builder.testnet/widget/LiNEAR && open $LINEAR_BOS_URL && echo \"Preview at: $LINEAR_BOS_URL\"",
9-
"dev": "yarn start:testnet && bos-loader linear-builder.testnet --path src"
9+
"start:mainnet": "LINEAR_BOS_URL=https://dev.near.org/linearprotocol.near/widget/LiNEAR && open $LINEAR_BOS_URL && echo \"Preview at: $LINEAR_BOS_URL\"",
10+
"dev": "yarn start:testnet && bos-loader linear-builder.testnet --path src",
11+
"dev:mainnet": "yarn start:mainnet && bos-loader linearprotocol.near --path src"
1012
},
1113
"repository": {
1214
"type": "git",

src/LiNEAR/Data/Stake.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const accountId = props.accountId || context.accountId;
44
const LiNEAR_DECIMALS = 24;
55
const subgraphApiUrl =
66
context.networkId === "mainnet"
7-
? "https://gateway-arbitrum.network.thegraph.com/api/70c104a4cbe006bc60a3701a27d959bf/subgraphs/id/H5F5XGL2pYCBY89Ycxzafq2RkLfqJvM47X533CwwPNjg"
7+
? "https://api.studio.thegraph.com/query/76854/linear/version/latest"
88
: "https://api.studio.thegraph.com/query/76854/linear-testnet/version/latest";
99

1010
const { config, onLoad } = props;

0 commit comments

Comments
 (0)