Skip to content

Commit dcc526a

Browse files
author
gitopia1c2zfrmhra3spfrc2m5ft64hef30guf60lvtcm3
committed
Merge pull request #95 from gitopia-web/sdk47
2 parents 69be828 + fcb12d8 commit dcc526a

10 files changed

Lines changed: 1131 additions & 1211 deletions

File tree

.env.development

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ NEXT_PUBLIC_HEADER_MESSAGE=
1717
NEXT_PUBLIC_GITOPIA_ADDRESS=
1818
NEXT_PUBLIC_NETWORK_RELEASE_NOTES=
1919
NEXT_PUBLIC_GAS_PRICE=0.001ulore
20-
NEXT_PUBLIC_GIT_SERVER_WALLET_ADDRESS=
20+
NEXT_PUBLIC_GIT_SERVER_WALLET_ADDRESS=gitopia1jnq4pk0ene8xne4a43p2a2xpdhf3jqgsgu04n9
2121
NEXT_PUBLIC_PLAUSIBLE_DOMAIN=$BASE_ADDRESS
22-
NEXT_PUBLIC_GRAPHQL_HTTP_URL=
22+
NEXT_PUBLIC_GRAPHQL_HTTP_URL=http://localhost:8000/subgraphs/name/gitopia/feed-alpha
2323
NEXT_PUBLIC_SERVER_URL=http://$BASE_ADDRESS:3000
2424
NEXT_PUBLIC_STORAGE_BRIDGE_WALLET_ADDRESS=
2525
NEXT_PUBLIC_IBC_ASSETS_REPO=https://server.gitopia.com/raw/gitopia/ibc-assets/master
@@ -28,5 +28,5 @@ NEXT_PUBLIC_GITHUB_OAUTH_CLIENT_ID=
2828
NEXT_PUBLIC_REWARD_SERVICE_URL=http://$BASE_ADDRESS:10500
2929
NEXT_PUBLIC_REWARD_START=1694802600
3030
NEXT_PUBLIC_REWARD_DEADLINE=1700073000
31-
NEXT_PUBLIC_FEE_GRANTER=
31+
NEXT_PUBLIC_FEE_GRANTER=gitopia12sjhqc3rqgvu3zpg8ekmwl005rp4ys58ekqg89
3232
NEXT_PUBLIC_NETWORK_TYPE=testnet

.vscode/launch.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Next.js: debug server-side",
6+
"type": "node-terminal",
7+
"request": "launch",
8+
"command": "npm run dev"
9+
},
10+
{
11+
"name": "Next.js: debug client-side",
12+
"type": "chrome",
13+
"request": "launch",
14+
"url": "http://localhost:3000"
15+
},
16+
{
17+
"name": "Next.js: debug full stack",
18+
"type": "node-terminal",
19+
"request": "launch",
20+
"command": "npm run dev",
21+
"serverReadyAction": {
22+
"pattern": "started server on .+, url: (https?://.+)",
23+
"uriFormat": "%s",
24+
"action": "debugWithChrome"
25+
}
26+
}
27+
]
28+
}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## Changelog
22

3+
### v2.2.0 - 30th Aug 2024
4+
5+
- Upgrade cosmjs to v0.32.4 and gitopia-js to v2.0.0
6+
- Handle changes in events after sdk upgrade to v0.47.13
7+
- Increase the gas adjustment to 1.8
8+
- Update api providers
9+
310
### v2.1.4 - 15th July 2024
411

512
- Fix release page

components/repository/commentEditor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ function CommentEditor({
6969
props.notify("Comment created", "info");
7070
setComment("");
7171
if (onSuccess) await onSuccess();
72+
} else {
73+
props.notify(res.rawLog, "error");
7274
}
7375
}
7476
setPostingComment(false);

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616
"dependencies": {
1717
"@apollo/client": "^3.5.10",
1818
"@badrap/bar-of-progress": "^0.1.2",
19-
"@cosmjs/crypto": "^0.29.5",
20-
"@cosmjs/ledger-amino": "^0.30.1",
21-
"@cosmjs/proto-signing": "^0.30.1",
22-
"@cosmjs/stargate": "^0.30.1",
23-
"@gitopia/gitopia-js": "1.9.0",
19+
"@cosmjs/crypto": "^0.32.4",
20+
"@cosmjs/ledger-amino": "^0.32.4",
21+
"@cosmjs/proto-signing": "^0.32.4",
22+
"@cosmjs/stargate": "^0.32.4",
23+
"@gitopia/gitopia-js": "2.0.0",
2424
"@ledgerhq/hw-transport-webhid": "^6.27.13",
2525
"@ledgerhq/hw-transport-webusb": "^6.27.13",
2626
"@next/bundle-analyzer": "^12.0.7",
2727
"@rpldy/upload-button": "0.13.5",
2828
"@rpldy/upload-drop-zone": "0.13.5",
2929
"@rpldy/uploady": "^0.13.5",
30-
"axios": "^1.4.0",
30+
"axios": "^1.7.3",
3131
"better-sqlite3": "^8.2.0",
3232
"bip39": "^3.0.3",
3333
"buffer": "^6.0.3",
3434
"classnames": "^2.3.1",
35-
"cosmjs-types": "^0.7.2",
35+
"cosmjs-types": "^0.9.0",
3636
"crypto-js": "^4.0.0",
3737
"cypress": "^10.8.0",
3838
"daisyui": "^2.50.2",
@@ -50,7 +50,7 @@
5050
"next": "^13.1.6",
5151
"next-connect": "^0.13.0",
5252
"next-redux-wrapper": "^6.0.2",
53-
"pm2": "^5.2.0",
53+
"pm2": "^5.4.2",
5454
"prism-color-variables": "^1.0.1",
5555
"react": "18.2.0",
5656
"react-calendar-heatmap": "^1.8.1",
@@ -89,6 +89,6 @@
8989
"postcss-flexbugs-fixes": "^5.0.2",
9090
"postcss-preset-env": "^8.0.1",
9191
"tailwindcss": "3.1.0",
92-
"typescript": "^4.3.2"
92+
"typescript": "^4.9.5"
9393
}
9494
}

providers.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,14 @@
99
"apiEndpoint": "https://gitopia-api.ibs.team",
1010
"rpcEndpoint": "https://gitopia-rpc.ibs.team"
1111
},
12-
{
13-
"name": "kjnodes",
14-
"apiEndpoint": "https://gitopia.api.kjnodes.com",
15-
"rpcEndpoint": "https://gitopia.rpc.kjnodes.com"
16-
},
1712
{
1813
"name": "Polkachu",
1914
"apiEndpoint": "https://gitopia-api.polkachu.com",
2015
"rpcEndpoint": "https://gitopia-rpc.polkachu.com"
2116
},
2217
{
23-
"name": "WhisperNode",
24-
"apiEndpoint": "https://lcd-gitopia.whispernode.com",
25-
"rpcEndpoint": "https://rpc-gitopia.whispernode.com"
18+
"name": "Staketab",
19+
"apiEndpoint": "https://gitopia-rest.staketab.org",
20+
"rpcEndpoint": "https://gitopia-rpc.staketab.org"
2621
}
2722
]

store/actions/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const sendTransaction = ({
3434
console.log(msgArr);
3535
result = await env.txClient.signAndBroadcast(
3636
msgArr,
37-
{ fee: 1.5, memo },
37+
{ fee: 1.8, memo },
3838
wallet.allowance ? process.env.NEXT_PUBLIC_FEE_GRANTER : null
3939
);
4040
if (wallet.activeWallet?.isLedger) {

store/actions/repository.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,8 +1390,8 @@ export const forkRepository = (
13901390
if (result && result.code === 0) {
13911391
const log = JSON.parse(result.rawLog);
13921392
const taskId =
1393-
log[0].events[0].attributes[
1394-
log[0].events[0].attributes.findIndex((a) => a.key === "TaskId")
1393+
log[0].events[1].attributes[
1394+
log[0].events[1].attributes.findIndex((a) => a.key === "TaskId")
13951395
].value;
13961396
try {
13971397
const res = await watchTask(apiClient, taskId);
@@ -2041,8 +2041,8 @@ export const mergePullRequest = (
20412041
// return result;
20422042
const log = JSON.parse(result.rawLog);
20432043
const taskId =
2044-
log[0].events[0].attributes[
2045-
log[0].events[0].attributes.findIndex((a) => a.key === "TaskId")
2044+
log[0].events[1].attributes[
2045+
log[0].events[1].attributes.findIndex((a) => a.key === "TaskId")
20462046
].value;
20472047
try {
20482048
const res = await watchTask(apiClient, taskId);

store/actions/wallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ export const ibcDeposit = (
11491149
const msg = await env.txClientSecondary.msgTransfer(send);
11501150
const memo = "";
11511151
const result = await env.txClientSecondary.signAndBroadcast([msg], {
1152-
fee: 1.5,
1152+
fee: 1.8,
11531153
memo,
11541154
});
11551155
updateUserBalance(cosmosBankApiClient, cosmosFeegrantApiClient)(

0 commit comments

Comments
 (0)