@bitgo-beta/sdk-coin-trx 1.2.3-alpha.40 → 1.2.3-alpha.401
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/.mocharc.yml +1 -1
- package/CHANGELOG.md +988 -0
- package/dist/resources/protobuf/Contract.proto +32 -0
- package/dist/resources/protobuf/tron.d.ts +1478 -214
- package/dist/resources/protobuf/tron.js +6312 -2600
- package/dist/resources/protobuf/tron.proto +6 -0
- package/package.json +16 -14
- package/resources/protobuf/Contract.proto +32 -0
- package/resources/protobuf/tron.d.ts +1478 -214
- package/resources/protobuf/tron.js +6312 -2600
- package/resources/protobuf/tron.proto +6 -0
- package/dist/src/index.d.ts +0 -6
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -18
- package/dist/src/lib/address.d.ts +0 -11
- package/dist/src/lib/address.d.ts.map +0 -1
- package/dist/src/lib/address.js +0 -13
- package/dist/src/lib/builder.d.ts +0 -3
- package/dist/src/lib/builder.d.ts.map +0 -1
- package/dist/src/lib/builder.js +0 -10
- package/dist/src/lib/contractCallBuilder.d.ts +0 -96
- package/dist/src/lib/contractCallBuilder.d.ts.map +0 -1
- package/dist/src/lib/contractCallBuilder.js +0 -281
- package/dist/src/lib/enum.d.ts +0 -23
- package/dist/src/lib/enum.d.ts.map +0 -1
- package/dist/src/lib/enum.js +0 -28
- package/dist/src/lib/iface.d.ts +0 -103
- package/dist/src/lib/iface.d.ts.map +0 -1
- package/dist/src/lib/iface.js +0 -3
- package/dist/src/lib/index.d.ts +0 -12
- package/dist/src/lib/index.d.ts.map +0 -1
- package/dist/src/lib/index.js +0 -39
- package/dist/src/lib/keyPair.d.ts +0 -44
- package/dist/src/lib/keyPair.d.ts.map +0 -1
- package/dist/src/lib/keyPair.js +0 -121
- package/dist/src/lib/tokenTransferBuilder.d.ts +0 -23
- package/dist/src/lib/tokenTransferBuilder.d.ts.map +0 -1
- package/dist/src/lib/tokenTransferBuilder.js +0 -42
- package/dist/src/lib/transaction.d.ts +0 -74
- package/dist/src/lib/transaction.d.ts.map +0 -1
- package/dist/src/lib/transaction.js +0 -226
- package/dist/src/lib/transactionBuilder.d.ts +0 -65
- package/dist/src/lib/transactionBuilder.d.ts.map +0 -1
- package/dist/src/lib/transactionBuilder.js +0 -215
- package/dist/src/lib/utils.d.ts +0 -144
- package/dist/src/lib/utils.d.ts.map +0 -1
- package/dist/src/lib/utils.js +0 -426
- package/dist/src/lib/wrappedBuilder.d.ts +0 -54
- package/dist/src/lib/wrappedBuilder.d.ts.map +0 -1
- package/dist/src/lib/wrappedBuilder.js +0 -108
- package/dist/src/register.d.ts +0 -3
- package/dist/src/register.d.ts.map +0 -1
- package/dist/src/register.js +0 -15
- package/dist/src/trx.d.ts +0 -208
- package/dist/src/trx.d.ts.map +0 -1
- package/dist/src/trx.js +0 -563
- package/dist/src/trxToken.d.ts +0 -38
- package/dist/src/trxToken.d.ts.map +0 -1
- package/dist/src/trxToken.js +0 -91
- package/dist/src/ttrx.d.ts +0 -13
- package/dist/src/ttrx.d.ts.map +0 -1
- package/dist/src/ttrx.js +0 -14
|
@@ -273,6 +273,12 @@ message Transaction {
|
|
|
273
273
|
UpdateEnergyLimitContract = 45;
|
|
274
274
|
AccountPermissionUpdateContract = 46;
|
|
275
275
|
ClearABIContract = 48;
|
|
276
|
+
UpdateBrokerageContract = 49;
|
|
277
|
+
FreezeBalanceV2Contract = 54;
|
|
278
|
+
UnfreezeBalanceV2Contract = 55;
|
|
279
|
+
WithdrawExpireUnfreezeContract = 56;
|
|
280
|
+
DelegateResourceContract = 57;
|
|
281
|
+
UnDelegateResourceContract = 58;
|
|
276
282
|
}
|
|
277
283
|
ContractType type = 1;
|
|
278
284
|
google.protobuf.Any parameter = 2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo-beta/sdk-coin-trx",
|
|
3
|
-
"version": "1.2.3-alpha.
|
|
3
|
+
"version": "1.2.3-alpha.401",
|
|
4
4
|
"description": "BitGo SDK coin library for Tron",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"check-fmt": "prettier --check .",
|
|
12
12
|
"clean": "rm -r ./dist",
|
|
13
13
|
"lint": "eslint --quiet .",
|
|
14
|
-
"prepare": "npm run build-ts && cp -r ./resources ./dist",
|
|
14
|
+
"prepare": "npm run build-ts && shx cp -r ./resources ./dist",
|
|
15
15
|
"test": "npm run coverage",
|
|
16
16
|
"coverage": "nyc -- npm run unit-test",
|
|
17
|
-
"unit-test": "
|
|
17
|
+
"unit-test": "yarn run build && node --test dist/test/**/*.js",
|
|
18
18
|
"gen-protobuf": "pbjs -t static-module -w commonjs -o ./resources/protobuf/tron.js ./resources/protobuf/Discover.proto ./resources/protobuf/Contract.proto ./resources/protobuf/tron.proto",
|
|
19
19
|
"gen-protobufts": "pbts -o ./resources/protobuf/tron.d.ts ./resources/protobuf/tron.js"
|
|
20
20
|
},
|
|
21
21
|
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": ">=
|
|
24
|
+
"node": ">=20 <23"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
@@ -46,21 +46,23 @@
|
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@bitgo-beta/sdk-core": "2.4.1-alpha.
|
|
50
|
-
"@bitgo-beta/
|
|
51
|
-
"@bitgo-beta/
|
|
49
|
+
"@bitgo-beta/sdk-core": "2.4.1-alpha.404",
|
|
50
|
+
"@bitgo-beta/secp256k1": "1.0.1-alpha.362",
|
|
51
|
+
"@bitgo-beta/statics": "10.0.1-alpha.404",
|
|
52
52
|
"@stablelib/hex": "^1.0.0",
|
|
53
53
|
"bignumber.js": "^9.0.0",
|
|
54
54
|
"ethers": "^5.7.2",
|
|
55
55
|
"lodash": "^4.17.14",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
56
|
+
"long": "^5.3.2",
|
|
57
|
+
"protobufjs": "7.2.5",
|
|
58
|
+
"secp256k1": "5.0.1",
|
|
59
|
+
"superagent": "^9.0.1",
|
|
60
|
+
"tronweb": "5.1.0"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@bitgo-beta/sdk-api": "1.6.1-alpha.
|
|
63
|
-
"@bitgo-beta/sdk-test": "^1.
|
|
63
|
+
"@bitgo-beta/sdk-api": "1.6.1-alpha.404",
|
|
64
|
+
"@bitgo-beta/sdk-test": "^9.1.1",
|
|
65
|
+
"shx": "^0.3.4"
|
|
64
66
|
},
|
|
65
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "2b67af7f803199038ec5cc7d183db3c8f95d8f77"
|
|
66
68
|
}
|
|
@@ -155,6 +155,22 @@ message UnfreezeBalanceContract {
|
|
|
155
155
|
bytes receiver_address = 15;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
message FreezeBalanceV2Contract {
|
|
159
|
+
bytes owner_address = 1;
|
|
160
|
+
int64 frozen_balance = 2;
|
|
161
|
+
ResourceCode resource = 3;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
message UnfreezeBalanceV2Contract {
|
|
165
|
+
bytes owner_address = 1;
|
|
166
|
+
int64 unfreeze_balance = 2;
|
|
167
|
+
ResourceCode resource = 3;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
message WithdrawExpireUnfreezeContract {
|
|
171
|
+
bytes owner_address = 1;
|
|
172
|
+
}
|
|
173
|
+
|
|
158
174
|
message UnfreezeAssetContract {
|
|
159
175
|
bytes owner_address = 1;
|
|
160
176
|
}
|
|
@@ -254,3 +270,19 @@ message AccountPermissionUpdateContract {
|
|
|
254
270
|
Permission witness = 3;//Can be empty
|
|
255
271
|
repeated Permission actives = 4;//Empty is invalidate
|
|
256
272
|
}
|
|
273
|
+
|
|
274
|
+
message DelegateResourceContract {
|
|
275
|
+
bytes owner_address = 1;
|
|
276
|
+
ResourceCode resource = 2;
|
|
277
|
+
int64 balance = 3;
|
|
278
|
+
bytes receiver_address = 4;
|
|
279
|
+
bool lock = 5;
|
|
280
|
+
int64 lock_period = 6;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
message UnDelegateResourceContract {
|
|
284
|
+
bytes owner_address = 1;
|
|
285
|
+
ResourceCode resource = 2;
|
|
286
|
+
int64 balance = 3;
|
|
287
|
+
bytes receiver_address = 4;
|
|
288
|
+
}
|