Class SmartContract
Inheritance
SmartContract
Assembly: Algorand.dll
Syntax
public abstract class SmartContract : ISmartContractPredefineds, IAlgorandCommonPredefineds
Properties
|
Edit this page
View Source
AssetReferences
Declaration
public AssetReference[] AssetReferences { get; }
Property Value
|
Edit this page
View Source
Balance
Declaration
public ulong Balance { get; }
Property Value
|
Edit this page
View Source
CallerApplicationAddress
Declaration
public byte[] CallerApplicationAddress { get; }
Property Value
|
Edit this page
View Source
CallerApplicationID
Declaration
public byte[] CallerApplicationID { get; }
Property Value
|
Edit this page
View Source
CreatorAddress
Declaration
public byte[] CreatorAddress { get; }
Property Value
|
Edit this page
View Source
CurrentApplicationAddress
Declaration
public byte[] CurrentApplicationAddress { get; }
Property Value
|
Edit this page
View Source
CurrentApplicationID
Declaration
public ulong CurrentApplicationID { get; }
Property Value
|
Edit this page
View Source
GroupId
Declaration
public byte[] GroupId { get; }
Property Value
|
Edit this page
View Source
GroupSize
Declaration
public ulong GroupSize { get; }
Property Value
|
Edit this page
View Source
LatestTimeStamp
Declaration
public ulong LatestTimeStamp { get; }
Property Value
|
Edit this page
View Source
LogicSigVersion
Declaration
public ulong LogicSigVersion { get; }
Property Value
|
Edit this page
View Source
MaxTransactionLife
Declaration
public ulong MaxTransactionLife { get; }
Property Value
|
Edit this page
View Source
MinBalance
Declaration
public ulong MinBalance { get; }
Property Value
|
Edit this page
View Source
MinTransactionFee
Declaration
public ulong MinTransactionFee { get; }
Property Value
|
Edit this page
View Source
OpcodeBudget
Declaration
public ulong OpcodeBudget { get; }
Property Value
|
Edit this page
View Source
Round
Declaration
public ulong Round { get; }
Property Value
|
Edit this page
View Source
ZeroAddress
Declaration
public byte[] ZeroAddress { get; }
Property Value
Methods
|
Edit this page
View Source
ApprovalProgram(in AppCallTransactionReference)
Declaration
protected abstract int ApprovalProgram(in AppCallTransactionReference transaction)
Parameters
Returns
|
Edit this page
View Source
BigIntegerFromByteArray(byte[])
Declaration
public BigInteger BigIntegerFromByteArray(byte[] bytes)
Parameters
| Type |
Name |
Description |
| byte[] |
bytes |
|
Returns
|
Edit this page
View Source
BigIntegerFromIntegral(long)
Declaration
public BigInteger BigIntegerFromIntegral(long integral)
Parameters
| Type |
Name |
Description |
| long |
integral |
|
Returns
|
Edit this page
View Source
BigIntegerToByteArray(BigInteger)
Declaration
public byte[] BigIntegerToByteArray(BigInteger b)
Parameters
Returns
|
Edit this page
View Source
BoxDel(byte[])
Declaration
public void BoxDel(byte[] boxName)
Parameters
| Type |
Name |
Description |
| byte[] |
boxName |
Name of box
|
|
Edit this page
View Source
BoxExists(byte[])
Declaration
public bool BoxExists(byte[] boxName)
Parameters
| Type |
Name |
Description |
| byte[] |
boxName |
|
Returns
|
Edit this page
View Source
BoxGet(byte[])
Get the box contents by name. Error if box does not exist.
Declaration
public byte[] BoxGet(byte[] boxName)
Parameters
| Type |
Name |
Description |
| byte[] |
boxName |
|
Returns
|
Edit this page
View Source
BoxLen(byte[])
Length of box by name, or -1 if the box did not exist.
Declaration
public long BoxLen(byte[] boxName)
Parameters
| Type |
Name |
Description |
| byte[] |
boxName |
|
Returns
Exceptions
|
Edit this page
View Source
BoxSet(byte[], byte[])
Declaration
public void BoxSet(byte[] boxName, byte[] data)
Parameters
| Type |
Name |
Description |
| byte[] |
boxName |
Name of box
|
| byte[] |
data |
|
|
Edit this page
View Source
ClearStateProgram(in AppCallTransactionReference)
Declaration
protected abstract int ClearStateProgram(in AppCallTransactionReference transaction)
Parameters
Returns
|
Edit this page
View Source
CreateAsset(ulong, uint, bool, byte[]?, byte[]?, byte[]?, byte[]?, byte[]?, byte[]?, byte[]?, byte[]?)
Declaration
public ulong CreateAsset(ulong total, uint decimals, bool defaultFrozen, byte[]? unitName = null, byte[]? assetName = null, byte[]? url = null, byte[]? metaDataHash = null, byte[]? manager = null, byte[]? reserve = null, byte[]? freeze = null, byte[]? clawback = null)
Parameters
Returns
|
Edit this page
View Source
DecimalFromTealBytes(byte[])
Declaration
public decimal DecimalFromTealBytes(byte[] dec)
Parameters
| Type |
Name |
Description |
| byte[] |
dec |
|
Returns
|
Edit this page
View Source
Ecdsa_pk_decompress_secp256k1(byte[], out byte[], out byte[])
Declaration
public void Ecdsa_pk_decompress_secp256k1(byte[] pk, out byte[] pubkey_X, out byte[] pubkey_Y)
Parameters
| Type |
Name |
Description |
| byte[] |
pk |
|
| byte[] |
pubkey_X |
|
| byte[] |
pubkey_Y |
|
|
Edit this page
View Source
Ecdsa_pk_recover_secp256k1(byte[], ulong, byte[], byte[], out byte[], out byte[])
Declaration
public void Ecdsa_pk_recover_secp256k1(byte[] data, ulong recover_id, byte[] signature_R, byte[] signature_S, out byte[] pubkey_X, out byte[] pubkey_Y)
Parameters
|
Edit this page
View Source
Ecdsa_verify_secp256k1(byte[], byte[], byte[], byte[], byte[])
Declaration
public bool Ecdsa_verify_secp256k1(byte[] data, byte[] signature_R, byte[] signature_S, byte[] pubkey_X, byte[] pubkey_Y)
Parameters
| Type |
Name |
Description |
| byte[] |
data |
|
| byte[] |
signature_R |
|
| byte[] |
signature_S |
|
| byte[] |
pubkey_X |
|
| byte[] |
pubkey_Y |
|
Returns
|
Edit this page
View Source
Ecdsa_verify_secp256r1(byte[], byte[], byte[], byte[], byte[])
Declaration
public bool Ecdsa_verify_secp256r1(byte[] data, byte[] signature_R, byte[] signature_S, byte[] pubkey_X, byte[] pubkey_Y)
Parameters
| Type |
Name |
Description |
| byte[] |
data |
|
| byte[] |
signature_R |
|
| byte[] |
signature_S |
|
| byte[] |
pubkey_X |
|
| byte[] |
pubkey_Y |
|
Returns
|
Edit this page
View Source
Ed25519verify(byte[], byte[], byte[])
Declaration
public bool Ed25519verify(byte[] data, byte[] signature, byte[] publicKey)
Parameters
| Type |
Name |
Description |
| byte[] |
data |
|
| byte[] |
signature |
|
| byte[] |
publicKey |
|
Returns
|
Edit this page
View Source
EncodeString(string)
Declaration
public byte[] EncodeString(string str)
Parameters
| Type |
Name |
Description |
| string |
str |
|
Returns
|
Edit this page
View Source
Error()
Declaration
Returns
|
Edit this page
View Source
Fail()
Declaration
|
Edit this page
View Source
InvokeSmartContractMethod()
Declaration
public void InvokeSmartContractMethod()
|
Edit this page
View Source
Keccak256(byte[])
Declaration
public byte[] Keccak256(byte[] toHash)
Parameters
| Type |
Name |
Description |
| byte[] |
toHash |
|
Returns
|
Edit this page
View Source
LogBytes(byte[])
Declaration
public void LogBytes(byte[] bytes)
Parameters
| Type |
Name |
Description |
| byte[] |
bytes |
|
|
Edit this page
View Source
LogInt(long)
Declaration
public void LogInt(long integral)
Parameters
| Type |
Name |
Description |
| long |
integral |
|
|
Edit this page
View Source
LogUInt(ulong)
Declaration
public void LogUInt(ulong integral)
Parameters
| Type |
Name |
Description |
| ulong |
integral |
|
|
Edit this page
View Source
Sha256(byte[])
Declaration
public byte[] Sha256(byte[] toHash)
Parameters
| Type |
Name |
Description |
| byte[] |
toHash |
|
Returns
|
Edit this page
View Source
Sha512_256(byte[])
Declaration
public byte[] Sha512_256(byte[] toHash)
Parameters
| Type |
Name |
Description |
| byte[] |
toHash |
|
Returns
|
Edit this page
View Source
SwitchLocalAccountContext(int)
Change local account context to index in account array
Declaration
public void SwitchLocalAccountContext(int acccountIndex)
Parameters
| Type |
Name |
Description |
| int |
acccountIndex |
|
|
Edit this page
View Source
TealBytesFromDecimal(decimal)
Declaration
public byte[] TealBytesFromDecimal(decimal dec)
Parameters
Returns
Implements