Sponsor jobs
Solidity type
Name
Value
Solidity Type
Name
Value
Solidity type
Name
Value
import { JobSpecification } from 'ees-sdk';
import { encodeAbiParameters } from 'viem';const jobSpecification: JobSpecification = {
nonce: 0n,
deadline: BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),
application: "0x7d337f7452fb892D7DAdfb4f7c02249DDAc41d4E",
executionWindow: 1800, // 30 minutes
zeroFeeWindow: 0,
maxExecutions: 0,
reusableNonce: false,
sponsorFallbackToOwner: false,
sponsorCanUpdateFeeModule: false,
ignoreAppRevert: false,
executionModule: "0x00",
feeModule: "0x01",
executionModuleInput: encodeAbiParameters(
[
{name: 'cooldown', type: 'uint32'},
{ name: 'initialExecutionTime', type: 'uint40' }
],
[2592000, 0]
),
feeModuleInput: encodeAbiParameters(
[
{ name: 'executionFeeToken', type: 'address' },
{ name: 'minExecutionFee', type: 'uint256' },
{ name: 'maxExecutionFee', type: 'uint256' }
],
["0x7139F4601480d20d43Fa77780B67D295805aD31a", 0n, 10000n]
),
applicationInput: encodeAbiParameters(
[
{ name: 'recipient', type: 'address' },
{ name: 'amount', type: 'uint256' },
{ name: 'token', type: 'address' },
{ name: 'tierId', type: 'uint96' }
],
["0x303cAE9641B868722194Bd9517eaC5ca2ad6e71a", 1000000n, "0x7139F4601480d20d43Fa77780B67D295805aD31a", 0n]
)
}Last updated