The explorer is out of sync. The last synced block is 199 hours ago. Current block height: explorer: 2206528 / node: 2335429 / ref: 2335427

Program aml_1713438024.aleo

Program ID
aml_1713438024.aleo
Owner signature
sign138xh3eclvfdf8r05sf2ektsz3cqhsutzyykenn8q0st9esjm5sqds57srfdquzgske5sje4pvff9pnwl50a0x3ufpjvqnr4ya8d8uqpfmld7e4vm2kzgyjlge3ggyyey24760gftwv30faflcdgansp7q5dgy78gdshhk83hp46kg398hqt93w6xstu443fduz9xszj9le6sx60l6jn
Times called
20
Similar programs
0
Mappings
aml_blocklist (address -> boolean)
aml_version (boolean -> u32)
Structs
Action
Proposal
Block
Unblock
Records
AML
Functions
-
Transitions
block_(multisig_1713438024.aleo/Authorization, Block) -> () finalize(Block)
unblock(multisig_1713438024.aleo/Authorization, Unblock) -> () finalize(Unblock)
issue_aml(address, u32) -> AML finalize(address, u32)
verify_aml(AML) -> AML finalize(u32)
Program Source Code (Aleo Instruction) Upload Leo source

import multisig_1713438024.aleo;

program aml_1713438024.aleo;

struct Action:
    program_address as address;
    action_id as u8;

struct Proposal:
    action as Action;
    argument_hash as field;
    nonce as u64;

record AML:
    owner as address.private;
    account as address.private;
    version as u32.private;

struct Block:
    account as address;

struct Unblock:
    account as address;

mapping aml_blocklist:
    key as address.public;
    value as boolean.public;

mapping aml_version:
    key as boolean.public;
    value as u32.public;

function block_:
    input r0 as multisig_1713438024.aleo/Authorization.record;
    input r1 as Block.private;
    hash.bhp256 r1 into r2 as field;
    call multisig_1713438024.aleo/verify r0 0u8 r2 into r3;
    async block_ r3 r1 into r4;
    output r4 as aml_1713438024.aleo/block_.future;
finalize block_:
    input r0 as multisig_1713438024.aleo/verify.future;
    input r1 as Block.public;
    await r0;
    set true into aml_blocklist[r1.account];
    get.or_use aml_version[true] 0u32 into r2;
    add r2 1u32 into r3;
    set r3 into aml_version[true];

function unblock:
    input r0 as multisig_1713438024.aleo/Authorization.record;
    input r1 as Unblock.private;
    hash.bhp256 r1 into r2 as field;
    call multisig_1713438024.aleo/verify r0 1u8 r2 into r3;
    async unblock r3 r1 into r4;
    output r4 as aml_1713438024.aleo/unblock.future;
finalize unblock:
    input r0 as multisig_1713438024.aleo/verify.future;
    input r1 as Unblock.public;
    await r0;
    remove aml_blocklist[r1.account];
    get.or_use aml_version[true] 0u32 into r2;
    add r2 1u32 into r3;
    set r3 into aml_version[true];

function issue_aml:
    input r0 as address.private;
    input r1 as u32.private;
    cast self.signer r0 r1 into r2 as AML.record;
    async issue_aml r0 r1 into r3;
    output r2 as AML.record;
    output r3 as aml_1713438024.aleo/issue_aml.future;
finalize issue_aml:
    input r0 as address.public;
    input r1 as u32.public;
    contains aml_blocklist[r0] into r2;
    not r2 into r3;
    assert.eq r3 true;
    get aml_version[true] into r4;
    assert.eq r1 r4;

function verify_aml:
    input r0 as AML.record;
    cast r0.owner r0.account r0.version into r1 as AML.record;
    async verify_aml r0.version into r2;
    output r1 as AML.record;
    output r2 as aml_1713438024.aleo/verify_aml.future;
finalize verify_aml:
    input r0 as u32.public;
    get aml_version[true] into r1;
    assert.eq r0 r1;

Block heightTimestampTransition IDFunction callState
2,206,0602024-04-26 13:58:30au1pvvgmhht0w0ae9sqrqc84rzxtkph9yk8s4cn2s0zw2mjg0y7y58qn76rjyverify_amlAccepted
2,205,7902024-04-26 13:31:53au1q26y7l4q6lygcgshhyn72ff4tm574j32a3n66w2w0jz2sede6vzswr5m70verify_amlAccepted
2,205,4162024-04-26 12:54:51au1fvjfs0my5l452v6sfdehv54ppm25k5yxe9t2w92mtfwfjxd67qyq9jaxn4verify_amlAccepted
2,204,6302024-04-26 11:37:01au10wews9fzxvc6e9856snc533ed2pl8p6a32kesrwvn4mngv2tz58qgydpurverify_amlAccepted
2,204,3642024-04-26 11:11:59au159vslk2kuh327ckra032eztz2zkwu0z5f6k2rp6n6kjqqjgjlv9qplw77tverify_amlAccepted
2,204,3512024-04-26 11:11:02au16mv3kfdtldrhdwt9nrj7en05859v87wd6aspag0mmx0j9jzupvfqxqsc4sissue_amlAccepted
2,204,1932024-04-26 10:57:04au103hvw0fralc9s6v3yk7v0n2hhxe2twlccuzput4mykwgzdnklyrq7tymw6issue_amlAccepted
2,190,7152024-04-25 13:39:01au17v6ac7xq6ny2yt2nvhrk0lrjumrhjvq30xtq6z5px8pk44xjxqqqd2epj5verify_amlRejected
2,190,5872024-04-25 13:27:22au1qg8wf9a2sjfkp8esln5fsrgw3as7eg8uvs848pdj9tnzgtnm3uxq90mkhzissue_amlAccepted
2,190,2902024-04-25 12:56:55au1grh2leyf7w2zwvvnf2dr5xyy5w87xu4zqcuw5ymcn6r9zs8xusps2ger2kverify_amlAccepted
2,187,9582024-04-25 09:09:03au1czay3rtj5wuavxc8gnsk0vr7djygsv9dnxcuupkr8lrex9zd9sgqr684y3verify_amlRejected
2,187,5902024-04-25 08:35:28au1ll5jqxh46f9hga43rs9qacculgd97qul5pl8my00yljf7xp0wq9sdg9eflissue_amlAccepted
2,175,3192024-04-24 13:52:54au1remmh7yc2t7ffq8kpaex3rsqt6ymaqsqtmj2hwzz9dkqs5zgj5gsucsth4issue_amlAccepted
2,175,3162024-04-24 13:52:42au1y9rku90sxc2tl37peyr0ptymgh9xcccg4kmuj76wfjl3zgakvvxsxgzuxjissue_amlAccepted
2,173,7362024-04-24 11:13:27au1s82zwm2na4lkhcv9y3t7f06tekn3lve2xw3tq8tz3q9gvapxms8salatwcissue_amlAccepted
2,173,7012024-04-24 11:09:53au1q2x5gcu7dxapwa8uytkxys0ycv25guljy2nwevcgsr4jzvpm3y8q4g0jqgblock_Accepted
2,161,5462024-04-23 15:21:25au1k90s6p7va73q75vymp9tcl6r2c2eyqd2um0t5jsutghe4tm6msqsvdvvgsblock_Rejected
2,161,4342024-04-23 15:11:59au1hpal9gp5sp6rhyd7q8txmdhnnpadv20tka7u0n6vm47j02zcjvqq8yxztjblock_Rejected
2,141,6212024-04-22 08:15:40au1kj5qvgmmn9vaxqwr7tzpsttfrnhzt3e6h6le9g4qvyv0tdtqk5psfj8apdissue_amlRejected




Not implemented