Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup NodeJS and npm
uses: actions/setup-node@v3
with:
node-version: "lts/hydrogen"
node-version: "lts/iron"
cache: "yarn"

- name: yarn install
Expand Down
16 changes: 1 addition & 15 deletions .github/workflows/test-ts-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ jobs:
- name: Checkout ts-sdk Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
submodules: true

- name: Setup NodeJS with yarn caching
uses: actions/setup-node@v3
with:
node-version: "lts/hydrogen"
node-version: "lts/iron"
cache: "yarn"

- name: yarn install
Expand Down Expand Up @@ -64,16 +63,3 @@ jobs:
uses: MishaKav/jest-coverage-comment@main
with:
coverage-summary-path: ./coverage/coverage-summary.json

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

# Re-enable when we can reliable have green tests
# - name: "SonarQube Quality Gate"
# uses: sonarsource/sonarqube-quality-gate-action@master
# timeout-minutes: 5
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ modules.xml
.idea/misc.xml
*.ipr

# Sonarlint plugin
.idea/sonarlint

### Node ###
# Logs
logs
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/hydrogen
lts/iron
3 changes: 0 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ modules.xml
.idea/misc.xml
*.ipr

# Sonarlint plugin
.idea/sonarlint

### Node ###
# Logs
logs
Expand Down
7 changes: 1 addition & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
{
"sonarlint.connectedMode.project": {
"connectionId": "https-sonarqube-nibiru-fi-",
"projectKey": "NibiruChain_ts-sdk_AYuRILBdmUr0onRz5AJl"
}
}
{}
2 changes: 1 addition & 1 deletion nibiru
Submodule nibiru updated 4488 files
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"prettier": "prettier --write . --ignore-path .gitignore",
"eslint": "eslint --fix . --ignore-path .gitignore",
"semantic-release": "semantic-release",
"prepare": "husky install"
"wagmi:generate": "wagmi generate",
"prepare": "husky install",
"postinstall": "[ -n \"$CI\" ] || git submodule update --init --recursive"
},
"dependencies": {
"@cosmjs/cosmwasm-stargate": "^0.32.3",
Expand All @@ -47,6 +49,7 @@
"cross-fetch": "4.0.0",
"graphql": "^16.9.0",
"graphql-ws": "^5.16.0",
"wagmi": "^2.19.2",
"pako": "^2.1.0"
},
"peerDependencies": {
Expand All @@ -63,6 +66,7 @@
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/typescript": "^4.0.1",
"@nibiruchain/solidity": "^0.0.7",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/jest": "^29.1.2",
Expand All @@ -71,6 +75,7 @@
"@types/pako": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.30.7",
"@wagmi/cli": "^2.7.1",
"barrelsby": "^2.8.1",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
Expand All @@ -90,7 +95,7 @@
"typedoc": "^0.24.8",
"typedoc-plugin-markdown": "^3.14.0",
"typedoc-plugin-missing-exports": "^2.1.0",
"typescript": "^4.4.3",
"typescript": "^5.4.5",
"ws": "^8.14.1"
},
"lint-staged": {
Expand Down
1 change: 1 addition & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -e
git submodule init
git submodule update

yarn wagmi:generate
yarn gql-generate & yarn proto-gen
yarn build:tsc
yarn docgen
1 change: 1 addition & 0 deletions scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ rm $PKG_OUT_DIR/index.gogoproto.ts
rm $PKG_OUT_DIR/index.amino.ts
rm $PKG_OUT_DIR/index.cosmos.msg.v1.ts
rm $PKG_OUT_DIR/index.cosmos.msg.ts
rm $PKG_OUT_DIR/index.google.ts

sed 's/export \* as gogoproto from \"\.\/index\.gogoproto\"\;//' $PKG_OUT_DIR/index.ts >tmpfile && mv tmpfile $PKG_OUT_DIR/index.ts
sed 's/export \* as amino from \"\.\/index\.amino\"\;//' $PKG_OUT_DIR/index.ts >tmpfile && mv tmpfile $PKG_OUT_DIR/index.ts
Expand Down
17 changes: 0 additions & 17 deletions sonar-project.properties

This file was deleted.

16 changes: 16 additions & 0 deletions src/evm-core/const.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export const ADDR_WNIBI = "0x0CaCF669f8446BeCA826913a3c6B96aCD4b02a97"

/**
* ERIS_EVM_ADDR: Proxy address for a contract points to an ErisEvm.sol
* implementation on mainnet.
* */
export const ADDR_ERIS_EVM = "0xF8647cB104e87fFf4B886dC6BB9F2F01596d400D"

/** Constants used in the ErisEvm.sol implementation on Nibiru. */
export const ERIS_CONST = {
ST_NIBI_ERC20_ADDR: "0xcA0a9Fb5FBF692fa12fD13c0A900EC56Bb3f0a7b",
ST_NIBI_BANK_DENOM:
"tf/nibi1udqqx30cw8nwjxtl4l28ym9hhrp933zlq8dqxfjzcdhvl8y24zcqpzmh8m/ampNIBI",
WASM_HUB_ADDR:
"nibi1udqqx30cw8nwjxtl4l28ym9hhrp933zlq8dqxfjzcdhvl8y24zcqpzmh8m",
}
Loading
Loading