Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new RPC methods from 2.0 #422

Closed
wants to merge 41 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
25877c1
Starting to fix e2e test from 'get block' RPC method
Apr 16, 2024
788439b
update ci
ryo-casper Apr 17, 2024
1053660
fix typo issue in ci script
ryo-casper Apr 17, 2024
ed81ef6
Found out that KeyVariant implementation is incomplete and the enum s…
Apr 17, 2024
2a020df
Merge remote-tracking branch 'origin/devnet-alignments' into devnet-a…
Apr 17, 2024
54bc2f8
enforce code format
ryo-casper Apr 18, 2024
9fb1316
enforce code format
ryo-casper Apr 18, 2024
e5b2440
update info_get_status return type
ryo-casper Apr 18, 2024
46c7c30
query_balance, state_get_account_info, state_get_entity
ryo-casper Apr 18, 2024
dd9e76c
rename block type
ryo-casper Apr 18, 2024
4aea966
query_global_state
ryo-casper Apr 18, 2024
4219cea
update query_global_state
ryo-casper Apr 18, 2024
44d29f7
fix eslint issue
ryo-casper Apr 18, 2024
9f2cdc6
info_get_deploy working
ryo-casper Apr 18, 2024
e738316
deprecate methods
ryo-casper Apr 18, 2024
5401ca2
chain_get_block_transfers working
ryo-casper Apr 18, 2024
99fd85f
chain_get_era_info_by_switch_block, chain_get_era_summary working
ryo-casper Apr 18, 2024
5b11ef6
add query_balance_details method
ryo-casper May 13, 2024
e24d18f
Added AddressableEntity, BidKind and Package variants to StoredValue
May 10, 2024
266cecc
Merge pull request #429 from zajko/stored_value_alignments
zajko May 13, 2024
252b618
wip
May 13, 2024
4c733b6
wip
May 13, 2024
8f2a9da
wip
May 13, 2024
89fe8d8
Merge pull request #430 from zajko/stored_value_alignments_pt2
zajko May 13, 2024
03905d0
Fixed test for StoredValue::LegacyTransfer
May 14, 2024
743b389
Merge pull request #431 from zajko/stored_value_transfer_fix
zajko May 14, 2024
a11140d
Test cleanup, fix for import that broke web tst build
May 14, 2024
991dcb7
Merge pull request #432 from zajko/test-cleanup
zajko May 14, 2024
f0ed929
Fixing discrepancies, a few typos
May 15, 2024
b6b6889
Merge pull request #433 from zajko/bugfixes
zajko May 16, 2024
d51f1c9
Aligning existing e2e tests to work with sidecar in 2.x environment. …
May 16, 2024
d17171f
Siplify usage of AccountIdentifier
May 23, 2024
f6e650f
Removed AccountIdentifier class since it can be functionally replaced…
May 23, 2024
394d34b
Removed unnecessary console.error
May 23, 2024
c022c40
Merge pull request #434 from zajko/fixing_e2e_pt1
zajko May 27, 2024
50c9ba1
Added 'getTransactionInfo' method. Updated implementation of 'getAcco…
May 27, 2024
e5a63e4
Merge pull request #435 from zajko/info_get_transaction_method
hoffmannjan May 27, 2024
0b714f5
feat: new type of KeyVariants
hoffmannjan May 27, 2024
f5e638c
feat: new convention in KeyVariants
hoffmannjan May 27, 2024
022d349
test: added tests
hoffmannjan May 27, 2024
abdc946
Merge pull request #436 from casper-ecosystem/devnet-naming
hoffmannjan May 28, 2024
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
43 changes: 8 additions & 35 deletions .github/workflows/ci-casper-client-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
fail-fast: false
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [16.x, 18.x]
os: [ubuntu-20.04, ubuntu-22.04]
node-version: [18.x]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
env:
FAUCET_PRIV_KEY: 'MC4CAQAwBQYDK2VwBCIEII8ULlk1CJ12ZQ+bScjBt/IxMAZNggClWqK56D1/7CbI' #ci/test-assets/secret-key.pem
NODE_URL: 'http://127.0.0.1:7777/rpc'
HTTP_EVENT_STREAM_URL: 'http://127.0.0.1:9999/events/main'
FAUCET_PRIV_KEY: 'MC4CAQAwBQYDK2VwBCIEIM0OhegYkU4zxgXeZggBdAR6+XkByue+3iZbznGbCUkM' #ci/test-assets/secret-key.pem
NODE_URL: 'http://3.20.57.210:7777/rpc'
HTTP_EVENT_STREAM_URL: 'http://3.20.57.210:9999/events'
HTTPS_EVENT_STREAM_URL: 'https://events.mainnet.casperlabs.io/events/main'
NETWORK_NAME: 'casper-net-1'
NETWORK_NAME: 'dev-net'
RUST_LOG: 'INFO'
VERSION_QUERY: '{"jsonrpc": "2.0", "id": "1", "method": "info_get_status"}'
MAINNET_NODE_URL: 'https://rpc.mainnet.casperlabs.io/rpc'
Expand Down Expand Up @@ -67,32 +67,5 @@ jobs:
- name: Test build
run: npm run build

# test mainnet
- name: Get the mainnet version
id: get-mainnet-version
run: echo "MAINNET_VERSION=$(curl -s -X POST --data-raw '${{ env.VERSION_QUERY }}' -H "Content-Type:application/json" ${{ env.MAINNET_NODE_URL }} | jq -r .result.build_version | cut -d "-" -f 1)" >> "$GITHUB_ENV"

- name: Test RPC - mainnet ${{ env.MAINNET_VERSION }}
run: npx casper-node-launcher-js node v${{ env.MAINNET_VERSION }} --daemon && npm run test:e2e && npx casper-node-launcher-js stop

# test testnet
- name: Get the testnet version
id: get-testnet-version
run: echo "TESTNET_VERSION=$(curl -s -X POST --data-raw '${{ env.VERSION_QUERY }}' -H "Content-Type:application/json" ${{ env.TESTNET_NODE_URL }} | jq -r .result.build_version | cut -d "-" -f 1)" >> "$GITHUB_ENV"

- name: Test RPC - testnet ${{ env.TESTNET_VERSION }}
run: npx casper-node-launcher-js node v${{ env.TESTNET_VERSION }} --daemon && npm run test:e2e && npx casper-node-launcher-js stop

- name: Get Latest Casper-Node Tag Version
run: |
echo "CASPER_TAG_VERSION=$(curl -s ${{ env.GH_API_URL }} | jq -r '.[].name' | grep 'v*' | sort -V | sed 's/_$//' | tail -n1)" >> $GITHUB_ENV
env:
GH_API_URL: 'https://api.github.com/repos/casper-network/casper-node/tags'

- name: Test RPC - Casper Node - ${{ env.CASPER_TAG_VERSION }}
# Runs action if the latest version is different from mainnet and testnet
if: ${{ env.CASPER_TAG_VERSION }} != v${{ env.MAINNET_VERSION }} && ${{ env.CASPER_TAG_VERSION }} != v${{ env.TESTNET_VERSION }}
run: npx casper-node-launcher-js node ${{ env.CASPER_TAG_VERSION }} --daemon && npm run test:e2e && npx casper-node-launcher-js stop

- name: Test RPC - Casper Node - DEV
run: npx casper-node-launcher-js node dev --daemon && npm run test:e2e && npx casper-node-launcher-js stop
- name: Test DevNet
run: npm run test:e2e
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ node_modules

.DS_Store

.env
.env

.turbo/
.yarn/
coverage/
packages/
Loading
Loading