Skip to content

Commit

Permalink
Been a While (#36)
Browse files Browse the repository at this point in the history
* big update

* node 18

* and nvmrc
  • Loading branch information
joepetrowski authored Jan 9, 2024
1 parent 97fd6c7 commit a4df0de
Show file tree
Hide file tree
Showing 8 changed files with 1,585 additions and 2,093 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
18
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ to construct, sign, and submit a transaction to a Substrate-based chain.

Tested on:

- Polkadot v0.9.13
- Sidecar v11.3.3
- Txwrapper Core v1.2.20
- Polkadot v1,000,001
- Sidecar v17.3.4
- Txwrapper Polkadot v7.2.0

### Start a Node

Expand Down Expand Up @@ -45,10 +45,10 @@ the base info (like IP/port for Sidecar) and an array of transactions you want t
Run `yarn start` and you will get:

```bash
Chain Name: Polkadot CC1
Chain Name: Polkadot
Spec Name: polkadot
Network Version: 14
Transaction Version: 2
Network Version: 1000001
Transaction Version: 24

Transaction Details:
Sending Account: 15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
"lint": "tsc --noEmit && eslint . --ext ts"
},
"dependencies": {
"@polkadot/api": "9.5.1",
"@polkadot/util-crypto": "10.1.10",
"@substrate/txwrapper-polkadot": "4.0.1",
"@polkadot/api": "10.11.2",
"@polkadot/util-crypto": "12.6.2",
"@substrate/txwrapper-polkadot": "7.2.0",
"axios": "^1.1.2",
"node-fetch": "^3.2.10",
"ts-node": "^10.9.1",
"typescript": "4.8.4"
"typescript": "4.9.4"
},
"devDependencies": {
"@substrate/dev": "^0.6.5",
"readline": "^1.3.0"
},
"resolutions": {
"@polkadot/api": "9.5.1",
"typescript": "4.8.4"
"@polkadot/api": "10.11.2",
"typescript": "4.9.4"
}
}
8 changes: 4 additions & 4 deletions src/metadata.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/payloadConstructors/balancesTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export async function doBalancesTransfer(userInputs: TransferInputs): Promise<vo
amount: userInputs.transferValue,
});

const unsigned = methods.balances.transfer(
const unsigned = methods.balances.transferAllowDeath(
{
value: userInputs.transferValue,
dest: userInputs.recipientAddress.id,
dest: { id: userInputs.recipientAddress.id },
},
baseTxInfo,
optionsWithMeta,
Expand Down
2 changes: 1 addition & 1 deletion src/util/nodeInteraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface PostResponseData {

// Get information about the chain.
export async function getChainData(sidecarHost: string): Promise<ChainData> {
const endpoint = `${sidecarHost}transaction/material`;
const endpoint = `${sidecarHost}transaction/material?noMeta=false&metadata=scale`;
const artifacts = await sidecarGet<MaterialsResponse>(endpoint);
return {
blockNumber: artifacts.at.height,
Expand Down
3,634 changes: 1,563 additions & 2,071 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit a4df0de

Please sign in to comment.