hypha-dao / dho-web-client

The DHO (Decentralized Human Organization) is a framework to build your organization from the ground up in an organic and participative way and together with others.
https://dao.hypha.earth/
Apache License 2.0
13 stars 8 forks source link

EOS Contract Permissions #1823

Closed n13 closed 2 years ago

n13 commented 2 years ago

EOS contracts have been deployed, this is for setting all permissions

❯ cleosm get account dao.hypha created: 2020-01-09T19:57:31.500 permissions: owner 5: 5 dao.hypha@eosio.code, 2 gerard5ph321@active, 1 gradinagruiu@active, 5 hyphanewyork@active, 2 illumination@active, 2 joachimstroh@active, 1 josemariagay@active, 1 leonieherma1@active, 1 markflowfarm@active, 1 s.tk@active, 1 thealchemist@active active 5: 5 dao.hypha@eosio.code, 5 gerard5ph321@active, 1 gradinagruiu@active, 2 hyphanewyork@active, 2 illumination@active, 2 joachimstroh@active, 1 josemariagay@active, 1 leonieherma1@active, 1 markflowfarm@active, 1 s.tk@active, 1 thealchemist@active enrollers 1: 1 cometogether@active, 1 hyphanewyork@active, 1 illumination@active, 1 joachimstroh@active, 1 thealchemist@active

❯ cleosm get account voice.hypha created: 2021-02-17T15:02:23.500 permissions: owner 1: 1 EOS6TzH8pWkRqzdQLpVz7W2awY2CycTckkkjEi9FvormYTiVff5iz, 1 dao.hypha@active active 1: 1 EOS6TzH8pWkRqzdQLpVz7W2awY2CycTckkkjEi9FvormYTiVff5iz, 1 dao.hypha@active, 1 dao.hypha@eosio.code, 1 voice.hypha@eosio.code

❯ cleosm get account husd.hypha created: 2020-05-19T23:22:44.000 permissions: owner 2: 2 dao.hypha@active, 2 husd.hypha@eosio.code, active 2: 2 dao.hypha@active, 2 dao.hypha@eosio.code, 2 husd.hypha@eosio.code,

❯ cleosm get account hypha.hypha created: 2022-03-21T04:47:37.500 permissions: owner 1: 1 dao.hypha@active active 1: 1 dao.hypha@active, 1 dao.hypha@eosio.code

❯ cleosm get account kv.hypha created: 2020-04-09T01:41:36.500 permissions: owner 1: 1 kv.hypha@eosio.code active 1: 1 kv.hypha@eosio.code

n13 commented 2 years ago

Done

This is the command line log of all the permissions commands I ran and the outcomes

=========================================================================
PERMISSIONS
=========================================================================

#### ACTIVE AND OWNER 

cleoseosmain set account permission dao.hypha enrollers '{
    "threshold":1,
    "keys":[
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"illum1nation",
            "permission":"active"
        },
        "weight":1
    }
    ],
    "waits":[]
}' active -p dao.hypha@owner

cleoseosmain set account permission dao.hypha active '{
    "threshold":1,
    "keys":[
    {
        "key":"EOS6C2pb62Dj5gQN1vokcJMVUMX5UEhrainbBCtP92NJpdAGGKCaX",
        "weight":1
    }
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"eosio.code"
        },
        "weight":1
    }
    ],
    "waits":[]
}' owner -p dao.hypha@owner

cleoseosmain set account permission dao.hypha owner '{
    "threshold":1,
    "keys":[
    {
        "key":"EOS6C2pb62Dj5gQN1vokcJMVUMX5UEhrainbBCtP92NJpdAGGKCaX",
        "weight":1
    }
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"eosio.code"
        },
        "weight":1
    }
    ],
    "waits":[]
}' -p dao.hypha@owner

Done
❯ cleoseosmain get account dao.hypha                    
created: 2022-10-27T06:16:12.000
permissions: 
     owner     1:    1 EOS6C2pb62Dj5gQN1vokcJMVUMX5UEhrainbBCtP92NJpdAGGKCaX, 1 dao.hypha@eosio.code
        active     1:    1 EOS6C2pb62Dj5gQN1vokcJMVUMX5UEhrainbBCtP92NJpdAGGKCaX, 1 dao.hypha@eosio.code
           enrollers     1:    1 illum1nation@active

====================
kv.hypha

cleoseosmain set account permission kv.hypha active '{
    "threshold":1,
    "keys":[
    {
        "key":"EOS7FATYXRxFPNbPNp9bjFKCcrJJC5gbSw7BfvXLBceA3u9nrdRx6",
        "weight":1
    }
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"kv.hypha",
            "permission":"eosio.code"
        },
        "weight":1
    }
    ],
    "waits":[]
}' owner -p kv.hypha@owner

cleoseosmain set account permission kv.hypha owner '{
    "threshold":1,
    "keys":[
    {
        "key":"EOS7FATYXRxFPNbPNp9bjFKCcrJJC5gbSw7BfvXLBceA3u9nrdRx6",
        "weight":1
    }
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"kv.hypha",
            "permission":"eosio.code"
        },
        "weight":1
    }
    ],
    "waits":[]
}' -p kv.hypha@owner

DONE
❯ cleoseosmain get account kv.hypha 
created: 2022-11-14T12:39:54.000
permissions: 
     owner     1:    1 EOS7FATYXRxFPNbPNp9bjFKCcrJJC5gbSw7BfvXLBceA3u9nrdRx6, 1 kv.hypha@eosio.code
        active     1:    1 EOS7FATYXRxFPNbPNp9bjFKCcrJJC5gbSw7BfvXLBceA3u9nrdRx6, 1 kv.hypha@eosio.code

====================
voice.hypha

cleoseosmain set account permission voice.hypha active '{
    "threshold":1,
    "keys":[
    {
        "key":"EOS8ZTq6PNbLLWH7tv7r98cPspcQT2niG82RUsv2mHiao7fvJXyCp",
        "weight":1
    }
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"active"
        },
        "weight":1
    },
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"eosio.code"
        },
        "weight":1
    },
    {
        "permission":
        {
            "actor":"voice.hypha",
            "permission":"eosio.code"
        },
        "weight":1
    },
    ],
    "waits":[]
}' owner -p voice.hypha@owner

cleoseosmain set account permission voice.hypha owner '{
    "threshold":1,
    "keys":[
    {
        "key":"EOS8ZTq6PNbLLWH7tv7r98cPspcQT2niG82RUsv2mHiao7fvJXyCp",
        "weight":1
    }
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"active"
        },
        "weight":1
    }
    ],
    "waits":[]
}' -p voice.hypha@owner

DONE
❯ cleoseosmain get account voice.hypha
created: 2022-11-14T12:30:54.000
permissions: 
     owner     1:    1 EOS8ZTq6PNbLLWH7tv7r98cPspcQT2niG82RUsv2mHiao7fvJXyCp, 1 dao.hypha@active
        active     1:    1 EOS8ZTq6PNbLLWH7tv7r98cPspcQT2niG82RUsv2mHiao7fvJXyCp, 1 dao.hypha@active, 1 dao.hypha@eosio.code, 1 voice.hypha@eosio.code

====================
husd.hypha

cleoseosmain set account permission husd.hypha active '{
    "threshold":1,
    "keys":[
    {
        "key":"EOS75nBpn8F4uNp4LU1BrTGbgaQhbtGn3UnYJKSnhELcrofPZ7QLC",
        "weight":1
    }
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"active"
        },
        "weight":1
    },
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"eosio.code"
        },
        "weight":1
    },
    {
        "permission":
        {
            "actor":"husd.hypha",
            "permission":"eosio.code"
        },
        "weight":1
    },
    ],
    "waits":[]
}' owner -p husd.hypha@owner

cleoseosmain set account permission husd.hypha owner '{
    "threshold":1,
    "keys":[
    {
        "key":"EOS75nBpn8F4uNp4LU1BrTGbgaQhbtGn3UnYJKSnhELcrofPZ7QLC",
        "weight":1
    }
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"active"
        },
        "weight":1
    },
    {
        "permission":
        {
            "actor":"husd.hypha",
            "permission":"eosio.code"
        },
        "weight":1
    },
    ],
    "waits":[]
}' -p husd.hypha@owner

DONE
❯ cleoseosmain get account husd.hypha
created: 2022-11-14T12:37:00.000
permissions: 
     owner     1:    1 EOS75nBpn8F4uNp4LU1BrTGbgaQhbtGn3UnYJKSnhELcrofPZ7QLC, 1 dao.hypha@active, 1 husd.hypha@eosio.code
        active     1:    1 EOS75nBpn8F4uNp4LU1BrTGbgaQhbtGn3UnYJKSnhELcrofPZ7QLC, 1 dao.hypha@active, 1 dao.hypha@eosio.code, 1 husd.hypha@eosio.code

====================
hypha.hypha

cleoseosmain set account permission hypha.hypha active '{
    "threshold":1,
    "keys":[
    {
        "key":"EOS5kHZcxFPvRq4ip8LSTQ7TzQLEisypZ3x1Rrp3YHSgTHq7nx6iF",
        "weight":1
    }
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"active"
        },
        "weight":1
    },
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"eosio.code"
        },
        "weight":1
    }
    ],
    "waits":[]
}' owner -p hypha.hypha@owner

cleoseosmain set account permission hypha.hypha owner '{
    "threshold":1,
    "keys":[
    {
        "key":"EOS5kHZcxFPvRq4ip8LSTQ7TzQLEisypZ3x1Rrp3YHSgTHq7nx6iF",
        "weight":1
    }
    ],
    "accounts":[
    {
        "permission":
        {
            "actor":"dao.hypha",
            "permission":"active"
        },
        "weight":1
    }
    ],
    "waits":[]
}' -p hypha.hypha@owner

DONE
❯ cleoseosmain get account hypha.hypha
created: 2022-11-14T12:33:12.000
permissions: 
     owner     1:    1 EOS5kHZcxFPvRq4ip8LSTQ7TzQLEisypZ3x1Rrp3YHSgTHq7nx6iF, 1 dao.hypha@active
        active     1:    1 EOS5kHZcxFPvRq4ip8LSTQ7TzQLEisypZ3x1Rrp3YHSgTHq7nx6iF, 1 dao.hypha@active, 1 dao.hypha@eosio.code

====================
dao.hypha

== manual power up

cleoseosmain push action eosio powerup '{
        "cpu_frac":29427660,
        "days":1,
        "max_payment":"0.0004 EOS",
        "net_frac":38141826,
        "payer":"dev.hypha",
        "receiver":"dao.hypha"
}' -p dev.hypha@active