Skip to content

Commit

Permalink
feat: replace @tronweb3/google-protobuf to google-protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
Satan-web3 authored and Satan-web3 committed Dec 25, 2024
1 parent aeac154 commit ef8ba86
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"@tronweb3/google-protobuf": "^3.21.2",
"axios": "^1.7.4",
"bignumber.js": "^9.0.1",
"ethereum-cryptography": "^2.1.3",
"ethers": "^6.13.4",
"eventemitter3": "^3.1.0",
"google-protobuf": "^3.21.4",
"semver": "^5.6.0",
"validator": "^13.7.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/protocol/core/Tron_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand All @@ -21,7 +21,7 @@ var global =
(function () { return this; }).call(null) ||
Function('return this')();

var google_protobuf_any_pb = require('@tronweb3/google-protobuf/google/protobuf/any_pb.js');
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
goog.object.extend(proto, google_protobuf_any_pb);
goog.exportSymbol('TronWebProto.Account', null, global);
goog.exportSymbol('TronWebProto.Account.AccountResource', null, global);
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/core/contract/account_contract_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/core/contract/asset_issue_contract_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/core/contract/balance_contract_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/core/contract/common_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/core/contract/exchange_contract_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/core/contract/proposal_contract_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/core/contract/smart_contract_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/core/contract/storage_contract_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/core/contract/vote_asset_contract_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand Down
2 changes: 1 addition & 1 deletion src/protocol/core/contract/witness_contract_pb.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* eslint-disable */
// @ts-nocheck

var jspb = require('@tronweb3/google-protobuf');
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
Expand Down
2 changes: 1 addition & 1 deletion src/utils/transaction.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import google_protobuf_any_pb from '@tronweb3/google-protobuf/google/protobuf/any_pb.js';
import google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb.js';

import '../protocol/core/Tron_pb.cjs';
const { Transaction, Permission, Key } = globalThis.TronWebProto;
Expand Down

0 comments on commit ef8ba86

Please sign in to comment.