Skip to content

Commit

Permalink
change address prefix to pylo
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Sep 22, 2021
1 parent 75e2735 commit d2fee96
Show file tree
Hide file tree
Showing 6 changed files with 329 additions and 329 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import (

const (
// AccountAddressPrefix is the prefix used for bech32 addresses ex: "cosmos1y8vysg9hmvavkdxpvccv2ve3nssv5avm0kt337"
AccountAddressPrefix = "cosmos"
AccountAddressPrefix = "pylo"
// Name is the name of the app, here "pylons"
Name = "pylons"
)
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { StdFee } from "@cosmjs/launchpad";
import { OfflineSigner, EncodeObject } from "@cosmjs/proto-signing";
import { Api } from "./rest";
import { MsgUpdateCookbook } from "./types/pylons/tx";
import { MsgTransferCookbook } from "./types/pylons/tx";
import { MsgCreateAccount } from "./types/pylons/tx";
import { MsgCancelTrade } from "./types/pylons/tx";
import { MsgUpdateAccount } from "./types/pylons/tx";
import { MsgSendItems } from "./types/pylons/tx";
import { MsgCreateRecipe } from "./types/pylons/tx";
import { MsgExecuteRecipe } from "./types/pylons/tx";
import { MsgGoogleInAppPurchaseGetCoins } from "./types/pylons/tx";
import { MsgCompleteExecutionEarly } from "./types/pylons/tx";
import { MsgUpdateAccount } from "./types/pylons/tx";
import { MsgCreateAccount } from "./types/pylons/tx";
import { MsgSetItemString } from "./types/pylons/tx";
import { MsgCreateCookbook } from "./types/pylons/tx";
import { MsgUpdateRecipe } from "./types/pylons/tx";
import { MsgCreateTrade } from "./types/pylons/tx";
import { MsgGoogleInAppPurchaseGetCoins } from "./types/pylons/tx";
import { MsgFulfillTrade } from "./types/pylons/tx";
import { MsgUpdateRecipe } from "./types/pylons/tx";
import { MsgCreateRecipe } from "./types/pylons/tx";
import { MsgExecuteRecipe } from "./types/pylons/tx";
import { MsgSendItems } from "./types/pylons/tx";
import { MsgTransferCookbook } from "./types/pylons/tx";
import { MsgCancelTrade } from "./types/pylons/tx";
import { MsgUpdateCookbook } from "./types/pylons/tx";
import { MsgCreateCookbook } from "./types/pylons/tx";
export declare const MissingWalletError: Error;
interface TxClientOptions {
addr: string;
Expand All @@ -26,21 +26,21 @@ interface SignAndBroadcastOptions {
}
declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{
signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => Promise<import("@cosmjs/stargate").BroadcastTxResponse>;
msgUpdateCookbook: (data: MsgUpdateCookbook) => EncodeObject;
msgTransferCookbook: (data: MsgTransferCookbook) => EncodeObject;
msgCreateAccount: (data: MsgCreateAccount) => EncodeObject;
msgCancelTrade: (data: MsgCancelTrade) => EncodeObject;
msgUpdateAccount: (data: MsgUpdateAccount) => EncodeObject;
msgSendItems: (data: MsgSendItems) => EncodeObject;
msgCreateRecipe: (data: MsgCreateRecipe) => EncodeObject;
msgExecuteRecipe: (data: MsgExecuteRecipe) => EncodeObject;
msgGoogleInAppPurchaseGetCoins: (data: MsgGoogleInAppPurchaseGetCoins) => EncodeObject;
msgCompleteExecutionEarly: (data: MsgCompleteExecutionEarly) => EncodeObject;
msgUpdateAccount: (data: MsgUpdateAccount) => EncodeObject;
msgCreateAccount: (data: MsgCreateAccount) => EncodeObject;
msgSetItemString: (data: MsgSetItemString) => EncodeObject;
msgCreateCookbook: (data: MsgCreateCookbook) => EncodeObject;
msgUpdateRecipe: (data: MsgUpdateRecipe) => EncodeObject;
msgCreateTrade: (data: MsgCreateTrade) => EncodeObject;
msgGoogleInAppPurchaseGetCoins: (data: MsgGoogleInAppPurchaseGetCoins) => EncodeObject;
msgFulfillTrade: (data: MsgFulfillTrade) => EncodeObject;
msgUpdateRecipe: (data: MsgUpdateRecipe) => EncodeObject;
msgCreateRecipe: (data: MsgCreateRecipe) => EncodeObject;
msgExecuteRecipe: (data: MsgExecuteRecipe) => EncodeObject;
msgSendItems: (data: MsgSendItems) => EncodeObject;
msgTransferCookbook: (data: MsgTransferCookbook) => EncodeObject;
msgCancelTrade: (data: MsgCancelTrade) => EncodeObject;
msgUpdateCookbook: (data: MsgUpdateCookbook) => EncodeObject;
msgCreateCookbook: (data: MsgCreateCookbook) => EncodeObject;
}>;
interface QueryClientOptions {
addr: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@
import { SigningStargateClient } from "@cosmjs/stargate";
import { Registry } from "@cosmjs/proto-signing";
import { Api } from "./rest";
import { MsgUpdateCookbook } from "./types/pylons/tx";
import { MsgTransferCookbook } from "./types/pylons/tx";
import { MsgCreateAccount } from "./types/pylons/tx";
import { MsgCancelTrade } from "./types/pylons/tx";
import { MsgUpdateAccount } from "./types/pylons/tx";
import { MsgSendItems } from "./types/pylons/tx";
import { MsgCreateRecipe } from "./types/pylons/tx";
import { MsgExecuteRecipe } from "./types/pylons/tx";
import { MsgGoogleInAppPurchaseGetCoins } from "./types/pylons/tx";
import { MsgCompleteExecutionEarly } from "./types/pylons/tx";
import { MsgUpdateAccount } from "./types/pylons/tx";
import { MsgCreateAccount } from "./types/pylons/tx";
import { MsgSetItemString } from "./types/pylons/tx";
import { MsgCreateCookbook } from "./types/pylons/tx";
import { MsgUpdateRecipe } from "./types/pylons/tx";
import { MsgCreateTrade } from "./types/pylons/tx";
import { MsgGoogleInAppPurchaseGetCoins } from "./types/pylons/tx";
import { MsgFulfillTrade } from "./types/pylons/tx";
import { MsgUpdateRecipe } from "./types/pylons/tx";
import { MsgCreateRecipe } from "./types/pylons/tx";
import { MsgExecuteRecipe } from "./types/pylons/tx";
import { MsgSendItems } from "./types/pylons/tx";
import { MsgTransferCookbook } from "./types/pylons/tx";
import { MsgCancelTrade } from "./types/pylons/tx";
import { MsgUpdateCookbook } from "./types/pylons/tx";
import { MsgCreateCookbook } from "./types/pylons/tx";
const types = [
["/Pylonstech.pylons.pylons.MsgUpdateCookbook", MsgUpdateCookbook],
["/Pylonstech.pylons.pylons.MsgTransferCookbook", MsgTransferCookbook],
["/Pylonstech.pylons.pylons.MsgCreateAccount", MsgCreateAccount],
["/Pylonstech.pylons.pylons.MsgCancelTrade", MsgCancelTrade],
["/Pylonstech.pylons.pylons.MsgUpdateAccount", MsgUpdateAccount],
["/Pylonstech.pylons.pylons.MsgSendItems", MsgSendItems],
["/Pylonstech.pylons.pylons.MsgCreateRecipe", MsgCreateRecipe],
["/Pylonstech.pylons.pylons.MsgExecuteRecipe", MsgExecuteRecipe],
["/Pylonstech.pylons.pylons.MsgGoogleInAppPurchaseGetCoins", MsgGoogleInAppPurchaseGetCoins],
["/Pylonstech.pylons.pylons.MsgCompleteExecutionEarly", MsgCompleteExecutionEarly],
["/Pylonstech.pylons.pylons.MsgUpdateAccount", MsgUpdateAccount],
["/Pylonstech.pylons.pylons.MsgCreateAccount", MsgCreateAccount],
["/Pylonstech.pylons.pylons.MsgSetItemString", MsgSetItemString],
["/Pylonstech.pylons.pylons.MsgCreateCookbook", MsgCreateCookbook],
["/Pylonstech.pylons.pylons.MsgUpdateRecipe", MsgUpdateRecipe],
["/Pylonstech.pylons.pylons.MsgCreateTrade", MsgCreateTrade],
["/Pylonstech.pylons.pylons.MsgGoogleInAppPurchaseGetCoins", MsgGoogleInAppPurchaseGetCoins],
["/Pylonstech.pylons.pylons.MsgFulfillTrade", MsgFulfillTrade],
["/Pylonstech.pylons.pylons.MsgUpdateRecipe", MsgUpdateRecipe],
["/Pylonstech.pylons.pylons.MsgCreateRecipe", MsgCreateRecipe],
["/Pylonstech.pylons.pylons.MsgExecuteRecipe", MsgExecuteRecipe],
["/Pylonstech.pylons.pylons.MsgSendItems", MsgSendItems],
["/Pylonstech.pylons.pylons.MsgTransferCookbook", MsgTransferCookbook],
["/Pylonstech.pylons.pylons.MsgCancelTrade", MsgCancelTrade],
["/Pylonstech.pylons.pylons.MsgUpdateCookbook", MsgUpdateCookbook],
["/Pylonstech.pylons.pylons.MsgCreateCookbook", MsgCreateCookbook],
];
export const MissingWalletError = new Error("wallet is required");
const registry = new Registry(types);
Expand All @@ -47,21 +47,21 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657
const { address } = (await wallet.getAccounts())[0];
return {
signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: "" }) => client.signAndBroadcast(address, msgs, fee, memo),
msgUpdateCookbook: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateCookbook", value: data }),
msgTransferCookbook: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgTransferCookbook", value: data }),
msgCreateAccount: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateAccount", value: data }),
msgCancelTrade: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCancelTrade", value: data }),
msgUpdateAccount: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateAccount", value: data }),
msgSendItems: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgSendItems", value: data }),
msgCreateRecipe: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateRecipe", value: data }),
msgExecuteRecipe: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgExecuteRecipe", value: data }),
msgGoogleInAppPurchaseGetCoins: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgGoogleInAppPurchaseGetCoins", value: data }),
msgCompleteExecutionEarly: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCompleteExecutionEarly", value: data }),
msgUpdateAccount: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateAccount", value: data }),
msgCreateAccount: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateAccount", value: data }),
msgSetItemString: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgSetItemString", value: data }),
msgCreateCookbook: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateCookbook", value: data }),
msgUpdateRecipe: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateRecipe", value: data }),
msgCreateTrade: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateTrade", value: data }),
msgGoogleInAppPurchaseGetCoins: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgGoogleInAppPurchaseGetCoins", value: data }),
msgFulfillTrade: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgFulfillTrade", value: data }),
msgUpdateRecipe: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateRecipe", value: data }),
msgCreateRecipe: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateRecipe", value: data }),
msgExecuteRecipe: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgExecuteRecipe", value: data }),
msgSendItems: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgSendItems", value: data }),
msgTransferCookbook: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgTransferCookbook", value: data }),
msgCancelTrade: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCancelTrade", value: data }),
msgUpdateCookbook: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateCookbook", value: data }),
msgCreateCookbook: (data) => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateCookbook", value: data }),
};
};
const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@ import { StdFee } from "@cosmjs/launchpad";
import { SigningStargateClient } from "@cosmjs/stargate";
import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing";
import { Api } from "./rest";
import { MsgUpdateCookbook } from "./types/pylons/tx";
import { MsgTransferCookbook } from "./types/pylons/tx";
import { MsgCreateAccount } from "./types/pylons/tx";
import { MsgCancelTrade } from "./types/pylons/tx";
import { MsgUpdateAccount } from "./types/pylons/tx";
import { MsgSendItems } from "./types/pylons/tx";
import { MsgCreateRecipe } from "./types/pylons/tx";
import { MsgExecuteRecipe } from "./types/pylons/tx";
import { MsgGoogleInAppPurchaseGetCoins } from "./types/pylons/tx";
import { MsgCompleteExecutionEarly } from "./types/pylons/tx";
import { MsgUpdateAccount } from "./types/pylons/tx";
import { MsgCreateAccount } from "./types/pylons/tx";
import { MsgSetItemString } from "./types/pylons/tx";
import { MsgCreateCookbook } from "./types/pylons/tx";
import { MsgUpdateRecipe } from "./types/pylons/tx";
import { MsgCreateTrade } from "./types/pylons/tx";
import { MsgGoogleInAppPurchaseGetCoins } from "./types/pylons/tx";
import { MsgFulfillTrade } from "./types/pylons/tx";
import { MsgUpdateRecipe } from "./types/pylons/tx";
import { MsgCreateRecipe } from "./types/pylons/tx";
import { MsgExecuteRecipe } from "./types/pylons/tx";
import { MsgSendItems } from "./types/pylons/tx";
import { MsgTransferCookbook } from "./types/pylons/tx";
import { MsgCancelTrade } from "./types/pylons/tx";
import { MsgUpdateCookbook } from "./types/pylons/tx";
import { MsgCreateCookbook } from "./types/pylons/tx";


const types = [
["/Pylonstech.pylons.pylons.MsgUpdateCookbook", MsgUpdateCookbook],
["/Pylonstech.pylons.pylons.MsgTransferCookbook", MsgTransferCookbook],
["/Pylonstech.pylons.pylons.MsgCreateAccount", MsgCreateAccount],
["/Pylonstech.pylons.pylons.MsgCancelTrade", MsgCancelTrade],
["/Pylonstech.pylons.pylons.MsgUpdateAccount", MsgUpdateAccount],
["/Pylonstech.pylons.pylons.MsgSendItems", MsgSendItems],
["/Pylonstech.pylons.pylons.MsgCreateRecipe", MsgCreateRecipe],
["/Pylonstech.pylons.pylons.MsgExecuteRecipe", MsgExecuteRecipe],
["/Pylonstech.pylons.pylons.MsgGoogleInAppPurchaseGetCoins", MsgGoogleInAppPurchaseGetCoins],
["/Pylonstech.pylons.pylons.MsgCompleteExecutionEarly", MsgCompleteExecutionEarly],
["/Pylonstech.pylons.pylons.MsgUpdateAccount", MsgUpdateAccount],
["/Pylonstech.pylons.pylons.MsgCreateAccount", MsgCreateAccount],
["/Pylonstech.pylons.pylons.MsgSetItemString", MsgSetItemString],
["/Pylonstech.pylons.pylons.MsgCreateCookbook", MsgCreateCookbook],
["/Pylonstech.pylons.pylons.MsgUpdateRecipe", MsgUpdateRecipe],
["/Pylonstech.pylons.pylons.MsgCreateTrade", MsgCreateTrade],
["/Pylonstech.pylons.pylons.MsgGoogleInAppPurchaseGetCoins", MsgGoogleInAppPurchaseGetCoins],
["/Pylonstech.pylons.pylons.MsgFulfillTrade", MsgFulfillTrade],
["/Pylonstech.pylons.pylons.MsgUpdateRecipe", MsgUpdateRecipe],
["/Pylonstech.pylons.pylons.MsgCreateRecipe", MsgCreateRecipe],
["/Pylonstech.pylons.pylons.MsgExecuteRecipe", MsgExecuteRecipe],
["/Pylonstech.pylons.pylons.MsgSendItems", MsgSendItems],
["/Pylonstech.pylons.pylons.MsgTransferCookbook", MsgTransferCookbook],
["/Pylonstech.pylons.pylons.MsgCancelTrade", MsgCancelTrade],
["/Pylonstech.pylons.pylons.MsgUpdateCookbook", MsgUpdateCookbook],
["/Pylonstech.pylons.pylons.MsgCreateCookbook", MsgCreateCookbook],

];
export const MissingWalletError = new Error("wallet is required");
Expand Down Expand Up @@ -65,21 +65,21 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions =

return {
signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo),
msgUpdateCookbook: (data: MsgUpdateCookbook): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateCookbook", value: data }),
msgTransferCookbook: (data: MsgTransferCookbook): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgTransferCookbook", value: data }),
msgCreateAccount: (data: MsgCreateAccount): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateAccount", value: data }),
msgCancelTrade: (data: MsgCancelTrade): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCancelTrade", value: data }),
msgUpdateAccount: (data: MsgUpdateAccount): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateAccount", value: data }),
msgSendItems: (data: MsgSendItems): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgSendItems", value: data }),
msgCreateRecipe: (data: MsgCreateRecipe): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateRecipe", value: data }),
msgExecuteRecipe: (data: MsgExecuteRecipe): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgExecuteRecipe", value: data }),
msgGoogleInAppPurchaseGetCoins: (data: MsgGoogleInAppPurchaseGetCoins): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgGoogleInAppPurchaseGetCoins", value: data }),
msgCompleteExecutionEarly: (data: MsgCompleteExecutionEarly): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCompleteExecutionEarly", value: data }),
msgUpdateAccount: (data: MsgUpdateAccount): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateAccount", value: data }),
msgCreateAccount: (data: MsgCreateAccount): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateAccount", value: data }),
msgSetItemString: (data: MsgSetItemString): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgSetItemString", value: data }),
msgCreateCookbook: (data: MsgCreateCookbook): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateCookbook", value: data }),
msgUpdateRecipe: (data: MsgUpdateRecipe): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateRecipe", value: data }),
msgCreateTrade: (data: MsgCreateTrade): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateTrade", value: data }),
msgGoogleInAppPurchaseGetCoins: (data: MsgGoogleInAppPurchaseGetCoins): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgGoogleInAppPurchaseGetCoins", value: data }),
msgFulfillTrade: (data: MsgFulfillTrade): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgFulfillTrade", value: data }),
msgUpdateRecipe: (data: MsgUpdateRecipe): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateRecipe", value: data }),
msgCreateRecipe: (data: MsgCreateRecipe): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateRecipe", value: data }),
msgExecuteRecipe: (data: MsgExecuteRecipe): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgExecuteRecipe", value: data }),
msgSendItems: (data: MsgSendItems): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgSendItems", value: data }),
msgTransferCookbook: (data: MsgTransferCookbook): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgTransferCookbook", value: data }),
msgCancelTrade: (data: MsgCancelTrade): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCancelTrade", value: data }),
msgUpdateCookbook: (data: MsgUpdateCookbook): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgUpdateCookbook", value: data }),
msgCreateCookbook: (data: MsgCreateCookbook): EncodeObject => ({ typeUrl: "/Pylonstech.pylons.pylons.MsgCreateCookbook", value: data }),

};
};
Expand Down

0 comments on commit d2fee96

Please sign in to comment.