Skip to content

Commit

Permalink
Updated readme and yarn version
Browse files Browse the repository at this point in the history
  • Loading branch information
codebycarson committed Sep 19, 2024
1 parent e758afb commit ae07492
Show file tree
Hide file tree
Showing 9 changed files with 306,874 additions and 17,247 deletions.
148,049 changes: 148,049 additions & 0 deletions .yarn/releases/yarn-1.22.22.cjs

Large diffs are not rendered by default.

925 changes: 0 additions & 925 deletions .yarn/releases/yarn-4.5.0.cjs

This file was deleted.

148,049 changes: 148,049 additions & 0 deletions .yarn/releases/yarn-classic.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


yarn-path ".yarn/releases/yarn-1.22.22.cjs"
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.0.cjs
yarnPath: .yarn/releases/yarn-classic.cjs
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,5 @@
"typedoc": "^0.25.12",
"typedoc-material-theme": "^1.0.2",
"typescript": "5.4.4"
},
"packageManager": "[email protected]"
}
}
6 changes: 6 additions & 0 deletions packages/ledger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sei-js/ledger

## 0.0.0-internal-20240916142742

### Patch Changes

- Updated dependency libraries, added a few typescript types to responses

## 1.1.0

### Minor Changes
Expand Down
16 changes: 9 additions & 7 deletions packages/ledger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yarn add @sei-js/ledger
## Usage
```typescript
import {
coins,
coin,
SigningStargateClient,
StdFee
} from "@cosmjs/stargate";
Expand All @@ -21,21 +21,23 @@ import {

const testApp = async () => {
const validatorAddress = "seivaloper1sq7x0r2mf3gvwr2l9amtlye0yd3c6dqa4th95v";
const rpcUrl = "https://rpc-testnet.sei-apis.com/";
const rpcUrl = "https://rpc-arctic-1.sei-apis.com";
const memo = "Delegation";
const path = "m/44'/60'/0'/0/0";

const {app} = await createTransportAndApp();
const {nativeAddress} = await getAddresses(app, path);
const ledgerSigner = new SeiLedgerOfflineAminoSigner(app, path)
const signingStargateClient = await SigningStargateClient.connectWithSigner(rpcUrl, ledgerSigner)
const { app } = await createTransportAndApp();

const cosmosAddressData = await app.getCosmosAddress(hdPath, true);

const ledgerOfflineAminoSigner = new SeiLedgerOfflineAminoSigner(app, hdPath);
const signingStargateClient = await getSigningStargateClient(rpcUrl, ledgerOfflineAminoSigner)

const msgDelegate = {
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
value: {
delegatorAddress: nativeAddress.address,
validatorAddress: validatorAddress,
amount: coins(500, "usei"),
amount: coin(500, "usei"),
},
};

Expand Down
Loading

0 comments on commit ae07492

Please sign in to comment.