Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm: add semicolon consistently #98

Merged
merged 1 commit into from
Mar 10, 2025
Merged
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
16 changes: 8 additions & 8 deletions src/wasm/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type BtcSignMessageSignature = {
sig: Uint8Array,
recid: bigint,
electrumSig65: Uint8Array,
}
};
// nonce, gasPrice, gasLimit and value must be big-endian encoded, no trailing zeroes.
type EthTransaction = {
nonce: Uint8Array;
Expand Down Expand Up @@ -93,18 +93,18 @@ type CardanoInput = {
type CardanoAssetGroupToken = {
assetName: Uint8Array;
value: bigint;
}
};
type CardanoAssetGroup = {
policyId: Uint8Array;
tokens: CardanoAssetGroupToken[];
}
};
type CardanoOutput = {
encodedAddress: string;
value: bigint;
scriptConfig?: CardanoScriptConfig;
assetGroups?: CardanoAssetGroup[];
}
type CardanoDrepType = 'keyHash' | 'scriptHash' | 'alwaysAbstain' | 'alwaysNoConfidence'
};
type CardanoDrepType = 'keyHash' | 'scriptHash' | 'alwaysAbstain' | 'alwaysNoConfidence';
type CardanoCertificate =
| {
stakeRegistration: {
Expand Down Expand Up @@ -132,7 +132,7 @@ type CardanoCertificate =
type CardanoWithdrawal = {
keypath: Keypath;
value: bigint;
}
};
type CardanoTransaction = {
network: CardanoNetwork;
inputs: CardanoInput[];
Expand All @@ -148,7 +148,7 @@ type CardanoTransaction = {
type CardanoShelleyWitness = {
signature: Uint8Array;
publicKey: Uint8Array;
}
};
type CardanoSignTransactionResult = {
shelleyWitnesses: CardanoShelleyWitness[];
};
Expand All @@ -157,7 +157,7 @@ type Error = {
message: string;
// original JS error if code === 'unknown-js'
err?: any;
}
};
"#;

#[wasm_bindgen]
Expand Down