Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
Add 0.8 kits
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Sep 7, 2019
1 parent adab01d commit 719cdbb
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 7 deletions.
200 changes: 194 additions & 6 deletions worker/src/org/kits.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
export const KIT_ADDRESSES = new Set([
// Democracy 1
// Democracy 1 (0.6)
'0x705Cd9a00b87Bb019a87beEB9a50334219aC4444',

// Democracy 2
// Multisig 1 (0.6)
'0x41bbaf498226b68415f1C78ED541c45A18fd7696',

// Democracy 2 (0.7)
'0x7f3ed10366826a1227025445D4f4e3e14BBfc91d',

// Multisig 1
'0x41bbaf498226b68415f1C78ED541c45A18fd7696',
// Multisig 2 (0.7)
'0x87aa2980dde7d2D4e57191f16BB57cF80bf6E5A6',

// Company Board (0.8)
'0x4d1A892f42c947fa952b57bc6939b27A96215CfA',

// Multisig 2
'0x87aa2980dde7d2D4e57191f16BB57cF80bf6E5A6'
// Company (0.8)
'0xd737632caC4d039C9B0EEcc94C12267407a271b5',

// Membership (0.8)
'0x67430642C0c3B5E6538049B9E9eE719f2a4BeE7c',

// Reputation (0.8)
'0x3a06A6544e48708142508D9042f94DDdA769d04F'
])

export const KIT_SIGNATURES = new Map([
// Democracy (0.6-0.7)
['0xf1868e8b', [{
name: 'name',
type: 'string'
Expand All @@ -33,6 +46,7 @@ export const KIT_SIGNATURES = new Map([
type: 'uint64'
}]],

// Multisig (0.6-0.7)
['0xa0fd20de', [{
name: 'name',
type: 'string'
Expand All @@ -42,5 +56,179 @@ export const KIT_SIGNATURES = new Map([
}, {
name: 'neededSignatures',
type: 'uint256'
}]],

// Company (0.8)
// Reputation (0.8)
['0x885b48e7', [{
name: 'tokenName',
type: 'string'
}, {
name: 'tokenSymbol',
type: 'string'
}, {
name: 'name',
type: 'string'
}, {
name: 'holders',
type: 'address[]'
}, {
name: 'stakes',
type: 'uint256[]'
}, {
name: 'votingSettings',
type: 'uint64[3]'
}, {
name: 'financePeriod',
type: 'uint64'
}, {
name: 'useAgentAsVault',
type: 'bool'
}]],

// Company (0.8)
// Reputation (0.8)
['0x0eb8e519', [{
name: 'name',
type: 'string'
}, {
name: 'holders',
type: 'address[]'
}, {
name: 'stakes',
type: 'uint256[]'
}, {
name: 'votingSettings',
type: 'uint64[3]'
}, {
name: 'financePeriod',
type: 'uint64'
}, {
name: 'useAgentAsVault',
type: 'bool'
}]],

// Company (0.8)
// Reputation (0.8)
['0xe2234b49', [{
name: 'name',
type: 'string'
}, {
name: 'holders',
type: 'address[]'
}, {
name: 'stakes',
type: 'uint256[]'
}, {
name: 'votingSettings',
type: 'uint64[3]'
}, {
name: 'financePeriod',
type: 'uint64'
}, {
name: 'useAgentAsVault',
type: 'bool'
}, {
name: 'payrollSettings',
type: 'uint256[4]'
}]],

// Company Board (0.8)
['0xab788d86', [{
name: 'name',
type: 'string'
}, {
name: 'shareHolders',
type: 'address[]'
}, {
name: 'shareStakes',
type: 'uint256[]'
}, {
name: 'boardMembers',
type: 'address[]'
}, {
name: 'useAgentAsVault',
type: 'bool'
}]],

// Company Board (0.8)
['0x700a34fa', [{
name: 'name',
type: 'string'
}, {
name: 'shareHolders',
type: 'address[]'
}, {
name: 'shareStakes',
type: 'uint256[]'
}, {
name: 'boardMembers',
type: 'address[]'
}, {
name: 'useAgentAsVault',
type: 'bool'
}, {
name: 'payrollSettings',
type: 'uint256[4]'
}]],

// Membership (0.8)
['0x8a29ac04', [{
name: 'tokenName',
type: 'string'
}, {
name: 'tokenSymbol',
type: 'string'
}, {
name: 'name',
type: 'string'
}, {
name: 'members',
type: 'address[]'
}, {
name: 'votingSettings',
type: 'uint64[3]'
}, {
name: 'financePeriod',
type: 'uint64'
}, {
name: 'useAgentAsVault',
type: 'bool'
}]],

// Membership (0.8)
['0xce489612', [{
name: 'name',
type: 'string'
}, {
name: 'members',
type: 'address[]'
}, {
name: 'votingSettings',
type: 'uint64[3]'
}, {
name: 'payrollSettings',
type: 'uint256[4]'
}]],

// Membership (0.8)
['0x2ce4ea94', [{
name: 'name',
type: 'string'
}, {
name: 'members',
type: 'address[]'
}, {
name: 'votingSettings',
type: 'uint64[3]'
}, {
name: 'financePeriod',
type: 'uint64'
}, {
name: 'useAgentAsVault',
type: 'bool'
}, {
name: 'payrollSettings',
type: 'uint256[4]'
}]]
])
5 changes: 4 additions & 1 deletion worker/src/org/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export function * persistName (
ctx.db.collection('orgs'),
{ address },
{
$set: { ens: ensName },
$set: {
ens: ensName,
kit: tx.to
},
$min: {
created_at: tx.timestamp
}
Expand Down

0 comments on commit 719cdbb

Please sign in to comment.