Skip to content

Commit

Permalink
merge beta to feat/cctp
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKozAllB committed Mar 13, 2024
2 parents ce5b22b + 0c05e51 commit 65f291e
Show file tree
Hide file tree
Showing 77 changed files with 7,588 additions and 2,995 deletions.
15 changes: 13 additions & 2 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,16 @@
"txid",
"CCTP",
"cctp",
"Soroban"
"Soroban",
"Holešky",
"STLR",
"alphanum",
"retval",
"typeahead",
"Timepoint",
"Typepoint",
"futurenet",
"Vals"
],
"flagWords": [],
"ignorePaths": [
Expand All @@ -45,6 +54,8 @@
"tsconfig.json",
"node_modules/**",
"src/configs/",
"src/__tests__/services/liquidity-pool/sol/data/"
"src/__tests__/services/liquidity-pool/sol/data/",
"src/services/models/srb/token-contract.ts",
"src/services/utils/srb/assembled-tx.ts"
]
}
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ $ npm install @allbridge/bridge-core-sdk
### 1. Initialize SDK
#### 1.1 Initialize SDK instance with your node Rpc urls (RECOMMENDED)
```ts
import { AllbridgeCoreSdk, nodeUrlsDefault } from "@allbridge/bridge-core-sdk";
import { AllbridgeCoreSdk, nodeRpcUrlsDefault } from "@allbridge/bridge-core-sdk";
// Connections to blockchains will be made through your rpc-urls passed during initialization
const sdk = new AllbridgeCoreSdk({
...nodeUrlsDefault,
...nodeRpcUrlsDefault,
TRX: "your trx-rpc-url",
ETH: "your eth-rpc-url"
});
Expand All @@ -61,8 +61,8 @@ const rawTx = await sdk.bridge.rawTxBuilder.send(sendParams);

#### 1.2 Initialize SDK instance (using passed provider for blockchains connections)
```ts
import { AllbridgeCoreSdk, nodeUrlsDefault } from "@allbridge/bridge-core-sdk";
const sdk = new AllbridgeCoreSdk(nodeUrlsDefault);
import { AllbridgeCoreSdk, nodeRpcUrlsDefault } from "@allbridge/bridge-core-sdk";
const sdk = new AllbridgeCoreSdk(nodeRpcUrlsDefault);
// The Provider parameter must be passed in order for it to be used to connect to the blockchain, for example:
const rawTx = await sdk.bridge.rawTxBuilder.send(sendParams, provider);
```
Expand Down
3 changes: 2 additions & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "index.js",
"description": "",
"scripts": {
"pnpmi": "rm -rf node_modules && pnpm i",
"pnpmi": "cd ../ && pnpm build && cd examples && rm -rf node_modules && pnpm i",
"compile": "tsc",
"prettier": "prettier \"src/**/*.ts\" --write",
"lint": "eslint src --ext .ts",
Expand All @@ -20,6 +20,7 @@
"run:bridge:evm:sendTokens": "ts-node src/examples/bridge/evm/evm-send-tokens.ts",
"run:bridge:solana:send": "ts-node src/examples/bridge/solana/sol-build-send-tx.ts",
"run:bridge:solana:swap": "ts-node src/examples/bridge/solana/sol-build-swap-tx.ts",
"run:bridge:srb:fullExample": "ts-node src/examples/bridge/srb/srb-send-full-example.ts",
"run:bridge:trx:approveAndSend": "ts-node src/examples/bridge/trx/trx-build-approve-and-send-tx.ts",
"run:bridge:trx:approveAndSendWithStables": "ts-node src/examples/bridge/trx/trx-build-approve-and-send-tx-gas-fee-with-stables.ts",
"run:bridge:trx:swap": "ts-node src/examples/bridge/trx/trx-build-swap-tx.ts",
Expand Down
Loading

0 comments on commit 65f291e

Please sign in to comment.