navs-aml
Version:
Anti-Money Laundering (AML) services powered by NAVS - Node-Assisted Verification Service
1,452 lines • 37.3 kB
JavaScript
;
// Auto-generated ABI file
// Generated on: 2025-06-04T04:38:42.188Z
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AIRDROP_CONTRACT = exports.TASK_DISPATCH_CONTRACT = exports.UNEMPLOYMENT_COIN_CONTRACT = exports.CONTRACT_ADDRESSES = exports.TaskDispatchABI = exports.UnemploymentCoinABI = void 0;
exports.UnemploymentCoinABI = [
{
"type": "constructor",
"inputs": [],
"stateMutability": "nonpayable"
},
{
"type": "receive",
"stateMutability": "payable"
},
{
"type": "function",
"name": "AML_CHECK_STAKE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PACKAGE_NAME",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PACKAGE_VERSION",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "WEEKLY_CLAIM_AMOUNT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "activeChecks",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "allowance",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "approve",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "balanceOf",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "claimWeeklyAllocation",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "claimed",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "decimals",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "emergencyWithdraw",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getClaimStatus",
"inputs": [
{
"name": "user",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "hasClaimed",
"type": "bool",
"internalType": "bool"
},
{
"name": "hasActiveCheck",
"type": "bool",
"internalType": "bool"
},
{
"name": "activeTaskId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "name",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "onIsAddressSanctioned",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "address_param",
"type": "address",
"internalType": "address"
},
{
"name": "result",
"type": "bool",
"internalType": "bool"
},
{
"name": "error",
"type": "string",
"internalType": "string"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "onNavsError",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "functionName",
"type": "string",
"internalType": "string"
},
{
"name": "error",
"type": "string",
"internalType": "string"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "onNavsResult",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "functionName",
"type": "string",
"internalType": "string"
},
{
"name": "result",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "pendingTransfers",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "transferType",
"type": "uint8",
"internalType": "enum UnemploymentCoin.TransferType"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "symbol",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "totalSupply",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "transfer",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Approval",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ClaimApproved",
"inputs": [
{
"name": "claimant",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ClaimInitiated",
"inputs": [
{
"name": "claimant",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "taskId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ClaimRejected",
"inputs": [
{
"name": "claimant",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "reason",
"type": "string",
"indexed": false,
"internalType": "string"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Transfer",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TransferBlocked",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "reason",
"type": "string",
"indexed": false,
"internalType": "string"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AMLCheckInProgress",
"inputs": []
},
{
"type": "error",
"name": "AlreadyClaimed",
"inputs": []
},
{
"type": "error",
"name": "ERC20InsufficientAllowance",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "allowance",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "needed",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "ERC20InsufficientBalance",
"inputs": [
{
"name": "sender",
"type": "address",
"internalType": "address"
},
{
"name": "balance",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "needed",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "ERC20InvalidApprover",
"inputs": [
{
"name": "approver",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC20InvalidReceiver",
"inputs": [
{
"name": "receiver",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC20InvalidSender",
"inputs": [
{
"name": "sender",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC20InvalidSpender",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "InsufficientAllowance",
"inputs": []
},
{
"type": "error",
"name": "InsufficientBalance",
"inputs": []
},
{
"type": "error",
"name": "SanctionedAddress",
"inputs": []
},
{
"type": "error",
"name": "TransferNotFound",
"inputs": []
},
{
"type": "error",
"name": "ZeroAddress",
"inputs": []
},
{
"type": "error",
"name": "ZeroAmount",
"inputs": []
}
];
exports.TaskDispatchABI = [
{
"type": "constructor",
"inputs": [
{
"name": "initialOwner",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getGovernance",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getOperatorStake",
"inputs": [
{
"name": "operator",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "stake",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getTaskDetails",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "serviceName",
"type": "string",
"internalType": "string"
},
{
"name": "serviceVersion",
"type": "string",
"internalType": "string"
},
{
"name": "functionName",
"type": "string",
"internalType": "string"
},
{
"name": "args",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "stakeThreshold",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "remainingStake",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "isConsensus",
"type": "bool",
"internalType": "bool"
},
{
"name": "consensusType",
"type": "uint8",
"internalType": "enum TaskDispatch.ConsensusType"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getTaskStatus",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "exists",
"type": "bool",
"internalType": "bool"
},
{
"name": "completed",
"type": "bool",
"internalType": "bool"
},
{
"name": "failed",
"type": "bool",
"internalType": "bool"
},
{
"name": "finalResponse",
"type": "bytes",
"internalType": "bytes"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "nextTaskId",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "onNavsError",
"inputs": [
{
"name": "consensusTaskId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "functionName",
"type": "string",
"internalType": "string"
},
{
"name": "err",
"type": "string",
"internalType": "string"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "onNavsResult",
"inputs": [
{
"name": "consensusTaskId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "functionName",
"type": "string",
"internalType": "string"
},
{
"name": "result",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "operators",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "stake",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "setStakeUpdater",
"inputs": [
{
"name": "newStakeUpdater",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "stakeUpdater",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "submitResult",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_response",
"type": "tuple",
"internalType": "struct TaskDispatch.ResponseInput",
"components": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
},
{
"name": "resultType",
"type": "string",
"internalType": "string"
},
{
"name": "result",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "extra",
"type": "bytes",
"internalType": "bytes"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "submitTask",
"inputs": [
{
"name": "serviceName",
"type": "string",
"internalType": "string"
},
{
"name": "serviceVersion",
"type": "string",
"internalType": "string"
},
{
"name": "functionName",
"type": "string",
"internalType": "string"
},
{
"name": "args",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "stakeThreshold",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "consensusType",
"type": "uint8",
"internalType": "enum TaskDispatch.ConsensusType"
},
{
"name": "isConsensus",
"type": "bool",
"internalType": "bool"
},
{
"name": "callbackReceiver",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "taskToConsensusTask",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "tasks",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "serviceName",
"type": "string",
"internalType": "string"
},
{
"name": "serviceVersion",
"type": "string",
"internalType": "string"
},
{
"name": "functionName",
"type": "string",
"internalType": "string"
},
{
"name": "args",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "stakeThreshold",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalRemainingStake",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "completed",
"type": "bool",
"internalType": "bool"
},
{
"name": "failed",
"type": "bool",
"internalType": "bool"
},
{
"name": "consensusType",
"type": "uint8",
"internalType": "enum TaskDispatch.ConsensusType"
},
{
"name": "finalResponse",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "extra",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "isConsensus",
"type": "bool",
"internalType": "bool"
},
{
"name": "callbackReceiver",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "totalOperatorStake",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "updateOperatorStake",
"inputs": [
{
"name": "operator",
"type": "address",
"internalType": "address"
},
{
"name": "newStake",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateOperatorStakes",
"inputs": [
{
"name": "operatorList",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "newStakes",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "CallbackFailed",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "callbackReceiver",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "reason",
"type": "string",
"indexed": false,
"internalType": "string"
}
],
"anonymous": false
},
{
"type": "event",
"name": "GovernanceEvent",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "consensusTaskId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "l1safeHash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OperatorStakeUpdated",
"inputs": [
{
"name": "operator",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "newStake",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ResultSubmitted",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "operator",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "response",
"type": "tuple",
"indexed": false,
"internalType": "struct TaskDispatch.ResponseInput",
"components": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
},
{
"name": "resultType",
"type": "string",
"internalType": "string"
},
{
"name": "result",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "extra",
"type": "bytes",
"internalType": "bytes"
}
]
}
],
"anonymous": false
},
{
"type": "event",
"name": "StakeUpdaterChanged",
"inputs": [
{
"name": "oldStakeUpdater",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newStakeUpdater",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TaskFailed",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TaskRequested",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "serviceName",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "serviceVersion",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "functionName",
"type": "string",
"indexed": false,
"internalType": "string"
},
{
"name": "args",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
},
{
"name": "stakeThreshold",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "isConsensus",
"type": "bool",
"indexed": false,
"internalType": "bool"
},
{
"name": "consensusType",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TaskSuccess",
"inputs": [
{
"name": "taskId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "response",
"type": "tuple",
"indexed": false,
"internalType": "struct TaskDispatch.ResponseInput",
"components": [
{
"name": "success",
"type": "bool",
"internalType": "bool"
},
{
"name": "resultType",
"type": "string",
"internalType": "string"
},
{
"name": "result",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "extra",
"type": "bytes",
"internalType": "bytes"
}
]
}
],
"anonymous": false
}
];
// Contract addresses (loaded from addresses.json)
const addresses_json_1 = __importDefault(require("./addresses.json"));
exports.CONTRACT_ADDRESSES = addresses_json_1.default;
// Type-safe contract configurations for viem
exports.UNEMPLOYMENT_COIN_CONTRACT = {
address: addresses_json_1.default.unemploymentCoin,
abi: exports.UnemploymentCoinABI,
};
exports.TASK_DISPATCH_CONTRACT = {
address: addresses_json_1.default.taskDispatch,
abi: exports.TaskDispatchABI,
};
// Legacy export for backwards compatibility
exports.AIRDROP_CONTRACT = exports.UNEMPLOYMENT_COIN_CONTRACT;
//# sourceMappingURL=abi.js.map