Skip to content

Commit

Permalink
dist files fix (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
halo3mic authored Aug 2, 2024
1 parent b899899 commit c31bfff
Show file tree
Hide file tree
Showing 12 changed files with 118 additions and 51 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
- name: Build
run: yarn build

# - name: Check dist files are up to date
# run: |
# if [ -n "$(git status --porcelain dist)" ]; then
# echo "error: dist files are not up to date"
# exit 1
# fi
- name: Check dist files are up to date
run: |
if [ -n "$(git status --porcelain dist)" ]; then
echo "error: dist files are not up to date"
exit 1
fi
10 changes: 6 additions & 4 deletions dist/src/confidential-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ export declare class ConfidentialComputeRequest {
confidentialComputeRecord: ConfidentialComputeRecord;
readonly confidentialInputs: string;
constructor(confidentialComputeRecord: ConfidentialComputeRecord, confidentialInputs?: string);
signWithAsyncCallback(callback: (hash: string) => Promise<Signature>, useEIP712?: boolean): Promise<ConfidentialComputeRequest>;
signWithCallback(callback: (hash: string) => Signature, useEIP712?: boolean): ConfidentialComputeRequest;
signWithWallet(wallet: Wallet, useEIP712?: boolean): ConfidentialComputeRequest;
signWithPK(pk: string, useEIP712?: boolean): ConfidentialComputeRequest;
rlpEncode(): string;
signWithAsyncCallback(callback: (hash: string) => Promise<Signature>): Promise<ConfidentialComputeRequest>;
signWithCallback(callback: (hash: string) => Signature): ConfidentialComputeRequest;
signWithWallet(wallet: Wallet): ConfidentialComputeRequest;
signWithPK(pk: string): ConfidentialComputeRequest;
}
export interface CRecordLike {
to?: string;
Expand Down Expand Up @@ -36,6 +36,8 @@ export declare class ConfidentialComputeRecord {
signature: null | SigSplit;
constructor(crecord: CRecordLike);
checkFields(keys: Array<string>): void;
hash(): string;
eip712Hash(): string;
}
type SigSplit = {
r: string;
Expand Down
101 changes: 67 additions & 34 deletions dist/src/confidential-types.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/confidential-types.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions dist/src/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/tests/eip712.spec.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
Loading

0 comments on commit c31bfff

Please sign in to comment.