Skip to content

Commit

Permalink
🪡 Docs ~~
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r0z committed Jan 25, 2024
1 parent 61631c3 commit 3c50a9b
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 77 deletions.
150 changes: 81 additions & 69 deletions abi/Summoner.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,82 @@
[
{
"type": "function",
"name": "summon",
"inputs": [
{
"name": "summoner",
"type": "address",
"internalType": "address"
},
{
"name": "shares",
"type": "uint88",
"internalType": "uint88"
},
{
"name": "locked",
"type": "bool",
"internalType": "bool"
},
{
"name": "salt",
"type": "bytes12",
"internalType": "bytes12"
}
],
"outputs": [
{
"name": "account",
"type": "address",
"internalType": "contract IAccounts"
}
],
"stateMutability": "payable"
},
{
"type": "function",
"name": "summonForToken",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "nft",
"type": "bool",
"internalType": "bool"
},
{
"name": "threshold",
"type": "uint88",
"internalType": "uint88"
},
{
"name": "salt",
"type": "bytes12",
"internalType": "bytes12"
}
],
"outputs": [
{
"name": "account",
"type": "address",
"internalType": "contract IAccounts"
}
],
"stateMutability": "payable"
}
]
{
"type": "function",
"name": "summon",
"inputs": [
{
"name": "summoners",
"type": "tuple[]",
"internalType": "struct Summoner.Ownership[]",
"components": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "shares",
"type": "uint96",
"internalType": "uint96"
}
]
},
{
"name": "threshold",
"type": "uint88",
"internalType": "uint88"
},
{
"name": "locked",
"type": "bool",
"internalType": "bool"
},
{
"name": "salt",
"type": "bytes12",
"internalType": "bytes12"
}
],
"outputs": [
{
"name": "account",
"type": "address",
"internalType": "contract IAccounts"
}
],
"stateMutability": "payable"
},
{
"type": "function",
"name": "summonForToken",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "standard",
"type": "uint8",
"internalType": "enum Summoner.Standard"
},
{
"name": "threshold",
"type": "uint88",
"internalType": "uint88"
},
{
"name": "salt",
"type": "bytes12",
"internalType": "bytes12"
}
],
"outputs": [
{
"name": "account",
"type": "address",
"internalType": "contract IAccounts"
}
],
"stateMutability": "payable"
}
]
2 changes: 1 addition & 1 deletion docs/src/src/Dagon.sol/contract.Dagon.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Dagon
[Git Source](https://github.com/Moloch-Mystics/dagon/blob/65b43bfbebe7dc8176f84027fc17e3554a0b2583/src/Dagon.sol)
[Git Source](https://github.com/Moloch-Mystics/dagon/blob/61631c322dd3fa7b753c15a6c86011e828ae4ba4/src/Dagon.sol)

**Inherits:**
ERC6909
Expand Down
2 changes: 1 addition & 1 deletion docs/src/src/Dagon.sol/interface.IAuth.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# IAuth
[Git Source](https://github.com/Moloch-Mystics/dagon/blob/65b43bfbebe7dc8176f84027fc17e3554a0b2583/src/Dagon.sol)
[Git Source](https://github.com/Moloch-Mystics/dagon/blob/61631c322dd3fa7b753c15a6c86011e828ae4ba4/src/Dagon.sol)

Simple authority interface for contracts.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/src/Dagon.sol/interface.IOwnable.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# IOwnable
[Git Source](https://github.com/Moloch-Mystics/dagon/blob/65b43bfbebe7dc8176f84027fc17e3554a0b2583/src/Dagon.sol)
[Git Source](https://github.com/Moloch-Mystics/dagon/blob/61631c322dd3fa7b753c15a6c86011e828ae4ba4/src/Dagon.sol)

Simple ownership interface for handover requests.

Expand Down
16 changes: 13 additions & 3 deletions docs/src/src/Summoner.sol/contract.Summoner.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Summoner
[Git Source](https://github.com/Moloch-Mystics/dagon/blob/65b43bfbebe7dc8176f84027fc17e3554a0b2583/src/Summoner.sol)
[Git Source](https://github.com/Moloch-Mystics/dagon/blob/61631c322dd3fa7b753c15a6c86011e828ae4ba4/src/Summoner.sol)

Simple summoner for Dagon (ð’€­) group accounts.

Expand All @@ -24,7 +24,7 @@ IAccounts internal constant FACTORY = IAccounts(0x000000000000dD366cc2E4432bB998


```solidity
function summon(address summoner, uint88 shares, bool locked, bytes12 salt)
function summon(Ownership[] calldata summoners, uint88 threshold, bool locked, bytes12 salt)
public
payable
returns (IAccounts account);
Expand All @@ -34,12 +34,22 @@ function summon(address summoner, uint88 shares, bool locked, bytes12 salt)


```solidity
function summonForToken(address token, bool nft, uint88 threshold, bytes12 salt)
function summonForToken(address token, Standard standard, uint88 threshold, bytes12 salt)
public
payable
returns (IAccounts account);
```

## Structs
### Ownership

```solidity
struct Ownership {
address owner;
uint96 shares;
}
```

## Enums
### Standard

Expand Down
4 changes: 2 additions & 2 deletions docs/src/src/Summoner.sol/interface.IAccounts.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# IAccounts
[Git Source](https://github.com/Moloch-Mystics/dagon/blob/65b43bfbebe7dc8176f84027fc17e3554a0b2583/src/Summoner.sol)
[Git Source](https://github.com/Moloch-Mystics/dagon/blob/61631c322dd3fa7b753c15a6c86011e828ae4ba4/src/Summoner.sol)

*Simple interface for Nani (ð’€­) user account creation.*
*Simple interface for Nani (ð’€­) user account creation and setup.*


## Functions
Expand Down

0 comments on commit 3c50a9b

Please sign in to comment.