440 lines
16 KiB
TypeScript
440 lines
16 KiB
TypeScript
/// <reference types="long" />
|
|
import { AccessConfig, AccessConfigSDKType } from "./types";
|
|
import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
|
|
import * as _m0 from "protobufjs/minimal";
|
|
import { DeepPartial, Long } from "../../../helpers";
|
|
/** StoreCodeProposal gov proposal content type to submit WASM code to the system */
|
|
export interface StoreCodeProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
runAs: string;
|
|
/** WASMByteCode can be raw or gzip compressed */
|
|
wasmByteCode: Uint8Array;
|
|
/** InstantiatePermission to apply on contract creation, optional */
|
|
instantiatePermission?: AccessConfig;
|
|
/** UnpinCode code on upload, optional */
|
|
unpinCode: boolean;
|
|
/** Source is the URL where the code is hosted */
|
|
source: string;
|
|
/**
|
|
* Builder is the docker image used to build the code deterministically, used
|
|
* for smart contract verification
|
|
*/
|
|
builder: string;
|
|
/**
|
|
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
|
* contract verification
|
|
*/
|
|
codeHash: Uint8Array;
|
|
}
|
|
/** StoreCodeProposal gov proposal content type to submit WASM code to the system */
|
|
export interface StoreCodeProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
run_as: string;
|
|
wasm_byte_code: Uint8Array;
|
|
instantiate_permission?: AccessConfigSDKType;
|
|
unpin_code: boolean;
|
|
source: string;
|
|
builder: string;
|
|
code_hash: Uint8Array;
|
|
}
|
|
/**
|
|
* InstantiateContractProposal gov proposal content type to instantiate a
|
|
* contract.
|
|
*/
|
|
export interface InstantiateContractProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
runAs: string;
|
|
/** Admin is an optional address that can execute migrations */
|
|
admin: string;
|
|
/** CodeID is the reference to the stored WASM code */
|
|
codeId: Long;
|
|
/** Label is optional metadata to be stored with a constract instance. */
|
|
label: string;
|
|
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
msg: Uint8Array;
|
|
/** Funds coins that are transferred to the contract on instantiation */
|
|
funds: Coin[];
|
|
}
|
|
/**
|
|
* InstantiateContractProposal gov proposal content type to instantiate a
|
|
* contract.
|
|
*/
|
|
export interface InstantiateContractProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
run_as: string;
|
|
admin: string;
|
|
code_id: Long;
|
|
label: string;
|
|
msg: Uint8Array;
|
|
funds: CoinSDKType[];
|
|
}
|
|
/**
|
|
* InstantiateContract2Proposal gov proposal content type to instantiate
|
|
* contract 2
|
|
*/
|
|
export interface InstantiateContract2Proposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** RunAs is the address that is passed to the contract's enviroment as sender */
|
|
runAs: string;
|
|
/** Admin is an optional address that can execute migrations */
|
|
admin: string;
|
|
/** CodeID is the reference to the stored WASM code */
|
|
codeId: Long;
|
|
/** Label is optional metadata to be stored with a constract instance. */
|
|
label: string;
|
|
/** Msg json encode message to be passed to the contract on instantiation */
|
|
msg: Uint8Array;
|
|
/** Funds coins that are transferred to the contract on instantiation */
|
|
funds: Coin[];
|
|
/** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
|
|
salt: Uint8Array;
|
|
/**
|
|
* FixMsg include the msg value into the hash for the predictable address.
|
|
* Default is false
|
|
*/
|
|
fixMsg: boolean;
|
|
}
|
|
/**
|
|
* InstantiateContract2Proposal gov proposal content type to instantiate
|
|
* contract 2
|
|
*/
|
|
export interface InstantiateContract2ProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
run_as: string;
|
|
admin: string;
|
|
code_id: Long;
|
|
label: string;
|
|
msg: Uint8Array;
|
|
funds: CoinSDKType[];
|
|
salt: Uint8Array;
|
|
fix_msg: boolean;
|
|
}
|
|
/** MigrateContractProposal gov proposal content type to migrate a contract. */
|
|
export interface MigrateContractProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** Contract is the address of the smart contract */
|
|
contract: string;
|
|
/** CodeID references the new WASM code */
|
|
codeId: Long;
|
|
/** Msg json encoded message to be passed to the contract on migration */
|
|
msg: Uint8Array;
|
|
}
|
|
/** MigrateContractProposal gov proposal content type to migrate a contract. */
|
|
export interface MigrateContractProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
contract: string;
|
|
code_id: Long;
|
|
msg: Uint8Array;
|
|
}
|
|
/** SudoContractProposal gov proposal content type to call sudo on a contract. */
|
|
export interface SudoContractProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** Contract is the address of the smart contract */
|
|
contract: string;
|
|
/** Msg json encoded message to be passed to the contract as sudo */
|
|
msg: Uint8Array;
|
|
}
|
|
/** SudoContractProposal gov proposal content type to call sudo on a contract. */
|
|
export interface SudoContractProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
contract: string;
|
|
msg: Uint8Array;
|
|
}
|
|
/**
|
|
* ExecuteContractProposal gov proposal content type to call execute on a
|
|
* contract.
|
|
*/
|
|
export interface ExecuteContractProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
runAs: string;
|
|
/** Contract is the address of the smart contract */
|
|
contract: string;
|
|
/** Msg json encoded message to be passed to the contract as execute */
|
|
msg: Uint8Array;
|
|
/** Funds coins that are transferred to the contract on instantiation */
|
|
funds: Coin[];
|
|
}
|
|
/**
|
|
* ExecuteContractProposal gov proposal content type to call execute on a
|
|
* contract.
|
|
*/
|
|
export interface ExecuteContractProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
run_as: string;
|
|
contract: string;
|
|
msg: Uint8Array;
|
|
funds: CoinSDKType[];
|
|
}
|
|
/** UpdateAdminProposal gov proposal content type to set an admin for a contract. */
|
|
export interface UpdateAdminProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** NewAdmin address to be set */
|
|
newAdmin: string;
|
|
/** Contract is the address of the smart contract */
|
|
contract: string;
|
|
}
|
|
/** UpdateAdminProposal gov proposal content type to set an admin for a contract. */
|
|
export interface UpdateAdminProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
new_admin: string;
|
|
contract: string;
|
|
}
|
|
/**
|
|
* ClearAdminProposal gov proposal content type to clear the admin of a
|
|
* contract.
|
|
*/
|
|
export interface ClearAdminProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** Contract is the address of the smart contract */
|
|
contract: string;
|
|
}
|
|
/**
|
|
* ClearAdminProposal gov proposal content type to clear the admin of a
|
|
* contract.
|
|
*/
|
|
export interface ClearAdminProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
contract: string;
|
|
}
|
|
/**
|
|
* PinCodesProposal gov proposal content type to pin a set of code ids in the
|
|
* wasmvm cache.
|
|
*/
|
|
export interface PinCodesProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** CodeIDs references the new WASM codes */
|
|
codeIds: Long[];
|
|
}
|
|
/**
|
|
* PinCodesProposal gov proposal content type to pin a set of code ids in the
|
|
* wasmvm cache.
|
|
*/
|
|
export interface PinCodesProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
code_ids: Long[];
|
|
}
|
|
/**
|
|
* UnpinCodesProposal gov proposal content type to unpin a set of code ids in
|
|
* the wasmvm cache.
|
|
*/
|
|
export interface UnpinCodesProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** CodeIDs references the WASM codes */
|
|
codeIds: Long[];
|
|
}
|
|
/**
|
|
* UnpinCodesProposal gov proposal content type to unpin a set of code ids in
|
|
* the wasmvm cache.
|
|
*/
|
|
export interface UnpinCodesProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
code_ids: Long[];
|
|
}
|
|
/**
|
|
* AccessConfigUpdate contains the code id and the access config to be
|
|
* applied.
|
|
*/
|
|
export interface AccessConfigUpdate {
|
|
/** CodeID is the reference to the stored WASM code to be updated */
|
|
codeId: Long;
|
|
/** InstantiatePermission to apply to the set of code ids */
|
|
instantiatePermission?: AccessConfig;
|
|
}
|
|
/**
|
|
* AccessConfigUpdate contains the code id and the access config to be
|
|
* applied.
|
|
*/
|
|
export interface AccessConfigUpdateSDKType {
|
|
code_id: Long;
|
|
instantiate_permission?: AccessConfigSDKType;
|
|
}
|
|
/**
|
|
* UpdateInstantiateConfigProposal gov proposal content type to update
|
|
* instantiate config to a set of code ids.
|
|
*/
|
|
export interface UpdateInstantiateConfigProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/**
|
|
* AccessConfigUpdate contains the list of code ids and the access config
|
|
* to be applied.
|
|
*/
|
|
accessConfigUpdates: AccessConfigUpdate[];
|
|
}
|
|
/**
|
|
* UpdateInstantiateConfigProposal gov proposal content type to update
|
|
* instantiate config to a set of code ids.
|
|
*/
|
|
export interface UpdateInstantiateConfigProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
access_config_updates: AccessConfigUpdateSDKType[];
|
|
}
|
|
/**
|
|
* StoreAndInstantiateContractProposal gov proposal content type to store
|
|
* and instantiate the contract.
|
|
*/
|
|
export interface StoreAndInstantiateContractProposal {
|
|
/** Title is a short summary */
|
|
title: string;
|
|
/** Description is a human readable text */
|
|
description: string;
|
|
/** RunAs is the address that is passed to the contract's environment as sender */
|
|
runAs: string;
|
|
/** WASMByteCode can be raw or gzip compressed */
|
|
wasmByteCode: Uint8Array;
|
|
/** InstantiatePermission to apply on contract creation, optional */
|
|
instantiatePermission?: AccessConfig;
|
|
/** UnpinCode code on upload, optional */
|
|
unpinCode: boolean;
|
|
/** Admin is an optional address that can execute migrations */
|
|
admin: string;
|
|
/** Label is optional metadata to be stored with a constract instance. */
|
|
label: string;
|
|
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
msg: Uint8Array;
|
|
/** Funds coins that are transferred to the contract on instantiation */
|
|
funds: Coin[];
|
|
/** Source is the URL where the code is hosted */
|
|
source: string;
|
|
/**
|
|
* Builder is the docker image used to build the code deterministically, used
|
|
* for smart contract verification
|
|
*/
|
|
builder: string;
|
|
/**
|
|
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
|
* contract verification
|
|
*/
|
|
codeHash: Uint8Array;
|
|
}
|
|
/**
|
|
* StoreAndInstantiateContractProposal gov proposal content type to store
|
|
* and instantiate the contract.
|
|
*/
|
|
export interface StoreAndInstantiateContractProposalSDKType {
|
|
title: string;
|
|
description: string;
|
|
run_as: string;
|
|
wasm_byte_code: Uint8Array;
|
|
instantiate_permission?: AccessConfigSDKType;
|
|
unpin_code: boolean;
|
|
admin: string;
|
|
label: string;
|
|
msg: Uint8Array;
|
|
funds: CoinSDKType[];
|
|
source: string;
|
|
builder: string;
|
|
code_hash: Uint8Array;
|
|
}
|
|
export declare const StoreCodeProposal: {
|
|
encode(message: StoreCodeProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): StoreCodeProposal;
|
|
fromPartial(object: DeepPartial<StoreCodeProposal>): StoreCodeProposal;
|
|
};
|
|
export declare const InstantiateContractProposal: {
|
|
encode(message: InstantiateContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): InstantiateContractProposal;
|
|
fromPartial(object: DeepPartial<InstantiateContractProposal>): InstantiateContractProposal;
|
|
};
|
|
export declare const InstantiateContract2Proposal: {
|
|
encode(message: InstantiateContract2Proposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): InstantiateContract2Proposal;
|
|
fromPartial(object: DeepPartial<InstantiateContract2Proposal>): InstantiateContract2Proposal;
|
|
};
|
|
export declare const MigrateContractProposal: {
|
|
encode(message: MigrateContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): MigrateContractProposal;
|
|
fromPartial(object: DeepPartial<MigrateContractProposal>): MigrateContractProposal;
|
|
};
|
|
export declare const SudoContractProposal: {
|
|
encode(message: SudoContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): SudoContractProposal;
|
|
fromPartial(object: DeepPartial<SudoContractProposal>): SudoContractProposal;
|
|
};
|
|
export declare const ExecuteContractProposal: {
|
|
encode(message: ExecuteContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): ExecuteContractProposal;
|
|
fromPartial(object: DeepPartial<ExecuteContractProposal>): ExecuteContractProposal;
|
|
};
|
|
export declare const UpdateAdminProposal: {
|
|
encode(message: UpdateAdminProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateAdminProposal;
|
|
fromPartial(object: DeepPartial<UpdateAdminProposal>): UpdateAdminProposal;
|
|
};
|
|
export declare const ClearAdminProposal: {
|
|
encode(message: ClearAdminProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): ClearAdminProposal;
|
|
fromPartial(object: DeepPartial<ClearAdminProposal>): ClearAdminProposal;
|
|
};
|
|
export declare const PinCodesProposal: {
|
|
encode(message: PinCodesProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): PinCodesProposal;
|
|
fromPartial(object: DeepPartial<PinCodesProposal>): PinCodesProposal;
|
|
};
|
|
export declare const UnpinCodesProposal: {
|
|
encode(message: UnpinCodesProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): UnpinCodesProposal;
|
|
fromPartial(object: DeepPartial<UnpinCodesProposal>): UnpinCodesProposal;
|
|
};
|
|
export declare const AccessConfigUpdate: {
|
|
encode(message: AccessConfigUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): AccessConfigUpdate;
|
|
fromPartial(object: DeepPartial<AccessConfigUpdate>): AccessConfigUpdate;
|
|
};
|
|
export declare const UpdateInstantiateConfigProposal: {
|
|
encode(message: UpdateInstantiateConfigProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateInstantiateConfigProposal;
|
|
fromPartial(object: DeepPartial<UpdateInstantiateConfigProposal>): UpdateInstantiateConfigProposal;
|
|
};
|
|
export declare const StoreAndInstantiateContractProposal: {
|
|
encode(message: StoreAndInstantiateContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): StoreAndInstantiateContractProposal;
|
|
fromPartial(object: DeepPartial<StoreAndInstantiateContractProposal>): StoreAndInstantiateContractProposal;
|
|
};
|