Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 7 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,15 @@ jobs:
run: |
if [ ! -d ".git" ]; then
git clone https://github.com/${{ github.repository }}.git .
else
# Self-hosted runners keep the workspace between runs; ensure clean checkout
git reset --hard HEAD
git clean -fdx
fi
git fetch origin ${{ github.sha }} --depth=1 --tags
git checkout ${{ github.sha }}
git checkout -f ${{ github.sha }}
git reset --hard HEAD
git clean -fdx

- name: Determine channel
id: channel
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ jobs:
run: |
if [ ! -d ".git" ]; then
git clone --depth=1 https://github.com/${{ github.repository }}.git .
else
# Self-hosted runners keep the workspace between runs; ensure clean checkout
git reset --hard HEAD
git clean -fdx
fi
git fetch origin ${{ github.event.pull_request.head.sha || github.sha }} --depth=1
git checkout ${{ github.event.pull_request.head.sha || github.sha }}
git checkout -f ${{ github.event.pull_request.head.sha || github.sha }}
git reset --hard HEAD
git clean -fdx

- name: Detect changes
id: changes
Expand Down
4 changes: 2 additions & 2 deletions miniapps/forge/src/hooks/useForge.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const mockForgeParams: ForgeParams = {
externalAsset: 'ETH',
depositAddress: '0xdeposit123',
amount: '1.5',
externalAccount: { address: '0xexternal123', chain: 'eth' },
externalAccount: { address: '0xexternal123', chain: 'eth', publicKey: '0x' },
internalChain: 'bfmeta',
internalAsset: 'BFM',
internalAccount: { address: 'bfmeta123', chain: 'bfmeta' },
internalAccount: { address: 'bfmeta123', chain: 'bfmeta', publicKey: '0x' },
}

describe('useForge', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/bio-sdk/dist/index.cjs.map

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions packages/bio-sdk/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export declare interface BioAccount {
address: string;
chain: string;
name?: string;
/** Public key (hex encoded) */
publicKey: string;
}

/** RPC error codes */
Expand Down Expand Up @@ -63,16 +65,22 @@ export declare interface BioMethods {
chain?: string;
exclude?: string;
}) => Promise<BioAccount>;
/** Sign a message */
/** Sign a message, returns signature and public key (hex) */
bio_signMessage: (params: {
message: string;
address: string;
}) => Promise<string>;
/** Sign typed data */
}) => Promise<{
signature: string;
publicKey: string;
}>;
/** Sign typed data, returns signature and public key (hex) */
bio_signTypedData: (params: {
data: object;
address: string;
}) => Promise<string>;
}) => Promise<{
signature: string;
publicKey: string;
}>;
/** Create an unsigned transaction (no signature, no broadcast) */
bio_createTransaction: (params: TransferParams) => Promise<BioUnsignedTransaction>;
/** Sign an unsigned transaction (requires user confirmation) */
Expand Down
2 changes: 1 addition & 1 deletion packages/bio-sdk/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/bio-sdk/dist/index.umd.js.map

Large diffs are not rendered by default.