/** * The IDL of the module. * * @module */ /** The IDL of the module. */ export declare const idl: { readonly module_id: "0x1::account"; readonly functions: readonly [{ readonly name: "transfer"; readonly ty_args: readonly []; readonly args: readonly [{ readonly name: "to"; readonly ty: "address"; }, { readonly name: "amount"; readonly ty: "u64"; }]; }, { readonly name: "create_account"; readonly doc: "Basic account creation methods."; readonly ty_args: readonly []; readonly args: readonly [{ readonly name: "auth_key"; readonly ty: "address"; }]; }, { readonly name: "rotate_authentication_key"; readonly ty_args: readonly []; readonly args: readonly [{ readonly name: "new_auth_key"; readonly ty: { readonly vector: "u8"; }; }]; }, { readonly name: "rotate_authentication_key_ed25519"; readonly doc: "Rotates the authentication key and records a mapping on chain from the new authentication key to the originating\naddress of the account. To authorize the rotation, a signature under the old public key on a `RotationProofChallenge`\nis given in `current_sig`. To ensure the account owner knows the secret key corresponding to the new public key\nin `new_pubkey`, a proof-of-knowledge is given in `new_sig` (i.e., a signature under the new public key on the\nsame `RotationProofChallenge` struct)."; readonly ty_args: readonly []; readonly args: readonly [{ readonly name: "curr_sig_bytes"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "new_sig_bytes"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "curr_pk_bytes"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "new_pk_bytes"; readonly ty: { readonly vector: "u8"; }; }]; }]; readonly structs: readonly [{ readonly name: "0x1::account::Account"; readonly doc: "Resource representing an account."; readonly fields: readonly [{ readonly name: "authentication_key"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "sequence_number"; readonly ty: "u64"; }, { readonly name: "coin_register_events"; readonly ty: { readonly struct: { readonly name: "0x1::event::EventHandle"; readonly ty_args: readonly [{ readonly struct: { readonly name: "0x1::account::CoinRegisterEvent"; }; }]; }; }; }, { readonly name: "rotation_capability_offer"; readonly ty: { readonly struct: { readonly name: "0x1::account::CapabilityOffer"; readonly ty_args: readonly [{ readonly struct: { readonly name: "0x1::account::RotationCapability"; }; }]; }; }; }, { readonly name: "signer_capability_offer"; readonly ty: { readonly struct: { readonly name: "0x1::account::CapabilityOffer"; readonly ty_args: readonly [{ readonly struct: { readonly name: "0x1::account::SignerCapability"; }; }]; }; }; }]; readonly abilities: readonly ["store", "key"]; }, { readonly name: "0x1::account::CapabilityOffer"; readonly fields: readonly [{ readonly name: "for"; readonly ty: { readonly struct: { readonly name: "0x1::option::Option"; readonly ty_args: readonly ["address"]; }; }; }]; readonly type_params: readonly [{ readonly name: "T"; readonly is_phantom: true; }]; readonly abilities: readonly ["store"]; }, { readonly name: "0x1::account::ChainSpecificAccountInfo"; readonly doc: "This holds information that will be picked up by the VM to call the\ncorrect chain-specific prologue and epilogue functions"; readonly fields: readonly [{ readonly name: "module_addr"; readonly ty: "address"; }, { readonly name: "module_name"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "script_prologue_name"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "module_prologue_name"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "writeset_prologue_name"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "multi_agent_prologue_name"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "user_epilogue_name"; readonly ty: { readonly vector: "u8"; }; }, { readonly name: "writeset_epilogue_name"; readonly ty: { readonly vector: "u8"; }; }]; readonly abilities: readonly ["key"]; }, { readonly name: "0x1::account::CoinRegisterEvent"; readonly fields: readonly [{ readonly name: "type_info"; readonly ty: { readonly struct: { readonly name: "0x1::type_info::TypeInfo"; }; }; }]; readonly abilities: readonly ["drop", "store"]; }, { readonly name: "0x1::account::OriginatingAddress"; readonly fields: readonly [{ readonly name: "address_map"; readonly ty: { readonly struct: { readonly name: "0x1::table::Table"; readonly ty_args: readonly ["address", "address"]; }; }; }]; readonly abilities: readonly ["key"]; }, { readonly name: "0x1::account::RotationCapability"; readonly fields: readonly [{ readonly name: "account"; readonly ty: "address"; }]; readonly abilities: readonly ["drop", "store"]; }, { readonly name: "0x1::account::RotationProofChallenge"; readonly doc: "This structs stores the challenge message that should be signed during key rotation. First, this struct is\nsigned by the account owner's current public key, which proves possession of a capability to rotate the key.\nSecond, this struct is signed by the new public key that the account owner wants to rotate to, which proves\nknowledge of this new public key's associated secret key. These two signatures cannot be replayed in another\ncontext because they include the TXN's unique sequence number."; readonly fields: readonly [{ readonly name: "sequence_number"; readonly ty: "u64"; }, { readonly name: "originator"; readonly ty: "address"; }, { readonly name: "current_auth_key"; readonly ty: "address"; }, { readonly name: "new_public_key"; readonly ty: { readonly vector: "u8"; }; }]; readonly abilities: readonly ["copy", "drop"]; }, { readonly name: "0x1::account::SignerCapability"; readonly fields: readonly [{ readonly name: "account"; readonly ty: "address"; }]; readonly abilities: readonly ["drop", "store"]; }]; readonly errors: { readonly "1": { readonly name: "EACCOUNT_ALREADY_EXISTS"; readonly doc: "Account already exists"; }; readonly "2": { readonly name: "EACCOUNT_DOES_NOT_EXIST"; readonly doc: "Account does not exist"; }; readonly "3": { readonly name: "ESEQUENCE_NUMBER_TOO_BIG"; readonly doc: "Sequence number exceeds the maximum value for a u64"; }; readonly "4": { readonly name: "EMALFORMED_AUTHENTICATION_KEY"; readonly doc: "The provided authentication key has an invalid length"; }; readonly "5": { readonly name: "ECANNOT_RESERVED_ADDRESS"; readonly doc: "Cannot create account because address is reserved"; }; readonly "6": { readonly name: "EOUT_OF_GAS"; readonly doc: "Transaction exceeded its allocated max gas"; }; readonly "7": { readonly name: "EWRITESET_NOT_ALLOWED"; readonly doc: "Writesets are not allowed"; }; readonly "8": { readonly name: "EWRONG_CURRENT_PUBLIC_KEY"; readonly doc: "Specified current public key is not correct"; }; readonly "9": { readonly name: "EINVALID_PROOF_OF_KNOWLEDGE"; readonly doc: "Specified proof of knowledge required to prove ownership of a public key is invalid"; }; readonly "10": { readonly name: "ENO_CAPABILITY"; readonly doc: "The caller does not have a digital-signature-based capability to call this function"; }; readonly "1001": { readonly name: "PROLOGUE_EINVALID_ACCOUNT_AUTH_KEY"; readonly doc: "Prologue errors. These are separated out from the other errors in this\nmodule since they are mapped separately to major VM statuses, and are\nimportant to the semantics of the system."; }; readonly "1002": { readonly name: "PROLOGUE_ESEQUENCE_NUMBER_TOO_OLD"; }; readonly "1003": { readonly name: "PROLOGUE_ESEQUENCE_NUMBER_TOO_NEW"; }; readonly "1004": { readonly name: "PROLOGUE_EACCOUNT_DOES_NOT_EXIST"; }; readonly "1005": { readonly name: "PROLOGUE_ECANT_PAY_GAS_DEPOSIT"; }; readonly "1006": { readonly name: "PROLOGUE_ETRANSACTION_EXPIRED"; }; readonly "1007": { readonly name: "PROLOGUE_EBAD_CHAIN_ID"; }; readonly "1008": { readonly name: "PROLOGUE_EINVALID_WRITESET_SENDER"; }; readonly "1009": { readonly name: "PROLOGUE_ESEQUENCE_NUMBER_TOO_BIG"; }; readonly "1010": { readonly name: "PROLOGUE_ESECONDARY_KEYS_ADDRESSES_COUNT_MISMATCH"; }; }; }; //# sourceMappingURL=idl.d.ts.map