Skip to content

Commit 0ee6282

Browse files
authored
Merge branch 'polytope-labs:main' into main
2 parents 358c4be + f5deae6 commit 0ee6282

75 files changed

Lines changed: 1372 additions & 650 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish-sdk.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
run: pnpm install
3333

3434
- name: Build SDK
35-
run: pnpm --filter="hyperbridge-sdk" build
35+
run: pnpm --filter="@hyperbridge/sdk" build
3636

3737
- name: Publish to npm
3838
run: |
3939
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
40-
pnpm --filter="hyperbridge-sdk" publish --no-git-checks
40+
pnpm --filter="@hyperbridge/sdk" publish --no-git-checks
4141
env:
4242
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4343

@@ -66,22 +66,26 @@ jobs:
6666
id: changelog
6767
run: |
6868
if [ -n "${{ steps.get_previous_tag.outputs.PREVIOUS_TAG }}" ]; then
69-
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
70-
echo "## Changes since ${{ steps.get_previous_tag.outputs.PREVIOUS_TAG }}" >> $GITHUB_OUTPUT
71-
git log --pretty=format:"* %s (%h)" ${{ steps.get_previous_tag.outputs.PREVIOUS_TAG }}..${{ steps.get_version.outputs.VERSION }} >> $GITHUB_OUTPUT
72-
echo "EOF" >> $GITHUB_OUTPUT
69+
{
70+
echo "CHANGELOG<<EOF"
71+
echo "## Changes since ${{ steps.get_previous_tag.outputs.PREVIOUS_TAG }}"
72+
git log --pretty=format:"* %s (%h)" ${{ steps.get_previous_tag.outputs.PREVIOUS_TAG }}..${{ steps.get_version.outputs.VERSION }} >> $GITHUB_OUTPUT
73+
echo "EOF"
74+
} >> $GITHUB_OUTPUT
7375
else
74-
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
75-
echo "## Initial Release" >> $GITHUB_OUTPUT
76-
git log --pretty=format:"* %s (%h)" >> $GITHUB_OUTPUT
77-
echo "EOF" >> $GITHUB_OUTPUT
76+
{
77+
echo "CHANGELOG<<EOF"
78+
echo "## Initial Release"
79+
git log --pretty=format:"* %s (%h)"
80+
echo "EOF"
81+
} >> $GITHUB_OUTPUT
7882
fi
7983
8084
- name: Create GitHub Release
8185
uses: softprops/action-gh-release@v1
8286
with:
83-
tag_name: ${{ steps.get_version.outputs.VERSION }}
84-
name: Release ${{ steps.get_version.outputs.VERSION }}
87+
tag_name: hyperbridge-sdk-${{ steps.get_version.outputs.VERSION }}
88+
name: Hyperbridge SDK ${{ steps.get_version.outputs.VERSION }}
8589
body: ${{ steps.changelog.outputs.CHANGELOG }}
8690
draft: true
8791
env:

.github/workflows/test-sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
sleep 10 # Give it a few more seconds to fully initialize
104104
105105
- name: Run SDK tests
106-
run: pnpm --filter="hyperbridge-sdk" test
106+
run: pnpm --filter="@hyperbridge/sdk" test
107107

108108
- name: Run Intent Filler tests
109109
run: pnpm --filter="filler" test

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ Thumbs.db
7777
.tsconfig
7878
.tsbuildinfo
7979

80-
evm-ws.json
81-
substrate-ws.json
80+
env-config.json
8281
chain-ids-by-genesis.ts
8382
chains-by-ismp-host.ts
8483

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"packages/*"
88
],
99
"scripts": {
10-
"build": "pnpm --filter=\"hyperbridge-sdk\" build && pnpm --filter=\"@hyperbridge/indexer\" build && pnpm --filter=\"@hyperbridge/filler\" build",
10+
"build": "pnpm --filter=\"@hyperbridge/sdk\" build && pnpm --filter=\"@hyperbridge/indexer\" build && pnpm --filter=\"@hyperbridge/filler\" build",
1111
"test": "pnpm --filter=\"*\" test",
1212
"lint": "pnpm --filter=\"*\" lint",
1313
"format": "pnpm --filter=\"*\" format",

packages/filler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"node": ">=18.0.0"
4343
},
4444
"dependencies": {
45+
"@hyperbridge/sdk": "workspace:*",
4546
"@polkadot/api": "^15.9.1",
4647
"@polkadot/util-crypto": "^13.4.4",
4748
"@safe-global/api-kit": "^3.0.1",
@@ -50,7 +51,6 @@
5051
"ckb-mmr-wasm": "link:wasm-b",
5152
"dotenv": "^16.4.7",
5253
"ethers": "^5.7.2",
53-
"hyperbridge-sdk": "workspace:*",
5454
"p-queue": "^8.1.0",
5555
"scale-ts": "^1.6.1",
5656
"viem": "^2.23.5"

packages/filler/pnpm-lock.yaml

Lines changed: 15 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/filler/src/core/event-monitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
DUMMY_PRIVATE_KEY,
77
hexToString,
88
DecodedOrderPlacedLog,
9-
} from "hyperbridge-sdk"
9+
} from "@hyperbridge/sdk"
1010
import { INTENT_GATEWAY_ABI } from "@/config/abis/IntentGateway"
1111
import { PublicClient } from "viem"
1212
import { addresses } from "@/config/chain"

packages/filler/src/core/filler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { chainIds } from "@/config/chain"
22
import { EventMonitor } from "./event-monitor"
33
import { FillerStrategy } from "@/strategies/base"
4-
import { Order, FillerConfig, ChainConfig, DUMMY_PRIVATE_KEY, ADDRESS_ZERO, bytes20ToBytes32 } from "hyperbridge-sdk"
4+
import { Order, FillerConfig, ChainConfig, DUMMY_PRIVATE_KEY, ADDRESS_ZERO, bytes20ToBytes32 } from "@hyperbridge/sdk"
55
import pQueue from "p-queue"
66
import { ChainClientManager, ChainConfigService, ContractInteractionService } from "@/services"
77
import { fetchTokenUsdPriceOnchain } from "@/utils"
@@ -76,7 +76,7 @@ export class IntentFiller {
7676
orderValue,
7777
)
7878
console.log(
79-
`For order ${order.id}, required confirmations: ${requiredConfirmations},
79+
`For order ${order.id}, required confirmations: ${requiredConfirmations},
8080
current confirmations: ${currentConfirmations}`,
8181
)
8282

packages/filler/src/services/ChainClientManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PublicClient, WalletClient, createPublicClient, createWalletClient, http, type Chain } from "viem"
22
import { privateKeyToAccount } from "viem/accounts"
3-
import { Order, HexString, ChainConfig } from "hyperbridge-sdk"
3+
import { Order, HexString, ChainConfig } from "@hyperbridge/sdk"
44
import { ChainConfigService } from "./ChainConfigService"
55
import { viemChains } from "@/config/chain"
66

packages/filler/src/services/ChainConfigService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { toHex } from "viem"
2-
import { ChainConfig, HexString } from "hyperbridge-sdk"
2+
import { ChainConfig, HexString } from "@hyperbridge/sdk"
33
import {
44
addresses,
55
assets,

0 commit comments

Comments
 (0)