Skip to content

Commit

Permalink
Merge pull request #2061 from IntersectMBO/bump-csl-version
Browse files Browse the repository at this point in the history
chore: bump to csl 12.1.0
  • Loading branch information
Ryun1 authored Sep 19, 2024
2 parents ecdfd24 + 0dab8a9 commit 15a0fa9
Show file tree
Hide file tree
Showing 6 changed files with 5,449 additions and 800 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ changes.

- Bump cardano-db-sync 13.5.0.2 [Issue 1945](https://github.com/IntersectMBO/govtool/issues/1945)
- Add Mainnet link to network banner [Issue 2002](https://github.com/IntersectMBO/govtool/issues/2002)
- Bump CSL version to 12.1.0

### Removed

Expand Down
8 changes: 4 additions & 4 deletions docs/architecture/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Frontend is a React application using Vite as a built tool to enhance developmen
Direct voter uses following CSL services:
- TransactionBuilder - to build the transaction
- CertificatesBuilder - to build the delegation certificate
- DrepRegistration - to build the DRep registration certificate
- DRepRegistration - to build the DRep registration certificate

- **DRep** - DRep is a Decentralized Representative which has a metadata and can delegate ADA to other DReps. DRep registration and delegation are separate processes. DReps are visible in the DRep directory.

Expand All @@ -46,9 +46,9 @@ Frontend is a React application using Vite as a built tool to enhance developmen
DRep uses following CSL services:
- TransactionBuilder - to build the transaction
- CertificatesBuilder - to build the DRep registration certificate
- DrepRegistration - to build the DRep registration certificate
- DrepDeregistration - to build the DRep deregistration certificate
- DrepUpdate - to build the DRep update certificate
- DRepRegistration - to build the DRep registration certificate
- DRepDeregistration - to build the DRep deregistration certificate
- DRepUpdate - to build the DRep update certificate

**Note**

Expand Down
9 changes: 4 additions & 5 deletions govtool/frontend/package-lock.json

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

2 changes: 1 addition & 1 deletion govtool/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@emurgo/cardano-serialization-lib-asmjs": "12.0.0-beta.2",
"@emurgo/cardano-serialization-lib-asmjs": "^12.1.0",
"@hookform/resolvers": "^3.3.1",
"@intersect.mbo/intersectmbo.org-icons-set": "^1.0.8",
"@intersect.mbo/pdf-ui": "^0.3.9",
Expand Down
16 changes: 8 additions & 8 deletions govtool/frontend/src/context/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import {
CertificatesBuilder,
Credential,
DRep,
DrepDeregistration,
DrepRegistration,
DrepUpdate,
DRepDeregistration,
DRepRegistration,
DRepUpdate,
Ed25519KeyHash,
GovernanceActionId,
LinearFee,
Expand Down Expand Up @@ -694,14 +694,14 @@ const CardanoProvider = (props: Props) => {
if (cip95MetadataURL && cip95MetadataHash) {
const anchor = generateAnchor(cip95MetadataURL, cip95MetadataHash);
// Create cert object using one Ada as the deposit
dRepRegCert = DrepRegistration.new_with_anchor(
dRepRegCert = DRepRegistration.new_with_anchor(
dRepCred,
BigNum.from_str(`${epochParams?.drep_deposit}`),
anchor,
);
} else {
console.error(t("errors.notUsingAnchor"));
dRepRegCert = DrepRegistration.new(
dRepRegCert = DRepRegistration.new(
dRepCred,
BigNum.from_str(`${epochParams?.drep_deposit}`),
);
Expand Down Expand Up @@ -730,9 +730,9 @@ const CardanoProvider = (props: Props) => {
if (cip95MetadataURL && cip95MetadataHash) {
const anchor = generateAnchor(cip95MetadataURL, cip95MetadataHash);
// Create cert object using one Ada as the deposit
dRepUpdateCert = DrepUpdate.new_with_anchor(dRepCred, anchor);
dRepUpdateCert = DRepUpdate.new_with_anchor(dRepCred, anchor);
} else {
dRepUpdateCert = DrepUpdate.new(dRepCred);
dRepUpdateCert = DRepUpdate.new(dRepCred);
}
return Certificate.new_drep_update(dRepUpdateCert);
} catch (e) {
Expand All @@ -750,7 +750,7 @@ const CardanoProvider = (props: Props) => {
const dRepKeyHash = Ed25519KeyHash.from_hex(dRepID);
const dRepCred = Credential.from_keyhash(dRepKeyHash);

const dRepRetirementCert = DrepDeregistration.new(
const dRepRetirementCert = DRepDeregistration.new(
dRepCred,
BigNum.from_str(voterDeposit),
);
Expand Down
Loading

0 comments on commit 15a0fa9

Please sign in to comment.