PapayaBySigInteraction
Class for using writable methods of Papaya Contract
constructor
description
"rpcUrl" is an address of your rpc
parameters
chainId(
number
)
- id of selected blockchainpapayaAddress(
`0x{string}`
)
- smart-contract addresstokenAddress(
`0x{string}`
)
- token addressprovider( JsonRpcProvider )
- jsonRpc blockchain provider from ethers.jssecretKey(
string
)
- wallet private key
usage
bySigDeposit
description
parameters
amount(
number
)
- amount of fundsdeadline(
number
)
-isPermit2(
boolean
)
- a flag indicating the specificity of the token
permitAndDeposit
description
parameters
amount(
number
)
- amount of fundsdeadline(
number
)
-
bySigDepositFor
description
parameters
to(
`0x{string}`
)
-amount(
number
)
- amount of fundsdeadline(
number
)
-isPermit2(
boolean
)
- a flag indicating the specificity of the token
permitAndBySigDepositFor
description
parameters
to(
`0x{string}`
)
-amount(
number
)
- amount of fundsdeadline(
number
)
-isPermit2(
boolean
)
- a flag indicating the specificity of the token
bySigWithdraw
description
parameters
amount (
number
)
- amount of fundsdeadline(
number
)
-
bySigWithdrawTo
description
parameters
to(
`0x{string}`
)
-amount(
number
)
- amount of fundsdeadline(
number
)
-
bySigPay
description
parameters
to(
`0x{string}`
)
-amount(
number
)
- amount of fundsdeadline(
number
)
-
bySigSubscribe
description
parameters
author(
`0x{string}`
)
-subscriptionRate(
number
)
-projectId(
number
)
-deadline(
number
)
-
bySigUnsubscribe
description
parameters
author(
`0x{string}`
)
-deadline(
number
)
-
bySigLiquidate
description
parameters
account(
`0x{string}`
)
-deadline(
number
)
-
buildBySigTraits
description
parameters
nonceType(
`BigInt`
)
-subscriptionRate(
number
)
-relayer
(
`0x{string}`
)
-deadline(
BigInt
)
-
Last updated