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

feat(installBundle): add :bundles follower to confirm installation #39

Merged
merged 6 commits into from
Feb 20, 2024

Conversation

0xpatrickdev
Copy link
Collaborator

Copy link

netlify bot commented Jan 20, 2024

Deploy Preview for cosmos-proposal-builder ready!

Name Link
🔨 Latest commit 96e07dc
🔍 Latest deploy log https://app.netlify.com/sites/cosmos-proposal-builder/deploys/65af2ecfc8085800082e63b8
😎 Deploy Preview https://deploy-preview-39--cosmos-proposal-builder.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@dckc dckc left a comment

Choose a reason for hiding this comment

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

I don't see any critical problems.

<span
className="text-sm text-blue-500 hover:text-blue-700 underline cursor-pointer"
onClick={async () => {
await window.navigator.clipboard.writeText(endoZipBase64Sha512);
Copy link
Contributor

Choose a reason for hiding this comment

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

what would it cost to avoid ambient access to window?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

src/config/agoric/agoric.tsx Outdated Show resolved Hide resolved

const Agoric = () => {
const { netName } = useNetwork();
const { walletAddress, stargateClient } = useWallet();
const proposalFormRef = useRef<HTMLFormElement>(null);
const corEvalFormRef = useRef<HTMLFormElement>(null);
const bundleFormRef = useRef<HTMLFormElement>(null);
const watchBundle = useWatchBundle();
Copy link
Contributor

Choose a reason for hiding this comment

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

watchBundle presumable access the net, yes? but no access to the net is passed around explicitly. What would it cost to remedy that lack of ocap discipline?

I suppose this goes for useWallet too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

See [c9c1537]. useWallet, agree but deeming out of scope for this pr


export const useWatchBundle = () => {
const { networkConfig } = useNetwork();
const leader = networkConfig ? makeLeader(networkConfig.rpc) : undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

hm... I think I enhanced casting to accept an RPC client object, i.e. explicit access to the network, and not just a URL that gets turned into network access like casting an int to a pointer.

Or maybe I just figured out how to.

Copy link
Collaborator Author

@0xpatrickdev 0xpatrickdev Jan 23, 2024

Choose a reason for hiding this comment

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

makeHttpClient ?

It seems I need a follower to be able to query :bundles? I'm not sure how this maps wrt things like :1317/agoric/(swingset|vstorage)/* and agd query (vstorage|swingset)... .

makeLeader in u-13 (current version checked in) only take a url or network config object. makeRoundRobinLeader on latest master still seems to only accept strings too

@0xpatrickdev 0xpatrickdev requested a review from dckc January 23, 2024 03:13
@0xpatrickdev 0xpatrickdev merged commit 538e185 into main Feb 20, 2024
6 checks passed
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.

install bundle: check vstorage bundles key
2 participants