Skip to content

Added setrampayer and logrampayer actions#57

Open
aaroncox wants to merge 1 commit into
pinknetworkx:masterfrom
aaroncox:setrampayer
Open

Added setrampayer and logrampayer actions#57
aaroncox wants to merge 1 commit into
pinknetworkx:masterfrom
aaroncox:setrampayer

Conversation

@aaroncox
Copy link
Copy Markdown

@aaroncox aaroncox commented May 31, 2026

Adds a standalone action that lets the current owner of an asset take over responsibility for that asset's RAM cost.

Today an asset's ram_payer is fixed to the authorized_minter at mint time and is only ever rewritten as a side effect of setassetdata - which was just a side effect of its main purpose. There is no way for the account that actually holds an asset to assume its RAM cost.

setrampayer closes that gap by exposing the existing re-bill mechanic(modify with a new payer, as setassetdata already does at line 663) as a small, owner-callable action.

Purely additive — two new actions, no changes to existing actions, tables, or storage layout. The ABI change appends new action definitions only, so existing callers and indexers are unaffected. A Ricardian clause for setrampayer is included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant