upload_curator_index

Documentation for eth_defi.vault.curator.upload_curator_index function.

upload_curator_index(bucket_name, endpoint_url, access_key_id, secret_access_key, public_url='', key_prefix='')

Build and upload the aggregate curator index to R2.

Uploads to curator-metadata/{key_prefix}index.json.

Parameters
  • bucket_name (str) – R2 bucket name.

  • endpoint_url (str) – R2 API endpoint URL.

  • access_key_id (str) – R2 access key ID.

  • secret_access_key (str) – R2 secret access key.

  • public_url (str) – Public base URL for constructing logo URLs in metadata.

  • key_prefix (str) – Optional prefix for R2 keys.

Returns

The full index list.

Return type

list[eth_defi.vault.curator.CuratorMetadata]