-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into f/OS-824-add-actions-to-proposals-queries
- Loading branch information
Showing
19 changed files
with
484 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
modules/client/examples/02-multisig-client/15-is-member.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* MARKDOWN | ||
--- | ||
title: Is Member | ||
--- | ||
### Check if an address is a member of Multisig DAO in a specific block and plugin | ||
The is member function receives the plugin address and the address to check as parameters and returns a boolean value. | ||
*/ | ||
|
||
import { MultisigClient } from "@aragon/sdk-client"; | ||
import { context } from "../index"; | ||
|
||
// Instantiate the multisig client from the Aragon OSx SDK context. | ||
const client: MultisigClient = new MultisigClient(context); | ||
|
||
const isMember = await client.methods.isMember({ | ||
pluginAddress: "0x2345678901234567890123456789012345678901", | ||
address: "0x1234567890123456789012345678901234567890", | ||
blockNumber: 12345678, | ||
}); | ||
|
||
console.log(isMember); | ||
|
||
/* MARKDOWN | ||
Returns: | ||
```tsx | ||
true | ||
``` | ||
*/ |
31 changes: 31 additions & 0 deletions
31
modules/client/examples/03-tokenVoting-client/22-is-member.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* MARKDOWN | ||
--- | ||
title: Is Member | ||
--- | ||
### Check if an address is a member of TokenVoting DAO in a specific block and plugin | ||
The is member function receives the plugin address and the address to check as parameters and returns a boolean value. | ||
*/ | ||
|
||
import { TokenVotingClient } from "@aragon/sdk-client"; | ||
import { context } from "../index"; | ||
|
||
// Instantiate the token voting client from the Aragon OSx SDK context. | ||
const client: TokenVotingClient = new TokenVotingClient(context); | ||
|
||
const isMember = await client.methods.isMember({ | ||
pluginAddress: "0x2345678901234567890123456789012345678901", | ||
address: "0x1234567890123456789012345678901234567890", | ||
blockNumber: 12345678, | ||
}); | ||
|
||
console.log(isMember); | ||
|
||
/* MARKDOWN | ||
Returns: | ||
```tsx | ||
true | ||
``` | ||
*/ |
31 changes: 31 additions & 0 deletions
31
modules/client/examples/04-addresslistVoting-client/15-is-member.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* MARKDOWN | ||
--- | ||
title: Is Member | ||
--- | ||
### Check if an address is a member of an Addresslist DAO in a specific block and plugin | ||
The is member function receives the plugin address and the address to check as parameters and returns a boolean value. | ||
*/ | ||
|
||
import { AddresslistVotingClient } from "@aragon/sdk-client"; | ||
import { context } from "../index"; | ||
|
||
// Instantiate the addresslist voting client from the Aragon OSx SDK context. | ||
const client: AddresslistVotingClient = new AddresslistVotingClient(context); | ||
|
||
const isMember = await client.methods.isMember({ | ||
pluginAddress: "0x2345678901234567890123456789012345678901", | ||
address: "0x1234567890123456789012345678901234567890", | ||
blockNumber: 12345678, | ||
}); | ||
|
||
console.log(isMember); | ||
|
||
/* MARKDOWN | ||
Returns: | ||
```tsx | ||
true | ||
``` | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.