![]() |
Unity FlowSDK 2.0.0
FLOW Unity SDK
|
Contains helpers for commonly used transactions to support FlowControl functions. More...
Classes | |
struct | KeyPair |
Holds a hex encoded Asymmetric Cipher Key Pair More... | |
Static Public Member Functions | |
static KeyPair | GenerateKeypair () |
Generates new Asymmetric Cipher Key Pair in hex More... | |
static async Task< SdkAccount > | CreateAccount (string newAccountName) |
Create a new Flow account More... | |
static async Task< FlowTransactionResponse > | DeployContract (string name, string code) |
Deploys the given contract to the given Flow account. More... | |
static async Task< FlowTransactionResponse > | RemoveContract (string name) |
Removes the contract with the given name from the given account. More... | |
static async Task< FlowTransactionResponse > | UpdateContract (string name, string code) |
Updates the contract with the given name on the given account with new contents. More... | |
Contains helpers for commonly used transactions to support FlowControl functions.
|
inlinestatic |
Create a new Flow account
newAccountName | The name of the flow account. This is arbitrary and only used as a convenience to keep track of accounts. |
|
inlinestatic |
Deploys the given contract to the given Flow account.
name | Name of the contract to deploy |
code | Text contents of the contract to deploy |
|
inlinestatic |
Generates new Asymmetric Cipher Key Pair in hex
|
inlinestatic |
Removes the contract with the given name from the given account.
Once a contract is deleted from an account, that name will not be available for use by new contracts on that account.
name | Name of the contract that will be removed. |
|
inlinestatic |
Updates the contract with the given name on the given account with new contents.
For contract update limitations see: https://developers.flow.com/cadence/language/contract-updatability#updating-a-contract
name | The name of the contract to update |
code | The text of the contract that will replace the old contract text |