UpshiftSolanaVaultMetadata

Documentation for eth_defi.erc_4626.vault_protocol.upshift.offchain_metadata.UpshiftSolanaVaultMetadata Python class.

class UpshiftSolanaVaultMetadata

Bases: TypedDict

Solana-specific metadata returned for an Upshift vault.

Example response: {"deposit_token_symbol": "USDC", "deposit_token_decimals": 6}.

Attributes summary

vault_state_pda

Solana vault state PDA.

share_mint

Solana receipt-token mint.

deposit_mint

Solana denomination-token mint.

deposit_token_symbol

Denomination-token ticker.

deposit_token_decimals

Denomination-token decimal places.

program_id

Upshift Solana programme ID.

id

Solana metadata UUID.

tokenized_vault_id

Parent vault UUID.

Methods summary

__init__(*args, **kwargs)

clear()

Remove all items from the dict.

copy()

Return a shallow copy of the dict.

fromkeys([value])

Create a new dictionary with keys from iterable and values set to value.

get(key[, default])

Return the value for key if key is in the dictionary, else default.

items()

Return a set-like object providing a view on the dict's items.

keys()

Return a set-like object providing a view on the dict's keys.

pop(k[,d])

If the key is not found, return the default if given; otherwise, raise a KeyError.

popitem()

Remove and return a (key, value) pair as a 2-tuple.

setdefault(key[, default])

Insert key with a value of default if key is not in the dictionary.

update([E, ]**F)

If E is present and has a .keys() method, then does: for k in E.keys(): D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

values()

Return an object providing a view on the dict's values.

vault_state_pda: str

Solana vault state PDA. Example: "HegTiqVxUvnh3fD9ZA2v7PF3XnoqHgz4ytJRZKdLJ5ra".

share_mint: str

Solana receipt-token mint. Example: "CnhPtD2gHHrUvfuA6HrDdLQBKjGgVL8HZMJNCZdXuWEs".

deposit_mint: str

Solana denomination-token mint. Example: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v".

deposit_token_symbol: str

Denomination-token ticker. Example: "USDC".

deposit_token_decimals: int

Denomination-token decimal places. Example: 6.

program_id: str

Upshift Solana programme ID. Example: "up12bytoZBmwofqsySf2uqKQ7zpfeKiAWwfvqzJjtRt".

id: str

Solana metadata UUID. Example: "8de00f2c-f8c9-4471-a038-6484eca9a067".

tokenized_vault_id: str

Parent vault UUID. Example: "09bd056e-5fd5-47e9-a655-6e844c492341".

__init__(*args, **kwargs)
__new__(**kwargs)
clear()

Remove all items from the dict.

copy()

Return a shallow copy of the dict.

fromkeys(value=None, /)

Create a new dictionary with keys from iterable and values set to value.

get(key, default=None, /)

Return the value for key if key is in the dictionary, else default.

items()

Return a set-like object providing a view on the dict’s items.

keys()

Return a set-like object providing a view on the dict’s keys.

pop(k[, d]) v, remove specified key and return the corresponding value.

If the key is not found, return the default if given; otherwise, raise a KeyError.

popitem()

Remove and return a (key, value) pair as a 2-tuple.

Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty.

setdefault(key, default=None, /)

Insert key with a value of default if key is not in the dictionary.

Return the value for key if key is in the dictionary, else default.

update([E, ]**F) None.  Update D from mapping/iterable E and F.

If E is present and has a .keys() method, then does: for k in E.keys(): D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

values()

Return an object providing a view on the dict’s values.