credmark.cmf.types.account.Accounts
- DTO class Accounts(*, accounts=[])[source]
Bases:
IterableListGenericDTO[Account]
Show JSON schema
{ "title": "Accounts", "type": "object", "properties": { "accounts": { "title": "Accounts", "description": "A list of Accounts", "default": [], "type": "array", "items": { "$ref": "#/definitions/Account" } } }, "examples": [ { "accounts": [ "0x388c818ca8b9251b393131c08a736a67ccb19297", "0xf9cbBA7BF1b10E045691dDECa48182dB213E8F8B" ] }, { "accounts": [ { "address": "0x388c818ca8b9251b393131c08a736a67ccb19297" }, { "address": "0xf9cbBA7BF1b10E045691dDECa48182dB213E8F8B" } ] } ], "definitions": { "Account": { "title": "Account", "description": "Accounts are a way to pass addresses between models.\nThey act as a base class to any type that requires an address object.\n(e.g. Contracts, Token, etc.)\n\n a = Account(address='0xad529dabbd6201545ce9aac300b868f2443382b9')\n\n a = Account('0xad529dabbd6201545ce9aac300b868f2443382b9')", "type": "object", "properties": { "address": { "title": "Address", "type": "string", "pattern": "^0x[a-fA-F0-9]{40}$", "format": "evm-address" } }, "required": [ "address" ], "examples": [ { "address": "0x1F98431c8aD98523631AE4a59f267346ea31F984" } ] } } }
- Config
schema_extra: dict = {‘examples’: [{‘accounts’: [‘0x388c818ca8b9251b393131c08a736a67ccb19297’, ‘0xf9cbBA7BF1b10E045691dDECa48182dB213E8F8B’]}, {‘accounts’: [{‘address’: ‘0x388c818ca8b9251b393131c08a736a67ccb19297’}, {‘address’: ‘0xf9cbBA7BF1b10E045691dDECa48182dB213E8F8B’}]}]}
- Fields
- Parameters
- Return type
None
- append(obj)
- extend(obj)