ElvContracts
Constructor
configUrl,
mainObjectId
})
Instantiate the ElvContract SDK
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
configUrl | string | ✓ | The Content Fabric configuration URL |
mainObjectId | string | ✓ | The top-level Eluvio Live object ID |
| ✓ |
ClaimerAddAuthAddr
Call the method addAuthorizedAdr of the smart contract Claimer.sol
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | ✓ | : the address to add to the list |
ClaimerAllocate
address,
amount,
expirationDate
)
Call the method allocate of the smart contract Claimer.sol
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | ✓ | : address to allocate |
amount | string | ✓ | : amount to allocate |
expirationDate | string | ✓ | : the expiration date of the new allocation |
ClaimerBalanceOf
Call the method getClaim of the smart contract Claimer.sol
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | ✓ | : get the balance of this address |
ClaimerBurn
Call the method burn of the smart contract Claimer.sol
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
amount | string | ✓ | : amount to burn |
ClaimerBurnOf
Call the method getBurn of the smart contract Claimer.sol
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | ✓ | : get the burn balance of this address |
ClaimerClaim
Call the method claim of the smart contract Claimer.sol
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
amount | string | ✓ | : amount to claim |
ClaimerClearAllocations
Call the method clearAllocations of the smart contract Claimer.sol
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | ✓ | : clear the allocations of this address |
ClaimerListAllocations
First clear the list and then create a list by pushing all the allocations into it
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | ✓ | : list the allocations of this list |
ClaimerRmAuthAddr
Call the method rmAuthorizedAdr of the smart contract Claimer.sol
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | ✓ | : the address to remove from the list |
CleanupObjects
objectAddr:,
objectType:
)
cleanUp objects to remove references to dead objects
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
objectAddr: | string | ✓ | address of the object |
objectType: | string | ✓ | object type (library | content_object | group | content_type) |
DeleteLibrary
delete library and to remove references to dead objects for the signer and groups
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
libraryAddr: | string | ✓ | address of the library |
ListContentObjects
list content objects for user or group address provided
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
objectAddr: | string | ✓ | address of the user or group |
PaymentDeploy
addresses,
shares:
)
Deploy Payment contract (revenue splitter - commerce/Payment.sol)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
addresses | string | ✓ | : list of stakeholder addresses |
shares: | string | ✓ | list of stakeholder shares, in the order of addresses |
PaymentRelease
addr:,
tokenContractAddress:,
payeeAddress:
)
Retrieve funds from payment splitter contract, as a payee or for payee address provided
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
addr: | string | ✓ | address of the payment contract |
tokenContractAddress: | string | ✓ | address of the token contract (ERC20) |
payeeAddress: | string | ✓ | address of the payee |
PaymentShow
addr:,
tokenContractAddress:
)
Show status of payment contract stakeholders
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
addr: | string | ✓ | address of the payment contract |
tokenContractAddress: | string | ✓ | address of the token contract (ERC20) |