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

Upgrade to Launchpad #311

Merged
merged 13 commits into from
Jul 28, 2020
Merged

Upgrade to Launchpad #311

merged 13 commits into from
Jul 28, 2020

Conversation

webmaster128
Copy link
Member

@webmaster128 webmaster128 commented Jul 23, 2020

Based on #314

Closes #306

Dependencies

@ethanfrey
Copy link
Contributor

Now that CosmWasm/wasmd#222 is solved, is this blocked on any external requirement?

I guess just me tagging a stable v0.10.0-beta release of wasmd with these fixes. Anything else I can help with?

@webmaster128
Copy link
Member Author

webmaster128 commented Jul 27, 2020

I guess just me tagging a stable v0.10.0-beta release of wasmd with these fixes. Anything else I can help with?

Perfect. I just need that tag on dockerhub. Then we should have everything to continue.

@ethanfrey
Copy link
Contributor

v0.10.0-beta1 is pushed. I will push a beta2 today or tomorrow that should close all known issues and will provide last validation before CosmWasm v0.10.0

Copy link
Contributor

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

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

Looks good to me. A few minor comments.

Looking forward to getting this in

@@ -335,7 +335,7 @@ describe("wasm", () => {
// upload data
const hackatom = getHackatom();
const result = await uploadContract(client, wallet, hackatom);
expect(result.code).toBeFalsy();
assert(!result.code);
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this better?

we are checking for 0 or undefined if I understand

Copy link
Member Author

@webmaster128 webmaster128 Jul 28, 2020

Choose a reason for hiding this comment

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

Because assert throws if the condition is falsy, expect reports an error and continues. But in case the transaction failed, all the following checks are pointless and just hide the problem.

@@ -430,6 +422,49 @@ describe("wasm", () => {
expect(await client.wasm.getContractInfo(nonExistentAddress)).toBeNull();
});

it("can list contract history", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

};
}

function setupWasmExtension(base: LcdClient): WasmExtension {
function setupBankExtension(base: LcdClient): BankExtension {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this in the test code?
Don't we have such an implementation in the non-test (production) code?

Copy link
Member Author

Choose a reason for hiding this comment

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

We have, but we need to reduce dependencies. Otherwise lcdclient depends on bank extension and bank extension depends on lcdclient. Having a wasm dependency here before was a huge upgrade pain.

};

async function main() {
const wallet = await Secp256k1Wallet.fromMnemonic(faucet.mnemonic);
Copy link
Contributor

Choose a reason for hiding this comment

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

good minimal example of how to use the wallet in tests

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe link this (or other such example) from a README

@@ -0,0 +1 @@
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMC0wNy0yMyAxNTowNTo0OC4yMDIyMjEgKzAwMDAgVVRDIG09KzAuNDA3MTQ2NDAxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiZXhEVEM1dGVraTVyMDg4ZyJ9.AluhnvIPJAJZZIUwCATLZ2eQNBy-bqUMOwa1QVokRPU4MWOsuxx-TQ.3vXpP5cMQEXdSBko.l5BzPkI5_DUm-iUBM9T9po-9YXYmGK62eieeFVA_WzESZPYxk51fQq_8DCdhh6Y6DhmmvQXPv3hjqQgIgdxPRBFlJwNawrqLElWIVuiS02tAjwQXAw6to0sdNtJc5r8Fzr82aD_lRMDiJ5ZoJ6i3wHLgmfwtOH0JdGwGFwiEQYuWX0SK0Ms2LHUydmsriX6MbHik24R061Qc3dR0GfclCb9dP_jRvXBhen8EJyt3cM3opYZ5lqDcLv_OQnDaFb4.Ctl177TJVkOiSYSaG3IBBg
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there is a typo here 😛

just kidding... had to saw something when scrolling over tons of auto-gen code

@@ -8,6 +8,17 @@
# specified in this config (e.g. 0.25token1;0.0001token2).
minimum-gas-prices = ""

# default: the last 100 states are kept in addition to every 500th state; pruning at 10 block intervals
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@willclarktech willclarktech left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -29,6 +30,9 @@ describe("StakingExtension", () => {
amount: coins(25000, "ucosm"),
gas: "1500000", // 1.5 million
};
const consesnsusPubkey =
Copy link
Contributor

Choose a reason for hiding this comment

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

consensusPubkey

@mergify mergify bot merged commit 19e47d3 into master Jul 28, 2020
@webmaster128 webmaster128 deleted the launchpad branch July 28, 2020 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge See mergify.io
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop Cosmos SDK 0.38 support in favour of Launchpad
4 participants