Hydro
  • Getting Started
  • Raindrop
    • Raindrop Overview
    • Client Side Raindrop
      • Client-Side Raindrop Overview
      • Handling User Signatures
      • Recognizing Users
      • User Account Management
        • Check if Username is Taken
        • Creating HydroIDs
        • Creating HydroIDs (delegated)
        • Deleting Users
      • Verifying signatures
    • Server Side Raindrop
  • Snowflake
    • Snowflake Overview
      • Setting Up Snowflake
      • Naming Conventions
      • Handling User Signatures
    • Address Management
      • Adding Addresses
      • Removing Addresses
    • Provider Management
      • Add Providers
      • Upgrade Providers
    • Resolver Management
      • Adding Resolvers
      • Adding Resolvers (delegated)
      • Removing Resolvers
    • Allowances in Snowflake
      • User Hydro Balances and the Allowance Structure
      • Allowance management logic
      • Setting Initial DApp Allowances
      • Changing DApp Allowances
      • Change DApp Allowances (Delegated)
    • Payments in Snowflake
      • Self-Initiated Payments
      • Resolver-Initiated Payments
        • EIN - EIN Transfer
        • EIN - Address Withdrawal
      • Resolver-Initiated Via Payments
        • EIN - Via - EIN Transfer
        • EIN - Via - Address Withdrawals
      • Resolver-As-Escrow Payments
        • Resolver - EIN Transfer
        • Resolver - Address Withdrawal
      • Resolver-As-Escrow Via Payments
        • Resolver - Via - EIN Transfer
        • Resolver - Via - Address Withdrawal
    • Building a Resolver
      • Smart Contract
      • React Front-End
    • Building a Via Contract
  • Ice
    • Untitled
  • Tide
    • Untitled
Powered by GitBook
On this page

Was this helpful?

  1. Snowflake
  2. Allowances in Snowflake

Change DApp Allowances (Delegated)

A service provider may also use a meta-transaction to set an Allowance on behalf of an EIN. This involves calling the changeResolverAllowancesDelegated function on the Snowflake smart contract with the arguments below.

ARGUMENTS

Parameter

Type

Description

approvingAddress

address

Associated Address signing the necessary message in the function call.

resolvers

address[]

Array of addresses of Resolversfor which the allowance is being changed.

withdrawAllowances

uint[]

An array of uints of the new allowance for each corresponding Resolver address.

r, s, v signature

bytes32, bytes32, uint8

Signed message as required in the format below.

Signatures should follow the following format.

keccak256(
    abi.encodePacked("Change Allowance", ein, resolvers, withdrawAllowances, nonce)
)

PreviousChanging DApp AllowancesNextPayments in Snowflake

Last updated 6 years ago

Was this helpful?