Skip to content

[FEATURE] <dev-when-staked> #118

Open
@aggre

Description

@aggre

Detailed description

This issue doesn't have a more in-depth spec, it just suggests a feature.


By declaring HTML as follows, the viewer's staking position is verified, the request to src is made only when the require condition is fulfilled, and its response is applied to the template child element and rendered.

This architecture is based on amp-list.

<dev-when-staked connection="CONNECTION_ID" destination="0x..." network="NETWORK_NAME" require="300" src="https://example.com/data...">
    <template>
        ...
    </template>
    <p>Placeholder while waiting to meet require</p>
</dev-when-staked>

Options

  • *connection: the id of dev-connection element [FEATURE] <dev-connection> #126
  • *destination: the address of the staking destination
  • *network: the network name
  • *require: the minimum staking amount to unlock content
  • *src: the content source

Context

<dev-when-staked> is useful for achieving staking paywalls with minimal coding.

Possible implementation

No response

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions