@bitgo-beta/sdk-coin-trx 1.2.3-alpha.319 → 1.2.3-alpha.320
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/resources/protobuf/Contract.proto +16 -0
- package/dist/resources/protobuf/tron.d.ts +252 -0
- package/dist/resources/protobuf/tron.js +774 -0
- package/dist/resources/protobuf/tron.proto +2 -0
- package/dist/src/lib/constants.d.ts +2 -0
- package/dist/src/lib/constants.d.ts.map +1 -0
- package/dist/src/lib/constants.js +5 -0
- package/dist/src/lib/delegateResourceTxBuilder.d.ts +27 -0
- package/dist/src/lib/delegateResourceTxBuilder.d.ts.map +1 -0
- package/dist/src/lib/delegateResourceTxBuilder.js +98 -0
- package/dist/src/lib/enum.d.ts +9 -1
- package/dist/src/lib/enum.d.ts.map +1 -1
- package/dist/src/lib/enum.js +9 -1
- package/dist/src/lib/iface.d.ts +46 -1
- package/dist/src/lib/iface.d.ts.map +1 -1
- package/dist/src/lib/iface.js +1 -1
- package/dist/src/lib/resourceManagementTxBuilder.d.ts +72 -0
- package/dist/src/lib/resourceManagementTxBuilder.d.ts.map +1 -0
- package/dist/src/lib/resourceManagementTxBuilder.js +150 -0
- package/dist/src/lib/transaction.d.ts.map +1 -1
- package/dist/src/lib/transaction.js +13 -1
- package/dist/src/lib/utils.d.ts +8 -1
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +49 -1
- package/dist/src/lib/wrappedBuilder.d.ts +8 -0
- package/dist/src/lib/wrappedBuilder.d.ts.map +1 -1
- package/dist/src/lib/wrappedBuilder.js +13 -1
- package/dist/src/trx.d.ts +3 -1
- package/dist/src/trx.d.ts.map +1 -1
- package/dist/src/trx.js +5 -1
- package/package.json +6 -6
- package/resources/protobuf/Contract.proto +16 -0
- package/resources/protobuf/tron.d.ts +252 -0
- package/resources/protobuf/tron.js +774 -0
- package/resources/protobuf/tron.proto +2 -0
|
@@ -4931,6 +4931,256 @@ export namespace protocol {
|
|
|
4931
4931
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4932
4932
|
}
|
|
4933
4933
|
|
|
4934
|
+
/** Properties of a DelegateResourceContract. */
|
|
4935
|
+
interface IDelegateResourceContract {
|
|
4936
|
+
/** DelegateResourceContract ownerAddress */
|
|
4937
|
+
ownerAddress?: Uint8Array | null;
|
|
4938
|
+
|
|
4939
|
+
/** DelegateResourceContract resource */
|
|
4940
|
+
resource?: protocol.ResourceCode | null;
|
|
4941
|
+
|
|
4942
|
+
/** DelegateResourceContract balance */
|
|
4943
|
+
balance?: number | Long | null;
|
|
4944
|
+
|
|
4945
|
+
/** DelegateResourceContract receiverAddress */
|
|
4946
|
+
receiverAddress?: Uint8Array | null;
|
|
4947
|
+
|
|
4948
|
+
/** DelegateResourceContract lock */
|
|
4949
|
+
lock?: boolean | null;
|
|
4950
|
+
|
|
4951
|
+
/** DelegateResourceContract lockPeriod */
|
|
4952
|
+
lockPeriod?: number | Long | null;
|
|
4953
|
+
}
|
|
4954
|
+
|
|
4955
|
+
/** Represents a DelegateResourceContract. */
|
|
4956
|
+
class DelegateResourceContract implements IDelegateResourceContract {
|
|
4957
|
+
/**
|
|
4958
|
+
* Constructs a new DelegateResourceContract.
|
|
4959
|
+
* @param [properties] Properties to set
|
|
4960
|
+
*/
|
|
4961
|
+
constructor(properties?: protocol.IDelegateResourceContract);
|
|
4962
|
+
|
|
4963
|
+
/** DelegateResourceContract ownerAddress. */
|
|
4964
|
+
public ownerAddress: Uint8Array;
|
|
4965
|
+
|
|
4966
|
+
/** DelegateResourceContract resource. */
|
|
4967
|
+
public resource: protocol.ResourceCode;
|
|
4968
|
+
|
|
4969
|
+
/** DelegateResourceContract balance. */
|
|
4970
|
+
public balance: number | Long;
|
|
4971
|
+
|
|
4972
|
+
/** DelegateResourceContract receiverAddress. */
|
|
4973
|
+
public receiverAddress: Uint8Array;
|
|
4974
|
+
|
|
4975
|
+
/** DelegateResourceContract lock. */
|
|
4976
|
+
public lock: boolean;
|
|
4977
|
+
|
|
4978
|
+
/** DelegateResourceContract lockPeriod. */
|
|
4979
|
+
public lockPeriod: number | Long;
|
|
4980
|
+
|
|
4981
|
+
/**
|
|
4982
|
+
* Creates a new DelegateResourceContract instance using the specified properties.
|
|
4983
|
+
* @param [properties] Properties to set
|
|
4984
|
+
* @returns DelegateResourceContract instance
|
|
4985
|
+
*/
|
|
4986
|
+
public static create(properties?: protocol.IDelegateResourceContract): protocol.DelegateResourceContract;
|
|
4987
|
+
|
|
4988
|
+
/**
|
|
4989
|
+
* Encodes the specified DelegateResourceContract message. Does not implicitly {@link protocol.DelegateResourceContract.verify|verify} messages.
|
|
4990
|
+
* @param message DelegateResourceContract message or plain object to encode
|
|
4991
|
+
* @param [writer] Writer to encode to
|
|
4992
|
+
* @returns Writer
|
|
4993
|
+
*/
|
|
4994
|
+
public static encode(message: protocol.IDelegateResourceContract, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4995
|
+
|
|
4996
|
+
/**
|
|
4997
|
+
* Encodes the specified DelegateResourceContract message, length delimited. Does not implicitly {@link protocol.DelegateResourceContract.verify|verify} messages.
|
|
4998
|
+
* @param message DelegateResourceContract message or plain object to encode
|
|
4999
|
+
* @param [writer] Writer to encode to
|
|
5000
|
+
* @returns Writer
|
|
5001
|
+
*/
|
|
5002
|
+
public static encodeDelimited(
|
|
5003
|
+
message: protocol.IDelegateResourceContract,
|
|
5004
|
+
writer?: $protobuf.Writer
|
|
5005
|
+
): $protobuf.Writer;
|
|
5006
|
+
|
|
5007
|
+
/**
|
|
5008
|
+
* Decodes a DelegateResourceContract message from the specified reader or buffer.
|
|
5009
|
+
* @param reader Reader or buffer to decode from
|
|
5010
|
+
* @param [length] Message length if known beforehand
|
|
5011
|
+
* @returns DelegateResourceContract
|
|
5012
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5013
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5014
|
+
*/
|
|
5015
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): protocol.DelegateResourceContract;
|
|
5016
|
+
|
|
5017
|
+
/**
|
|
5018
|
+
* Decodes a DelegateResourceContract message from the specified reader or buffer, length delimited.
|
|
5019
|
+
* @param reader Reader or buffer to decode from
|
|
5020
|
+
* @returns DelegateResourceContract
|
|
5021
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5022
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5023
|
+
*/
|
|
5024
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): protocol.DelegateResourceContract;
|
|
5025
|
+
|
|
5026
|
+
/**
|
|
5027
|
+
* Verifies a DelegateResourceContract message.
|
|
5028
|
+
* @param message Plain object to verify
|
|
5029
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5030
|
+
*/
|
|
5031
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
5032
|
+
|
|
5033
|
+
/**
|
|
5034
|
+
* Creates a DelegateResourceContract message from a plain object. Also converts values to their respective internal types.
|
|
5035
|
+
* @param object Plain object
|
|
5036
|
+
* @returns DelegateResourceContract
|
|
5037
|
+
*/
|
|
5038
|
+
public static fromObject(object: { [k: string]: any }): protocol.DelegateResourceContract;
|
|
5039
|
+
|
|
5040
|
+
/**
|
|
5041
|
+
* Creates a plain object from a DelegateResourceContract message. Also converts values to other types if specified.
|
|
5042
|
+
* @param message DelegateResourceContract
|
|
5043
|
+
* @param [options] Conversion options
|
|
5044
|
+
* @returns Plain object
|
|
5045
|
+
*/
|
|
5046
|
+
public static toObject(
|
|
5047
|
+
message: protocol.DelegateResourceContract,
|
|
5048
|
+
options?: $protobuf.IConversionOptions
|
|
5049
|
+
): { [k: string]: any };
|
|
5050
|
+
|
|
5051
|
+
/**
|
|
5052
|
+
* Converts this DelegateResourceContract to JSON.
|
|
5053
|
+
* @returns JSON object
|
|
5054
|
+
*/
|
|
5055
|
+
public toJSON(): { [k: string]: any };
|
|
5056
|
+
|
|
5057
|
+
/**
|
|
5058
|
+
* Gets the default type url for DelegateResourceContract
|
|
5059
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5060
|
+
* @returns The default type url
|
|
5061
|
+
*/
|
|
5062
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5063
|
+
}
|
|
5064
|
+
|
|
5065
|
+
/** Properties of an UnDelegateResourceContract. */
|
|
5066
|
+
interface IUnDelegateResourceContract {
|
|
5067
|
+
/** UnDelegateResourceContract ownerAddress */
|
|
5068
|
+
ownerAddress?: Uint8Array | null;
|
|
5069
|
+
|
|
5070
|
+
/** UnDelegateResourceContract resource */
|
|
5071
|
+
resource?: protocol.ResourceCode | null;
|
|
5072
|
+
|
|
5073
|
+
/** UnDelegateResourceContract balance */
|
|
5074
|
+
balance?: number | Long | null;
|
|
5075
|
+
|
|
5076
|
+
/** UnDelegateResourceContract receiverAddress */
|
|
5077
|
+
receiverAddress?: Uint8Array | null;
|
|
5078
|
+
}
|
|
5079
|
+
|
|
5080
|
+
/** Represents an UnDelegateResourceContract. */
|
|
5081
|
+
class UnDelegateResourceContract implements IUnDelegateResourceContract {
|
|
5082
|
+
/**
|
|
5083
|
+
* Constructs a new UnDelegateResourceContract.
|
|
5084
|
+
* @param [properties] Properties to set
|
|
5085
|
+
*/
|
|
5086
|
+
constructor(properties?: protocol.IUnDelegateResourceContract);
|
|
5087
|
+
|
|
5088
|
+
/** UnDelegateResourceContract ownerAddress. */
|
|
5089
|
+
public ownerAddress: Uint8Array;
|
|
5090
|
+
|
|
5091
|
+
/** UnDelegateResourceContract resource. */
|
|
5092
|
+
public resource: protocol.ResourceCode;
|
|
5093
|
+
|
|
5094
|
+
/** UnDelegateResourceContract balance. */
|
|
5095
|
+
public balance: number | Long;
|
|
5096
|
+
|
|
5097
|
+
/** UnDelegateResourceContract receiverAddress. */
|
|
5098
|
+
public receiverAddress: Uint8Array;
|
|
5099
|
+
|
|
5100
|
+
/**
|
|
5101
|
+
* Creates a new UnDelegateResourceContract instance using the specified properties.
|
|
5102
|
+
* @param [properties] Properties to set
|
|
5103
|
+
* @returns UnDelegateResourceContract instance
|
|
5104
|
+
*/
|
|
5105
|
+
public static create(properties?: protocol.IUnDelegateResourceContract): protocol.UnDelegateResourceContract;
|
|
5106
|
+
|
|
5107
|
+
/**
|
|
5108
|
+
* Encodes the specified UnDelegateResourceContract message. Does not implicitly {@link protocol.UnDelegateResourceContract.verify|verify} messages.
|
|
5109
|
+
* @param message UnDelegateResourceContract message or plain object to encode
|
|
5110
|
+
* @param [writer] Writer to encode to
|
|
5111
|
+
* @returns Writer
|
|
5112
|
+
*/
|
|
5113
|
+
public static encode(message: protocol.IUnDelegateResourceContract, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5114
|
+
|
|
5115
|
+
/**
|
|
5116
|
+
* Encodes the specified UnDelegateResourceContract message, length delimited. Does not implicitly {@link protocol.UnDelegateResourceContract.verify|verify} messages.
|
|
5117
|
+
* @param message UnDelegateResourceContract message or plain object to encode
|
|
5118
|
+
* @param [writer] Writer to encode to
|
|
5119
|
+
* @returns Writer
|
|
5120
|
+
*/
|
|
5121
|
+
public static encodeDelimited(
|
|
5122
|
+
message: protocol.IUnDelegateResourceContract,
|
|
5123
|
+
writer?: $protobuf.Writer
|
|
5124
|
+
): $protobuf.Writer;
|
|
5125
|
+
|
|
5126
|
+
/**
|
|
5127
|
+
* Decodes an UnDelegateResourceContract message from the specified reader or buffer.
|
|
5128
|
+
* @param reader Reader or buffer to decode from
|
|
5129
|
+
* @param [length] Message length if known beforehand
|
|
5130
|
+
* @returns UnDelegateResourceContract
|
|
5131
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5132
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5133
|
+
*/
|
|
5134
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): protocol.UnDelegateResourceContract;
|
|
5135
|
+
|
|
5136
|
+
/**
|
|
5137
|
+
* Decodes an UnDelegateResourceContract message from the specified reader or buffer, length delimited.
|
|
5138
|
+
* @param reader Reader or buffer to decode from
|
|
5139
|
+
* @returns UnDelegateResourceContract
|
|
5140
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5141
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5142
|
+
*/
|
|
5143
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): protocol.UnDelegateResourceContract;
|
|
5144
|
+
|
|
5145
|
+
/**
|
|
5146
|
+
* Verifies an UnDelegateResourceContract message.
|
|
5147
|
+
* @param message Plain object to verify
|
|
5148
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5149
|
+
*/
|
|
5150
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
5151
|
+
|
|
5152
|
+
/**
|
|
5153
|
+
* Creates an UnDelegateResourceContract message from a plain object. Also converts values to their respective internal types.
|
|
5154
|
+
* @param object Plain object
|
|
5155
|
+
* @returns UnDelegateResourceContract
|
|
5156
|
+
*/
|
|
5157
|
+
public static fromObject(object: { [k: string]: any }): protocol.UnDelegateResourceContract;
|
|
5158
|
+
|
|
5159
|
+
/**
|
|
5160
|
+
* Creates a plain object from an UnDelegateResourceContract message. Also converts values to other types if specified.
|
|
5161
|
+
* @param message UnDelegateResourceContract
|
|
5162
|
+
* @param [options] Conversion options
|
|
5163
|
+
* @returns Plain object
|
|
5164
|
+
*/
|
|
5165
|
+
public static toObject(
|
|
5166
|
+
message: protocol.UnDelegateResourceContract,
|
|
5167
|
+
options?: $protobuf.IConversionOptions
|
|
5168
|
+
): { [k: string]: any };
|
|
5169
|
+
|
|
5170
|
+
/**
|
|
5171
|
+
* Converts this UnDelegateResourceContract to JSON.
|
|
5172
|
+
* @returns JSON object
|
|
5173
|
+
*/
|
|
5174
|
+
public toJSON(): { [k: string]: any };
|
|
5175
|
+
|
|
5176
|
+
/**
|
|
5177
|
+
* Gets the default type url for UnDelegateResourceContract
|
|
5178
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5179
|
+
* @returns The default type url
|
|
5180
|
+
*/
|
|
5181
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5182
|
+
}
|
|
5183
|
+
|
|
4934
5184
|
/** AccountType enum. */
|
|
4935
5185
|
enum AccountType {
|
|
4936
5186
|
Normal = 0,
|
|
@@ -7703,6 +7953,8 @@ export namespace protocol {
|
|
|
7703
7953
|
FreezeBalanceV2Contract = 54,
|
|
7704
7954
|
UnfreezeBalanceV2Contract = 55,
|
|
7705
7955
|
WithdrawExpireUnfreezeContract = 56,
|
|
7956
|
+
DelegateResourceContract = 57,
|
|
7957
|
+
UnDelegateResourceContract = 58,
|
|
7706
7958
|
}
|
|
7707
7959
|
}
|
|
7708
7960
|
|