Skip to content

feat!: ist winddown#401

Merged
samsiegart merged 2 commits into
mainfrom
ist-winddown
May 28, 2025
Merged

feat!: ist winddown#401
samsiegart merged 2 commits into
mainfrom
ist-winddown

Conversation

@samsiegart

@samsiegart samsiegart commented May 28, 2025

Copy link
Copy Markdown
Collaborator

Just updates @agoric/web-components and fixes type errors so it builds. This will cause it to use BLD as the fee token in the wallet connection. We don't need to mess with the smart wallet provision flow because the mint limits are 0 so that code path shouldn't happen.

Related: Agoric/dapp-psm#175

@socket-security

socket-security Bot commented May 28, 2025

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@samsiegart samsiegart requested a review from turadg May 28, 2025 06:32
@github-actions

github-actions Bot commented May 28, 2025

Copy link
Copy Markdown

Network:
Commit: 28d9222
Ref: refs/heads/main
IPFS v1 hash: bafybeichliorswni37fh3l2otiylj2akmwheu4uggpqwy5fmtsada6k6ey
CF - DWeb - 4EVERLAND

Comment thread package.json
"type": "module",
"scripts": {
"dev": "vite",
"build": "export NODE_OPTIONS='--max-old-space-size=8192' && tsc && vite build",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why drop tsc? does vite build do typecheck?

either way, I suppose it belongs in lint like in our other packages. you could put it first since it's the fastest and most likely to find a bug

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a lint:types with a warning

Comment thread package.json Outdated
"@agoric/casting": "^0.4.3-u13.0",
"@agoric/cosmic-proto": "^0.3.0",
"@agoric/ertp": "^0.16.2",
"@agoric/ertp": "^0.16.3-u20.0",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if some of these are u20, shouldn't they all be? to avoid duplicates and bundle bloat

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I probably shouldn't have upgraded this to u20, it was unnecessary and I was just confused by typescript errors and red squiggilies in my IDE

Comment thread src/store/adjustVault.ts Outdated
Comment on lines +7 to +10
import {
floorMultiplyBy,
ratioGTE,
} from '@agoric/zoe/src/contractSupport/ratio';
} from '@agoric/zoe/src/contractSupport/index';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is in ERTP now. you might not need @agoric/zoe anymore

Suggested change
import {
floorMultiplyBy,
ratioGTE,
} from '@agoric/zoe/src/contractSupport/ratio';
} from '@agoric/zoe/src/contractSupport/index';
import { floorMultiplyBy, ratioGTE } from '@agoric/ertp/src/ratio.js';

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted to older version of ertp so this won't be included

Comment thread src/store/createVault.ts Outdated
import { AmountMath } from '@agoric/ertp';
import type { Amount, NatValue } from '@agoric/ertp/src/types';
import { ratioGTE } from '@agoric/zoe/src/contractSupport/index';
import { AmountMath } from '@agoric/ertp/src/index';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from @agoric/ertp didn't work?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It did, thanks, fixed

Comment thread yarn.lock
jsesc "^2.5.1"
source-map "^0.5.0"

"@agoric/base-zone@^0.1.1-u20.0":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file got much larger but shouldn't. please adjust the versions. you could use * for '@endo/' versions so that the agoric deps imply them. the agoric deps should also be linked up to a tag like u20.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just used * for '@endo/' versions

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 28, 2025

Copy link
Copy Markdown

Deploying dapp-inter-test with  Cloudflare Pages  Cloudflare Pages

Latest commit: b1eedd8
Status: ✅  Deploy successful!
Preview URL: https://7fd35b90.dapp-inter-test.pages.dev
Branch Preview URL: https://ist-winddown.dapp-inter-test.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 28, 2025

Copy link
Copy Markdown

Deploying agoric-dapp-inter-emerynet with  Cloudflare Pages  Cloudflare Pages

Latest commit: b1eedd8
Status: ✅  Deploy successful!
Preview URL: https://cb2dc885.agoric-dapp-inter-emerynet.pages.dev
Branch Preview URL: https://ist-winddown.agoric-dapp-inter-emerynet.pages.dev

View logs

@samsiegart samsiegart requested a review from turadg May 28, 2025 18:13
Comment thread package.json
"dev": "vite",
"build": "export NODE_OPTIONS='--max-old-space-size=8192' && vite build",
"preview": "vite preview",
"lint:types": "echo 'XXX tsc is not working, even though vite build is successful' && tsc --noEmit",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice solution

makeRatioFromAmounts,
} from '@agoric/zoe/src/contractSupport';
multiplyBy,
} from '@agoric/zoe/src/contractSupport/ratio';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are all in @agoric/ertp now. since this app is going away I won't push for it

@samsiegart samsiegart merged commit 28d9222 into main May 28, 2025
9 checks passed
@samsiegart samsiegart deleted the ist-winddown branch May 28, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants