From 30f7b89263b074ab2945a9d3c238626da52a4ea0 Mon Sep 17 00:00:00 2001 From: Alexander Cristurean Date: Mon, 11 Dec 2023 14:26:26 +0200 Subject: [PATCH 1/5] deprecate current sdk implementation. --- go.sum | 770 ----- Makefile => mx-sdk-go-old/Makefile | 0 .../aggregator}/api/errors/errors.go | 0 .../aggregator}/api/gin/httpServer.go | 0 .../aggregator}/api/gin/httpServer_test.go | 4 +- .../aggregator}/api/gin/interface.go | 0 .../aggregator}/api/gin/webServer.go | 2 +- .../aggregator}/api/gin/webServer_test.go | 0 .../aggregator}/api/gin/writers.go | 0 .../aggregator}/api/gin/writers_test.go | 0 .../aggregator}/computers.go | 0 .../aggregator}/computers_test.go | 2 +- .../aggregator}/converters.go | 0 .../aggregator}/converters_test.go | 0 .../aggregator}/errors.go | 0 .../aggregator}/export_test.go | 0 .../aggregator}/fetchers/baseFetcher.go | 0 .../aggregator}/fetchers/baseFetcher_test.go | 0 .../aggregator}/fetchers/binance.go | 2 +- .../aggregator}/fetchers/bitfinex.go | 2 +- .../aggregator}/fetchers/constants.go | 0 .../aggregator}/fetchers/converters.go | 0 .../aggregator}/fetchers/cryptocom.go | 2 +- .../aggregator}/fetchers/errors.go | 0 .../aggregator}/fetchers/factory.go | 2 +- .../aggregator}/fetchers/factory_test.go | 2 +- .../aggregator}/fetchers/fetchers_test.go | 16 +- .../aggregator}/fetchers/gemini.go | 2 +- .../aggregator}/fetchers/hitbtc.go | 2 +- .../aggregator}/fetchers/huobi.go | 2 +- .../aggregator}/fetchers/kraken.go | 2 +- .../aggregator}/fetchers/okex.go | 2 +- .../aggregator}/fetchers/xexchange.go | 2 +- .../aggregator}/graphqlResponseGetter.go | 2 +- .../aggregator}/graphqlResponseGetter_test.go | 2 +- .../aggregator}/httpResponseGetter.go | 0 .../aggregator}/httpResponseGetter_test.go | 2 +- .../aggregator}/interface.go | 0 .../mock/graphqlResponseGetterStub.go | 0 .../mock/httpResponseGetterStub.go | 0 .../aggregator}/mock/priceFetcherStub.go | 0 .../aggregator}/mock/priceNotifeeStub.go | 2 +- .../aggregator}/notifees/errors.go | 0 .../aggregator}/notifees/interface.go | 4 +- .../aggregator}/notifees/mxNotifee.go | 6 +- .../aggregator}/notifees/mxNotifee_test.go | 12 +- .../aggregator}/pair.go | 0 .../aggregator}/pair_test.go | 0 .../aggregator}/priceAggregator.go | 0 .../aggregator}/priceAggregator_test.go | 4 +- .../aggregator}/priceNotifier.go | 0 .../aggregator}/priceNotifier_test.go | 4 +- .../authentication}/errors.go | 0 .../authentication}/interface.go | 0 .../authentication}/mock/nativeStub.go | 0 .../authentication}/native.go | 6 +- .../authentication}/native_test.go | 6 +- .../blockchain}/addressGenerator.go | 8 +- .../blockchain}/addressGenerator_test.go | 2 +- .../blockchain}/baseProxy.go | 4 +- .../blockchain}/baseProxy_test.go | 6 +- .../cryptoProvider/cryptoComponentsHolder.go | 4 +- .../cryptoComponentsHolder_test.go | 2 +- .../blockchain}/cryptoProvider/errors.go | 0 .../blockchain}/cryptoProvider/signer.go | 2 +- .../blockchain}/cryptoProvider/signer_test.go | 4 +- .../endpointProviders/baseEndpointProvider.go | 0 .../baseEndpointProvider_test.go | 0 .../endpointProviders/nodeEndpointProvider.go | 2 +- .../nodeEndpointProvider_test.go | 2 +- .../proxyEndpointProvider.go | 2 +- .../proxyEndpointProvider_test.go | 2 +- .../blockchain}/errors.go | 2 +- .../blockchain}/factory/errors.go | 0 .../blockchain}/factory/factory.go | 6 +- .../blockchain}/factory/factory_test.go | 4 +- .../blockchain}/factory/interface.go | 4 +- .../disabledFinalityProvider.go | 0 .../disabledFinalityProvider_test.go | 0 .../blockchain}/finalityProvider/errors.go | 0 .../blockchain}/finalityProvider/interface.go | 2 +- .../finalityProvider/nodeFinalityProvider.go | 2 +- .../nodeFinalityProvider_test.go | 4 +- .../finalityProvider/proxyFinalityProvider.go | 2 +- .../proxyFinalityProvider_test.go | 4 +- .../blockchain}/interface.go | 4 +- .../blockchain}/proxy.go | 8 +- .../blockchain}/proxy_test.go | 8 +- .../blockchain}/queryResponseError.go | 0 .../blockchain}/queryResponseError_test.go | 0 .../blockchain}/shardCoordinator.go | 2 +- .../blockchain}/vmQueryGetter.go | 4 +- .../blockchain}/vmQueryGetter_test.go | 6 +- .../builders}/baseBuilder.go | 2 +- .../builders}/baseBuilder_test.go | 0 .../builders}/errors.go | 0 .../builders}/interface.go | 4 +- .../builders}/relayedTxV1Builder.go | 4 +- .../builders}/relayedTxV1Builder_test.go | 6 +- .../builders}/relayedTxV2Builder.go | 4 +- .../builders}/relayedTxV2Builder_test.go | 2 +- .../builders}/txBuilder.go | 2 +- .../builders}/txBuilder_test.go | 4 +- .../builders}/txDataBuilder.go | 2 +- .../builders}/txDataBuilder_test.go | 2 +- .../builders}/vmQueryBuilder.go | 4 +- .../builders}/vmQueryBuilder_test.go | 2 +- {core => mx-sdk-go-old/core}/api.go | 0 {core => mx-sdk-go-old/core}/api_test.go | 0 {core => mx-sdk-go-old/core}/constants.go | 0 .../core}/http/clientWrapper.go | 0 .../core}/http/clientWrapper_test.go | 0 .../core}/http/interface.go | 0 {core => mx-sdk-go-old/core}/interface.go | 0 .../core}/polling/errors.go | 0 .../core}/polling/interface.go | 0 .../core}/polling/mock/executorStub.go | 0 .../core}/polling/pollingHandler.go | 0 .../core}/polling/pollingHandler_test.go | 2 +- {core => mx-sdk-go-old/core}/types.go | 0 {core => mx-sdk-go-old/core}/variables.go | 0 {data => mx-sdk-go-old/data}/account.go | 0 {data => mx-sdk-go-old/data}/address.go | 2 +- .../data}/enableEpochsConfig.go | 0 {data => mx-sdk-go-old/data}/hyperblock.go | 0 {data => mx-sdk-go-old/data}/internalBlock.go | 0 {data => mx-sdk-go-old/data}/mnemonic.go | 0 {data => mx-sdk-go-old/data}/mnemonic_test.go | 0 {data => mx-sdk-go-old/data}/networkConfig.go | 0 .../data}/networkEconomics.go | 0 {data => mx-sdk-go-old/data}/networkStatus.go | 0 {data => mx-sdk-go-old/data}/nodeConfig.go | 0 {data => mx-sdk-go-old/data}/nodeStatus.go | 0 {data => mx-sdk-go-old/data}/ratingsConfig.go | 0 {data => mx-sdk-go-old/data}/transaction.go | 0 {data => mx-sdk-go-old/data}/vmValues.go | 0 .../disabled}/accounts.go | 0 .../disabled}/blockchain.go | 0 .../disabled}/blockchainHookCounter.go | 0 .../disabled}/builtInFunctionContainer.go | 0 {disabled => mx-sdk-go-old/disabled}/cache.go | 0 .../disabled}/datapool.go | 2 +- .../disabled}/enableEpochsHandler.go | 0 .../disabled}/epochNotifier.go | 0 .../disabled}/epochStartNotifier.go | 0 .../disabled}/fallbackHeaderValidator.go | 0 .../disabled}/gasScheduleNotifier.go | 0 .../disabled}/globalSettingsHandler.go | 0 .../disabled}/nodeTypeProvider.go | 0 .../disabled}/shardCoordinator.go | 0 .../disabled}/shuffleOutHandler.go | 0 .../disabled}/simpleESDTNFTStorageHandler.go | 0 .../disabled}/storageService.go | 0 .../disabled}/storer.go | 0 .../examples}/examplesAccount/main.go | 8 +- .../examples}/examplesBlock/main.go | 6 +- .../examplesFlowWalletTracker/main.go | 16 +- .../mock/memoryNonceTracker.go | 0 .../mock/trackableAddressProviderMock.go | 0 .../examples}/examplesHeaderCheck/main.go | 8 +- .../examples}/examplesPriceAggregator/main.go | 20 +- .../examples}/examplesTransaction/main.go | 15 +- .../examples}/examplesVMQuery/main.go | 8 +- .../examples}/examplesWallet/main.go | 2 +- {examples => mx-sdk-go-old/examples}/keys.go | 6 + .../examples}/networks.go | 2 + go.mod => mx-sdk-go-old/go.mod | 3 +- mx-sdk-go-old/go.sum | 2953 +++++++++++++++++ .../headerCheck}/errors.go | 0 .../headerCheck}/export_test.go | 0 .../headerCheck}/factory/coreComponents.go | 4 +- .../headerCheck}/factory/cryptoComponents.go | 0 .../headerCheck}/factory/nodesCoordinator.go | 4 +- .../headerCheck}/headerCheck.go | 0 .../headerCheck}/headerCheckFactory.go | 6 +- .../headerCheck}/headerCheck_test.go | 4 +- .../headerCheck}/interface.go | 2 +- .../headerCheck}/rawHeaderHandler.go | 0 .../headerCheck}/rawHeaderHandler_test.go | 4 +- .../interactors}/errors.go | 0 .../interactors}/interface.go | 4 +- .../nonceHandlerV1/addressNonceHandler.go | 4 +- .../nonceTransactionsHandler.go | 6 +- .../nonceTransactionsHandler_test.go | 8 +- .../nonceHandlerV2/addressNonceHandler.go | 4 +- .../addressNonceHandlerCreator.go | 4 +- .../addressNonceHandlerCreator_test.go | 4 +- .../addressNonceHandler_test.go | 8 +- .../nonceHandlerV2/export_test.go | 4 +- .../nonceTransactionsHandler.go | 6 +- .../nonceTransactionsHandler_test.go | 10 +- .../singleTransactionAddressNonceHandler.go | 4 +- ...leTransactionAddressNonceHandlerCreator.go | 4 +- ...nsactionAddressNonceHandlerCreator_test.go | 4 +- ...ngleTransactionAddressNonceHandler_test.go | 8 +- .../interactors}/testdata/test.json | 0 .../interactors}/testdata/test.pem | 0 .../interactors}/testdata/testWithKind.json | 0 .../interactors}/transaction.go | 0 .../interactors}/transaction_test.go | 4 +- .../interactors}/wallet.go | 4 +- .../interactors}/wallet_test.go | 2 +- .../libraries}/libbls/README.md | 0 .../libraries}/libbls/libbls.go | 0 .../libraries}/libbls/libbls.h | 0 .../libraries}/libbls/libbls_test.go | 0 .../libraries}/libbls/main.go | 0 .../serde}/deserializer.go | 6 +- .../serde}/deserializer_test.go | 2 +- {serde => mx-sdk-go-old/serde}/interface.go | 0 .../serde}/sourceBuffer.go | 48 +- .../serde}/testingMocks/basicDataTypes | Bin .../serde}/testingMocks/basicTypeBigInt | Bin .../serde}/testingMocks/entities.go | 0 .../serde}/testingMocks/nestedStructures | Bin .../storage}/mapCacher.go | 0 .../storage}/mapCacher_test.go | 0 .../cryptoComponentsHolderStub.go | 2 +- .../testsCommon}/finalityProviderStub.go | 0 .../testsCommon}/headerSigVerifierStub.go | 0 .../testsCommon}/httpClientWrapperStub.go | 0 .../addressNonceHandlerCreatorStub.go | 4 +- .../testsCommon}/marshalizerMock.go | 0 .../testsCommon}/marshalizerStub.go | 0 .../testsCommon}/nodesCoordinatorStub.go | 0 .../testsCommon}/privateKeyStub.go | 2 +- .../testsCommon}/proxyStub.go | 4 +- .../testsCommon}/publicKeyStub.go | 2 +- .../testsCommon}/rawHeaderHandlerStub.go | 0 .../testsCommon}/server/serverStub.go | 0 .../testsCommon}/signerStub.go | 0 .../testsCommon}/txBuilderStub.go | 2 +- .../testsCommon}/txNonceHandlerV1Stub.go | 2 +- .../testsCommon}/txNonceHandlerV2Stub.go | 2 +- .../workflows}/addressesAccumulator.go | 0 .../workflows}/errors.go | 0 .../workflows}/interface.go | 4 +- .../workflows}/moveBalanceHandler.go | 6 +- .../workflows}/walletsTracker.go | 4 +- 239 files changed, 3229 insertions(+), 1036 deletions(-) delete mode 100644 go.sum rename Makefile => mx-sdk-go-old/Makefile (100%) rename {aggregator => mx-sdk-go-old/aggregator}/api/errors/errors.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/api/gin/httpServer.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/api/gin/httpServer_test.go (90%) rename {aggregator => mx-sdk-go-old/aggregator}/api/gin/interface.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/api/gin/webServer.go (98%) rename {aggregator => mx-sdk-go-old/aggregator}/api/gin/webServer_test.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/api/gin/writers.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/api/gin/writers_test.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/computers.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/computers_test.go (95%) rename {aggregator => mx-sdk-go-old/aggregator}/converters.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/converters_test.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/errors.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/export_test.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/baseFetcher.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/baseFetcher_test.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/binance.go (94%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/bitfinex.go (95%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/constants.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/converters.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/cryptocom.go (95%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/errors.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/factory.go (97%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/factory_test.go (98%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/fetchers_test.go (96%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/gemini.go (94%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/hitbtc.go (94%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/huobi.go (94%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/kraken.go (95%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/okex.go (94%) rename {aggregator => mx-sdk-go-old/aggregator}/fetchers/xexchange.go (97%) rename {aggregator => mx-sdk-go-old/aggregator}/graphqlResponseGetter.go (96%) rename {aggregator => mx-sdk-go-old/aggregator}/graphqlResponseGetter_test.go (93%) rename {aggregator => mx-sdk-go-old/aggregator}/httpResponseGetter.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/httpResponseGetter_test.go (97%) rename {aggregator => mx-sdk-go-old/aggregator}/interface.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/mock/graphqlResponseGetterStub.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/mock/httpResponseGetterStub.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/mock/priceFetcherStub.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/mock/priceNotifeeStub.go (89%) rename {aggregator => mx-sdk-go-old/aggregator}/notifees/errors.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/notifees/interface.go (92%) rename {aggregator => mx-sdk-go-old/aggregator}/notifees/mxNotifee.go (95%) rename {aggregator => mx-sdk-go-old/aggregator}/notifees/mxNotifee_test.go (96%) rename {aggregator => mx-sdk-go-old/aggregator}/pair.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/pair_test.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/priceAggregator.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/priceAggregator_test.go (96%) rename {aggregator => mx-sdk-go-old/aggregator}/priceNotifier.go (100%) rename {aggregator => mx-sdk-go-old/aggregator}/priceNotifier_test.go (98%) rename {authentication => mx-sdk-go-old/authentication}/errors.go (100%) rename {authentication => mx-sdk-go-old/authentication}/interface.go (100%) rename {authentication => mx-sdk-go-old/authentication}/mock/nativeStub.go (100%) rename {authentication => mx-sdk-go-old/authentication}/native.go (95%) rename {authentication => mx-sdk-go-old/authentication}/native_test.go (97%) rename {blockchain => mx-sdk-go-old/blockchain}/addressGenerator.go (94%) rename {blockchain => mx-sdk-go-old/blockchain}/addressGenerator_test.go (96%) rename {blockchain => mx-sdk-go-old/blockchain}/baseProxy.go (98%) rename {blockchain => mx-sdk-go-old/blockchain}/baseProxy_test.go (99%) rename {blockchain => mx-sdk-go-old/blockchain}/cryptoProvider/cryptoComponentsHolder.go (94%) rename {blockchain => mx-sdk-go-old/blockchain}/cryptoProvider/cryptoComponentsHolder_test.go (97%) rename {blockchain => mx-sdk-go-old/blockchain}/cryptoProvider/errors.go (100%) rename {blockchain => mx-sdk-go-old/blockchain}/cryptoProvider/signer.go (98%) rename {blockchain => mx-sdk-go-old/blockchain}/cryptoProvider/signer_test.go (96%) rename {blockchain => mx-sdk-go-old/blockchain}/endpointProviders/baseEndpointProvider.go (100%) rename {blockchain => mx-sdk-go-old/blockchain}/endpointProviders/baseEndpointProvider_test.go (100%) rename {blockchain => mx-sdk-go-old/blockchain}/endpointProviders/nodeEndpointProvider.go (97%) rename {blockchain => mx-sdk-go-old/blockchain}/endpointProviders/nodeEndpointProvider_test.go (94%) rename {blockchain => mx-sdk-go-old/blockchain}/endpointProviders/proxyEndpointProvider.go (97%) rename {blockchain => mx-sdk-go-old/blockchain}/endpointProviders/proxyEndpointProvider_test.go (94%) rename {blockchain => mx-sdk-go-old/blockchain}/errors.go (96%) rename {blockchain => mx-sdk-go-old/blockchain}/factory/errors.go (100%) rename {blockchain => mx-sdk-go-old/blockchain}/factory/factory.go (82%) rename {blockchain => mx-sdk-go-old/blockchain}/factory/factory_test.go (95%) rename {blockchain => mx-sdk-go-old/blockchain}/factory/interface.go (93%) rename {blockchain => mx-sdk-go-old/blockchain}/finalityProvider/disabledFinalityProvider.go (100%) rename {blockchain => mx-sdk-go-old/blockchain}/finalityProvider/disabledFinalityProvider_test.go (100%) rename {blockchain => mx-sdk-go-old/blockchain}/finalityProvider/errors.go (100%) rename {blockchain => mx-sdk-go-old/blockchain}/finalityProvider/interface.go (77%) rename {blockchain => mx-sdk-go-old/blockchain}/finalityProvider/nodeFinalityProvider.go (97%) rename {blockchain => mx-sdk-go-old/blockchain}/finalityProvider/nodeFinalityProvider_test.go (97%) rename {blockchain => mx-sdk-go-old/blockchain}/finalityProvider/proxyFinalityProvider.go (98%) rename {blockchain => mx-sdk-go-old/blockchain}/finalityProvider/proxyFinalityProvider_test.go (98%) rename {blockchain => mx-sdk-go-old/blockchain}/interface.go (95%) rename {blockchain => mx-sdk-go-old/blockchain}/proxy.go (98%) rename {blockchain => mx-sdk-go-old/blockchain}/proxy_test.go (99%) rename {blockchain => mx-sdk-go-old/blockchain}/queryResponseError.go (100%) rename {blockchain => mx-sdk-go-old/blockchain}/queryResponseError_test.go (100%) rename {blockchain => mx-sdk-go-old/blockchain}/shardCoordinator.go (94%) rename {blockchain => mx-sdk-go-old/blockchain}/vmQueryGetter.go (97%) rename {blockchain => mx-sdk-go-old/blockchain}/vmQueryGetter_test.go (98%) rename {builders => mx-sdk-go-old/builders}/baseBuilder.go (97%) rename {builders => mx-sdk-go-old/builders}/baseBuilder_test.go (100%) rename {builders => mx-sdk-go-old/builders}/errors.go (100%) rename {builders => mx-sdk-go-old/builders}/interface.go (93%) rename {builders => mx-sdk-go-old/builders}/relayedTxV1Builder.go (97%) rename {builders => mx-sdk-go-old/builders}/relayedTxV1Builder_test.go (95%) rename {builders => mx-sdk-go-old/builders}/relayedTxV2Builder.go (96%) rename {builders => mx-sdk-go-old/builders}/relayedTxV2Builder_test.go (98%) rename {builders => mx-sdk-go-old/builders}/txBuilder.go (98%) rename {builders => mx-sdk-go-old/builders}/txBuilder_test.go (97%) rename {builders => mx-sdk-go-old/builders}/txDataBuilder.go (98%) rename {builders => mx-sdk-go-old/builders}/txDataBuilder_test.go (98%) rename {builders => mx-sdk-go-old/builders}/vmQueryBuilder.go (95%) rename {builders => mx-sdk-go-old/builders}/vmQueryBuilder_test.go (98%) rename {core => mx-sdk-go-old/core}/api.go (100%) rename {core => mx-sdk-go-old/core}/api_test.go (100%) rename {core => mx-sdk-go-old/core}/constants.go (100%) rename {core => mx-sdk-go-old/core}/http/clientWrapper.go (100%) rename {core => mx-sdk-go-old/core}/http/clientWrapper_test.go (100%) rename {core => mx-sdk-go-old/core}/http/interface.go (100%) rename {core => mx-sdk-go-old/core}/interface.go (100%) rename {core => mx-sdk-go-old/core}/polling/errors.go (100%) rename {core => mx-sdk-go-old/core}/polling/interface.go (100%) rename {core => mx-sdk-go-old/core}/polling/mock/executorStub.go (100%) rename {core => mx-sdk-go-old/core}/polling/pollingHandler.go (100%) rename {core => mx-sdk-go-old/core}/polling/pollingHandler_test.go (98%) rename {core => mx-sdk-go-old/core}/types.go (100%) rename {core => mx-sdk-go-old/core}/variables.go (100%) rename {data => mx-sdk-go-old/data}/account.go (100%) rename {data => mx-sdk-go-old/data}/address.go (95%) rename {data => mx-sdk-go-old/data}/enableEpochsConfig.go (100%) rename {data => mx-sdk-go-old/data}/hyperblock.go (100%) rename {data => mx-sdk-go-old/data}/internalBlock.go (100%) rename {data => mx-sdk-go-old/data}/mnemonic.go (100%) rename {data => mx-sdk-go-old/data}/mnemonic_test.go (100%) rename {data => mx-sdk-go-old/data}/networkConfig.go (100%) rename {data => mx-sdk-go-old/data}/networkEconomics.go (100%) rename {data => mx-sdk-go-old/data}/networkStatus.go (100%) rename {data => mx-sdk-go-old/data}/nodeConfig.go (100%) rename {data => mx-sdk-go-old/data}/nodeStatus.go (100%) rename {data => mx-sdk-go-old/data}/ratingsConfig.go (100%) rename {data => mx-sdk-go-old/data}/transaction.go (100%) rename {data => mx-sdk-go-old/data}/vmValues.go (100%) rename {disabled => mx-sdk-go-old/disabled}/accounts.go (100%) rename {disabled => mx-sdk-go-old/disabled}/blockchain.go (100%) rename {disabled => mx-sdk-go-old/disabled}/blockchainHookCounter.go (100%) rename {disabled => mx-sdk-go-old/disabled}/builtInFunctionContainer.go (100%) rename {disabled => mx-sdk-go-old/disabled}/cache.go (100%) rename {disabled => mx-sdk-go-old/disabled}/datapool.go (98%) rename {disabled => mx-sdk-go-old/disabled}/enableEpochsHandler.go (100%) rename {disabled => mx-sdk-go-old/disabled}/epochNotifier.go (100%) rename {disabled => mx-sdk-go-old/disabled}/epochStartNotifier.go (100%) rename {disabled => mx-sdk-go-old/disabled}/fallbackHeaderValidator.go (100%) rename {disabled => mx-sdk-go-old/disabled}/gasScheduleNotifier.go (100%) rename {disabled => mx-sdk-go-old/disabled}/globalSettingsHandler.go (100%) rename {disabled => mx-sdk-go-old/disabled}/nodeTypeProvider.go (100%) rename {disabled => mx-sdk-go-old/disabled}/shardCoordinator.go (100%) rename {disabled => mx-sdk-go-old/disabled}/shuffleOutHandler.go (100%) rename {disabled => mx-sdk-go-old/disabled}/simpleESDTNFTStorageHandler.go (100%) rename {disabled => mx-sdk-go-old/disabled}/storageService.go (100%) rename {disabled => mx-sdk-go-old/disabled}/storer.go (100%) rename {examples => mx-sdk-go-old/examples}/examplesAccount/main.go (87%) rename {examples => mx-sdk-go-old/examples}/examplesBlock/main.go (87%) rename {examples => mx-sdk-go-old/examples}/examplesFlowWalletTracker/main.go (91%) rename {examples => mx-sdk-go-old/examples}/examplesFlowWalletTracker/mock/memoryNonceTracker.go (100%) rename {examples => mx-sdk-go-old/examples}/examplesFlowWalletTracker/mock/trackableAddressProviderMock.go (100%) rename {examples => mx-sdk-go-old/examples}/examplesHeaderCheck/main.go (88%) rename {examples => mx-sdk-go-old/examples}/examplesPriceAggregator/main.go (90%) rename {examples => mx-sdk-go-old/examples}/examplesTransaction/main.go (87%) rename {examples => mx-sdk-go-old/examples}/examplesVMQuery/main.go (82%) rename {examples => mx-sdk-go-old/examples}/examplesWallet/main.go (95%) rename {examples => mx-sdk-go-old/examples}/keys.go (56%) rename {examples => mx-sdk-go-old/examples}/networks.go (81%) rename go.mod => mx-sdk-go-old/go.mod (98%) create mode 100644 mx-sdk-go-old/go.sum rename {headerCheck => mx-sdk-go-old/headerCheck}/errors.go (100%) rename {headerCheck => mx-sdk-go-old/headerCheck}/export_test.go (100%) rename {headerCheck => mx-sdk-go-old/headerCheck}/factory/coreComponents.go (97%) rename {headerCheck => mx-sdk-go-old/headerCheck}/factory/cryptoComponents.go (100%) rename {headerCheck => mx-sdk-go-old/headerCheck}/factory/nodesCoordinator.go (97%) rename {headerCheck => mx-sdk-go-old/headerCheck}/headerCheck.go (100%) rename {headerCheck => mx-sdk-go-old/headerCheck}/headerCheckFactory.go (93%) rename {headerCheck => mx-sdk-go-old/headerCheck}/headerCheck_test.go (97%) rename {headerCheck => mx-sdk-go-old/headerCheck}/interface.go (97%) rename {headerCheck => mx-sdk-go-old/headerCheck}/rawHeaderHandler.go (100%) rename {headerCheck => mx-sdk-go-old/headerCheck}/rawHeaderHandler_test.go (97%) rename {interactors => mx-sdk-go-old/interactors}/errors.go (100%) rename {interactors => mx-sdk-go-old/interactors}/interface.go (95%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV1/addressNonceHandler.go (96%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV1/nonceTransactionsHandler.go (97%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV1/nonceTransactionsHandler_test.go (98%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/addressNonceHandler.go (98%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/addressNonceHandlerCreator.go (82%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/addressNonceHandlerCreator_test.go (83%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/addressNonceHandler_test.go (97%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/export_test.go (83%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/nonceTransactionsHandler.go (97%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/nonceTransactionsHandler_test.go (97%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/singleTransactionAddressNonceHandler.go (96%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go (84%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go (84%) rename {interactors => mx-sdk-go-old/interactors}/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go (96%) rename {interactors => mx-sdk-go-old/interactors}/testdata/test.json (100%) rename {interactors => mx-sdk-go-old/interactors}/testdata/test.pem (100%) rename {interactors => mx-sdk-go-old/interactors}/testdata/testWithKind.json (100%) rename {interactors => mx-sdk-go-old/interactors}/transaction.go (100%) rename {interactors => mx-sdk-go-old/interactors}/transaction_test.go (97%) rename {interactors => mx-sdk-go-old/interactors}/wallet.go (98%) rename {interactors => mx-sdk-go-old/interactors}/wallet_test.go (99%) rename {libraries => mx-sdk-go-old/libraries}/libbls/README.md (100%) rename {libraries => mx-sdk-go-old/libraries}/libbls/libbls.go (100%) rename {libraries => mx-sdk-go-old/libraries}/libbls/libbls.h (100%) rename {libraries => mx-sdk-go-old/libraries}/libbls/libbls_test.go (100%) rename {libraries => mx-sdk-go-old/libraries}/libbls/main.go (100%) rename {serde => mx-sdk-go-old/serde}/deserializer.go (95%) rename {serde => mx-sdk-go-old/serde}/deserializer_test.go (97%) rename {serde => mx-sdk-go-old/serde}/interface.go (100%) rename {serde => mx-sdk-go-old/serde}/sourceBuffer.go (65%) rename {serde => mx-sdk-go-old/serde}/testingMocks/basicDataTypes (100%) rename {serde => mx-sdk-go-old/serde}/testingMocks/basicTypeBigInt (100%) rename {serde => mx-sdk-go-old/serde}/testingMocks/entities.go (100%) rename {serde => mx-sdk-go-old/serde}/testingMocks/nestedStructures (100%) rename {storage => mx-sdk-go-old/storage}/mapCacher.go (100%) rename {storage => mx-sdk-go-old/storage}/mapCacher_test.go (100%) rename {testsCommon => mx-sdk-go-old/testsCommon}/cryptoComponentsHolderStub.go (95%) rename {testsCommon => mx-sdk-go-old/testsCommon}/finalityProviderStub.go (100%) rename {testsCommon => mx-sdk-go-old/testsCommon}/headerSigVerifierStub.go (100%) rename {testsCommon => mx-sdk-go-old/testsCommon}/httpClientWrapperStub.go (100%) rename {testsCommon => mx-sdk-go-old/testsCommon}/interactors/addressNonceHandlerCreatorStub.go (83%) rename {testsCommon => mx-sdk-go-old/testsCommon}/marshalizerMock.go (100%) rename {testsCommon => mx-sdk-go-old/testsCommon}/marshalizerStub.go (100%) rename {testsCommon => mx-sdk-go-old/testsCommon}/nodesCoordinatorStub.go (100%) rename {testsCommon => mx-sdk-go-old/testsCommon}/privateKeyStub.go (94%) rename {testsCommon => mx-sdk-go-old/testsCommon}/proxyStub.go (98%) rename {testsCommon => mx-sdk-go-old/testsCommon}/publicKeyStub.go (92%) rename {testsCommon => mx-sdk-go-old/testsCommon}/rawHeaderHandlerStub.go (100%) rename {testsCommon => mx-sdk-go-old/testsCommon}/server/serverStub.go (100%) rename {testsCommon => mx-sdk-go-old/testsCommon}/signerStub.go (100%) rename {testsCommon => mx-sdk-go-old/testsCommon}/txBuilderStub.go (90%) rename {testsCommon => mx-sdk-go-old/testsCommon}/txNonceHandlerV1Stub.go (96%) rename {testsCommon => mx-sdk-go-old/testsCommon}/txNonceHandlerV2Stub.go (96%) rename {workflows => mx-sdk-go-old/workflows}/addressesAccumulator.go (100%) rename {workflows => mx-sdk-go-old/workflows}/errors.go (100%) rename {workflows => mx-sdk-go-old/workflows}/interface.go (92%) rename {workflows => mx-sdk-go-old/workflows}/moveBalanceHandler.go (97%) rename {workflows => mx-sdk-go-old/workflows}/walletsTracker.go (98%) diff --git a/go.sum b/go.sum deleted file mode 100644 index d633ce82..00000000 --- a/go.sum +++ /dev/null @@ -1,770 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.31.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.37.0/go.mod h1:TS1dMSSfndXH133OKGwekG838Om/cQT0BUHV3HcBgoo= -dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU= -dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0/go.mod h1:JLBrvjyP0v+ecvNYvCpyZgu5/xkfAUhi6wJj28eUfSU= -dmitri.shuralyov.com/service/change v0.0.0-20181023043359-a85b471d5412/go.mod h1:a1inKt/atXimZ4Mv927x+r7UpyzRUf4emIoiiSC2TN4= -dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D6DFvNNtx+9ybjezNCa8XF0xaYcETyp6rHWU= -git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= -github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= -github.com/beevik/ntp v0.3.0 h1:xzVrPrE4ziasFXgBVBZJDP0Wg/KpMwk2KHJ4Ba8GrDw= -github.com/beevik/ntp v0.3.0/go.mod h1:hIHWr+l3+/clUnF44zdK+CWW7fO8dR5cIylAQ76NRpg= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o= -github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= -github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= -github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M= -github.com/btcsuite/btcd v0.23.0 h1:V2/ZgjfDFIygAX3ZapeigkVBoVUtOJKSwrhZdlpSvaA= -github.com/btcsuite/btcd v0.23.0/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= -github.com/btcsuite/btcd/btcec/v2 v2.1.0/go.mod h1:2VzYrv4Gm4apmbVVsSq5bqf1Ec8v56E48Vt0Y/umPgA= -github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= -github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= -github.com/btcsuite/btcd/btcutil v1.0.0/go.mod h1:Uoxwv0pqYWhD//tfTiipkxNfdhG9UrLwaeswfjfdF0A= -github.com/btcsuite/btcd/btcutil v1.1.0/go.mod h1:5OapHB7A2hBBWLm48mmw4MOHNJCcUBTwmWH/0Jn8VHE= -github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= -github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= -github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= -github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= -github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= -github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= -github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= -github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= -github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= -github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= -github.com/bytedance/sonic v1.9.1 h1:6iJ6NqdoxCDr6mbY8h18oSO+cShGSMRGCEo7F2h0x8s= -github.com/bytedance/sonic v1.9.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= -github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= -github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams= -github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk= -github.com/cilium/ebpf v0.2.0/go.mod h1:To2CFviqOWL/M0gIMsvSMlqe7em/l1ALkX1PyjrX2Qs= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327/go.mod h1:ZJeTFisyysqgcCdecO57Dj79RfL0LNeGiFUqLYQRYLE= -github.com/containerd/cgroups v1.1.0 h1:v8rEWFl6EoqHB+swVNjVoCJE8o3jX7e8nqBGPLaDFBM= -github.com/containerd/cgroups v1.1.0/go.mod h1:6ppBcbh/NOOUU+dMKrykgaBnK9lCIBxHqJDGwsa1mIw= -github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= -github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= -github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c h1:pFUpOrbxDR6AkioZ1ySsx5yxlDQZ8stG2b88gTPxgJU= -github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c/go.mod h1:6UhI8N9EjYm1c2odKpFpAYeR8dsBeM7PtzQhRgxRr9U= -github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= -github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= -github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= -github.com/denisbrodbeck/machineid v1.0.1 h1:geKr9qtkB876mXguW2X6TU4ZynleN6ezuMSRhl4D7AQ= -github.com/denisbrodbeck/machineid v1.0.1/go.mod h1:dJUwb7PTidGDeYyUBmXZ2GphQBbjJCrnectwCyxcUSI= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= -github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/elastic/go-elasticsearch/v7 v7.12.0 h1:j4tvcMrZJLp39L2NYvBb7f+lHKPqPHSL3nvB8+/DV+s= -github.com/elastic/gosigar v0.12.0/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= -github.com/elastic/gosigar v0.14.2 h1:Dg80n8cr90OZ7x+bAax/QjoW/XqTI11RmA79ZwIm9/4= -github.com/elastic/gosigar v0.14.2/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= -github.com/flynn/noise v1.0.0 h1:DlTHqmzmvcEiKj+4RYo/imoswx/4r6iBlCMfVtrMXpQ= -github.com/flynn/noise v1.0.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= -github.com/francoispqt/gojay v1.2.13 h1:d2m3sFjloqoIUQU3TsHBgj6qg/BVGlTBeHDUmyJnXKk= -github.com/francoispqt/gojay v1.2.13/go.mod h1:ehT5mTG4ua4581f1++1WLG0vPdaA9HaiDsoyrBGkyDY= -github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= -github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/cors v1.4.0 h1:oJ6gwtUl3lqV0WEIwM/LxPF1QZ5qe2lGWdY2+bz7y0g= -github.com/gin-contrib/cors v1.4.0/go.mod h1:bs9pNM0x/UsmHPBWT2xZz9ROh8xYjYkiURUfmBoMlcs= -github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= -github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk= -github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg= -github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU= -github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= -github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= -github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= -github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= -github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= -github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= -github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= -github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= -github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= -github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= -github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= -github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= -github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= -github.com/go-playground/validator/v10 v10.10.0/go.mod h1:74x4gJWsvQexRdW8Pn3dXSGrTK4nAUsbPlLADvpJkos= -github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg/+t63MyGU2n5js= -github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= -github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0= -github.com/goccy/go-json v0.9.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= -github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= -github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= -github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= -github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:tluoj9z5200jBnyusfRPU2LqT6J+DAorxEvtC7LHB+E= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= -github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= -github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8= -github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20230602150820-91b7bce49751 h1:hR7/MlvK23p6+lIw9SN1TigNLn9ZnF3W4SYRKq2gAHs= -github.com/google/pprof v0.0.0-20230602150820-91b7bce49751/go.mod h1:Jh3hGz2jkYak8qXPD19ryItVnUgpgeqzdkY/D0EaeuA= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= -github.com/googleapis/gax-go/v2 v2.0.3/go.mod h1:LLvjysVCY1JZeum8Z6l8qUty8fiNwE08qbEPm1M08qg= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c h1:7lF+Vz0LqiRidnzC1Oq86fpX1q/iEv2KJdrCtttYjT4= -github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= -github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= -github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/grpc-gateway v1.5.0/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= -github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= -github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/golang-lru v0.6.0 h1:uL2shRDx7RTrOrTCUZEGP/wJUFiUI8QT6E7z5o8jga4= -github.com/hashicorp/golang-lru v0.6.0/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/golang-lru/v2 v2.0.2 h1:Dwmkdr5Nc/oBiXgJS3CDHNhJtIHkuZ3DZF5twqnfBdU= -github.com/hashicorp/golang-lru/v2 v2.0.2/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= -github.com/herumi/bls-go-binary v1.0.0 h1:PRPF6vPd35zyDy+tp86HwNnGdufCH2lZL0wZGxYvkRs= -github.com/herumi/bls-go-binary v1.0.0/go.mod h1:O4Vp1AfR4raRGwFeQpr9X/PQtncEicMoOe6BQt1oX0Y= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/huin/goupnp v1.2.0 h1:uOKW26NG1hsSSbXIZ1IR7XP9Gjd1U8pnLaCMgntmkmY= -github.com/huin/goupnp v1.2.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= -github.com/ipfs/boxo v0.8.1 h1:3DkKBCK+3rdEB5t77WDShUXXhktYwH99mkAsgajsKrU= -github.com/ipfs/boxo v0.8.1/go.mod h1:xJ2hVb4La5WyD7GvKYE0lq2g1rmQZoCD2K4WNrV6aZI= -github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s= -github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= -github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk= -github.com/ipfs/go-datastore v0.6.0/go.mod h1:rt5M3nNbSO/8q1t4LNkLyUwRs8HupMeN/8O4Vn9YAT8= -github.com/ipfs/go-detect-race v0.0.1 h1:qX/xay2W3E4Q1U7d9lNs1sU9nvguX0a7319XbyQ6cOk= -github.com/ipfs/go-detect-race v0.0.1/go.mod h1:8BNT7shDZPo99Q74BpGMK+4D8Mn4j46UU0LZ723meps= -github.com/ipfs/go-ipfs-util v0.0.2 h1:59Sswnk1MFaiq+VcaknX7aYEyGyGDAA73ilhEK2POp8= -github.com/ipfs/go-log v1.0.5 h1:2dOuUCB1Z7uoczMWgAyDck5JLb72zHzrMnGnCNNbvY8= -github.com/ipfs/go-log v1.0.5/go.mod h1:j0b8ZoR+7+R99LD9jZ6+AJsrzkPbSXbZfGakb5JPtIo= -github.com/ipfs/go-log/v2 v2.1.3/go.mod h1:/8d0SH3Su5Ooc31QlL1WysJhvyOTDCjcCZ9Axpmri6g= -github.com/ipfs/go-log/v2 v2.5.1 h1:1XdUzF7048prq4aBjDQQ4SL5RxftpRGdXhNRwKSAlcY= -github.com/ipfs/go-log/v2 v2.5.1/go.mod h1:prSpmC1Gpllc9UYWxDiZDreBYw7zp4Iqp1kOLU9U5UI= -github.com/ipld/go-ipld-prime v0.20.0 h1:Ud3VwE9ClxpO2LkCYP7vWPc0Fo+dYdYzgxUJZ3uRG4g= -github.com/ipld/go-ipld-prime v0.20.0/go.mod h1:PzqZ/ZR981eKbgdr3y2DJYeD/8bgMawdGVlJDE8kK+M= -github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= -github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= -github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA= -github.com/jbenet/go-temp-err-catcher v0.1.0 h1:zpb3ZH6wIE8Shj2sKS+khgRvf7T7RABoLk/+KKHggpk= -github.com/jbenet/go-temp-err-catcher v0.1.0/go.mod h1:0kJRvmDZXNMIiJirNPEYfhpPwbGVtZVWC34vc5WLsDk= -github.com/jbenet/goprocess v0.1.4 h1:DRGOFReOMqqDNXwW70QkacFW0YN9QnwLV0Vqk+3oU0o= -github.com/jbenet/goprocess v0.1.4/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= -github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod h1:E0B/fFc00Y+Rasa88328GlI/XbtyysCtTHZS8h7IrBU= -github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= -github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= -github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= -github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= -github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/qbZg= -github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= -github.com/koron/go-ssdp v0.0.4 h1:1IDwrghSKYM7yLf7XCzbByg2sJ/JcNOZRXS2jczTwz0= -github.com/koron/go-ssdp v0.0.4/go.mod h1:oDXq+E5IL5q0U8uSBcoAXzTzInwy5lEgC91HoKtbmZk= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= -github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.3/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= -github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= -github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= -github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= -github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= -github.com/libp2p/go-cidranger v1.1.0 h1:ewPN8EZ0dd1LSnrtuwd4709PXVcITVeuwbag38yPW7c= -github.com/libp2p/go-cidranger v1.1.0/go.mod h1:KWZTfSr+r9qEo9OkI9/SIEeAtw+NNoU0dXIXt15Okic= -github.com/libp2p/go-flow-metrics v0.1.0 h1:0iPhMI8PskQwzh57jB9WxIuIOQ0r+15PChFGkx3Q3WM= -github.com/libp2p/go-flow-metrics v0.1.0/go.mod h1:4Xi8MX8wj5aWNDAZttg6UPmc0ZrnFNsMtpsYUClFtro= -github.com/libp2p/go-libp2p v0.28.1 h1:YurK+ZAI6cKfASLJBVFkpVBdl3wGhFi6fusOt725ii8= -github.com/libp2p/go-libp2p v0.28.1/go.mod h1:s3Xabc9LSwOcnv9UD4nORnXKTsWkPMkIMB/JIGXVnzk= -github.com/libp2p/go-libp2p-asn-util v0.3.0 h1:gMDcMyYiZKkocGXDQ5nsUQyquC9+H+iLEQHwOCZ7s8s= -github.com/libp2p/go-libp2p-asn-util v0.3.0/go.mod h1:B1mcOrKUE35Xq/ASTmQ4tN3LNzVVaMNmq2NACuqyB9w= -github.com/libp2p/go-libp2p-kad-dht v0.23.0 h1:sxE6LxLopp79eLeV695n7+c77V/Vn4AMF28AdM/XFqM= -github.com/libp2p/go-libp2p-kad-dht v0.23.0/go.mod h1:oO5N308VT2msnQI6qi5M61wzPmJYg7Tr9e16m5n7uDU= -github.com/libp2p/go-libp2p-kbucket v0.6.3 h1:p507271wWzpy2f1XxPzCQG9NiN6R6lHL9GiSErbQQo0= -github.com/libp2p/go-libp2p-kbucket v0.6.3/go.mod h1:RCseT7AH6eJWxxk2ol03xtP9pEHetYSPXOaJnOiD8i0= -github.com/libp2p/go-libp2p-pubsub v0.9.3 h1:ihcz9oIBMaCK9kcx+yHWm3mLAFBMAUsM4ux42aikDxo= -github.com/libp2p/go-libp2p-pubsub v0.9.3/go.mod h1:RYA7aM9jIic5VV47WXu4GkcRxRhrdElWf8xtyli+Dzc= -github.com/libp2p/go-libp2p-record v0.2.0 h1:oiNUOCWno2BFuxt3my4i1frNrt7PerzB3queqa1NkQ0= -github.com/libp2p/go-libp2p-record v0.2.0/go.mod h1:I+3zMkvvg5m2OcSdoL0KPljyJyvNDFGKX7QdlpYUcwk= -github.com/libp2p/go-libp2p-testing v0.12.0 h1:EPvBb4kKMWO29qP4mZGyhVzUyR25dvfUIK5WDu6iPUA= -github.com/libp2p/go-msgio v0.3.0 h1:mf3Z8B1xcFN314sWX+2vOTShIE0Mmn2TXn3YCUQGNj0= -github.com/libp2p/go-msgio v0.3.0/go.mod h1:nyRM819GmVaF9LX3l03RMh10QdOroF++NBbxAb0mmDM= -github.com/libp2p/go-nat v0.2.0 h1:Tyz+bUFAYqGyJ/ppPPymMGbIgNRH+WqC5QrT5fKrrGk= -github.com/libp2p/go-nat v0.2.0/go.mod h1:3MJr+GRpRkyT65EpVPBstXLvOlAPzUVlG6Pwg9ohLJk= -github.com/libp2p/go-netroute v0.2.1 h1:V8kVrpD8GK0Riv15/7VN6RbUQ3URNZVosw7H2v9tksU= -github.com/libp2p/go-netroute v0.2.1/go.mod h1:hraioZr0fhBjG0ZRXJJ6Zj2IVEVNx6tDTFQfSmcq7mQ= -github.com/libp2p/go-reuseport v0.3.0 h1:iiZslO5byUYZEg9iCwJGf5h+sf1Agmqx2V2FDjPyvUw= -github.com/libp2p/go-reuseport v0.3.0/go.mod h1:laea40AimhtfEqysZ71UpYj4S+R9VpH8PgqLo7L+SwI= -github.com/libp2p/go-yamux/v4 v4.0.0 h1:+Y80dV2Yx/kv7Y7JKu0LECyVdMXm1VUoko+VQ9rBfZQ= -github.com/libp2p/go-yamux/v4 v4.0.0/go.mod h1:NWjl8ZTLOGlozrXSOZ/HlfG++39iKNnM5wwmtQP1YB4= -github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= -github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd h1:br0buuQ854V8u83wA0rVZ8ttrq5CpaPZdvrK0LP2lOk= -github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd/go.mod h1:QuCEs1Nt24+FYQEqAAncTDPJIuGs+LxK1MCiFL25pMU= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= -github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/microcosm-cc/bluemonday v1.0.1/go.mod h1:hsXNsILzKxV+sX77C5b8FSuKF00vh2OMYv+xgHpAMF4= -github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= -github.com/miekg/dns v1.1.54 h1:5jon9mWcb0sFJGpnI99tOMhCPyJ+RPVz5b63MQG0VWI= -github.com/miekg/dns v1.1.54/go.mod h1:uInx36IzPl7FYnDcMeVWxj9byh7DutNykX4G9Sj60FY= -github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c h1:bzE/A84HN25pxAuk9Eej1Kz9OUelF97nAc82bDquQI8= -github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c/go.mod h1:0SQS9kMwD2VsyFEB++InYyBJroV/FRmBgcydeSUcJms= -github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b h1:z78hV3sbSMAUoyUMM0I83AUIT6Hu17AWfgjzIbtrYFc= -github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b/go.mod h1:lxPUiZwKoFL8DUUmalo2yJJUCxbPKtm8OKfqr2/FTNU= -github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc h1:PTfri+PuQmWDqERdnNMiD9ZejrlswWrCpBEZgWOiTrc= -github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc/go.mod h1:cGKTAVKx4SxOuR/czcZ/E2RSJ3sfHs8FpHhQ5CWMf9s= -github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ= -github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= -github.com/minio/sha256-simd v1.0.1 h1:6kaan5IFmwTNynnKKpDHe6FWHohJOHhCPchzK49dzMM= -github.com/minio/sha256-simd v1.0.1/go.mod h1:Pz6AKMiUdngCLpeTL/RJY1M9rUuPMYujV5xJjtbRSN8= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= -github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= -github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= -github.com/multiformats/go-base32 v0.1.0 h1:pVx9xoSPqEIQG8o+UbAe7DNi51oej1NtK+aGkbLYxPE= -github.com/multiformats/go-base32 v0.1.0/go.mod h1:Kj3tFY6zNr+ABYMqeUNeGvkIC/UYgtWibDcT0rExnbI= -github.com/multiformats/go-base36 v0.2.0 h1:lFsAbNOGeKtuKozrtBsAkSVhv1p9D0/qedU9rQyccr0= -github.com/multiformats/go-base36 v0.2.0/go.mod h1:qvnKE++v+2MWCfePClUEjE78Z7P2a1UV0xHgWc0hkp4= -github.com/multiformats/go-multiaddr v0.1.1/go.mod h1:aMKBKNEYmzmDmxfX88/vz+J5IU55txyt0p4aiWVohjo= -github.com/multiformats/go-multiaddr v0.2.0/go.mod h1:0nO36NvPpyV4QzvTLi/lafl2y95ncPj0vFwVF6k6wJ4= -github.com/multiformats/go-multiaddr v0.9.0 h1:3h4V1LHIk5w4hJHekMKWALPXErDfz/sggzwC/NcqbDQ= -github.com/multiformats/go-multiaddr v0.9.0/go.mod h1:mI67Lb1EeTOYb8GQfL/7wpIZwc46ElrvzhYnoJOmTT0= -github.com/multiformats/go-multiaddr-dns v0.3.1 h1:QgQgR+LQVt3NPTjbrLLpsaT2ufAA2y0Mkk+QRVJbW3A= -github.com/multiformats/go-multiaddr-dns v0.3.1/go.mod h1:G/245BRQ6FJGmryJCrOuTdB37AMA5AMOVuO6NY3JwTk= -github.com/multiformats/go-multiaddr-fmt v0.1.0 h1:WLEFClPycPkp4fnIzoFoV9FVd49/eQsuaL3/CWe167E= -github.com/multiformats/go-multiaddr-fmt v0.1.0/go.mod h1:hGtDIW4PU4BqJ50gW2quDuPVjyWNZxToGUh/HwTZYJo= -github.com/multiformats/go-multibase v0.2.0 h1:isdYCVLvksgWlMW9OZRYJEa9pZETFivncJHmHnnd87g= -github.com/multiformats/go-multibase v0.2.0/go.mod h1:bFBZX4lKCA/2lyOFSAoKH5SS6oPyjtnzK/XTFDPkNuk= -github.com/multiformats/go-multicodec v0.9.0 h1:pb/dlPnzee/Sxv/j4PmkDRxCOi3hXTz3IbPKOXWJkmg= -github.com/multiformats/go-multicodec v0.9.0/go.mod h1:L3QTQvMIaVBkXOXXtVmYE+LI16i14xuaojr/H7Ai54k= -github.com/multiformats/go-multihash v0.0.8/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= -github.com/multiformats/go-multihash v0.2.3 h1:7Lyc8XfX/IY2jWb/gI7JP+o7JEq9hOa7BFvVU9RSh+U= -github.com/multiformats/go-multihash v0.2.3/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM= -github.com/multiformats/go-multistream v0.4.1 h1:rFy0Iiyn3YT0asivDUIR05leAdwZq3de4741sbiSdfo= -github.com/multiformats/go-multistream v0.4.1/go.mod h1:Mz5eykRVAjJWckE2U78c6xqdtyNUEhKSM0Lwar2p77Q= -github.com/multiformats/go-varint v0.0.1/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= -github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/nEGOHFS8= -github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU= -github.com/multiversx/concurrent-map v0.1.4 h1:hdnbM8VE4b0KYJaGY5yJS2aNIW9TFFsUYwbO0993uPI= -github.com/multiversx/concurrent-map v0.1.4/go.mod h1:8cWFRJDOrWHOTNSqgYCUvwT7c7eFQ4U2vKMOp4A/9+o= -github.com/multiversx/mx-chain-core-go v1.1.37 h1:2EYoUWjr+8zUYEt3TBMnQ+0UUZwDb71HA+KBwqDUpVQ= -github.com/multiversx/mx-chain-core-go v1.1.37/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= -github.com/multiversx/mx-chain-crypto-go v1.2.6 h1:yxsjAQGh62los+iYmORMfh3w9qen0xbYlmwU0juNSeg= -github.com/multiversx/mx-chain-crypto-go v1.2.6/go.mod h1:rOj0Rr19HTOYt9YTeym7RKxlHt91NXln3LVKjHKVmA0= -github.com/multiversx/mx-chain-es-indexer-go v1.3.20 h1:/82eDBsjlEm6dNgW44WQOBqKByRAWr3n6OWjYpi43vE= -github.com/multiversx/mx-chain-go v1.5.12 h1:DIgq+Gwu8lzpaSmusX12F9N9m6P7XA4ZsoBbtF5qhVs= -github.com/multiversx/mx-chain-go v1.5.12/go.mod h1:wD4sqoF8rkX+8qTrUMHL/xWr24r2Em9nGtwlExW78A0= -github.com/multiversx/mx-chain-logger-go v1.0.11 h1:DFsHa+sc5fKwhDR50I8uBM99RTDTEW68ESyr5ALRDwE= -github.com/multiversx/mx-chain-logger-go v1.0.11/go.mod h1:1srDkP0DQucWQ+rYfaq0BX2qLnULsUdRPADpYUTM6dA= -github.com/multiversx/mx-chain-p2p-go v1.0.17 h1:ijAwm/J4TqcDJvbWpGW9cQDNzfeaN/KfJYEVaTvM5c0= -github.com/multiversx/mx-chain-p2p-go v1.0.17/go.mod h1:Z7zPjv7adFUembS0XgxfecvvJTJOaGy09jT5JGqFyf0= -github.com/multiversx/mx-chain-storage-go v1.0.7 h1:UqLo/OLTD3IHiE/TB/SEdNRV1GG2f1R6vIP5ehHwCNw= -github.com/multiversx/mx-chain-storage-go v1.0.7/go.mod h1:gtKoV32Cg2Uy8deHzF8Ud0qAl0zv92FvWgPSYIP0Zmg= -github.com/multiversx/mx-chain-vm-common-go v1.3.42 h1:avhgUwi6f+wpHqaBk76j6islLzUlSRBXwisKoZnUXpk= -github.com/multiversx/mx-chain-vm-common-go v1.3.42/go.mod h1:r+aILrY07ue89PH+D+B+Pp0viO1U3kN98t1pXneSgkE= -github.com/multiversx/mx-chain-vm-v1_2-go v1.2.54 h1:c+S0xhfOMtwWEJHMqoPf8plF3sLnz3euPj4Rd/wN2UQ= -github.com/multiversx/mx-chain-vm-v1_3-go v1.3.55 h1:hmo/QQ/qY+WgsMQeBODIX+tEnM/XIf7izNs9+WbKg4Y= -github.com/multiversx/mx-chain-vm-v1_4-go v1.4.81 h1:PoUugtvMIZOvsDB2FrQa54XDnRz4nFtBvPkn0PsvF3I= -github.com/multiversx/mx-components-big-int v0.1.1 h1:695mYPKYOrmGEGgRH4/pZruDoe3CPP1LHrBxKfvj5l4= -github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo= -github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= -github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= -github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/ginkgo/v2 v2.9.7 h1:06xGQy5www2oN160RtEZoTvnP2sPhEfePYmCDc2szss= -github.com/onsi/ginkgo/v2 v2.9.7/go.mod h1:cxrmXWykAwTwhQsJOPfdIDiJ+l2RYq7U8hFU+M/1uw0= -github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.27.7 h1:fVih9JD6ogIiHUN6ePK7HJidyEDpWGVB5mzM7cWNXoU= -github.com/opencontainers/runtime-spec v1.0.2 h1:UfAcuLBJB9Coz72x1hgl8O5RVzTdNiaglX6v2DM6FI0= -github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= -github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= -github.com/openzipkin/zipkin-go v0.1.1/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8= -github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 h1:onHthvaw9LFnH4t2DcNVpwGmV9E1BkGknEliJkfwQj0= -github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58/go.mod h1:DXv8WO4yhMYhSNPKjeNKa5WY9YCIEBRbNzFFPJbWO6Y= -github.com/pborman/uuid v1.2.1 h1:+ZZIw58t/ozdjRaXh/3awHfmWRbzYxJoAdNJxe/3pvw= -github.com/pborman/uuid v1.2.1/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= -github.com/pelletier/go-toml v1.9.3 h1:zeC5b1GviRUyKYd6OJPvBU/mcVDVoL1OhT17FCt5dSQ= -github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.0.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= -github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= -github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/polydawn/refmt v0.89.0 h1:ADJTApkvkeBZsN0tBTx8QjpD9JkmxbKp0cxfr9qszm4= -github.com/polydawn/refmt v0.89.0/go.mod h1:/zvteZs/GwLtCgZ4BL6CBsk9IKIlexP43ObX9AxTqTw= -github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= -github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY= -github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= -github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= -github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= -github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= -github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= -github.com/quic-go/qpack v0.4.0 h1:Cr9BXA1sQS2SmDUWjSofMPNKmvF6IiIfDRmgU0w1ZCo= -github.com/quic-go/qpack v0.4.0/go.mod h1:UZVnYIfi5GRk+zI9UMaCPsmZ2xKJP7XBUvVyT1Knj9A= -github.com/quic-go/qtls-go1-19 v0.3.2 h1:tFxjCFcTQzK+oMxG6Zcvp4Dq8dx4yD3dDiIiyc86Z5U= -github.com/quic-go/qtls-go1-19 v0.3.2/go.mod h1:ySOI96ew8lnoKPtSqx2BlI5wCpUVPT05RMAlajtnyOI= -github.com/quic-go/qtls-go1-20 v0.2.2 h1:WLOPx6OY/hxtTxKV1Zrq20FtXtDEkeY00CGQm8GEa3E= -github.com/quic-go/qtls-go1-20 v0.2.2/go.mod h1:JKtK6mjbAVcUTN/9jZpvLbGxvdWIKS8uT7EiStoU1SM= -github.com/quic-go/quic-go v0.33.0 h1:ItNoTDN/Fm/zBlq769lLJc8ECe9gYaW40veHCCco7y0= -github.com/quic-go/quic-go v0.33.0/go.mod h1:YMuhaAV9/jIu0XclDXwZPAsP/2Kgr5yMYhe9oxhhOFA= -github.com/quic-go/webtransport-go v0.5.3 h1:5XMlzemqB4qmOlgIus5zB45AcZ2kCgCy2EptUrfOPWU= -github.com/quic-go/webtransport-go v0.5.3/go.mod h1:OhmmgJIzTTqXK5xvtuX0oBpLV2GkLWNDA+UeTGJXErU= -github.com/raulk/go-watchdog v1.3.0 h1:oUmdlHxdkXRJlwfG0O9omj8ukerm8MEQavSiDTEtBsk= -github.com/raulk/go-watchdog v1.3.0/go.mod h1:fIvOnLbF0b0ZwkB9YU4mOW9Did//4vPZtDqv66NfsMU= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/shirou/gopsutil v3.21.11+incompatible h1:+1+c1VGhc88SSonWP6foOcLhvnKlUeu/erjjvaPEYiI= -github.com/shirou/gopsutil v3.21.11+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod h1:XhFIlyj5a1fBNx5aJTbKoIq0mNaPvOagO+HjB3EtxrY= -github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod h1:5u70Mqkb5O5cxEA8nxTsgrgLehJeAw6Oc4Ab1c/P1HM= -github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470/go.mod h1:2dOwnU2uBioM+SGy2aZoq1f/Sd1l9OkAeAUvjSyvgU0= -github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= -github.com/shurcooL/gofontwoff v0.0.0-20180329035133-29b52fc0a18d/go.mod h1:05UtEgK5zq39gLST6uB0cf3NEHjETfB4Fgr3Gx5R9Vw= -github.com/shurcooL/gopherjslib v0.0.0-20160914041154-feb6d3990c2c/go.mod h1:8d3azKNyqcHP1GaQE/c6dDgjkgSx2BZ4IoEi4F1reUI= -github.com/shurcooL/highlight_diff v0.0.0-20170515013008-09bb4053de1b/go.mod h1:ZpfEhSmds4ytuByIcDnOLkTHGUI6KNqRNPDLHDk+mUU= -github.com/shurcooL/highlight_go v0.0.0-20181028180052-98c3abbbae20/go.mod h1:UDKB5a1T23gOMUJrI+uSuH0VRDStOiUVSjBTRDVBVag= -github.com/shurcooL/home v0.0.0-20181020052607-80b7ffcb30f9/go.mod h1:+rgNQw2P9ARFAs37qieuu7ohDNQ3gds9msbT2yn85sg= -github.com/shurcooL/htmlg v0.0.0-20170918183704-d01228ac9e50/go.mod h1:zPn1wHpTIePGnXSHpsVPWEktKXHr6+SS6x/IKRb7cpw= -github.com/shurcooL/httperror v0.0.0-20170206035902-86b7830d14cc/go.mod h1:aYMfkZ6DWSJPJ6c4Wwz3QtW22G7mf/PEgaB9k/ik5+Y= -github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= -github.com/shurcooL/httpgzip v0.0.0-20180522190206-b1c53ac65af9/go.mod h1:919LwcH0M7/W4fcZ0/jy0qGght1GIhqyS/EgWGH2j5Q= -github.com/shurcooL/issues v0.0.0-20181008053335-6292fdc1e191/go.mod h1:e2qWDig5bLteJ4fwvDAc2NHzqFEthkqn7aOZAOpj+PQ= -github.com/shurcooL/issuesapp v0.0.0-20180602232740-048589ce2241/go.mod h1:NPpHK2TI7iSaM0buivtFUc9offApnI0Alt/K8hcHy0I= -github.com/shurcooL/notifications v0.0.0-20181007000457-627ab5aea122/go.mod h1:b5uSkrEVM1jQUspwbixRBhaIjIzL2xazXp6kntxYle0= -github.com/shurcooL/octicon v0.0.0-20181028054416-fa4f57f9efb2/go.mod h1:eWdoE5JD4R5UVWDucdOPg1g2fqQRq78IQa9zlOV1vpQ= -github.com/shurcooL/reactions v0.0.0-20181006231557-f2e0b4ca5b82/go.mod h1:TCR1lToEk4d2s07G3XGfz2QrgHXg4RJBvjrOozvoWfk= -github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537/go.mod h1:QJTqeLYEDaXHZDBsXlPCDqdhQuJkuw4NOtaxYe3xii4= -github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133/go.mod h1:hKmq5kWdCj2z2KEozexVbfEZIWiTjhE0+UjmZgPqehw= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= -github.com/smartystreets/assertions v1.13.0 h1:Dx1kYM01xsSqKPno3aqLnrwac2LetPvN23diwyr69Qs= -github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hgR6gDIPg= -github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM= -github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE= -github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA= -github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= -github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= -github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= -github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA= -github.com/tidwall/gjson v1.14.0 h1:6aeJ0bzojgWLa82gDQHcx3S0Lr/O51I9bJ5nv6JFx5w= -github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= -github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= -github.com/tklauser/go-sysconf v0.3.4 h1:HT8SVixZd3IzLdfs/xlpq0jeSfTX57g1v6wB1EuzV7M= -github.com/tklauser/go-sysconf v0.3.4/go.mod h1:Cl2c8ZRWfHD5IrfHo9VN+FX9kCFjIOyVklgXycLB6ek= -github.com/tklauser/numcpus v0.2.1 h1:ct88eFm+Q7m2ZfXJdan1xYoXKlmwsfP+k88q05KvlZc= -github.com/tklauser/numcpus v0.2.1/go.mod h1:9aU+wOc6WjUIZEwWMP62PL/41d65P+iks1gBkr4QyP8= -github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= -github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= -github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8= -github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U= -github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M= -github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= -github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= -github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= -github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.10/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/viant/assertly v0.4.8/go.mod h1:aGifi++jvCrUaklKEKT0BU95igDNaqkvz+49uaYMPRU= -github.com/viant/toolbox v0.24.0/go.mod h1:OxMCG57V0PXuIP2HNQrtJf2CjqdmbrOx5EkMILuUhzM= -github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0 h1:GDDkbFiaK8jsSDJfjId/PEGEShv6ugrt4kYsC5UIDaQ= -github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= -github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 h1:EKhdznlJHPMoKr0XTrX+IlJs1LH3lyx2nfr1dOlZ79k= -github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1/go.mod h1:8UvriyWtv5Q5EOgjHaSseUEdkQfvwFv1I/In/O2M9gc= -github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee h1:lYbXeSvJi5zk5GLKVuid9TVjS9a0OmLIDKTfoZBL6Ow= -github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee/go.mod h1:m2aV4LZI4Aez7dP5PMyVKEHhUyEJ/RjmPEDOpDvudHg= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg= -github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA= -go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= -go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/otel v1.14.0 h1:/79Huy8wbf5DnIPhemGB+zEPVwnN6fuQybr/SRXa6hM= -go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= -go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M= -go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= -go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= -go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/dig v1.17.0 h1:5Chju+tUvcC+N7N6EV08BJz41UZuO3BmHcN4A287ZLI= -go.uber.org/dig v1.17.0/go.mod h1:rTxpf7l5I0eBTlE6/9RL+lDybC7WFwY2QH55ZSjy1mU= -go.uber.org/fx v1.19.2 h1:SyFgYQFr1Wl0AYstE8vyYIzP4bFz2URrScjwC4cwUvY= -go.uber.org/fx v1.19.2/go.mod h1:43G1VcqSzbIv77y00p1DRAsyZS8WdzuYdhZXmEUkMyQ= -go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA= -go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= -go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= -go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= -go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= -go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= -go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE= -golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= -golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k= -golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= -golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw= -golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200602180216-279210d13fed/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20230321023759-10a507213a29 h1:ooxPy7fPvB4kwsA2h+iBNHkAbp/4JxTSwCmvdjEYmug= -golang.org/x/exp v0.0.0-20230321023759-10a507213a29/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= -golang.org/x/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= -golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181029044818-c44066c5c816/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181106065722-10aee1819953/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190313220215-9f648a60d977/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.5.0 h1:HuArIo48skDwlrvM3sEdHXElYslAMsf3KwRkkW4MC4s= -golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I= -golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod h1:JLpeXjPJfIyPr5TlbXLkXWLhP8nz10XfvxElABhCtcw= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= -golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180810173357-98c5dad5d1a0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210217105451-b926d437f341/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030000716-a0a13e073c7b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.9.1 h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo= -golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gonum.org/v1/gonum v0.11.0 h1:f1IJhK4Km5tBJmaiJXtk/PkL4cdVX6J+tGiM187uT5E= -gonum.org/v1/gonum v0.11.0/go.mod h1:fSG4YDCxxUZQJ7rKsQrj0gMOg00Il0Z96/qMA4bVQhA= -google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= -google.golang.org/api v0.0.0-20181030000543-1d582fd0359e/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= -google.golang.org/api v0.1.0/go.mod h1:UGEZY7KEX120AnNLIHFMKIo4obdJhkp2tPbaPlQx13Y= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898/go.mod h1:7Ep/1NZk928CDR8SjdVbjWNpdIf6nzjE3BTgJDr2Atg= -google.golang.org/genproto v0.0.0-20190306203927-b5d61aea6440/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= -google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio= -google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= -google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJdjuHRquDANNeA4x7B8WQ9o= -honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -lukechampine.com/blake3 v1.2.1 h1:YuqqRuaqsGV71BV/nm9xlI0MKUv4QC54jQnBChWbGnI= -lukechampine.com/blake3 v1.2.1/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k= -rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= -sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod h1:kuch7UrkMzY0X+p9CRK03kfuPQ2zzQcaEFbx8wA8rck= -sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= diff --git a/Makefile b/mx-sdk-go-old/Makefile similarity index 100% rename from Makefile rename to mx-sdk-go-old/Makefile diff --git a/aggregator/api/errors/errors.go b/mx-sdk-go-old/aggregator/api/errors/errors.go similarity index 100% rename from aggregator/api/errors/errors.go rename to mx-sdk-go-old/aggregator/api/errors/errors.go diff --git a/aggregator/api/gin/httpServer.go b/mx-sdk-go-old/aggregator/api/gin/httpServer.go similarity index 100% rename from aggregator/api/gin/httpServer.go rename to mx-sdk-go-old/aggregator/api/gin/httpServer.go diff --git a/aggregator/api/gin/httpServer_test.go b/mx-sdk-go-old/aggregator/api/gin/httpServer_test.go similarity index 90% rename from aggregator/api/gin/httpServer_test.go rename to mx-sdk-go-old/aggregator/api/gin/httpServer_test.go index 58c0c61f..78eb277a 100644 --- a/aggregator/api/gin/httpServer_test.go +++ b/mx-sdk-go-old/aggregator/api/gin/httpServer_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/multiversx/mx-chain-core-go/core/check" - apiErrors "github.com/multiversx/mx-sdk-go/aggregator/api/errors" - testsServer "github.com/multiversx/mx-sdk-go/testsCommon/server" + apiErrors "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/api/errors" + testsServer "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon/server" "github.com/stretchr/testify/assert" ) diff --git a/aggregator/api/gin/interface.go b/mx-sdk-go-old/aggregator/api/gin/interface.go similarity index 100% rename from aggregator/api/gin/interface.go rename to mx-sdk-go-old/aggregator/api/gin/interface.go diff --git a/aggregator/api/gin/webServer.go b/mx-sdk-go-old/aggregator/api/gin/webServer.go similarity index 98% rename from aggregator/api/gin/webServer.go rename to mx-sdk-go-old/aggregator/api/gin/webServer.go index 71e1c955..6209db86 100644 --- a/aggregator/api/gin/webServer.go +++ b/mx-sdk-go-old/aggregator/api/gin/webServer.go @@ -12,7 +12,7 @@ import ( "github.com/multiversx/mx-chain-go/api/logs" mxChainShared "github.com/multiversx/mx-chain-go/api/shared" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) var log = logger.GetOrCreate("api") diff --git a/aggregator/api/gin/webServer_test.go b/mx-sdk-go-old/aggregator/api/gin/webServer_test.go similarity index 100% rename from aggregator/api/gin/webServer_test.go rename to mx-sdk-go-old/aggregator/api/gin/webServer_test.go diff --git a/aggregator/api/gin/writers.go b/mx-sdk-go-old/aggregator/api/gin/writers.go similarity index 100% rename from aggregator/api/gin/writers.go rename to mx-sdk-go-old/aggregator/api/gin/writers.go diff --git a/aggregator/api/gin/writers_test.go b/mx-sdk-go-old/aggregator/api/gin/writers_test.go similarity index 100% rename from aggregator/api/gin/writers_test.go rename to mx-sdk-go-old/aggregator/api/gin/writers_test.go diff --git a/aggregator/computers.go b/mx-sdk-go-old/aggregator/computers.go similarity index 100% rename from aggregator/computers.go rename to mx-sdk-go-old/aggregator/computers.go diff --git a/aggregator/computers_test.go b/mx-sdk-go-old/aggregator/computers_test.go similarity index 95% rename from aggregator/computers_test.go rename to mx-sdk-go-old/aggregator/computers_test.go index 3f3a1173..08881dea 100644 --- a/aggregator/computers_test.go +++ b/mx-sdk-go-old/aggregator/computers_test.go @@ -3,7 +3,7 @@ package aggregator_test import ( "testing" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" "github.com/stretchr/testify/assert" ) diff --git a/aggregator/converters.go b/mx-sdk-go-old/aggregator/converters.go similarity index 100% rename from aggregator/converters.go rename to mx-sdk-go-old/aggregator/converters.go diff --git a/aggregator/converters_test.go b/mx-sdk-go-old/aggregator/converters_test.go similarity index 100% rename from aggregator/converters_test.go rename to mx-sdk-go-old/aggregator/converters_test.go diff --git a/aggregator/errors.go b/mx-sdk-go-old/aggregator/errors.go similarity index 100% rename from aggregator/errors.go rename to mx-sdk-go-old/aggregator/errors.go diff --git a/aggregator/export_test.go b/mx-sdk-go-old/aggregator/export_test.go similarity index 100% rename from aggregator/export_test.go rename to mx-sdk-go-old/aggregator/export_test.go diff --git a/aggregator/fetchers/baseFetcher.go b/mx-sdk-go-old/aggregator/fetchers/baseFetcher.go similarity index 100% rename from aggregator/fetchers/baseFetcher.go rename to mx-sdk-go-old/aggregator/fetchers/baseFetcher.go diff --git a/aggregator/fetchers/baseFetcher_test.go b/mx-sdk-go-old/aggregator/fetchers/baseFetcher_test.go similarity index 100% rename from aggregator/fetchers/baseFetcher_test.go rename to mx-sdk-go-old/aggregator/fetchers/baseFetcher_test.go diff --git a/aggregator/fetchers/binance.go b/mx-sdk-go-old/aggregator/fetchers/binance.go similarity index 94% rename from aggregator/fetchers/binance.go rename to mx-sdk-go-old/aggregator/fetchers/binance.go index 930c16b6..3bb169a3 100644 --- a/aggregator/fetchers/binance.go +++ b/mx-sdk-go-old/aggregator/fetchers/binance.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) const ( diff --git a/aggregator/fetchers/bitfinex.go b/mx-sdk-go-old/aggregator/fetchers/bitfinex.go similarity index 95% rename from aggregator/fetchers/bitfinex.go rename to mx-sdk-go-old/aggregator/fetchers/bitfinex.go index aef55d97..f73ccffe 100644 --- a/aggregator/fetchers/bitfinex.go +++ b/mx-sdk-go-old/aggregator/fetchers/bitfinex.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) const ( diff --git a/aggregator/fetchers/constants.go b/mx-sdk-go-old/aggregator/fetchers/constants.go similarity index 100% rename from aggregator/fetchers/constants.go rename to mx-sdk-go-old/aggregator/fetchers/constants.go diff --git a/aggregator/fetchers/converters.go b/mx-sdk-go-old/aggregator/fetchers/converters.go similarity index 100% rename from aggregator/fetchers/converters.go rename to mx-sdk-go-old/aggregator/fetchers/converters.go diff --git a/aggregator/fetchers/cryptocom.go b/mx-sdk-go-old/aggregator/fetchers/cryptocom.go similarity index 95% rename from aggregator/fetchers/cryptocom.go rename to mx-sdk-go-old/aggregator/fetchers/cryptocom.go index 9742800f..53ee9984 100644 --- a/aggregator/fetchers/cryptocom.go +++ b/mx-sdk-go-old/aggregator/fetchers/cryptocom.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) const ( diff --git a/aggregator/fetchers/errors.go b/mx-sdk-go-old/aggregator/fetchers/errors.go similarity index 100% rename from aggregator/fetchers/errors.go rename to mx-sdk-go-old/aggregator/fetchers/errors.go diff --git a/aggregator/fetchers/factory.go b/mx-sdk-go-old/aggregator/fetchers/factory.go similarity index 97% rename from aggregator/fetchers/factory.go rename to mx-sdk-go-old/aggregator/fetchers/factory.go index 29d1bdc5..e45fc369 100644 --- a/aggregator/fetchers/factory.go +++ b/mx-sdk-go-old/aggregator/fetchers/factory.go @@ -3,7 +3,7 @@ package fetchers import ( "fmt" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) // XExchangeTokensPair defines a base-quote pair of ids used by XExchange diff --git a/aggregator/fetchers/factory_test.go b/mx-sdk-go-old/aggregator/fetchers/factory_test.go similarity index 98% rename from aggregator/fetchers/factory_test.go rename to mx-sdk-go-old/aggregator/fetchers/factory_test.go index 59b98393..e5a0e893 100644 --- a/aggregator/fetchers/factory_test.go +++ b/mx-sdk-go-old/aggregator/fetchers/factory_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/multiversx/mx-sdk-go/aggregator/mock" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/mock" "github.com/stretchr/testify/assert" ) diff --git a/aggregator/fetchers/fetchers_test.go b/mx-sdk-go-old/aggregator/fetchers/fetchers_test.go similarity index 96% rename from aggregator/fetchers/fetchers_test.go rename to mx-sdk-go-old/aggregator/fetchers/fetchers_test.go index abc7e5f5..c69b8b94 100644 --- a/aggregator/fetchers/fetchers_test.go +++ b/mx-sdk-go-old/aggregator/fetchers/fetchers_test.go @@ -12,14 +12,14 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-crypto-go/signing" "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/aggregator" - "github.com/multiversx/mx-sdk-go/aggregator/mock" - "github.com/multiversx/mx-sdk-go/authentication" - "github.com/multiversx/mx-sdk-go/blockchain" - "github.com/multiversx/mx-sdk-go/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/examples" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/mock" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/authentication" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/aggregator/fetchers/gemini.go b/mx-sdk-go-old/aggregator/fetchers/gemini.go similarity index 94% rename from aggregator/fetchers/gemini.go rename to mx-sdk-go-old/aggregator/fetchers/gemini.go index e45872c0..6f001f4c 100644 --- a/aggregator/fetchers/gemini.go +++ b/mx-sdk-go-old/aggregator/fetchers/gemini.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) const ( diff --git a/aggregator/fetchers/hitbtc.go b/mx-sdk-go-old/aggregator/fetchers/hitbtc.go similarity index 94% rename from aggregator/fetchers/hitbtc.go rename to mx-sdk-go-old/aggregator/fetchers/hitbtc.go index 69b821db..235955a9 100644 --- a/aggregator/fetchers/hitbtc.go +++ b/mx-sdk-go-old/aggregator/fetchers/hitbtc.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) const ( diff --git a/aggregator/fetchers/huobi.go b/mx-sdk-go-old/aggregator/fetchers/huobi.go similarity index 94% rename from aggregator/fetchers/huobi.go rename to mx-sdk-go-old/aggregator/fetchers/huobi.go index ee1a25f0..28f9c939 100644 --- a/aggregator/fetchers/huobi.go +++ b/mx-sdk-go-old/aggregator/fetchers/huobi.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) const ( diff --git a/aggregator/fetchers/kraken.go b/mx-sdk-go-old/aggregator/fetchers/kraken.go similarity index 95% rename from aggregator/fetchers/kraken.go rename to mx-sdk-go-old/aggregator/fetchers/kraken.go index 54616576..b549f373 100644 --- a/aggregator/fetchers/kraken.go +++ b/mx-sdk-go-old/aggregator/fetchers/kraken.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) const ( diff --git a/aggregator/fetchers/okex.go b/mx-sdk-go-old/aggregator/fetchers/okex.go similarity index 94% rename from aggregator/fetchers/okex.go rename to mx-sdk-go-old/aggregator/fetchers/okex.go index b95d4c39..600ec8ee 100644 --- a/aggregator/fetchers/okex.go +++ b/mx-sdk-go-old/aggregator/fetchers/okex.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) const ( diff --git a/aggregator/fetchers/xexchange.go b/mx-sdk-go-old/aggregator/fetchers/xexchange.go similarity index 97% rename from aggregator/fetchers/xexchange.go rename to mx-sdk-go-old/aggregator/fetchers/xexchange.go index 89818d81..5444bf68 100644 --- a/aggregator/fetchers/xexchange.go +++ b/mx-sdk-go-old/aggregator/fetchers/xexchange.go @@ -6,7 +6,7 @@ import ( "fmt" "time" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) const ( diff --git a/aggregator/graphqlResponseGetter.go b/mx-sdk-go-old/aggregator/graphqlResponseGetter.go similarity index 96% rename from aggregator/graphqlResponseGetter.go rename to mx-sdk-go-old/aggregator/graphqlResponseGetter.go index e9e87994..05206a96 100644 --- a/aggregator/graphqlResponseGetter.go +++ b/mx-sdk-go-old/aggregator/graphqlResponseGetter.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/authentication" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/authentication" "golang.org/x/oauth2" ) diff --git a/aggregator/graphqlResponseGetter_test.go b/mx-sdk-go-old/aggregator/graphqlResponseGetter_test.go similarity index 93% rename from aggregator/graphqlResponseGetter_test.go rename to mx-sdk-go-old/aggregator/graphqlResponseGetter_test.go index 5952e535..5d9c8f51 100644 --- a/aggregator/graphqlResponseGetter_test.go +++ b/mx-sdk-go-old/aggregator/graphqlResponseGetter_test.go @@ -6,7 +6,7 @@ import ( "net/url" "testing" - "github.com/multiversx/mx-sdk-go/authentication/mock" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/authentication/mock" "github.com/stretchr/testify/require" ) diff --git a/aggregator/httpResponseGetter.go b/mx-sdk-go-old/aggregator/httpResponseGetter.go similarity index 100% rename from aggregator/httpResponseGetter.go rename to mx-sdk-go-old/aggregator/httpResponseGetter.go diff --git a/aggregator/httpResponseGetter_test.go b/mx-sdk-go-old/aggregator/httpResponseGetter_test.go similarity index 97% rename from aggregator/httpResponseGetter_test.go rename to mx-sdk-go-old/aggregator/httpResponseGetter_test.go index 40a3eb7f..82758078 100644 --- a/aggregator/httpResponseGetter_test.go +++ b/mx-sdk-go-old/aggregator/httpResponseGetter_test.go @@ -8,7 +8,7 @@ import ( "net/url" "testing" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" "github.com/stretchr/testify/require" ) diff --git a/aggregator/interface.go b/mx-sdk-go-old/aggregator/interface.go similarity index 100% rename from aggregator/interface.go rename to mx-sdk-go-old/aggregator/interface.go diff --git a/aggregator/mock/graphqlResponseGetterStub.go b/mx-sdk-go-old/aggregator/mock/graphqlResponseGetterStub.go similarity index 100% rename from aggregator/mock/graphqlResponseGetterStub.go rename to mx-sdk-go-old/aggregator/mock/graphqlResponseGetterStub.go diff --git a/aggregator/mock/httpResponseGetterStub.go b/mx-sdk-go-old/aggregator/mock/httpResponseGetterStub.go similarity index 100% rename from aggregator/mock/httpResponseGetterStub.go rename to mx-sdk-go-old/aggregator/mock/httpResponseGetterStub.go diff --git a/aggregator/mock/priceFetcherStub.go b/mx-sdk-go-old/aggregator/mock/priceFetcherStub.go similarity index 100% rename from aggregator/mock/priceFetcherStub.go rename to mx-sdk-go-old/aggregator/mock/priceFetcherStub.go diff --git a/aggregator/mock/priceNotifeeStub.go b/mx-sdk-go-old/aggregator/mock/priceNotifeeStub.go similarity index 89% rename from aggregator/mock/priceNotifeeStub.go rename to mx-sdk-go-old/aggregator/mock/priceNotifeeStub.go index b2527f82..216de616 100644 --- a/aggregator/mock/priceNotifeeStub.go +++ b/mx-sdk-go-old/aggregator/mock/priceNotifeeStub.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/multiversx/mx-sdk-go/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" ) // PriceNotifeeStub - diff --git a/aggregator/notifees/errors.go b/mx-sdk-go-old/aggregator/notifees/errors.go similarity index 100% rename from aggregator/notifees/errors.go rename to mx-sdk-go-old/aggregator/notifees/errors.go diff --git a/aggregator/notifees/interface.go b/mx-sdk-go-old/aggregator/notifees/interface.go similarity index 92% rename from aggregator/notifees/interface.go rename to mx-sdk-go-old/aggregator/notifees/interface.go index a12ae3d3..1329d2f7 100644 --- a/aggregator/notifees/interface.go +++ b/mx-sdk-go-old/aggregator/notifees/interface.go @@ -4,8 +4,8 @@ import ( "context" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) // TxBuilder defines the component able to build & sign a transaction diff --git a/aggregator/notifees/mxNotifee.go b/mx-sdk-go-old/aggregator/notifees/mxNotifee.go similarity index 95% rename from aggregator/notifees/mxNotifee.go rename to mx-sdk-go-old/aggregator/notifees/mxNotifee.go index 0325ead0..6ea5e041 100644 --- a/aggregator/notifees/mxNotifee.go +++ b/mx-sdk-go-old/aggregator/notifees/mxNotifee.go @@ -6,9 +6,9 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data/transaction" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/aggregator" - "github.com/multiversx/mx-sdk-go/builders" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) const zeroString = "0" diff --git a/aggregator/notifees/mxNotifee_test.go b/mx-sdk-go-old/aggregator/notifees/mxNotifee_test.go similarity index 96% rename from aggregator/notifees/mxNotifee_test.go rename to mx-sdk-go-old/aggregator/notifees/mxNotifee_test.go index 77211347..4997c753 100644 --- a/aggregator/notifees/mxNotifee_test.go +++ b/mx-sdk-go-old/aggregator/notifees/mxNotifee_test.go @@ -13,12 +13,12 @@ import ( "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/multiversx/mx-chain-crypto-go/signing" "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/aggregator" - "github.com/multiversx/mx-sdk-go/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/builders" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/aggregator/pair.go b/mx-sdk-go-old/aggregator/pair.go similarity index 100% rename from aggregator/pair.go rename to mx-sdk-go-old/aggregator/pair.go diff --git a/aggregator/pair_test.go b/mx-sdk-go-old/aggregator/pair_test.go similarity index 100% rename from aggregator/pair_test.go rename to mx-sdk-go-old/aggregator/pair_test.go diff --git a/aggregator/priceAggregator.go b/mx-sdk-go-old/aggregator/priceAggregator.go similarity index 100% rename from aggregator/priceAggregator.go rename to mx-sdk-go-old/aggregator/priceAggregator.go diff --git a/aggregator/priceAggregator_test.go b/mx-sdk-go-old/aggregator/priceAggregator_test.go similarity index 96% rename from aggregator/priceAggregator_test.go rename to mx-sdk-go-old/aggregator/priceAggregator_test.go index 4554d522..5b787d92 100644 --- a/aggregator/priceAggregator_test.go +++ b/mx-sdk-go-old/aggregator/priceAggregator_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/aggregator" - "github.com/multiversx/mx-sdk-go/aggregator/mock" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/mock" "github.com/stretchr/testify/assert" ) diff --git a/aggregator/priceNotifier.go b/mx-sdk-go-old/aggregator/priceNotifier.go similarity index 100% rename from aggregator/priceNotifier.go rename to mx-sdk-go-old/aggregator/priceNotifier.go diff --git a/aggregator/priceNotifier_test.go b/mx-sdk-go-old/aggregator/priceNotifier_test.go similarity index 98% rename from aggregator/priceNotifier_test.go rename to mx-sdk-go-old/aggregator/priceNotifier_test.go index b5edeaaf..e863a39b 100644 --- a/aggregator/priceNotifier_test.go +++ b/mx-sdk-go-old/aggregator/priceNotifier_test.go @@ -9,8 +9,8 @@ import ( "time" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/aggregator" - "github.com/multiversx/mx-sdk-go/aggregator/mock" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/authentication/errors.go b/mx-sdk-go-old/authentication/errors.go similarity index 100% rename from authentication/errors.go rename to mx-sdk-go-old/authentication/errors.go diff --git a/authentication/interface.go b/mx-sdk-go-old/authentication/interface.go similarity index 100% rename from authentication/interface.go rename to mx-sdk-go-old/authentication/interface.go diff --git a/authentication/mock/nativeStub.go b/mx-sdk-go-old/authentication/mock/nativeStub.go similarity index 100% rename from authentication/mock/nativeStub.go rename to mx-sdk-go-old/authentication/mock/nativeStub.go diff --git a/authentication/native.go b/mx-sdk-go-old/authentication/native.go similarity index 95% rename from authentication/native.go rename to mx-sdk-go-old/authentication/native.go index 55879ad0..60833c71 100644 --- a/authentication/native.go +++ b/mx-sdk-go-old/authentication/native.go @@ -8,9 +8,9 @@ import ( "time" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/builders" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/workflows" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/workflows" ) // ArgsNativeAuthClient is the DTO used in the native auth client constructor diff --git a/authentication/native_test.go b/mx-sdk-go-old/authentication/native_test.go similarity index 97% rename from authentication/native_test.go rename to mx-sdk-go-old/authentication/native_test.go index 227f7052..5bcb3b1f 100644 --- a/authentication/native_test.go +++ b/mx-sdk-go-old/authentication/native_test.go @@ -5,12 +5,12 @@ import ( "encoding/base64" "errors" "fmt" + crypto "github.com/multiversx/mx-chain-crypto-go" "testing" "time" - "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/require" ) diff --git a/blockchain/addressGenerator.go b/mx-sdk-go-old/blockchain/addressGenerator.go similarity index 94% rename from blockchain/addressGenerator.go rename to mx-sdk-go-old/blockchain/addressGenerator.go index 9f0ecb63..082abe37 100644 --- a/blockchain/addressGenerator.go +++ b/mx-sdk-go-old/blockchain/addressGenerator.go @@ -12,10 +12,10 @@ import ( "github.com/multiversx/mx-chain-go/process" "github.com/multiversx/mx-chain-go/process/factory" "github.com/multiversx/mx-chain-go/process/smartContract/hooks" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/disabled" - "github.com/multiversx/mx-sdk-go/storage" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/disabled" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/storage" ) const accountStartNonce = uint64(0) diff --git a/blockchain/addressGenerator_test.go b/mx-sdk-go-old/blockchain/addressGenerator_test.go similarity index 96% rename from blockchain/addressGenerator_test.go rename to mx-sdk-go-old/blockchain/addressGenerator_test.go index a3ec89af..6fbe3c2c 100644 --- a/blockchain/addressGenerator_test.go +++ b/mx-sdk-go-old/blockchain/addressGenerator_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/blockchain/baseProxy.go b/mx-sdk-go-old/blockchain/baseProxy.go similarity index 98% rename from blockchain/baseProxy.go rename to mx-sdk-go-old/blockchain/baseProxy.go index 17d57238..b2ff10c6 100644 --- a/blockchain/baseProxy.go +++ b/mx-sdk-go-old/blockchain/baseProxy.go @@ -12,8 +12,8 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data/transaction" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) var log = logger.GetOrCreate("mx-sdk-go/blockchain") diff --git a/blockchain/baseProxy_test.go b/mx-sdk-go-old/blockchain/baseProxy_test.go similarity index 99% rename from blockchain/baseProxy_test.go rename to mx-sdk-go-old/blockchain/baseProxy_test.go index adf2d99d..8e9e19db 100644 --- a/blockchain/baseProxy_test.go +++ b/mx-sdk-go-old/blockchain/baseProxy_test.go @@ -12,9 +12,9 @@ import ( "github.com/multiversx/mx-chain-core-go/core" "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/blockchain/endpointProviders" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/endpointProviders" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/blockchain/cryptoProvider/cryptoComponentsHolder.go b/mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder.go similarity index 94% rename from blockchain/cryptoProvider/cryptoComponentsHolder.go rename to mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder.go index db1fc123..18bf9f78 100644 --- a/blockchain/cryptoProvider/cryptoComponentsHolder.go +++ b/mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder.go @@ -2,8 +2,8 @@ package cryptoProvider import ( crypto "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) type cryptoComponentsHolder struct { diff --git a/blockchain/cryptoProvider/cryptoComponentsHolder_test.go b/mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder_test.go similarity index 97% rename from blockchain/cryptoProvider/cryptoComponentsHolder_test.go rename to mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder_test.go index 3e93e86d..6a88310d 100644 --- a/blockchain/cryptoProvider/cryptoComponentsHolder_test.go +++ b/mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder_test.go @@ -7,7 +7,7 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" crypto "github.com/multiversx/mx-chain-crypto-go" "github.com/multiversx/mx-chain-go/testscommon/cryptoMocks" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/require" ) diff --git a/blockchain/cryptoProvider/errors.go b/mx-sdk-go-old/blockchain/cryptoProvider/errors.go similarity index 100% rename from blockchain/cryptoProvider/errors.go rename to mx-sdk-go-old/blockchain/cryptoProvider/errors.go diff --git a/blockchain/cryptoProvider/signer.go b/mx-sdk-go-old/blockchain/cryptoProvider/signer.go similarity index 98% rename from blockchain/cryptoProvider/signer.go rename to mx-sdk-go-old/blockchain/cryptoProvider/signer.go index 4afb3381..253d5f11 100644 --- a/blockchain/cryptoProvider/signer.go +++ b/mx-sdk-go-old/blockchain/cryptoProvider/signer.go @@ -2,11 +2,11 @@ package cryptoProvider import ( "encoding/json" + crypto "github.com/multiversx/mx-chain-crypto-go" "strconv" "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/multiversx/mx-chain-core-go/hashing/keccak" - "github.com/multiversx/mx-chain-crypto-go" "github.com/multiversx/mx-chain-crypto-go/signing/ed25519/singlesig" logger "github.com/multiversx/mx-chain-logger-go" ) diff --git a/blockchain/cryptoProvider/signer_test.go b/mx-sdk-go-old/blockchain/cryptoProvider/signer_test.go similarity index 96% rename from blockchain/cryptoProvider/signer_test.go rename to mx-sdk-go-old/blockchain/cryptoProvider/signer_test.go index d21f6f5e..cff06172 100644 --- a/blockchain/cryptoProvider/signer_test.go +++ b/mx-sdk-go-old/blockchain/cryptoProvider/signer_test.go @@ -9,8 +9,8 @@ import ( "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/multiversx/mx-chain-crypto-go/signing" "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/examples" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" "github.com/stretchr/testify/require" ) diff --git a/blockchain/endpointProviders/baseEndpointProvider.go b/mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider.go similarity index 100% rename from blockchain/endpointProviders/baseEndpointProvider.go rename to mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider.go diff --git a/blockchain/endpointProviders/baseEndpointProvider_test.go b/mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider_test.go similarity index 100% rename from blockchain/endpointProviders/baseEndpointProvider_test.go rename to mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider_test.go diff --git a/blockchain/endpointProviders/nodeEndpointProvider.go b/mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider.go similarity index 97% rename from blockchain/endpointProviders/nodeEndpointProvider.go rename to mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider.go index c4e7fd1b..ff24056d 100644 --- a/blockchain/endpointProviders/nodeEndpointProvider.go +++ b/mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider.go @@ -3,7 +3,7 @@ package endpointProviders import ( "fmt" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) const ( diff --git a/blockchain/endpointProviders/nodeEndpointProvider_test.go b/mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider_test.go similarity index 94% rename from blockchain/endpointProviders/nodeEndpointProvider_test.go rename to mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider_test.go index 8ec1a4a7..90b2af65 100644 --- a/blockchain/endpointProviders/nodeEndpointProvider_test.go +++ b/mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" "github.com/stretchr/testify/assert" ) diff --git a/blockchain/endpointProviders/proxyEndpointProvider.go b/mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider.go similarity index 97% rename from blockchain/endpointProviders/proxyEndpointProvider.go rename to mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider.go index 0a3df4f6..5e4094c5 100644 --- a/blockchain/endpointProviders/proxyEndpointProvider.go +++ b/mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider.go @@ -3,7 +3,7 @@ package endpointProviders import ( "fmt" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) const ( diff --git a/blockchain/endpointProviders/proxyEndpointProvider_test.go b/mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider_test.go similarity index 94% rename from blockchain/endpointProviders/proxyEndpointProvider_test.go rename to mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider_test.go index 46ad16b2..e7bc78d5 100644 --- a/blockchain/endpointProviders/proxyEndpointProvider_test.go +++ b/mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider_test.go @@ -5,7 +5,7 @@ import ( "github.com/multiversx/mx-chain-core-go/core" "github.com/multiversx/mx-chain-core-go/core/check" - sdkCore "github.com/multiversx/mx-sdk-go/core" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" "github.com/stretchr/testify/assert" ) diff --git a/blockchain/errors.go b/mx-sdk-go-old/blockchain/errors.go similarity index 96% rename from blockchain/errors.go rename to mx-sdk-go-old/blockchain/errors.go index b6ac3ecc..e3bddf4a 100644 --- a/blockchain/errors.go +++ b/mx-sdk-go-old/blockchain/errors.go @@ -48,7 +48,7 @@ var ErrNilRequest = errors.New("nil request") // ErrNilProxy signals that a nil proxy has been provided var ErrNilProxy = errors.New("nil proxy") -/// ErrNotUint64Bytes signals that the provided bytes do not represent a valid uint64 number +// / ErrNotUint64Bytes signals that the provided bytes do not represent a valid uint64 number var ErrNotUint64Bytes = errors.New("provided bytes do not represent a valid uint64 number") func createHTTPStatusError(httpStatusCode int, err error) error { diff --git a/blockchain/factory/errors.go b/mx-sdk-go-old/blockchain/factory/errors.go similarity index 100% rename from blockchain/factory/errors.go rename to mx-sdk-go-old/blockchain/factory/errors.go diff --git a/blockchain/factory/factory.go b/mx-sdk-go-old/blockchain/factory/factory.go similarity index 82% rename from blockchain/factory/factory.go rename to mx-sdk-go-old/blockchain/factory/factory.go index 38de40bd..4262c607 100644 --- a/blockchain/factory/factory.go +++ b/mx-sdk-go-old/blockchain/factory/factory.go @@ -3,9 +3,9 @@ package factory import ( "fmt" - "github.com/multiversx/mx-sdk-go/blockchain/endpointProviders" - "github.com/multiversx/mx-sdk-go/blockchain/finalityProvider" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/endpointProviders" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/finalityProvider" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) // CreateEndpointProvider creates a new instance of EndpointProvider diff --git a/blockchain/factory/factory_test.go b/mx-sdk-go-old/blockchain/factory/factory_test.go similarity index 95% rename from blockchain/factory/factory_test.go rename to mx-sdk-go-old/blockchain/factory/factory_test.go index 22a7e9c3..03fe74a5 100644 --- a/blockchain/factory/factory_test.go +++ b/mx-sdk-go-old/blockchain/factory/factory_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" ) diff --git a/blockchain/factory/interface.go b/mx-sdk-go-old/blockchain/factory/interface.go similarity index 93% rename from blockchain/factory/interface.go rename to mx-sdk-go-old/blockchain/factory/interface.go index 8c79df8e..b3d888e0 100644 --- a/blockchain/factory/interface.go +++ b/mx-sdk-go-old/blockchain/factory/interface.go @@ -3,8 +3,8 @@ package factory import ( "context" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) type proxy interface { diff --git a/blockchain/finalityProvider/disabledFinalityProvider.go b/mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider.go similarity index 100% rename from blockchain/finalityProvider/disabledFinalityProvider.go rename to mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider.go diff --git a/blockchain/finalityProvider/disabledFinalityProvider_test.go b/mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider_test.go similarity index 100% rename from blockchain/finalityProvider/disabledFinalityProvider_test.go rename to mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider_test.go diff --git a/blockchain/finalityProvider/errors.go b/mx-sdk-go-old/blockchain/finalityProvider/errors.go similarity index 100% rename from blockchain/finalityProvider/errors.go rename to mx-sdk-go-old/blockchain/finalityProvider/errors.go diff --git a/blockchain/finalityProvider/interface.go b/mx-sdk-go-old/blockchain/finalityProvider/interface.go similarity index 77% rename from blockchain/finalityProvider/interface.go rename to mx-sdk-go-old/blockchain/finalityProvider/interface.go index b7a4800f..926c643f 100644 --- a/blockchain/finalityProvider/interface.go +++ b/mx-sdk-go-old/blockchain/finalityProvider/interface.go @@ -3,7 +3,7 @@ package finalityProvider import ( "context" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) type proxy interface { diff --git a/blockchain/finalityProvider/nodeFinalityProvider.go b/mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider.go similarity index 97% rename from blockchain/finalityProvider/nodeFinalityProvider.go rename to mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider.go index 7f593728..21c02c34 100644 --- a/blockchain/finalityProvider/nodeFinalityProvider.go +++ b/mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) type nonces struct { diff --git a/blockchain/finalityProvider/nodeFinalityProvider_test.go b/mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider_test.go similarity index 97% rename from blockchain/finalityProvider/nodeFinalityProvider_test.go rename to mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider_test.go index 2bb93515..a9feaee4 100644 --- a/blockchain/finalityProvider/nodeFinalityProvider_test.go +++ b/mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" ) diff --git a/blockchain/finalityProvider/proxyFinalityProvider.go b/mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider.go similarity index 98% rename from blockchain/finalityProvider/proxyFinalityProvider.go rename to mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider.go index 4cd04d59..3de5b8cb 100644 --- a/blockchain/finalityProvider/proxyFinalityProvider.go +++ b/mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider.go @@ -9,7 +9,7 @@ import ( mxChainCore "github.com/multiversx/mx-chain-core-go/core" "github.com/multiversx/mx-chain-core-go/core/check" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) var log = logger.GetOrCreate("mx-sdk-go/blockchain/finalityprovider") diff --git a/blockchain/finalityProvider/proxyFinalityProvider_test.go b/mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider_test.go similarity index 98% rename from blockchain/finalityProvider/proxyFinalityProvider_test.go rename to mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider_test.go index 9ca4d01c..4ac63498 100644 --- a/blockchain/finalityProvider/proxyFinalityProvider_test.go +++ b/mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider_test.go @@ -8,8 +8,8 @@ import ( "github.com/multiversx/mx-chain-core-go/core" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" ) diff --git a/blockchain/interface.go b/mx-sdk-go-old/blockchain/interface.go similarity index 95% rename from blockchain/interface.go rename to mx-sdk-go-old/blockchain/interface.go index 754fbb90..40d39254 100644 --- a/blockchain/interface.go +++ b/mx-sdk-go-old/blockchain/interface.go @@ -4,8 +4,8 @@ import ( "context" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) // Proxy holds the primitive functions that the multiversx proxy engine supports & implements diff --git a/blockchain/proxy.go b/mx-sdk-go-old/blockchain/proxy.go similarity index 98% rename from blockchain/proxy.go rename to mx-sdk-go-old/blockchain/proxy.go index 33e3adc3..24ba4a11 100644 --- a/blockchain/proxy.go +++ b/mx-sdk-go-old/blockchain/proxy.go @@ -14,10 +14,10 @@ import ( "github.com/multiversx/mx-chain-core-go/data/api" "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/multiversx/mx-chain-go/state" - "github.com/multiversx/mx-sdk-go/blockchain/factory" - sdkCore "github.com/multiversx/mx-sdk-go/core" - sdkHttp "github.com/multiversx/mx-sdk-go/core/http" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/factory" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + sdkHttp "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core/http" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) const ( diff --git a/blockchain/proxy_test.go b/mx-sdk-go-old/blockchain/proxy_test.go similarity index 99% rename from blockchain/proxy_test.go rename to mx-sdk-go-old/blockchain/proxy_test.go index 6034e9ea..debd4cbc 100644 --- a/blockchain/proxy_test.go +++ b/mx-sdk-go-old/blockchain/proxy_test.go @@ -19,10 +19,10 @@ import ( "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/multiversx/mx-chain-go/config" "github.com/multiversx/mx-chain-go/state" - sdkCore "github.com/multiversx/mx-sdk-go/core" - sdkHttp "github.com/multiversx/mx-sdk-go/core/http" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/testsCommon" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + sdkHttp "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core/http" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/blockchain/queryResponseError.go b/mx-sdk-go-old/blockchain/queryResponseError.go similarity index 100% rename from blockchain/queryResponseError.go rename to mx-sdk-go-old/blockchain/queryResponseError.go diff --git a/blockchain/queryResponseError_test.go b/mx-sdk-go-old/blockchain/queryResponseError_test.go similarity index 100% rename from blockchain/queryResponseError_test.go rename to mx-sdk-go-old/blockchain/queryResponseError_test.go diff --git a/blockchain/shardCoordinator.go b/mx-sdk-go-old/blockchain/shardCoordinator.go similarity index 94% rename from blockchain/shardCoordinator.go rename to mx-sdk-go-old/blockchain/shardCoordinator.go index d5dd5635..767827c2 100644 --- a/blockchain/shardCoordinator.go +++ b/mx-sdk-go-old/blockchain/shardCoordinator.go @@ -3,7 +3,7 @@ package blockchain import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-go/sharding" - sdkCore "github.com/multiversx/mx-sdk-go/core" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) type shardCoordinator struct { diff --git a/blockchain/vmQueryGetter.go b/mx-sdk-go-old/blockchain/vmQueryGetter.go similarity index 97% rename from blockchain/vmQueryGetter.go rename to mx-sdk-go-old/blockchain/vmQueryGetter.go index fa0ad1ec..48ac590e 100644 --- a/blockchain/vmQueryGetter.go +++ b/mx-sdk-go-old/blockchain/vmQueryGetter.go @@ -9,8 +9,8 @@ import ( "github.com/multiversx/mx-chain-core-go/core" "github.com/multiversx/mx-chain-core-go/core/check" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/builders" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) const ( diff --git a/blockchain/vmQueryGetter_test.go b/mx-sdk-go-old/blockchain/vmQueryGetter_test.go similarity index 98% rename from blockchain/vmQueryGetter_test.go rename to mx-sdk-go-old/blockchain/vmQueryGetter_test.go index 232ad216..bc8dd0dd 100644 --- a/blockchain/vmQueryGetter_test.go +++ b/mx-sdk-go-old/blockchain/vmQueryGetter_test.go @@ -10,9 +10,9 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data/vm" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/builders" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" ) diff --git a/builders/baseBuilder.go b/mx-sdk-go-old/builders/baseBuilder.go similarity index 97% rename from builders/baseBuilder.go rename to mx-sdk-go-old/builders/baseBuilder.go index ce6764be..7d247dbb 100644 --- a/builders/baseBuilder.go +++ b/mx-sdk-go-old/builders/baseBuilder.go @@ -6,7 +6,7 @@ import ( "math/big" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) type baseBuilder struct { diff --git a/builders/baseBuilder_test.go b/mx-sdk-go-old/builders/baseBuilder_test.go similarity index 100% rename from builders/baseBuilder_test.go rename to mx-sdk-go-old/builders/baseBuilder_test.go diff --git a/builders/errors.go b/mx-sdk-go-old/builders/errors.go similarity index 100% rename from builders/errors.go rename to mx-sdk-go-old/builders/errors.go diff --git a/builders/interface.go b/mx-sdk-go-old/builders/interface.go similarity index 93% rename from builders/interface.go rename to mx-sdk-go-old/builders/interface.go index 0c1c1e3a..d8fab4db 100644 --- a/builders/interface.go +++ b/mx-sdk-go-old/builders/interface.go @@ -5,8 +5,8 @@ import ( "github.com/multiversx/mx-chain-core-go/data/transaction" crypto "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) // TxDataBuilder defines the behavior of a transaction data builder diff --git a/builders/relayedTxV1Builder.go b/mx-sdk-go-old/builders/relayedTxV1Builder.go similarity index 97% rename from builders/relayedTxV1Builder.go rename to mx-sdk-go-old/builders/relayedTxV1Builder.go index fe0260af..046458b0 100644 --- a/builders/relayedTxV1Builder.go +++ b/mx-sdk-go-old/builders/relayedTxV1Builder.go @@ -6,8 +6,8 @@ import ( "math/big" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) type relayedTxV1Builder struct { diff --git a/builders/relayedTxV1Builder_test.go b/mx-sdk-go-old/builders/relayedTxV1Builder_test.go similarity index 95% rename from builders/relayedTxV1Builder_test.go rename to mx-sdk-go-old/builders/relayedTxV1Builder_test.go index 8c364947..a3da036b 100644 --- a/builders/relayedTxV1Builder_test.go +++ b/mx-sdk-go-old/builders/relayedTxV1Builder_test.go @@ -8,9 +8,9 @@ import ( "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/multiversx/mx-chain-crypto-go/signing" "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" "github.com/stretchr/testify/require" ) diff --git a/builders/relayedTxV2Builder.go b/mx-sdk-go-old/builders/relayedTxV2Builder.go similarity index 96% rename from builders/relayedTxV2Builder.go rename to mx-sdk-go-old/builders/relayedTxV2Builder.go index 4705ce72..32e50844 100644 --- a/builders/relayedTxV2Builder.go +++ b/mx-sdk-go-old/builders/relayedTxV2Builder.go @@ -6,8 +6,8 @@ import ( "math/big" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) type relayedTxV2Builder struct { diff --git a/builders/relayedTxV2Builder_test.go b/mx-sdk-go-old/builders/relayedTxV2Builder_test.go similarity index 98% rename from builders/relayedTxV2Builder_test.go rename to mx-sdk-go-old/builders/relayedTxV2Builder_test.go index a711ed92..bf6811db 100644 --- a/builders/relayedTxV2Builder_test.go +++ b/mx-sdk-go-old/builders/relayedTxV2Builder_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" "github.com/stretchr/testify/require" ) diff --git a/builders/txBuilder.go b/mx-sdk-go-old/builders/txBuilder.go similarity index 98% rename from builders/txBuilder.go rename to mx-sdk-go-old/builders/txBuilder.go index 43bcd6e8..40d34bb3 100644 --- a/builders/txBuilder.go +++ b/mx-sdk-go-old/builders/txBuilder.go @@ -8,7 +8,7 @@ import ( "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/multiversx/mx-chain-core-go/hashing/blake2b" "github.com/multiversx/mx-chain-core-go/marshal" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) var ( diff --git a/builders/txBuilder_test.go b/mx-sdk-go-old/builders/txBuilder_test.go similarity index 97% rename from builders/txBuilder_test.go rename to mx-sdk-go-old/builders/txBuilder_test.go index 6706a817..85e224f2 100644 --- a/builders/txBuilder_test.go +++ b/mx-sdk-go-old/builders/txBuilder_test.go @@ -11,8 +11,8 @@ import ( crypto "github.com/multiversx/mx-chain-crypto-go" "github.com/multiversx/mx-chain-crypto-go/signing" "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/builders/txDataBuilder.go b/mx-sdk-go-old/builders/txDataBuilder.go similarity index 98% rename from builders/txDataBuilder.go rename to mx-sdk-go-old/builders/txDataBuilder.go index 13004cde..19d0201f 100644 --- a/builders/txDataBuilder.go +++ b/mx-sdk-go-old/builders/txDataBuilder.go @@ -4,7 +4,7 @@ import ( "math/big" "strings" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) const dataSeparator = "@" diff --git a/builders/txDataBuilder_test.go b/mx-sdk-go-old/builders/txDataBuilder_test.go similarity index 98% rename from builders/txDataBuilder_test.go rename to mx-sdk-go-old/builders/txDataBuilder_test.go index 01a78e00..34da6d76 100644 --- a/builders/txDataBuilder_test.go +++ b/mx-sdk-go-old/builders/txDataBuilder_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/builders/vmQueryBuilder.go b/mx-sdk-go-old/builders/vmQueryBuilder.go similarity index 95% rename from builders/vmQueryBuilder.go rename to mx-sdk-go-old/builders/vmQueryBuilder.go index eed853d0..32dfac79 100644 --- a/builders/vmQueryBuilder.go +++ b/mx-sdk-go-old/builders/vmQueryBuilder.go @@ -3,8 +3,8 @@ package builders import ( "math/big" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) type vmQueryBuilder struct { diff --git a/builders/vmQueryBuilder_test.go b/mx-sdk-go-old/builders/vmQueryBuilder_test.go similarity index 98% rename from builders/vmQueryBuilder_test.go rename to mx-sdk-go-old/builders/vmQueryBuilder_test.go index bb1dd9ad..f0c229d7 100644 --- a/builders/vmQueryBuilder_test.go +++ b/mx-sdk-go-old/builders/vmQueryBuilder_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/core/api.go b/mx-sdk-go-old/core/api.go similarity index 100% rename from core/api.go rename to mx-sdk-go-old/core/api.go diff --git a/core/api_test.go b/mx-sdk-go-old/core/api_test.go similarity index 100% rename from core/api_test.go rename to mx-sdk-go-old/core/api_test.go diff --git a/core/constants.go b/mx-sdk-go-old/core/constants.go similarity index 100% rename from core/constants.go rename to mx-sdk-go-old/core/constants.go diff --git a/core/http/clientWrapper.go b/mx-sdk-go-old/core/http/clientWrapper.go similarity index 100% rename from core/http/clientWrapper.go rename to mx-sdk-go-old/core/http/clientWrapper.go diff --git a/core/http/clientWrapper_test.go b/mx-sdk-go-old/core/http/clientWrapper_test.go similarity index 100% rename from core/http/clientWrapper_test.go rename to mx-sdk-go-old/core/http/clientWrapper_test.go diff --git a/core/http/interface.go b/mx-sdk-go-old/core/http/interface.go similarity index 100% rename from core/http/interface.go rename to mx-sdk-go-old/core/http/interface.go diff --git a/core/interface.go b/mx-sdk-go-old/core/interface.go similarity index 100% rename from core/interface.go rename to mx-sdk-go-old/core/interface.go diff --git a/core/polling/errors.go b/mx-sdk-go-old/core/polling/errors.go similarity index 100% rename from core/polling/errors.go rename to mx-sdk-go-old/core/polling/errors.go diff --git a/core/polling/interface.go b/mx-sdk-go-old/core/polling/interface.go similarity index 100% rename from core/polling/interface.go rename to mx-sdk-go-old/core/polling/interface.go diff --git a/core/polling/mock/executorStub.go b/mx-sdk-go-old/core/polling/mock/executorStub.go similarity index 100% rename from core/polling/mock/executorStub.go rename to mx-sdk-go-old/core/polling/mock/executorStub.go diff --git a/core/polling/pollingHandler.go b/mx-sdk-go-old/core/polling/pollingHandler.go similarity index 100% rename from core/polling/pollingHandler.go rename to mx-sdk-go-old/core/polling/pollingHandler.go diff --git a/core/polling/pollingHandler_test.go b/mx-sdk-go-old/core/polling/pollingHandler_test.go similarity index 98% rename from core/polling/pollingHandler_test.go rename to mx-sdk-go-old/core/polling/pollingHandler_test.go index a40bf1a0..64ee7868 100644 --- a/core/polling/pollingHandler_test.go +++ b/mx-sdk-go-old/core/polling/pollingHandler_test.go @@ -10,7 +10,7 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/core/polling/mock" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core/polling/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/core/types.go b/mx-sdk-go-old/core/types.go similarity index 100% rename from core/types.go rename to mx-sdk-go-old/core/types.go diff --git a/core/variables.go b/mx-sdk-go-old/core/variables.go similarity index 100% rename from core/variables.go rename to mx-sdk-go-old/core/variables.go diff --git a/data/account.go b/mx-sdk-go-old/data/account.go similarity index 100% rename from data/account.go rename to mx-sdk-go-old/data/account.go diff --git a/data/address.go b/mx-sdk-go-old/data/address.go similarity index 95% rename from data/address.go rename to mx-sdk-go-old/data/address.go index a33a97ef..a679e30b 100644 --- a/data/address.go +++ b/mx-sdk-go-old/data/address.go @@ -1,6 +1,6 @@ package data -import "github.com/multiversx/mx-sdk-go/core" +import "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" type address struct { bytes []byte diff --git a/data/enableEpochsConfig.go b/mx-sdk-go-old/data/enableEpochsConfig.go similarity index 100% rename from data/enableEpochsConfig.go rename to mx-sdk-go-old/data/enableEpochsConfig.go diff --git a/data/hyperblock.go b/mx-sdk-go-old/data/hyperblock.go similarity index 100% rename from data/hyperblock.go rename to mx-sdk-go-old/data/hyperblock.go diff --git a/data/internalBlock.go b/mx-sdk-go-old/data/internalBlock.go similarity index 100% rename from data/internalBlock.go rename to mx-sdk-go-old/data/internalBlock.go diff --git a/data/mnemonic.go b/mx-sdk-go-old/data/mnemonic.go similarity index 100% rename from data/mnemonic.go rename to mx-sdk-go-old/data/mnemonic.go diff --git a/data/mnemonic_test.go b/mx-sdk-go-old/data/mnemonic_test.go similarity index 100% rename from data/mnemonic_test.go rename to mx-sdk-go-old/data/mnemonic_test.go diff --git a/data/networkConfig.go b/mx-sdk-go-old/data/networkConfig.go similarity index 100% rename from data/networkConfig.go rename to mx-sdk-go-old/data/networkConfig.go diff --git a/data/networkEconomics.go b/mx-sdk-go-old/data/networkEconomics.go similarity index 100% rename from data/networkEconomics.go rename to mx-sdk-go-old/data/networkEconomics.go diff --git a/data/networkStatus.go b/mx-sdk-go-old/data/networkStatus.go similarity index 100% rename from data/networkStatus.go rename to mx-sdk-go-old/data/networkStatus.go diff --git a/data/nodeConfig.go b/mx-sdk-go-old/data/nodeConfig.go similarity index 100% rename from data/nodeConfig.go rename to mx-sdk-go-old/data/nodeConfig.go diff --git a/data/nodeStatus.go b/mx-sdk-go-old/data/nodeStatus.go similarity index 100% rename from data/nodeStatus.go rename to mx-sdk-go-old/data/nodeStatus.go diff --git a/data/ratingsConfig.go b/mx-sdk-go-old/data/ratingsConfig.go similarity index 100% rename from data/ratingsConfig.go rename to mx-sdk-go-old/data/ratingsConfig.go diff --git a/data/transaction.go b/mx-sdk-go-old/data/transaction.go similarity index 100% rename from data/transaction.go rename to mx-sdk-go-old/data/transaction.go diff --git a/data/vmValues.go b/mx-sdk-go-old/data/vmValues.go similarity index 100% rename from data/vmValues.go rename to mx-sdk-go-old/data/vmValues.go diff --git a/disabled/accounts.go b/mx-sdk-go-old/disabled/accounts.go similarity index 100% rename from disabled/accounts.go rename to mx-sdk-go-old/disabled/accounts.go diff --git a/disabled/blockchain.go b/mx-sdk-go-old/disabled/blockchain.go similarity index 100% rename from disabled/blockchain.go rename to mx-sdk-go-old/disabled/blockchain.go diff --git a/disabled/blockchainHookCounter.go b/mx-sdk-go-old/disabled/blockchainHookCounter.go similarity index 100% rename from disabled/blockchainHookCounter.go rename to mx-sdk-go-old/disabled/blockchainHookCounter.go diff --git a/disabled/builtInFunctionContainer.go b/mx-sdk-go-old/disabled/builtInFunctionContainer.go similarity index 100% rename from disabled/builtInFunctionContainer.go rename to mx-sdk-go-old/disabled/builtInFunctionContainer.go diff --git a/disabled/cache.go b/mx-sdk-go-old/disabled/cache.go similarity index 100% rename from disabled/cache.go rename to mx-sdk-go-old/disabled/cache.go diff --git a/disabled/datapool.go b/mx-sdk-go-old/disabled/datapool.go similarity index 98% rename from disabled/datapool.go rename to mx-sdk-go-old/disabled/datapool.go index 249f72ce..7c591aad 100644 --- a/disabled/datapool.go +++ b/mx-sdk-go-old/disabled/datapool.go @@ -54,7 +54,7 @@ func (dp *DataPool) MiniBlocks() storage.Cacher { return nil } -//PeerChangesBlocks returns nil +// PeerChangesBlocks returns nil func (dp *DataPool) PeerChangesBlocks() storage.Cacher { return nil } diff --git a/disabled/enableEpochsHandler.go b/mx-sdk-go-old/disabled/enableEpochsHandler.go similarity index 100% rename from disabled/enableEpochsHandler.go rename to mx-sdk-go-old/disabled/enableEpochsHandler.go diff --git a/disabled/epochNotifier.go b/mx-sdk-go-old/disabled/epochNotifier.go similarity index 100% rename from disabled/epochNotifier.go rename to mx-sdk-go-old/disabled/epochNotifier.go diff --git a/disabled/epochStartNotifier.go b/mx-sdk-go-old/disabled/epochStartNotifier.go similarity index 100% rename from disabled/epochStartNotifier.go rename to mx-sdk-go-old/disabled/epochStartNotifier.go diff --git a/disabled/fallbackHeaderValidator.go b/mx-sdk-go-old/disabled/fallbackHeaderValidator.go similarity index 100% rename from disabled/fallbackHeaderValidator.go rename to mx-sdk-go-old/disabled/fallbackHeaderValidator.go diff --git a/disabled/gasScheduleNotifier.go b/mx-sdk-go-old/disabled/gasScheduleNotifier.go similarity index 100% rename from disabled/gasScheduleNotifier.go rename to mx-sdk-go-old/disabled/gasScheduleNotifier.go diff --git a/disabled/globalSettingsHandler.go b/mx-sdk-go-old/disabled/globalSettingsHandler.go similarity index 100% rename from disabled/globalSettingsHandler.go rename to mx-sdk-go-old/disabled/globalSettingsHandler.go diff --git a/disabled/nodeTypeProvider.go b/mx-sdk-go-old/disabled/nodeTypeProvider.go similarity index 100% rename from disabled/nodeTypeProvider.go rename to mx-sdk-go-old/disabled/nodeTypeProvider.go diff --git a/disabled/shardCoordinator.go b/mx-sdk-go-old/disabled/shardCoordinator.go similarity index 100% rename from disabled/shardCoordinator.go rename to mx-sdk-go-old/disabled/shardCoordinator.go diff --git a/disabled/shuffleOutHandler.go b/mx-sdk-go-old/disabled/shuffleOutHandler.go similarity index 100% rename from disabled/shuffleOutHandler.go rename to mx-sdk-go-old/disabled/shuffleOutHandler.go diff --git a/disabled/simpleESDTNFTStorageHandler.go b/mx-sdk-go-old/disabled/simpleESDTNFTStorageHandler.go similarity index 100% rename from disabled/simpleESDTNFTStorageHandler.go rename to mx-sdk-go-old/disabled/simpleESDTNFTStorageHandler.go diff --git a/disabled/storageService.go b/mx-sdk-go-old/disabled/storageService.go similarity index 100% rename from disabled/storageService.go rename to mx-sdk-go-old/disabled/storageService.go diff --git a/disabled/storer.go b/mx-sdk-go-old/disabled/storer.go similarity index 100% rename from disabled/storer.go rename to mx-sdk-go-old/disabled/storer.go diff --git a/examples/examplesAccount/main.go b/mx-sdk-go-old/examples/examplesAccount/main.go similarity index 87% rename from examples/examplesAccount/main.go rename to mx-sdk-go-old/examples/examplesAccount/main.go index f96620e8..dff0c73f 100644 --- a/examples/examplesAccount/main.go +++ b/mx-sdk-go-old/examples/examplesAccount/main.go @@ -6,10 +6,10 @@ import ( "time" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/blockchain" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/examples" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" ) var log = logger.GetOrCreate("mx-sdk-go/examples/examplesAccount") diff --git a/examples/examplesBlock/main.go b/mx-sdk-go-old/examples/examplesBlock/main.go similarity index 87% rename from examples/examplesBlock/main.go rename to mx-sdk-go-old/examples/examplesBlock/main.go index 62894aa9..2854b134 100644 --- a/examples/examplesBlock/main.go +++ b/mx-sdk-go-old/examples/examplesBlock/main.go @@ -6,9 +6,9 @@ import ( "time" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/blockchain" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/examples" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" ) var log = logger.GetOrCreate("mx-sdk-go/examples/examplesBlock") diff --git a/examples/examplesFlowWalletTracker/main.go b/mx-sdk-go-old/examples/examplesFlowWalletTracker/main.go similarity index 91% rename from examples/examplesFlowWalletTracker/main.go rename to mx-sdk-go-old/examples/examplesFlowWalletTracker/main.go index 209aa2d8..0026e982 100644 --- a/examples/examplesFlowWalletTracker/main.go +++ b/mx-sdk-go-old/examples/examplesFlowWalletTracker/main.go @@ -10,14 +10,14 @@ import ( "time" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/blockchain" - "github.com/multiversx/mx-sdk-go/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/builders" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/examples" - "github.com/multiversx/mx-sdk-go/examples/examplesFlowWalletTracker/mock" - "github.com/multiversx/mx-sdk-go/interactors" - "github.com/multiversx/mx-sdk-go/workflows" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples/examplesFlowWalletTracker/mock" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/workflows" ) const timeToExecuteRequest = time.Second diff --git a/examples/examplesFlowWalletTracker/mock/memoryNonceTracker.go b/mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/memoryNonceTracker.go similarity index 100% rename from examples/examplesFlowWalletTracker/mock/memoryNonceTracker.go rename to mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/memoryNonceTracker.go diff --git a/examples/examplesFlowWalletTracker/mock/trackableAddressProviderMock.go b/mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/trackableAddressProviderMock.go similarity index 100% rename from examples/examplesFlowWalletTracker/mock/trackableAddressProviderMock.go rename to mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/trackableAddressProviderMock.go diff --git a/examples/examplesHeaderCheck/main.go b/mx-sdk-go-old/examples/examplesHeaderCheck/main.go similarity index 88% rename from examples/examplesHeaderCheck/main.go rename to mx-sdk-go-old/examples/examplesHeaderCheck/main.go index 502ba105..edbb3c41 100644 --- a/examples/examplesHeaderCheck/main.go +++ b/mx-sdk-go-old/examples/examplesHeaderCheck/main.go @@ -6,10 +6,10 @@ import ( "github.com/multiversx/mx-chain-go/config" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/blockchain" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/examples" - "github.com/multiversx/mx-sdk-go/headerCheck" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/headerCheck" ) var log = logger.GetOrCreate("mx-sdk-go/examples/examplesHeaderCheck") diff --git a/examples/examplesPriceAggregator/main.go b/mx-sdk-go-old/examples/examplesPriceAggregator/main.go similarity index 90% rename from examples/examplesPriceAggregator/main.go rename to mx-sdk-go-old/examples/examplesPriceAggregator/main.go index 70f86aad..e59ad03b 100644 --- a/examples/examplesPriceAggregator/main.go +++ b/mx-sdk-go-old/examples/examplesPriceAggregator/main.go @@ -10,16 +10,16 @@ import ( "github.com/multiversx/mx-chain-crypto-go/signing" "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/aggregator" - "github.com/multiversx/mx-sdk-go/aggregator/fetchers" - "github.com/multiversx/mx-sdk-go/aggregator/mock" - "github.com/multiversx/mx-sdk-go/authentication" - "github.com/multiversx/mx-sdk-go/blockchain" - "github.com/multiversx/mx-sdk-go/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/core/polling" - "github.com/multiversx/mx-sdk-go/examples" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/fetchers" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/mock" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/authentication" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core/polling" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) var log = logger.GetOrCreate("mx-sdk-go/examples/examplesPriceAggregator") diff --git a/examples/examplesTransaction/main.go b/mx-sdk-go-old/examples/examplesTransaction/main.go similarity index 87% rename from examples/examplesTransaction/main.go rename to mx-sdk-go-old/examples/examplesTransaction/main.go index b83c5e89..8b4f8332 100644 --- a/examples/examplesTransaction/main.go +++ b/mx-sdk-go-old/examples/examplesTransaction/main.go @@ -2,17 +2,18 @@ package main import ( "context" + "net/http" "time" "github.com/multiversx/mx-chain-crypto-go/signing" "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/blockchain" - "github.com/multiversx/mx-sdk-go/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/builders" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/examples" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) var ( @@ -26,7 +27,7 @@ func main() { args := blockchain.ArgsProxy{ ProxyURL: examples.TestnetGateway, - Client: nil, + Client: &http.Client{}, SameScState: false, ShouldBeSynced: false, FinalityCheck: false, diff --git a/examples/examplesVMQuery/main.go b/mx-sdk-go-old/examples/examplesVMQuery/main.go similarity index 82% rename from examples/examplesVMQuery/main.go rename to mx-sdk-go-old/examples/examplesVMQuery/main.go index 741dfbc4..1cace41e 100644 --- a/examples/examplesVMQuery/main.go +++ b/mx-sdk-go-old/examples/examplesVMQuery/main.go @@ -5,10 +5,10 @@ import ( "time" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/blockchain" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/examples" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" ) var log = logger.GetOrCreate("mx-sdk-go/examples/examplesVMQuery") diff --git a/examples/examplesWallet/main.go b/mx-sdk-go-old/examples/examplesWallet/main.go similarity index 95% rename from examples/examplesWallet/main.go rename to mx-sdk-go-old/examples/examplesWallet/main.go index d6d87a9b..bead136c 100644 --- a/examples/examplesWallet/main.go +++ b/mx-sdk-go-old/examples/examplesWallet/main.go @@ -2,7 +2,7 @@ package main import ( logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) var log = logger.GetOrCreate("mx-sdk-go/examples/examplesWallet") diff --git a/examples/keys.go b/mx-sdk-go-old/examples/keys.go similarity index 56% rename from examples/keys.go rename to mx-sdk-go-old/examples/keys.go index 971eb113..d4eb87de 100644 --- a/examples/keys.go +++ b/mx-sdk-go-old/examples/keys.go @@ -6,3 +6,9 @@ NDEzZjQyNTc1ZjdmMjZmYWQzMzE3YTc3ODc3MTIxMmZkYjgwMjQ1ODUwOTgxZTQ4 YjU4YTRmMjVlMzQ0ZThmOTAxMzk0NzJlZmY2ODg2NzcxYTk4MmYzMDgzZGE1ZDQy MWYyNGMyOTE4MWU2Mzg4ODIyOGRjODFjYTYwZDY5ZTE= -----END PRIVATE KEY for erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th-----` + +const BobPemContents = `-----BEGIN PRIVATE KEY for erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx----- +YjhjYTZmODIwM2ZiNGI1NDVhOGU4M2M1Mzg0ZGEwMzNjNDE1ZGIxNTViNTNmYjVi +OGViYTdmZjVhMDM5ZDYzOTgwNDlkNjM5ZTVhNjk4MGQxY2QyMzkyYWJjY2U0MTAy +OWNkYTc0YTE1NjM1MjNhMjAyZjA5NjQxY2MyNjE4Zjg= +-----END PRIVATE KEY for erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx-----` diff --git a/examples/networks.go b/mx-sdk-go-old/examples/networks.go similarity index 81% rename from examples/networks.go rename to mx-sdk-go-old/examples/networks.go index 05cc5d97..7b8dd76d 100644 --- a/examples/networks.go +++ b/mx-sdk-go-old/examples/networks.go @@ -5,3 +5,5 @@ const MainnetGateway = "https://gateway.multiversx.com" // TestnetGateway represents the testnet gateway address const TestnetGateway = "https://testnet-gateway.multiversx.com" + +const TestnetAPI = "https://testnet-api.multiversx.com" diff --git a/go.mod b/mx-sdk-go-old/go.mod similarity index 98% rename from go.mod rename to mx-sdk-go-old/go.mod index f0c5e81a..92bd5695 100644 --- a/go.mod +++ b/mx-sdk-go-old/go.mod @@ -1,4 +1,4 @@ -module github.com/multiversx/mx-sdk-go +module github.com/multiversx/mx-sdk-go/mx-sdk-go-old go 1.17 @@ -147,6 +147,7 @@ require ( go.uber.org/atomic v1.11.0 // indirect go.uber.org/dig v1.17.0 // indirect go.uber.org/fx v1.19.2 // indirect + go.uber.org/goleak v1.2.1 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.24.0 // indirect golang.org/x/arch v0.3.0 // indirect diff --git a/mx-sdk-go-old/go.sum b/mx-sdk-go-old/go.sum new file mode 100644 index 00000000..844b640d --- /dev/null +++ b/mx-sdk-go-old/go.sum @@ -0,0 +1,2953 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.31.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.37.0/go.mod h1:TS1dMSSfndXH133OKGwekG838Om/cQT0BUHV3HcBgoo= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= +cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= +cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= +cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= +cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= +cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= +cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= +cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.1/go.mod h1:fs4QogzfH5n2pBXBP9vRiU+eCny7lD2vmFZy79Iuw1U= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= +cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= +cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= +cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= +cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4= +cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw= +cloud.google.com/go/accesscontextmanager v1.3.0/go.mod h1:TgCBehyr5gNMz7ZaH9xubp+CE8dkrszb4oK9CWyvD4o= +cloud.google.com/go/accesscontextmanager v1.4.0/go.mod h1:/Kjh7BBu/Gh83sv+K60vN9QE5NJcd80sU33vIe2IFPE= +cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= +cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= +cloud.google.com/go/aiplatform v1.27.0/go.mod h1:Bvxqtl40l0WImSb04d0hXFU7gDOiq9jQmorivIiWcKg= +cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= +cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= +cloud.google.com/go/apigateway v1.3.0/go.mod h1:89Z8Bhpmxu6AmUxuVRg/ECRGReEdiP3vQtk4Z1J9rJk= +cloud.google.com/go/apigateway v1.4.0/go.mod h1:pHVY9MKGaH9PQ3pJ4YLzoj6U5FUDeDFBllIz7WmzJoc= +cloud.google.com/go/apigeeconnect v1.3.0/go.mod h1:G/AwXFAKo0gIXkPTVfZDd2qA1TxBXJ3MgMRBQkIi9jc= +cloud.google.com/go/apigeeconnect v1.4.0/go.mod h1:kV4NwOKqjvt2JYR0AoIWo2QGfoRtn/pkS3QlHp0Ni04= +cloud.google.com/go/appengine v1.4.0/go.mod h1:CS2NhuBuDXM9f+qscZ6V86m1MIIqPj3WC/UoEuR1Sno= +cloud.google.com/go/appengine v1.5.0/go.mod h1:TfasSozdkFI0zeoxW3PTBLiNqRmzraodCWatWI9Dmak= +cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4= +cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= +cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ= +cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= +cloud.google.com/go/artifactregistry v1.8.0/go.mod h1:w3GQXkJX8hiKN0v+at4b0qotwijQbYUqF2GWkZzAhC0= +cloud.google.com/go/artifactregistry v1.9.0/go.mod h1:2K2RqvA2CYvAeARHRkLDhMDJ3OXy26h3XW+3/Jh2uYc= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= +cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= +cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0= +cloud.google.com/go/asset v1.9.0/go.mod h1:83MOE6jEJBMqFKadM9NLRcs80Gdw76qGuHn8m3h8oHQ= +cloud.google.com/go/asset v1.10.0/go.mod h1:pLz7uokL80qKhzKr4xXGvBQXnzHn5evJAEAtZiIb0wY= +cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY= +cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= +cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI= +cloud.google.com/go/assuredworkloads v1.8.0/go.mod h1:AsX2cqyNCOvEQC8RMPnoc0yEarXQk6WEKkxYfL6kGIo= +cloud.google.com/go/assuredworkloads v1.9.0/go.mod h1:kFuI1P78bplYtT77Tb1hi0FMxM0vVpRC7VVoJC3ZoT0= +cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0= +cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= +cloud.google.com/go/automl v1.7.0/go.mod h1:RL9MYCCsJEOmt0Wf3z9uzG0a7adTT1fe+aObgSpkCt8= +cloud.google.com/go/automl v1.8.0/go.mod h1:xWx7G/aPEe/NP+qzYXktoBSDfjO+vnKMGgsApGJJquM= +cloud.google.com/go/baremetalsolution v0.3.0/go.mod h1:XOrocE+pvK1xFfleEnShBlNAXf+j5blPPxrhjKgnIFc= +cloud.google.com/go/baremetalsolution v0.4.0/go.mod h1:BymplhAadOO/eBa7KewQ0Ppg4A4Wplbn+PsFKRLo0uI= +cloud.google.com/go/batch v0.3.0/go.mod h1:TR18ZoAekj1GuirsUsR1ZTKN3FC/4UDnScjT8NXImFE= +cloud.google.com/go/batch v0.4.0/go.mod h1:WZkHnP43R/QCGQsZ+0JyG4i79ranE2u8xvjq/9+STPE= +cloud.google.com/go/beyondcorp v0.2.0/go.mod h1:TB7Bd+EEtcw9PCPQhCJtJGjk/7TC6ckmnSFS+xwTfm4= +cloud.google.com/go/beyondcorp v0.3.0/go.mod h1:E5U5lcrcXMsCuoDNyGrpyTm/hn7ne941Jz2vmksAxW8= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= +cloud.google.com/go/bigquery v1.43.0/go.mod h1:ZMQcXHsl+xmU1z36G2jNGZmKp9zNY5BUua5wDgmNCfw= +cloud.google.com/go/bigquery v1.44.0/go.mod h1:0Y33VqXTEsbamHJvJHdFmtqHvMIY28aK1+dFsvaChGc= +cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY= +cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= +cloud.google.com/go/billing v1.6.0/go.mod h1:WoXzguj+BeHXPbKfNWkqVtDdzORazmCjraY+vrxcyvI= +cloud.google.com/go/billing v1.7.0/go.mod h1:q457N3Hbj9lYwwRbnlD7vUpyjq6u5U1RAOArInEiD5Y= +cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM= +cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= +cloud.google.com/go/binaryauthorization v1.3.0/go.mod h1:lRZbKgjDIIQvzYQS1p99A7/U1JqvqeZg0wiI5tp6tg0= +cloud.google.com/go/binaryauthorization v1.4.0/go.mod h1:tsSPQrBd77VLplV70GUhBf/Zm3FsKmgSqgm4UmiDItk= +cloud.google.com/go/certificatemanager v1.3.0/go.mod h1:n6twGDvcUBFu9uBgt4eYvvf3sQ6My8jADcOVwHmzadg= +cloud.google.com/go/certificatemanager v1.4.0/go.mod h1:vowpercVFyqs8ABSmrdV+GiFf2H/ch3KyudYQEMM590= +cloud.google.com/go/channel v1.8.0/go.mod h1:W5SwCXDJsq/rg3tn3oG0LOxpAo6IMxNa09ngphpSlnk= +cloud.google.com/go/channel v1.9.0/go.mod h1:jcu05W0my9Vx4mt3/rEHpfxc9eKi9XwsdDL8yBMbKUk= +cloud.google.com/go/cloudbuild v1.3.0/go.mod h1:WequR4ULxlqvMsjDEEEFnOG5ZSRSgWOywXYDb1vPE6U= +cloud.google.com/go/cloudbuild v1.4.0/go.mod h1:5Qwa40LHiOXmz3386FrjrYM93rM/hdRr7b53sySrTqA= +cloud.google.com/go/clouddms v1.3.0/go.mod h1:oK6XsCDdW4Ib3jCCBugx+gVjevp2TMXFtgxvPSee3OM= +cloud.google.com/go/clouddms v1.4.0/go.mod h1:Eh7sUGCC+aKry14O1NRljhjyrr0NFC0G2cjwX0cByRk= +cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY= +cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= +cloud.google.com/go/cloudtasks v1.7.0/go.mod h1:ImsfdYWwlWNJbdgPIIGJWC+gemEGTBK/SunNQQNCAb4= +cloud.google.com/go/cloudtasks v1.8.0/go.mod h1:gQXUIwCSOI4yPVK7DgTVFiiP0ZW/eQkydWzwVMdHxrI= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= +cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= +cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= +cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= +cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= +cloud.google.com/go/compute v1.12.0/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= +cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= +cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute v1.15.1/go.mod h1:bjjoF/NtFUrkD/urWfdHaKuOPDR5nWIs63rR+SXhcpA= +cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU= +cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/contactcenterinsights v1.3.0/go.mod h1:Eu2oemoePuEFc/xKFPjbTuPSj0fYJcPls9TFlPNnHHY= +cloud.google.com/go/contactcenterinsights v1.4.0/go.mod h1:L2YzkGbPsv+vMQMCADxJoT9YiTTnSEd6fEvCeHTYVck= +cloud.google.com/go/container v1.6.0/go.mod h1:Xazp7GjJSeUYo688S+6J5V+n/t+G5sKBTFkKNudGRxg= +cloud.google.com/go/container v1.7.0/go.mod h1:Dp5AHtmothHGX3DwwIHPgq45Y8KmNsgN3amoYfxVkLo= +cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= +cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= +cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= +cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs= +cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= +cloud.google.com/go/datacatalog v1.7.0/go.mod h1:9mEl4AuDYWw81UGc41HonIHH7/sn52H0/tc8f8ZbZIE= +cloud.google.com/go/datacatalog v1.8.0/go.mod h1:KYuoVOv9BM8EYz/4eMFxrr4DUKhGIOXxZoKYF5wdISM= +cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM= +cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= +cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo= +cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= +cloud.google.com/go/dataform v0.5.0/go.mod h1:GFUYRe8IBa2hcomWplodVmUx/iTL0FrsauObOM3Ipr0= +cloud.google.com/go/datafusion v1.4.0/go.mod h1:1Zb6VN+W6ALo85cXnM1IKiPw+yQMKMhB9TsTSRDo/38= +cloud.google.com/go/datafusion v1.5.0/go.mod h1:Kz+l1FGHB0J+4XF2fud96WMmRiq/wj8N9u007vyXZ2w= +cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I= +cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= +cloud.google.com/go/dataplex v1.3.0/go.mod h1:hQuRtDg+fCiFgC8j0zV222HvzFQdRd+SVX8gdmFcZzA= +cloud.google.com/go/dataplex v1.4.0/go.mod h1:X51GfLXEMVJ6UN47ESVqvlsRplbLhcsAt0kZCCKsU0A= +cloud.google.com/go/dataproc v1.7.0/go.mod h1:CKAlMjII9H90RXaMpSxQ8EU6dQx6iAYNPcYPOkSbi8s= +cloud.google.com/go/dataproc v1.8.0/go.mod h1:5OW+zNAH0pMpw14JVrPONsxMQYMBqJuzORhIBfBn9uI= +cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo= +cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/datastore v1.10.0/go.mod h1:PC5UzAmDEkAmkfaknstTYbNpgE49HAgW2J1gcgUfmdM= +cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo= +cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= +cloud.google.com/go/datastream v1.4.0/go.mod h1:h9dpzScPhDTs5noEMQVWP8Wx8AFBRyS0s8KWPx/9r0g= +cloud.google.com/go/datastream v1.5.0/go.mod h1:6TZMMNPwjUqZHBKPQ1wwXpb0d5VDVPl2/XoS5yi88q4= +cloud.google.com/go/deploy v1.4.0/go.mod h1:5Xghikd4VrmMLNaF6FiRFDlHb59VM59YoDQnOUdsH/c= +cloud.google.com/go/deploy v1.5.0/go.mod h1:ffgdD0B89tToyW/U/D2eL0jN2+IEV/3EMuXHA0l4r+s= +cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4= +cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= +cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8= +cloud.google.com/go/dialogflow v1.18.0/go.mod h1:trO7Zu5YdyEuR+BhSNOqJezyFQ3aUzz0njv7sMx/iek= +cloud.google.com/go/dialogflow v1.19.0/go.mod h1:JVmlG1TwykZDtxtTXujec4tQ+D8SBFMoosgy+6Gn0s0= +cloud.google.com/go/dlp v1.6.0/go.mod h1:9eyB2xIhpU0sVwUixfBubDoRwP+GjeUoxxeueZmqvmM= +cloud.google.com/go/dlp v1.7.0/go.mod h1:68ak9vCiMBjbasxeVD17hVPxDEck+ExiHavX8kiHG+Q= +cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU= +cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= +cloud.google.com/go/documentai v1.9.0/go.mod h1:FS5485S8R00U10GhgBC0aNGrJxBP8ZVpEeJ7PQDZd6k= +cloud.google.com/go/documentai v1.10.0/go.mod h1:vod47hKQIPeCfN2QS/jULIvQTugbmdc0ZvxxfQY1bg4= +cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y= +cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= +cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= +cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= +cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU= +cloud.google.com/go/essentialcontacts v1.3.0/go.mod h1:r+OnHa5jfj90qIfZDO/VztSFqbQan7HV75p8sA+mdGI= +cloud.google.com/go/essentialcontacts v1.4.0/go.mod h1:8tRldvHYsmnBCHdFpvU+GL75oWiBKl80BiqlFh9tp+8= +cloud.google.com/go/eventarc v1.7.0/go.mod h1:6ctpF3zTnaQCxUjHUdcfgcA1A2T309+omHZth7gDfmc= +cloud.google.com/go/eventarc v1.8.0/go.mod h1:imbzxkyAU4ubfsaKYdQg04WS1NvncblHEup4kvF+4gw= +cloud.google.com/go/filestore v1.3.0/go.mod h1:+qbvHGvXU1HaKX2nD0WEPo92TP/8AQuCVEBXNY9z0+w= +cloud.google.com/go/filestore v1.4.0/go.mod h1:PaG5oDfo9r224f8OYXURtAsY+Fbyq/bLYoINEK8XQAI= +cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE= +cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= +cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= +cloud.google.com/go/functions v1.8.0/go.mod h1:RTZ4/HsQjIqIYP9a9YPbU+QFoQsAlYgrwOXJWHn1POY= +cloud.google.com/go/functions v1.9.0/go.mod h1:Y+Dz8yGguzO3PpIjhLTbnqV1CWmgQ5UwtlpzoyquQ08= +cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= +cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= +cloud.google.com/go/gaming v1.7.0/go.mod h1:LrB8U7MHdGgFG851iHAfqUdLcKBdQ55hzXy9xBJz0+w= +cloud.google.com/go/gaming v1.8.0/go.mod h1:xAqjS8b7jAVW0KFYeRUxngo9My3f33kFmua++Pi+ggM= +cloud.google.com/go/gkebackup v0.2.0/go.mod h1:XKvv/4LfG829/B8B7xRkk8zRrOEbKtEam6yNfuQNH60= +cloud.google.com/go/gkebackup v0.3.0/go.mod h1:n/E671i1aOQvUxT541aTkCwExO/bTer2HDlj4TsBRAo= +cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o= +cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= +cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0= +cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= +cloud.google.com/go/gkemulticloud v0.3.0/go.mod h1:7orzy7O0S+5kq95e4Hpn7RysVA7dPs8W/GgfUtsPbrA= +cloud.google.com/go/gkemulticloud v0.4.0/go.mod h1:E9gxVBnseLWCk24ch+P9+B2CoDFJZTyIgLKSalC7tuI= +cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= +cloud.google.com/go/gsuiteaddons v1.3.0/go.mod h1:EUNK/J1lZEZO8yPtykKxLXI6JSVN2rg9bN8SXOa0bgM= +cloud.google.com/go/gsuiteaddons v1.4.0/go.mod h1:rZK5I8hht7u7HxFQcFei0+AtfS9uSushomRlg+3ua1o= +cloud.google.com/go/iam v0.1.0/go.mod h1:vcUNEa0pEm0qRVpmWepWaFMIAI8/hjB9mO8rNCJtF6c= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= +cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= +cloud.google.com/go/iam v0.6.0/go.mod h1:+1AH33ueBne5MzYccyMHtEKqLE4/kJOibtffMHDMFMc= +cloud.google.com/go/iam v0.7.0/go.mod h1:H5Br8wRaDGNc8XP3keLc4unfUUZeyH3Sfl9XpQEYOeg= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= +cloud.google.com/go/iap v1.4.0/go.mod h1:RGFwRJdihTINIe4wZ2iCP0zF/qu18ZwyKxrhMhygBEc= +cloud.google.com/go/iap v1.5.0/go.mod h1:UH/CGgKd4KyohZL5Pt0jSKE4m3FR51qg6FKQ/z/Ix9A= +cloud.google.com/go/ids v1.1.0/go.mod h1:WIuwCaYVOzHIj2OhN9HAwvW+DBdmUAdcWlFxRl+KubM= +cloud.google.com/go/ids v1.2.0/go.mod h1:5WXvp4n25S0rA/mQWAg1YEEBBq6/s+7ml1RDCW1IrcY= +cloud.google.com/go/iot v1.3.0/go.mod h1:r7RGh2B61+B8oz0AGE+J72AhA0G7tdXItODWsaA2oLs= +cloud.google.com/go/iot v1.4.0/go.mod h1:dIDxPOn0UvNDUMD8Ger7FIaTuvMkj+aGk94RPP0iV+g= +cloud.google.com/go/kms v1.4.0/go.mod h1:fajBHndQ+6ubNw6Ss2sSd+SWvjL26RNo/dr7uxsnnOA= +cloud.google.com/go/kms v1.5.0/go.mod h1:QJS2YY0eJGBg3mnDfuaCyLauWwBJiHRboYxJ++1xJNg= +cloud.google.com/go/kms v1.6.0/go.mod h1:Jjy850yySiasBUDi6KFUwUv2n1+o7QZFyuUJg6OgjA0= +cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= +cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= +cloud.google.com/go/language v1.7.0/go.mod h1:DJ6dYN/W+SQOjF8e1hLQXMF21AkH2w9wiPzPCJa2MIE= +cloud.google.com/go/language v1.8.0/go.mod h1:qYPVHf7SPoNNiCL2Dr0FfEFNil1qi3pQEyygwpgVKB8= +cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= +cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= +cloud.google.com/go/logging v1.6.1/go.mod h1:5ZO0mHHbvm8gEmeEUHrmDlTDSu5imF6MUP9OfilNXBw= +cloud.google.com/go/longrunning v0.1.1/go.mod h1:UUFxuDWkv22EuY93jjmDMFT5GPQKeFVJBIF6QlTqdsE= +cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= +cloud.google.com/go/managedidentities v1.3.0/go.mod h1:UzlW3cBOiPrzucO5qWkNkh0w33KFtBJU281hacNvsdE= +cloud.google.com/go/managedidentities v1.4.0/go.mod h1:NWSBYbEMgqmbZsLIyKvxrYbtqOsxY1ZrGM+9RgDqInM= +cloud.google.com/go/maps v0.1.0/go.mod h1:BQM97WGyfw9FWEmQMpZ5T6cpovXXSd1cGmFma94eubI= +cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= +cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= +cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= +cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= +cloud.google.com/go/memcache v1.6.0/go.mod h1:XS5xB0eQZdHtTuTF9Hf8eJkKtR3pVRCcvJwtm68T3rA= +cloud.google.com/go/memcache v1.7.0/go.mod h1:ywMKfjWhNtkQTxrWxCkCFkoPjLHPW6A7WOTVI8xy3LY= +cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY= +cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= +cloud.google.com/go/metastore v1.7.0/go.mod h1:s45D0B4IlsINu87/AsWiEVYbLaIMeUSoxlKKDqBGFS8= +cloud.google.com/go/metastore v1.8.0/go.mod h1:zHiMc4ZUpBiM7twCIFQmJ9JMEkDSyZS9U12uf7wHqSI= +cloud.google.com/go/monitoring v1.7.0/go.mod h1:HpYse6kkGo//7p6sT0wsIC6IBDET0RhIsnmlA53dvEk= +cloud.google.com/go/monitoring v1.8.0/go.mod h1:E7PtoMJ1kQXWxPjB6mv2fhC5/15jInuulFdYYtlcvT4= +cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA= +cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= +cloud.google.com/go/networkconnectivity v1.6.0/go.mod h1:OJOoEXW+0LAxHh89nXd64uGG+FbQoeH8DtxCHVOMlaM= +cloud.google.com/go/networkconnectivity v1.7.0/go.mod h1:RMuSbkdbPwNMQjB5HBWD5MpTBnNm39iAVpC3TmsExt8= +cloud.google.com/go/networkmanagement v1.4.0/go.mod h1:Q9mdLLRn60AsOrPc8rs8iNV6OHXaGcDdsIQe1ohekq8= +cloud.google.com/go/networkmanagement v1.5.0/go.mod h1:ZnOeZ/evzUdUsnvRt792H0uYEnHQEMaz+REhhzJRcf4= +cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ= +cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= +cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY= +cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= +cloud.google.com/go/notebooks v1.4.0/go.mod h1:4QPMngcwmgb6uw7Po99B2xv5ufVoIQ7nOGDyL4P8AgA= +cloud.google.com/go/notebooks v1.5.0/go.mod h1:q8mwhnP9aR8Hpfnrc5iN5IBhrXUy8S2vuYs+kBJ/gu0= +cloud.google.com/go/optimization v1.1.0/go.mod h1:5po+wfvX5AQlPznyVEZjGJTMr4+CAkJf2XSTQOOl9l4= +cloud.google.com/go/optimization v1.2.0/go.mod h1:Lr7SOHdRDENsh+WXVmQhQTrzdu9ybg0NecjHidBq6xs= +cloud.google.com/go/orchestration v1.3.0/go.mod h1:Sj5tq/JpWiB//X/q3Ngwdl5K7B7Y0KZ7bfv0wL6fqVA= +cloud.google.com/go/orchestration v1.4.0/go.mod h1:6W5NLFWs2TlniBphAViZEVhrXRSMgUGDfW7vrWKvsBk= +cloud.google.com/go/orgpolicy v1.4.0/go.mod h1:xrSLIV4RePWmP9P3tBl8S93lTmlAxjm06NSm2UTmKvE= +cloud.google.com/go/orgpolicy v1.5.0/go.mod h1:hZEc5q3wzwXJaKrsx5+Ewg0u1LxJ51nNFlext7Tanwc= +cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs= +cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= +cloud.google.com/go/osconfig v1.9.0/go.mod h1:Yx+IeIZJ3bdWmzbQU4fxNl8xsZ4amB+dygAwFPlvnNo= +cloud.google.com/go/osconfig v1.10.0/go.mod h1:uMhCzqC5I8zfD9zDEAfvgVhDS8oIjySWh+l4WK6GnWw= +cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E= +cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= +cloud.google.com/go/oslogin v1.6.0/go.mod h1:zOJ1O3+dTU8WPlGEkFSh7qeHPPSoxrcMbbK1Nm2iX70= +cloud.google.com/go/oslogin v1.7.0/go.mod h1:e04SN0xO1UNJ1M5GP0vzVBFicIe4O53FOfcixIqTyXo= +cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0= +cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= +cloud.google.com/go/policytroubleshooter v1.3.0/go.mod h1:qy0+VwANja+kKrjlQuOzmlvscn4RNsAc0e15GGqfMxg= +cloud.google.com/go/policytroubleshooter v1.4.0/go.mod h1:DZT4BcRw3QoO8ota9xw/LKtPa8lKeCByYeKTIf/vxdE= +cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0= +cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/pubsub v1.26.0/go.mod h1:QgBH3U/jdJy/ftjPhTkyXNj543Tin1pRYcdcPRnFIRI= +cloud.google.com/go/pubsub v1.27.1/go.mod h1:hQN39ymbV9geqBnfQq6Xf63yNhUAhv9CZhzp5O6qsW0= +cloud.google.com/go/pubsublite v1.5.0/go.mod h1:xapqNQ1CuLfGi23Yda/9l4bBCKz/wC3KIJ5gKcxveZg= +cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= +cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= +cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= +cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo= +cloud.google.com/go/recaptchaenterprise/v2 v2.4.0/go.mod h1:Am3LHfOuBstrLrNCBrlI5sbwx9LBg3te2N6hGvHn2mE= +cloud.google.com/go/recaptchaenterprise/v2 v2.5.0/go.mod h1:O8LzcHXN3rz0j+LBC91jrwI3R+1ZSZEWrfL7XHgNo9U= +cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg= +cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= +cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg= +cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= +cloud.google.com/go/recommender v1.7.0/go.mod h1:XLHs/W+T8olwlGOgfQenXBTbIseGclClff6lhFVe9Bs= +cloud.google.com/go/recommender v1.8.0/go.mod h1:PkjXrTT05BFKwxaUxQmtIlrtj0kph108r02ZZQ5FE70= +cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y= +cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= +cloud.google.com/go/redis v1.9.0/go.mod h1:HMYQuajvb2D0LvMgZmLDZW8V5aOC/WxstZHiy4g8OiA= +cloud.google.com/go/redis v1.10.0/go.mod h1:ThJf3mMBQtW18JzGgh41/Wld6vnDDc/F/F35UolRZPM= +cloud.google.com/go/resourcemanager v1.3.0/go.mod h1:bAtrTjZQFJkiWTPDb1WBjzvc6/kifjj4QBYuKCCoqKA= +cloud.google.com/go/resourcemanager v1.4.0/go.mod h1:MwxuzkumyTX7/a3n37gmsT3py7LIXwrShilPh3P1tR0= +cloud.google.com/go/resourcesettings v1.3.0/go.mod h1:lzew8VfESA5DQ8gdlHwMrqZs1S9V87v3oCnKCWoOuQU= +cloud.google.com/go/resourcesettings v1.4.0/go.mod h1:ldiH9IJpcrlC3VSuCGvjR5of/ezRrOxFtpJoJo5SmXg= +cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4= +cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= +cloud.google.com/go/retail v1.10.0/go.mod h1:2gDk9HsL4HMS4oZwz6daui2/jmKvqShXKQuB2RZ+cCc= +cloud.google.com/go/retail v1.11.0/go.mod h1:MBLk1NaWPmh6iVFSz9MeKG/Psyd7TAgm6y/9L2B4x9Y= +cloud.google.com/go/run v0.2.0/go.mod h1:CNtKsTA1sDcnqqIFR3Pb5Tq0usWxJJvsWOCPldRU3Do= +cloud.google.com/go/run v0.3.0/go.mod h1:TuyY1+taHxTjrD0ZFk2iAR+xyOXEA0ztb7U3UNA0zBo= +cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s= +cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= +cloud.google.com/go/scheduler v1.6.0/go.mod h1:SgeKVM7MIwPn3BqtcBntpLyrIJftQISRrYB5ZtT+KOk= +cloud.google.com/go/scheduler v1.7.0/go.mod h1:jyCiBqWW956uBjjPMMuX09n3x37mtyPJegEWKxRsn44= +cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= +cloud.google.com/go/secretmanager v1.8.0/go.mod h1:hnVgi/bN5MYHd3Gt0SPuTPPp5ENina1/LxM+2W9U9J4= +cloud.google.com/go/secretmanager v1.9.0/go.mod h1:b71qH2l1yHmWQHt9LC80akm86mX8AL6X1MA01dW8ht4= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= +cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0= +cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= +cloud.google.com/go/security v1.9.0/go.mod h1:6Ta1bO8LXI89nZnmnsZGp9lVoVWXqsVbIq/t9dzI+2Q= +cloud.google.com/go/security v1.10.0/go.mod h1:QtOMZByJVlibUT2h9afNDWRZ1G96gVywH8T5GUSb9IA= +cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU= +cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= +cloud.google.com/go/securitycenter v1.15.0/go.mod h1:PeKJ0t8MoFmmXLXWm41JidyzI3PJjd8sXWaVqg43WWk= +cloud.google.com/go/securitycenter v1.16.0/go.mod h1:Q9GMaLQFUD+5ZTabrbujNWLtSLZIZF7SAR0wWECrjdk= +cloud.google.com/go/servicecontrol v1.4.0/go.mod h1:o0hUSJ1TXJAmi/7fLJAedOovnujSEvjKCAFNXPQ1RaU= +cloud.google.com/go/servicecontrol v1.5.0/go.mod h1:qM0CnXHhyqKVuiZnGKrIurvVImCs8gmqWsDoqe9sU1s= +cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= +cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= +cloud.google.com/go/servicedirectory v1.6.0/go.mod h1:pUlbnWsLH9c13yGkxCmfumWEPjsRs1RlmJ4pqiNjVL4= +cloud.google.com/go/servicedirectory v1.7.0/go.mod h1:5p/U5oyvgYGYejufvxhgwjL8UVXjkuw7q5XcG10wx1U= +cloud.google.com/go/servicemanagement v1.4.0/go.mod h1:d8t8MDbezI7Z2R1O/wu8oTggo3BI2GKYbdG4y/SJTco= +cloud.google.com/go/servicemanagement v1.5.0/go.mod h1:XGaCRe57kfqu4+lRxaFEAuqmjzF0r+gWHjWqKqBvKFo= +cloud.google.com/go/serviceusage v1.3.0/go.mod h1:Hya1cozXM4SeSKTAgGXgj97GlqUvF5JaoXacR1JTP/E= +cloud.google.com/go/serviceusage v1.4.0/go.mod h1:SB4yxXSaYVuUBYUml6qklyONXNLt83U0Rb+CXyhjEeU= +cloud.google.com/go/shell v1.3.0/go.mod h1:VZ9HmRjZBsjLGXusm7K5Q5lzzByZmJHf1d0IWHEN5X4= +cloud.google.com/go/shell v1.4.0/go.mod h1:HDxPzZf3GkDdhExzD/gs8Grqk+dmYcEjGShZgYa9URw= +cloud.google.com/go/spanner v1.41.0/go.mod h1:MLYDBJR/dY4Wt7ZaMIQ7rXOTLjYrmxLE/5ve9vFfWos= +cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= +cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= +cloud.google.com/go/speech v1.8.0/go.mod h1:9bYIl1/tjsAnMgKGHKmBZzXKEkGgtU+MpdDPTE9f7y0= +cloud.google.com/go/speech v1.9.0/go.mod h1:xQ0jTcmnRFFM2RfX/U+rk6FQNUF6DQlydUSyoooSpco= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= +cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= +cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= +cloud.google.com/go/storagetransfer v1.5.0/go.mod h1:dxNzUopWy7RQevYFHewchb29POFv3/AaBgnhqzqiK0w= +cloud.google.com/go/storagetransfer v1.6.0/go.mod h1:y77xm4CQV/ZhFZH75PLEXY0ROiS7Gh6pSKrM8dJyg6I= +cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= +cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= +cloud.google.com/go/talent v1.3.0/go.mod h1:CmcxwJ/PKfRgd1pBjQgU6W3YBwiewmUzQYH5HHmSCmM= +cloud.google.com/go/talent v1.4.0/go.mod h1:ezFtAgVuRf8jRsvyE6EwmbTK5LKciD4KVnHuDEFmOOA= +cloud.google.com/go/texttospeech v1.4.0/go.mod h1:FX8HQHA6sEpJ7rCMSfXuzBcysDAuWusNNNvN9FELDd8= +cloud.google.com/go/texttospeech v1.5.0/go.mod h1:oKPLhR4n4ZdQqWKURdwxMy0uiTS1xU161C8W57Wkea4= +cloud.google.com/go/tpu v1.3.0/go.mod h1:aJIManG0o20tfDQlRIej44FcwGGl/cD0oiRyMKG19IQ= +cloud.google.com/go/tpu v1.4.0/go.mod h1:mjZaX8p0VBgllCzF6wcU2ovUXN9TONFLd7iz227X2Xg= +cloud.google.com/go/trace v1.3.0/go.mod h1:FFUE83d9Ca57C+K8rDl/Ih8LwOzWIV1krKgxg6N0G28= +cloud.google.com/go/trace v1.4.0/go.mod h1:UG0v8UBqzusp+z63o7FK74SdFE+AXpCLdFb1rshXG+Y= +cloud.google.com/go/translate v1.3.0/go.mod h1:gzMUwRjvOqj5i69y/LYLd8RrNQk+hOmIXTi9+nb3Djs= +cloud.google.com/go/translate v1.4.0/go.mod h1:06Dn/ppvLD6WvA5Rhdp029IX2Mi3Mn7fpMRLPvXT5Wg= +cloud.google.com/go/video v1.8.0/go.mod h1:sTzKFc0bUSByE8Yoh8X0mn8bMymItVGPfTuUBUyRgxk= +cloud.google.com/go/video v1.9.0/go.mod h1:0RhNKFRF5v92f8dQt0yhaHrEuH95m068JYOvLZYnJSw= +cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= +cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= +cloud.google.com/go/videointelligence v1.8.0/go.mod h1:dIcCn4gVDdS7yte/w+koiXn5dWVplOZkE+xwG9FgK+M= +cloud.google.com/go/videointelligence v1.9.0/go.mod h1:29lVRMPDYHikk3v8EdPSaL8Ku+eMzDljjuvRs105XoU= +cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0= +cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo= +cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= +cloud.google.com/go/vision/v2 v2.4.0/go.mod h1:VtI579ll9RpVTrdKdkMzckdnwMyX2JILb+MhPqRbPsY= +cloud.google.com/go/vision/v2 v2.5.0/go.mod h1:MmaezXOOE+IWa+cS7OhRRLK2cNv1ZL98zhqFFZaaH2E= +cloud.google.com/go/vmmigration v1.2.0/go.mod h1:IRf0o7myyWFSmVR1ItrBSFLFD/rJkfDCUTO4vLlJvsE= +cloud.google.com/go/vmmigration v1.3.0/go.mod h1:oGJ6ZgGPQOFdjHuocGcLqX4lc98YQ7Ygq8YQwHh9A7g= +cloud.google.com/go/vmwareengine v0.1.0/go.mod h1:RsdNEf/8UDvKllXhMz5J40XxDrNJNN4sagiox+OI208= +cloud.google.com/go/vpcaccess v1.4.0/go.mod h1:aQHVbTWDYUR1EbTApSVvMq1EnT57ppDmQzZ3imqIk4w= +cloud.google.com/go/vpcaccess v1.5.0/go.mod h1:drmg4HLk9NkZpGfCmZ3Tz0Bwnm2+DKqViEpeEpOq0m8= +cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE= +cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= +cloud.google.com/go/webrisk v1.6.0/go.mod h1:65sW9V9rOosnc9ZY7A7jsy1zoHS5W9IAXv6dGqhMQMc= +cloud.google.com/go/webrisk v1.7.0/go.mod h1:mVMHgEYH0r337nmt1JyLthzMr6YxwN1aAIEc2fTcq7A= +cloud.google.com/go/websecurityscanner v1.3.0/go.mod h1:uImdKm2wyeXQevQJXeh8Uun/Ym1VqworNDlBXQevGMo= +cloud.google.com/go/websecurityscanner v1.4.0/go.mod h1:ebit/Fp0a+FWu5j4JOmJEV8S8CzdTkAS77oDsiSqYWQ= +cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= +cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= +cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M= +cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA= +dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0/go.mod h1:JLBrvjyP0v+ecvNYvCpyZgu5/xkfAUhi6wJj28eUfSU= +dmitri.shuralyov.com/service/change v0.0.0-20181023043359-a85b471d5412/go.mod h1:a1inKt/atXimZ4Mv927x+r7UpyzRUf4emIoiiSC2TN4= +dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D6DFvNNtx+9ybjezNCa8XF0xaYcETyp6rHWU= +filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8= +git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= +git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc= +github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= +github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= +github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= +github.com/Kubuxu/go-os-helper v0.0.1/go.mod h1:N8B+I7vPCT80IcP58r50u4+gEEcsZETFUpAzWW2ep1Y= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= +github.com/Shopify/sarama v1.37.2/go.mod h1:Nxye/E+YPru//Bpaorfhc3JsSGYwCaDDj+R4bK52U5o= +github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/Shopify/toxiproxy/v2 v2.5.0/go.mod h1:yhM2epWtAmel9CB8r2+L+PCmhH6yH2pITaPAo7jxJl0= +github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= +github.com/Stebalien/go-bitfield v0.0.1/go.mod h1:GNjFpasyUVkHMsfEOk8EFLJ9syQ6SI+XWrX9Wf2XH0s= +github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= +github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= +github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= +github.com/ajstarks/deck v0.0.0-20200831202436-30c9fc6549a9/go.mod h1:JynElWSGnm/4RlzPXRlREEwqTHAN3T56Bv2ITsFT3gY= +github.com/ajstarks/deck/generate v0.0.0-20210309230005-c3f852c02e19/go.mod h1:T13YZdzov6OU0A1+RfKZiZN9ca6VeKdBdyDV+BY97Tk= +github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= +github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b/go.mod h1:1KcenG0jGWcpt8ov532z81sp/kMMUG485J2InIOyADM= +github.com/alecthomas/kingpin/v2 v2.3.1/go.mod h1:oYL5vtsvEHZGHxU7DMp32Dvx+qL+ptGn6lWaot2vCNE= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/alecthomas/units v0.0.0-20210927113745-59d0afb8317a/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= +github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= +github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +github.com/beevik/ntp v0.3.0 h1:xzVrPrE4ziasFXgBVBZJDP0Wg/KpMwk2KHJ4Ba8GrDw= +github.com/beevik/ntp v0.3.0/go.mod h1:hIHWr+l3+/clUnF44zdK+CWW7fO8dR5cIylAQ76NRpg= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o= +github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= +github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= +github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= +github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= +github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= +github.com/btcsuite/btcd v0.0.0-20190605094302-a0d1e3e36d50/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= +github.com/btcsuite/btcd v0.0.0-20190824003749-130ea5bddde3/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= +github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= +github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94= +github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M= +github.com/btcsuite/btcd v0.22.1/go.mod h1:wqgTSL29+50LRkmOVknEdmt8ZojIzhuWvgu/iptuN7Y= +github.com/btcsuite/btcd v0.23.0 h1:V2/ZgjfDFIygAX3ZapeigkVBoVUtOJKSwrhZdlpSvaA= +github.com/btcsuite/btcd v0.23.0/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= +github.com/btcsuite/btcd/btcec/v2 v2.1.0/go.mod h1:2VzYrv4Gm4apmbVVsSq5bqf1Ec8v56E48Vt0Y/umPgA= +github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= +github.com/btcsuite/btcd/btcec/v2 v2.2.0/go.mod h1:U7MHm051Al6XmscBQ0BoNydpOTsFAn707034b5nY8zU= +github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= +github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= +github.com/btcsuite/btcd/btcutil v1.0.0/go.mod h1:Uoxwv0pqYWhD//tfTiipkxNfdhG9UrLwaeswfjfdF0A= +github.com/btcsuite/btcd/btcutil v1.1.0/go.mod h1:5OapHB7A2hBBWLm48mmw4MOHNJCcUBTwmWH/0Jn8VHE= +github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= +github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= +github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts= +github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= +github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= +github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= +github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= +github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= +github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= +github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= +github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= +github.com/bytedance/sonic v1.8.0/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= +github.com/bytedance/sonic v1.9.1 h1:6iJ6NqdoxCDr6mbY8h18oSO+cShGSMRGCEo7F2h0x8s= +github.com/bytedance/sonic v1.9.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= +github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= +github.com/cenkalti/backoff/v4 v4.2.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cheekybits/genny v1.0.0/go.mod h1:+tQajlRqAUrPI7DOSpB0XAqZYtQakVtB7wXkRAgjxjQ= +github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= +github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams= +github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic= +github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= +github.com/cilium/ebpf v0.2.0/go.mod h1:To2CFviqOWL/M0gIMsvSMlqe7em/l1ALkX1PyjrX2Qs= +github.com/cilium/ebpf v0.4.0/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs= +github.com/cilium/ebpf v0.9.1/go.mod h1:+OhNOIXx/Fnu1IE8bJz2dzOA+VSfyTfdNUVdlQnxUFY= +github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20220314180256-7f1daf1720fc/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= +github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327/go.mod h1:ZJeTFisyysqgcCdecO57Dj79RfL0LNeGiFUqLYQRYLE= +github.com/containerd/cgroups v1.0.4/go.mod h1:nLNQtsF7Sl2HxNebu77i1R0oDlhiTG+kO4JTrUzo6IA= +github.com/containerd/cgroups v1.1.0 h1:v8rEWFl6EoqHB+swVNjVoCJE8o3jX7e8nqBGPLaDFBM= +github.com/containerd/cgroups v1.1.0/go.mod h1:6ppBcbh/NOOUU+dMKrykgaBnK9lCIBxHqJDGwsa1mIw= +github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= +github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/go-systemd/v22 v22.4.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= +github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3/go.mod h1:p1d6YEZWvFzEh4KLyvBcVSnrfNDDvK2zfK/4x2v/4pE= +github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/cskr/pubsub v1.0.2/go.mod h1:/8MzYXk/NJAz782G8RPkFzXTZVu63VotefPnR9TIRis= +github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davidlazar/go-crypto v0.0.0-20170701192655-dcfb0a7ac018/go.mod h1:rQYf4tfk5sSwFsnDg3qYaBxSjsD9S8+59vW0dKUgme4= +github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c h1:pFUpOrbxDR6AkioZ1ySsx5yxlDQZ8stG2b88gTPxgJU= +github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c/go.mod h1:6UhI8N9EjYm1c2odKpFpAYeR8dsBeM7PtzQhRgxRr9U= +github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= +github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= +github.com/denisbrodbeck/machineid v1.0.1 h1:geKr9qtkB876mXguW2X6TU4ZynleN6ezuMSRhl4D7AQ= +github.com/denisbrodbeck/machineid v1.0.1/go.mod h1:dJUwb7PTidGDeYyUBmXZ2GphQBbjJCrnectwCyxcUSI= +github.com/dgraph-io/badger v1.5.5-0.20190226225317-8115aed38f8f/go.mod h1:VZxzAIRPHRVNRKRo6AXrX9BJegn6il06VMTZVJYCIjQ= +github.com/dgraph-io/badger v1.6.0-rc1/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= +github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= +github.com/dgraph-io/badger v1.6.1/go.mod h1:FRmFw3uxvcpa8zG3Rxs0th+hCLIuaQg8HlNV5bjgnuU= +github.com/dgraph-io/badger v1.6.2/go.mod h1:JW2yswe3V058sS0kZ2h/AXeDSqFjxnZcRrVH//y2UQE= +github.com/dgraph-io/ristretto v0.0.2/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-farm v0.0.0-20190104051053-3adb47b1fb0f/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= +github.com/eapache/go-resiliency v1.3.0/go.mod h1:5yPzW0MIvSe0JDsv0v+DvcjEv2FyD6iZYSs1ZI+iQho= +github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= +github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/elastic/go-elasticsearch/v7 v7.12.0 h1:j4tvcMrZJLp39L2NYvBb7f+lHKPqPHSL3nvB8+/DV+s= +github.com/elastic/go-elasticsearch/v7 v7.12.0/go.mod h1:OJ4wdbtDNk5g503kvlHLyErCgQwwzmDtaFC4XyOxXA4= +github.com/elastic/gosigar v0.12.0/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= +github.com/elastic/gosigar v0.14.2 h1:Dg80n8cr90OZ7x+bAax/QjoW/XqTI11RmA79ZwIm9/4= +github.com/elastic/gosigar v0.14.2/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= +github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= +github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= +github.com/envoyproxy/go-control-plane v0.10.3/go.mod h1:fJJn/j26vwOu972OllsvAgJJM//w9BV6Fxbg2LuVd34= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/protoc-gen-validate v0.6.7/go.mod h1:dyJXwwfPK2VSqiB9Klm1J6romD608Ba7Hij42vrOBCo= +github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0++PMirau2/yoOwVac3AbF2w= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= +github.com/flynn/noise v0.0.0-20180327030543-2492fe189ae6/go.mod h1:1i71OnUq3iUe1ma7Lr6yG6/rjvM3emb6yoL7xLFzcVQ= +github.com/flynn/noise v1.0.0 h1:DlTHqmzmvcEiKj+4RYo/imoswx/4r6iBlCMfVtrMXpQ= +github.com/flynn/noise v1.0.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= +github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= +github.com/francoispqt/gojay v1.2.13 h1:d2m3sFjloqoIUQU3TsHBgj6qg/BVGlTBeHDUmyJnXKk= +github.com/francoispqt/gojay v1.2.13/go.mod h1:ehT5mTG4ua4581f1++1WLG0vPdaA9HaiDsoyrBGkyDY= +github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= +github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= +github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= +github.com/frankban/quicktest v1.14.0/go.mod h1:NeW+ay9A/U67EYXNFA1nPE8e/tnQv/09mUdL/ijj8og= +github.com/frankban/quicktest v1.14.2/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= +github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= +github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/gabriel-vasile/mimetype v1.4.1/go.mod h1:05Vi0w3Y9c/lNvJOdmIwvrrAhX3rYhfQQCaf9VJcv7M= +github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= +github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/gin-contrib/cors v1.4.0 h1:oJ6gwtUl3lqV0WEIwM/LxPF1QZ5qe2lGWdY2+bz7y0g= +github.com/gin-contrib/cors v1.4.0/go.mod h1:bs9pNM0x/UsmHPBWT2xZz9ROh8xYjYkiURUfmBoMlcs= +github.com/gin-contrib/pprof v1.4.0/go.mod h1:RrehPJasUVBPK6yTUwOl8/NP6i0vbUgmxtis+Z5KE90= +github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= +github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= +github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= +github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk= +github.com/gin-gonic/gin v1.9.0/go.mod h1:W1Me9+hsUSyj3CePGrd1/QrKJMSJ1Tu/0hFEH89961k= +github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg= +github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU= +github.com/gizak/termui/v3 v3.1.0/go.mod h1:bXQEBkJpzxUAKf0+xq9MSWAvWZlE7c+aidmyFlkYTrY= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= +github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= +github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= +github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g= +github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks= +github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= +github.com/go-fonts/liberation v0.2.0/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= +github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmnUIzUY= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U= +github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-ole/go-ole v1.2.4/go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM= +github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= +github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= +github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= +github.com/go-pdf/fpdf v0.6.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= +github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= +github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= +github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= +github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= +github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= +github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= +github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= +github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= +github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= +github.com/go-playground/validator/v10 v10.10.0/go.mod h1:74x4gJWsvQexRdW8Pn3dXSGrTK4nAUsbPlLADvpJkos= +github.com/go-playground/validator/v10 v10.11.2/go.mod h1:NieE624vt4SCTJtD87arVLvdmjPAeV8BQlHtMnw9D7s= +github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg/+t63MyGU2n5js= +github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= +github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= +github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= +github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= +github.com/goccy/go-json v0.9.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/goccy/go-json v0.10.0/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= +github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= +github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= +github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:tluoj9z5200jBnyusfRPU2LqT6J+DAorxEvtC7LHB+E= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= +github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= +github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= +github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gopacket v1.1.17/go.mod h1:UdDNZ1OO62aGYVnPhxT1U6aI7ukYtA/kB8vaU0diBUM= +github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8= +github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo= +github.com/google/gops v0.3.18/go.mod h1:Pfp8hWGIFdV/7rY9/O/U5WgdjYQXf/GiEK4NVuVd2ZE= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20221203041831-ce31453925ec/go.mod h1:dDKJzRmX4S37WGHujM7tX//fmj1uioxKzKxz3lo4HJo= +github.com/google/pprof v0.0.0-20230405160723-4a4c7d95572b/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk= +github.com/google/pprof v0.0.0-20230602150820-91b7bce49751 h1:hR7/MlvK23p6+lIw9SN1TigNLn9ZnF3W4SYRKq2gAHs= +github.com/google/pprof v0.0.0-20230602150820-91b7bce49751/go.mod h1:Jh3hGz2jkYak8qXPD19ryItVnUgpgeqzdkY/D0EaeuA= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= +github.com/googleapis/gax-go/v2 v2.0.3/go.mod h1:LLvjysVCY1JZeum8Z6l8qUty8fiNwE08qbEPm1M08qg= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= +github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= +github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= +github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= +github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c h1:7lF+Vz0LqiRidnzC1Oq86fpX1q/iEv2KJdrCtttYjT4= +github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= +github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= +github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= +github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= +github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.5.0/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= +github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0/go.mod h1:hgWBS7lorOAVIJEQMi4ZsPv9hVvWI6+ch50m39Pf2Ks= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU0GSB0f8Nhgmxx0VIRUvaC0w= +github.com/gxed/hashland/keccakpg v0.0.1/go.mod h1:kRzw3HkwxFU1mpmPP8v1WyQzwdGfmKFJ6tItnhQ67kU= +github.com/gxed/hashland/murmur3 v0.0.1/go.mod h1:KjXop02n4/ckmZSnY2+HKcLud/tcmvhST0bie/0lS48= +github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= +github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= +github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru v0.6.0 h1:uL2shRDx7RTrOrTCUZEGP/wJUFiUI8QT6E7z5o8jga4= +github.com/hashicorp/golang-lru v0.6.0/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru/v2 v2.0.1/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= +github.com/hashicorp/golang-lru/v2 v2.0.2 h1:Dwmkdr5Nc/oBiXgJS3CDHNhJtIHkuZ3DZF5twqnfBdU= +github.com/hashicorp/golang-lru/v2 v2.0.2/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/herumi/bls-go-binary v1.0.0 h1:PRPF6vPd35zyDy+tp86HwNnGdufCH2lZL0wZGxYvkRs= +github.com/herumi/bls-go-binary v1.0.0/go.mod h1:O4Vp1AfR4raRGwFeQpr9X/PQtncEicMoOe6BQt1oX0Y= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= +github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= +github.com/huin/goupnp v1.0.3/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= +github.com/huin/goupnp v1.1.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= +github.com/huin/goupnp v1.2.0 h1:uOKW26NG1hsSSbXIZ1IR7XP9Gjd1U8pnLaCMgntmkmY= +github.com/huin/goupnp v1.2.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= +github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= +github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= +github.com/ianlancetaylor/demangle v0.0.0-20220517205856-0058ec4f073c/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= +github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/ipfs/bbloom v0.0.1/go.mod h1:oqo8CVWsJFMOZqTglBG4wydCE4IQA/G2/SEofB0rjUI= +github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0= +github.com/ipfs/boxo v0.8.0/go.mod h1:RIsi4CnTyQ7AUsNn5gXljJYZlQrHBMnJp94p73liFiA= +github.com/ipfs/boxo v0.8.1 h1:3DkKBCK+3rdEB5t77WDShUXXhktYwH99mkAsgajsKrU= +github.com/ipfs/boxo v0.8.1/go.mod h1:xJ2hVb4La5WyD7GvKYE0lq2g1rmQZoCD2K4WNrV6aZI= +github.com/ipfs/go-bitfield v1.0.0/go.mod h1:N/UiujQy+K+ceU1EF5EkVd1TNqevLrCQMIcAEPrdtus= +github.com/ipfs/go-bitfield v1.1.0/go.mod h1:paqf1wjq/D2BBmzfTVFlJQ9IlFOZpg422HL0HqsGWHU= +github.com/ipfs/go-bitswap v0.1.0/go.mod h1:FFJEf18E9izuCqUtHxbWEvq+reg7o4CW5wSAE1wsxj0= +github.com/ipfs/go-bitswap v0.1.2/go.mod h1:qxSWS4NXGs7jQ6zQvoPY3+NmOfHHG47mhkiLzBpJQIs= +github.com/ipfs/go-bitswap v0.1.8/go.mod h1:TOWoxllhccevbWFUR2N7B1MTSVVge1s6XSMiCSA4MzM= +github.com/ipfs/go-bitswap v0.3.4/go.mod h1:4T7fvNv/LmOys+21tnLzGKncMeeXUYUd1nUiJ2teMvI= +github.com/ipfs/go-bitswap v0.5.1/go.mod h1:P+ckC87ri1xFLvk74NlXdP0Kj9RmWAh4+H78sC6Qopo= +github.com/ipfs/go-bitswap v0.6.0/go.mod h1:Hj3ZXdOC5wBJvENtdqsixmzzRukqd8EHLxZLZc3mzRA= +github.com/ipfs/go-bitswap v0.11.0/go.mod h1:05aE8H3XOU+LXpTedeAS0OZpcO1WFsj5niYQH9a1Tmk= +github.com/ipfs/go-block-format v0.0.1/go.mod h1:DK/YYcsSUIVAFNwo/KZCdIIbpN0ROH/baNLgayt4pFc= +github.com/ipfs/go-block-format v0.0.2/go.mod h1:AWR46JfpcObNfg3ok2JHDUfdiHRgWhJgCQF+KIgOPJY= +github.com/ipfs/go-block-format v0.0.3/go.mod h1:4LmD4ZUw0mhO+JSKdpWwrzATiEfM7WWgQ8H5l6P8MVk= +github.com/ipfs/go-block-format v0.1.1/go.mod h1:+McEIT+g52p+zz5xGAABGSOKrzmrdX97bc0USBdWPUs= +github.com/ipfs/go-block-format v0.1.2/go.mod h1:mACVcrxarQKstUU3Yf/RdwbC4DzPV6++rO2a3d+a/KE= +github.com/ipfs/go-blockservice v0.1.0/go.mod h1:hzmMScl1kXHg3M2BjTymbVPjv627N7sYcvYaKbop39M= +github.com/ipfs/go-blockservice v0.1.4/go.mod h1:OTZhFpkgY48kNzbgyvcexW9cHrpjBYIjSR0KoDOFOLU= +github.com/ipfs/go-blockservice v0.2.1/go.mod h1:k6SiwmgyYgs4M/qt+ww6amPeUH9EISLRBnvUurKJhi8= +github.com/ipfs/go-blockservice v0.3.0/go.mod h1:P5ppi8IHDC7O+pA0AlGTF09jruB2h+oP3wVVaZl8sfk= +github.com/ipfs/go-blockservice v0.5.0/go.mod h1:W6brZ5k20AehbmERplmERn8o2Ni3ZZubvAxaIUeaT6w= +github.com/ipfs/go-cid v0.0.1/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= +github.com/ipfs/go-cid v0.0.2/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= +github.com/ipfs/go-cid v0.0.3/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= +github.com/ipfs/go-cid v0.0.4/go.mod h1:4LLaPOQwmk5z9LBgQnpkivrx8BJjUyGwTXCd5Xfj6+M= +github.com/ipfs/go-cid v0.0.5/go.mod h1:plgt+Y5MnOey4vO4UlUazGqdbEXuFYitED67FexhXog= +github.com/ipfs/go-cid v0.0.6/go.mod h1:6Ux9z5e+HpkQdckYoX1PG/6xqKspzlEIR5SDmgqgC/I= +github.com/ipfs/go-cid v0.0.7/go.mod h1:6Ux9z5e+HpkQdckYoX1PG/6xqKspzlEIR5SDmgqgC/I= +github.com/ipfs/go-cid v0.1.0/go.mod h1:rH5/Xv83Rfy8Rw6xG+id3DYAMUVmem1MowoKwdXmN2o= +github.com/ipfs/go-cid v0.2.0/go.mod h1:P+HXFDF4CVhaVayiEb4wkAy7zBHxBwsJyt0Y5U6MLro= +github.com/ipfs/go-cid v0.3.0/go.mod h1:P+HXFDF4CVhaVayiEb4wkAy7zBHxBwsJyt0Y5U6MLro= +github.com/ipfs/go-cid v0.3.2/go.mod h1:gQ8pKqT/sUxGY+tIwy1RPpAojYu7jAyCp5Tz1svoupw= +github.com/ipfs/go-cid v0.4.0/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= +github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s= +github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= +github.com/ipfs/go-cidutil v0.1.0/go.mod h1:e7OEVBMIv9JaOxt9zaGEmAoSlXW9jdFZ5lP/0PwcfpA= +github.com/ipfs/go-datastore v0.0.1/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= +github.com/ipfs/go-datastore v0.0.5/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= +github.com/ipfs/go-datastore v0.1.0/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= +github.com/ipfs/go-datastore v0.1.1/go.mod h1:w38XXW9kVFNp57Zj5knbKWM2T+KOZCGDRVNdgPHtbHw= +github.com/ipfs/go-datastore v0.3.1/go.mod h1:w38XXW9kVFNp57Zj5knbKWM2T+KOZCGDRVNdgPHtbHw= +github.com/ipfs/go-datastore v0.4.0/go.mod h1:SX/xMIKoCszPqp+z9JhPYCmoOoXTvaa13XEbGtsFUhA= +github.com/ipfs/go-datastore v0.4.1/go.mod h1:SX/xMIKoCszPqp+z9JhPYCmoOoXTvaa13XEbGtsFUhA= +github.com/ipfs/go-datastore v0.4.4/go.mod h1:SX/xMIKoCszPqp+z9JhPYCmoOoXTvaa13XEbGtsFUhA= +github.com/ipfs/go-datastore v0.4.5/go.mod h1:eXTcaaiN6uOlVCLS9GjJUJtlvJfM3xk23w3fyfrmmJs= +github.com/ipfs/go-datastore v0.5.0/go.mod h1:9zhEApYMTl17C8YDp7JmU7sQZi2/wqiYh73hakZ90Bk= +github.com/ipfs/go-datastore v0.5.1/go.mod h1:9zhEApYMTl17C8YDp7JmU7sQZi2/wqiYh73hakZ90Bk= +github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk= +github.com/ipfs/go-datastore v0.6.0/go.mod h1:rt5M3nNbSO/8q1t4LNkLyUwRs8HupMeN/8O4Vn9YAT8= +github.com/ipfs/go-detect-race v0.0.1 h1:qX/xay2W3E4Q1U7d9lNs1sU9nvguX0a7319XbyQ6cOk= +github.com/ipfs/go-detect-race v0.0.1/go.mod h1:8BNT7shDZPo99Q74BpGMK+4D8Mn4j46UU0LZ723meps= +github.com/ipfs/go-ds-badger v0.0.2/go.mod h1:Y3QpeSFWQf6MopLTiZD+VT6IC1yZqaGmjvRcKeSGij8= +github.com/ipfs/go-ds-badger v0.0.5/go.mod h1:g5AuuCGmr7efyzQhLL8MzwqcauPojGPUaHzfGTzuE3s= +github.com/ipfs/go-ds-badger v0.0.7/go.mod h1:qt0/fWzZDoPW6jpQeqUjR5kBfhDNB65jd9YlmAvpQBk= +github.com/ipfs/go-ds-badger v0.2.1/go.mod h1:Tx7l3aTph3FMFrRS838dcSJh+jjA7cX9DrGVwx/NOwE= +github.com/ipfs/go-ds-badger v0.2.3/go.mod h1:pEYw0rgg3FIrywKKnL+Snr+w/LjJZVMTBRn4FS6UHUk= +github.com/ipfs/go-ds-badger v0.3.0/go.mod h1:1ke6mXNqeV8K3y5Ak2bAA0osoTfmxUdupVCGm4QUIek= +github.com/ipfs/go-ds-leveldb v0.0.1/go.mod h1:feO8V3kubwsEF22n0YRQCffeb79OOYIykR4L04tMOYc= +github.com/ipfs/go-ds-leveldb v0.1.0/go.mod h1:hqAW8y4bwX5LWcCtku2rFNX3vjDZCy5LZCg+cSZvYb8= +github.com/ipfs/go-ds-leveldb v0.4.1/go.mod h1:jpbku/YqBSsBc1qgME8BkWS4AxzF2cEu1Ii2r79Hh9s= +github.com/ipfs/go-ds-leveldb v0.4.2/go.mod h1:jpbku/YqBSsBc1qgME8BkWS4AxzF2cEu1Ii2r79Hh9s= +github.com/ipfs/go-ds-leveldb v0.5.0/go.mod h1:d3XG9RUDzQ6V4SHi8+Xgj9j1XuEk1z82lquxrVbml/Q= +github.com/ipfs/go-fetcher v1.5.0/go.mod h1:5pDZ0393oRF/fHiLmtFZtpMNBQfHOYNPtryWedVuSWE= +github.com/ipfs/go-fetcher v1.6.1/go.mod h1:27d/xMV8bodjVs9pugh/RCjjK2OZ68UgAMspMdingNo= +github.com/ipfs/go-ipfs-blockstore v0.0.1/go.mod h1:d3WClOmRQKFnJ0Jz/jj/zmksX0ma1gROTlovZKBmN08= +github.com/ipfs/go-ipfs-blockstore v0.1.0/go.mod h1:5aD0AvHPi7mZc6Ci1WCAhiBQu2IsfTduLl+422H6Rqw= +github.com/ipfs/go-ipfs-blockstore v0.1.4/go.mod h1:Jxm3XMVjh6R17WvxFEiyKBLUGr86HgIYJW/D/MwqeYQ= +github.com/ipfs/go-ipfs-blockstore v0.2.1/go.mod h1:jGesd8EtCM3/zPgx+qr0/feTXGUeRai6adgwC+Q+JvE= +github.com/ipfs/go-ipfs-blockstore v1.1.2/go.mod h1:w51tNR9y5+QXB0wkNcHt4O2aSZjTdqaEWaQdSxEyUOY= +github.com/ipfs/go-ipfs-blockstore v1.2.0/go.mod h1:eh8eTFLiINYNSNawfZOC7HOxNTxpB1PFuA5E1m/7exE= +github.com/ipfs/go-ipfs-blockstore v1.3.0/go.mod h1:KgtZyc9fq+P2xJUiCAzbRdhhqJHvsw8u2Dlqy2MyRTE= +github.com/ipfs/go-ipfs-blocksutil v0.0.1/go.mod h1:Yq4M86uIOmxmGPUHv/uI7uKqZNtLb449gwKqXjIsnRk= +github.com/ipfs/go-ipfs-chunker v0.0.1/go.mod h1:tWewYK0we3+rMbOh7pPFGDyypCtvGcBFymgY4rSDLAw= +github.com/ipfs/go-ipfs-chunker v0.0.5/go.mod h1:jhgdF8vxRHycr00k13FM8Y0E+6BoalYeobXmUyTreP8= +github.com/ipfs/go-ipfs-delay v0.0.0-20181109222059-70721b86a9a8/go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw= +github.com/ipfs/go-ipfs-delay v0.0.1/go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw= +github.com/ipfs/go-ipfs-ds-help v0.0.1/go.mod h1:gtP9xRaZXqIQRh1HRpp595KbBEdgqWFxefeVKOV8sxo= +github.com/ipfs/go-ipfs-ds-help v0.1.1/go.mod h1:SbBafGJuGsPI/QL3j9Fc5YPLeAu+SzOkI0gFwAg+mOs= +github.com/ipfs/go-ipfs-ds-help v1.1.0/go.mod h1:YR5+6EaebOhfcqVCyqemItCLthrpVNot+rsOU/5IatU= +github.com/ipfs/go-ipfs-exchange-interface v0.0.1/go.mod h1:c8MwfHjtQjPoDyiy9cFquVtVHkO9b9Ob3FG91qJnWCM= +github.com/ipfs/go-ipfs-exchange-interface v0.1.0/go.mod h1:ych7WPlyHqFvCi/uQI48zLZuAWVP5iTQPXEfVaw5WEI= +github.com/ipfs/go-ipfs-exchange-interface v0.2.0/go.mod h1:z6+RhJuDQbqKguVyslSOuVDhqF9JtTrO3eptSAiW2/Y= +github.com/ipfs/go-ipfs-exchange-offline v0.0.1/go.mod h1:WhHSFCVYX36H/anEKQboAzpUws3x7UeEGkzQc3iNkM0= +github.com/ipfs/go-ipfs-exchange-offline v0.1.1/go.mod h1:vTiBRIbzSwDD0OWm+i3xeT0mO7jG2cbJYatp3HPk5XY= +github.com/ipfs/go-ipfs-exchange-offline v0.2.0/go.mod h1:HjwBeW0dvZvfOMwDP0TSKXIHf2s+ksdP4E3MLDRtLKY= +github.com/ipfs/go-ipfs-exchange-offline v0.3.0/go.mod h1:MOdJ9DChbb5u37M1IcbrRB02e++Z7521fMxqCNRrz9s= +github.com/ipfs/go-ipfs-files v0.0.3/go.mod h1:INEFm0LL2LWXBhNJ2PMIIb2w45hpXgPjNoE7yA8Y1d4= +github.com/ipfs/go-ipfs-files v0.0.8/go.mod h1:wiN/jSG8FKyk7N0WyctKSvq3ljIa2NNTiZB55kpTdOs= +github.com/ipfs/go-ipfs-files v0.2.0/go.mod h1:vT7uaQfIsprKktzbTPLnIsd+NGw9ZbYwSq0g3N74u0M= +github.com/ipfs/go-ipfs-files v0.3.0/go.mod h1:xAUtYMwB+iu/dtf6+muHNSFQCJG2dSiStR2P6sn9tIM= +github.com/ipfs/go-ipfs-keystore v0.1.0/go.mod h1:LvLw7Qhnb0RlMOfCzK6OmyWxICip6lQ06CCmdbee75U= +github.com/ipfs/go-ipfs-posinfo v0.0.1/go.mod h1:SwyeVP+jCwiDu0C313l/8jg6ZxM0qqtlt2a0vILTc1A= +github.com/ipfs/go-ipfs-pq v0.0.1/go.mod h1:LWIqQpqfRG3fNc5XsnIhz/wQ2XXGyugQwls7BgUmUfY= +github.com/ipfs/go-ipfs-pq v0.0.2/go.mod h1:LWIqQpqfRG3fNc5XsnIhz/wQ2XXGyugQwls7BgUmUfY= +github.com/ipfs/go-ipfs-pq v0.0.3/go.mod h1:btNw5hsHBpRcSSgZtiNm/SLj5gYIZ18AKtv3kERkRb4= +github.com/ipfs/go-ipfs-redirects-file v0.1.1/go.mod h1:tAwRjCV0RjLTjH8DR/AU7VYvfQECg+lpUy2Mdzv7gyk= +github.com/ipfs/go-ipfs-routing v0.1.0/go.mod h1:hYoUkJLyAUKhF58tysKpids8RNDPO42BVMgK5dNsoqY= +github.com/ipfs/go-ipfs-routing v0.2.1/go.mod h1:xiNNiwgjmLqPS1cimvAw6EyB9rkVDbiocA4yY+wRNLM= +github.com/ipfs/go-ipfs-routing v0.3.0/go.mod h1:dKqtTFIql7e1zYsEuWLyuOU+E0WJWW8JjbTPLParDWo= +github.com/ipfs/go-ipfs-util v0.0.1/go.mod h1:spsl5z8KUnrve+73pOhSVZND1SIxPW5RyBCNzQxlJBc= +github.com/ipfs/go-ipfs-util v0.0.2 h1:59Sswnk1MFaiq+VcaknX7aYEyGyGDAA73ilhEK2POp8= +github.com/ipfs/go-ipfs-util v0.0.2/go.mod h1:CbPtkWJzjLdEcezDns2XYaehFVNXG9zrdrtMecczcsQ= +github.com/ipfs/go-ipld-cbor v0.0.2/go.mod h1:wTBtrQZA3SoFKMVkp6cn6HMRteIB1VsmHA0AQFOn7Nc= +github.com/ipfs/go-ipld-cbor v0.0.3/go.mod h1:wTBtrQZA3SoFKMVkp6cn6HMRteIB1VsmHA0AQFOn7Nc= +github.com/ipfs/go-ipld-cbor v0.0.5/go.mod h1:BkCduEx3XBCO6t2Sfo5BaHzuok7hbhdMm9Oh8B2Ftq4= +github.com/ipfs/go-ipld-cbor v0.0.6/go.mod h1:ssdxxaLJPXH7OjF5V4NSjBbcfh+evoR4ukuru0oPXMA= +github.com/ipfs/go-ipld-format v0.0.1/go.mod h1:kyJtbkDALmFHv3QR6et67i35QzO3S0dCDnkOJhcZkms= +github.com/ipfs/go-ipld-format v0.0.2/go.mod h1:4B6+FM2u9OJ9zCV+kSbgFAZlOrv1Hqbf0INGQgiKf9k= +github.com/ipfs/go-ipld-format v0.2.0/go.mod h1:3l3C1uKoadTPbeNfrDi+xMInYKlx2Cvg1BuydPSdzQs= +github.com/ipfs/go-ipld-format v0.3.0/go.mod h1:co/SdBE8h99968X0hViiw1MNlh6fvxxnHpvVLnH7jSM= +github.com/ipfs/go-ipld-format v0.3.1/go.mod h1:co/SdBE8h99968X0hViiw1MNlh6fvxxnHpvVLnH7jSM= +github.com/ipfs/go-ipld-format v0.4.0/go.mod h1:co/SdBE8h99968X0hViiw1MNlh6fvxxnHpvVLnH7jSM= +github.com/ipfs/go-ipld-legacy v0.1.0/go.mod h1:86f5P/srAmh9GcIcWQR9lfFLZPrIyyXQeVlOWeeWEuI= +github.com/ipfs/go-ipld-legacy v0.1.1/go.mod h1:8AyKFCjgRPsQFf15ZQgDB8Din4DML/fOmKZkkFkrIEg= +github.com/ipfs/go-ipns v0.2.0/go.mod h1:3cLT2rbvgPZGkHJoPO1YMJeh6LtkxopCkKFcio/wE24= +github.com/ipfs/go-ipns v0.3.0/go.mod h1:3cLT2rbvgPZGkHJoPO1YMJeh6LtkxopCkKFcio/wE24= +github.com/ipfs/go-libipfs v0.1.0/go.mod h1:qX0d9h+wu53PFtCTXxdXVBakd6ZCvGDdkZUKmdLMLx0= +github.com/ipfs/go-libipfs v0.3.0/go.mod h1:pSUHZ5qPJTAidsxe9bAeHp3KIiw2ODEW2a2kM3v+iXI= +github.com/ipfs/go-libipfs v0.4.0/go.mod h1:XsU2cP9jBhDrXoJDe0WxikB8XcVmD3k2MEZvB3dbYu8= +github.com/ipfs/go-libipfs v0.6.0/go.mod h1:UjjDIuehp2GzlNP0HEr5I9GfFT7zWgst+YfpUEIThtw= +github.com/ipfs/go-log v0.0.1/go.mod h1:kL1d2/hzSpI0thNYjiKfjanbVNU+IIGA/WnNESY9leM= +github.com/ipfs/go-log v1.0.2/go.mod h1:1MNjMxe0u6xvJZgeqbJ8vdo2TKaGwZ1a0Bpza+sr2Sk= +github.com/ipfs/go-log v1.0.3/go.mod h1:OsLySYkwIbiSUR/yBTdv1qPtcE4FW3WPWk/ewz9Ru+A= +github.com/ipfs/go-log v1.0.4/go.mod h1:oDCg2FkjogeFOhqqb+N39l2RpTNPL6F/StPkB3kPgcs= +github.com/ipfs/go-log v1.0.5 h1:2dOuUCB1Z7uoczMWgAyDck5JLb72zHzrMnGnCNNbvY8= +github.com/ipfs/go-log v1.0.5/go.mod h1:j0b8ZoR+7+R99LD9jZ6+AJsrzkPbSXbZfGakb5JPtIo= +github.com/ipfs/go-log/v2 v2.0.2/go.mod h1:O7P1lJt27vWHhOwQmcFEvlmo49ry2VY2+JfBWFaa9+0= +github.com/ipfs/go-log/v2 v2.0.3/go.mod h1:O7P1lJt27vWHhOwQmcFEvlmo49ry2VY2+JfBWFaa9+0= +github.com/ipfs/go-log/v2 v2.0.5/go.mod h1:eZs4Xt4ZUJQFM3DlanGhy7TkwwawCZcSByscwkWG+dw= +github.com/ipfs/go-log/v2 v2.1.1/go.mod h1:2v2nsGfZsvvAJz13SyFzf9ObaqwHiHxsPLEHntrv9KM= +github.com/ipfs/go-log/v2 v2.1.3/go.mod h1:/8d0SH3Su5Ooc31QlL1WysJhvyOTDCjcCZ9Axpmri6g= +github.com/ipfs/go-log/v2 v2.3.0/go.mod h1:QqGoj30OTpnKaG/LKTGTxoP2mmQtjVMEnK72gynbe/g= +github.com/ipfs/go-log/v2 v2.5.0/go.mod h1:prSpmC1Gpllc9UYWxDiZDreBYw7zp4Iqp1kOLU9U5UI= +github.com/ipfs/go-log/v2 v2.5.1 h1:1XdUzF7048prq4aBjDQQ4SL5RxftpRGdXhNRwKSAlcY= +github.com/ipfs/go-log/v2 v2.5.1/go.mod h1:prSpmC1Gpllc9UYWxDiZDreBYw7zp4Iqp1kOLU9U5UI= +github.com/ipfs/go-merkledag v0.2.3/go.mod h1:SQiXrtSts3KGNmgOzMICy5c0POOpUNQLvB3ClKnBAlk= +github.com/ipfs/go-merkledag v0.3.2/go.mod h1:fvkZNNZixVW6cKSZ/JfLlON5OlgTXNdRLz0p6QG/I2M= +github.com/ipfs/go-merkledag v0.5.1/go.mod h1:cLMZXx8J08idkp5+id62iVftUQV+HlYJ3PIhDfZsjA4= +github.com/ipfs/go-merkledag v0.6.0/go.mod h1:9HSEwRd5sV+lbykiYP+2NC/3o6MZbKNaa4hfNcH5iH0= +github.com/ipfs/go-merkledag v0.9.0/go.mod h1:bPHqkHt5OZ0p1n3iqPeDiw2jIBkjAytRjS3WSBwjq90= +github.com/ipfs/go-merkledag v0.10.0/go.mod h1:zkVav8KiYlmbzUzNM6kENzkdP5+qR7+2mCwxkQ6GIj8= +github.com/ipfs/go-metrics-interface v0.0.1/go.mod h1:6s6euYU4zowdslK0GKHmqaIZ3j/b/tL7HTWtJ4VPgWY= +github.com/ipfs/go-namesys v0.7.0/go.mod h1:KYSZBVZG3VJC34EfqqJPG7T48aWgxseoMPAPA5gLyyQ= +github.com/ipfs/go-path v0.1.1/go.mod h1:vC8q4AKOtrjJz2NnllIrmr2ZbGlF5fW2OKKyhV9ggb0= +github.com/ipfs/go-path v0.3.0/go.mod h1:NOScsVgxfC/eIw4nz6OiGwK42PjaSJ4Y/ZFPn1Xe07I= +github.com/ipfs/go-peertaskqueue v0.1.0/go.mod h1:Jmk3IyCcfl1W3jTW3YpghSwSEC6IJ3Vzz/jUmWw8Z0U= +github.com/ipfs/go-peertaskqueue v0.1.1/go.mod h1:Jmk3IyCcfl1W3jTW3YpghSwSEC6IJ3Vzz/jUmWw8Z0U= +github.com/ipfs/go-peertaskqueue v0.2.0/go.mod h1:5/eNrBEbtSKWCG+kQK8K8fGNixoYUnr+P7jivavs9lY= +github.com/ipfs/go-peertaskqueue v0.7.0/go.mod h1:M/akTIE/z1jGNXMU7kFB4TeSEFvj68ow0Rrb04donIU= +github.com/ipfs/go-peertaskqueue v0.8.0/go.mod h1:cz8hEnnARq4Du5TGqiWKgMr/BOSQ5XOgMOh1K5YYKKM= +github.com/ipfs/go-peertaskqueue v0.8.1/go.mod h1:Oxxd3eaK279FxeydSPPVGHzbwVeHjatZ2GA8XD+KbPU= +github.com/ipfs/go-unixfs v0.2.4/go.mod h1:SUdisfUjNoSDzzhGVxvCL9QO/nKdwXdr+gbMUdqcbYw= +github.com/ipfs/go-unixfs v0.3.1/go.mod h1:h4qfQYzghiIc8ZNFKiLMFWOTzrWIAtzYQ59W/pCFf1o= +github.com/ipfs/go-unixfs v0.4.3/go.mod h1:TSG7G1UuT+l4pNj91raXAPkX0BhJi3jST1FDTfQ5QyM= +github.com/ipfs/go-unixfs v0.4.4/go.mod h1:TSG7G1UuT+l4pNj91raXAPkX0BhJi3jST1FDTfQ5QyM= +github.com/ipfs/go-unixfs v0.4.5/go.mod h1:BIznJNvt/gEx/ooRMI4Us9K8+qeGO7vx1ohnbk8gjFg= +github.com/ipfs/go-unixfsnode v1.1.2/go.mod h1:5dcE2x03pyjHk4JjamXmunTMzz+VUtqvPwZjIEkfV6s= +github.com/ipfs/go-unixfsnode v1.4.0/go.mod h1:qc7YFFZ8tABc58p62HnIYbUMwj9chhUuFWmxSokfePo= +github.com/ipfs/go-unixfsnode v1.5.1/go.mod h1:ed79DaG9IEuZITJVQn4U6MZDftv6I3ygUBLPfhEbHvk= +github.com/ipfs/go-unixfsnode v1.5.2/go.mod h1:NlOebRwYx8lMCNMdhAhEspYPBD3obp7TE0LvBqHY+ks= +github.com/ipfs/go-unixfsnode v1.6.0/go.mod h1:PVfoyZkX1B34qzT3vJO4nsLUpRCyhnMuHBznRcXirlk= +github.com/ipfs/go-verifcid v0.0.1/go.mod h1:5Hrva5KBeIog4A+UpqlaIU+DEstipcJYQQZc0g37pY0= +github.com/ipfs/go-verifcid v0.0.2/go.mod h1:40cD9x1y4OWnFXbLNJYRe7MpNvWlMn3LZAG5Wb4xnPU= +github.com/ipfs/interface-go-ipfs-core v0.9.0/go.mod h1:F3EcmDy53GFkF0H3iEJpfJC320fZ/4G60eftnItrrJ0= +github.com/ipfs/interface-go-ipfs-core v0.10.0/go.mod h1:F3EcmDy53GFkF0H3iEJpfJC320fZ/4G60eftnItrrJ0= +github.com/ipld/go-car v0.5.0/go.mod h1:ppiN5GWpjOZU9PgpAZ9HbZd9ZgSpwPMr48fGRJOWmvE= +github.com/ipld/go-car/v2 v2.1.1/go.mod h1:+2Yvf0Z3wzkv7NeI69i8tuZ+ft7jyjPYIWZzeVNeFcI= +github.com/ipld/go-car/v2 v2.5.1/go.mod h1:jKjGOqoCj5zn6KjnabD6JbnCsMntqU2hLiU6baZVO3E= +github.com/ipld/go-car/v2 v2.8.0/go.mod h1:a+BnAxUqgr7wcWxW/lI6ctyEQ2v9gjBChPytwFMp2f4= +github.com/ipld/go-car/v2 v2.9.1-0.20230325062757-fff0e4397a3d/go.mod h1:SH2pi/NgfGBsV/CGBAQPxMfghIgwzbh5lQ2N+6dNRI8= +github.com/ipld/go-codec-dagpb v1.3.0/go.mod h1:ga4JTU3abYApDC3pZ00BC2RSvC3qfBb9MSJkMLSwnhA= +github.com/ipld/go-codec-dagpb v1.3.1/go.mod h1:ErNNglIi5KMur/MfFE/svtgQthzVvf+43MrzLbpcIZY= +github.com/ipld/go-codec-dagpb v1.4.1/go.mod h1:XdXTO/TUD/ra9RcK/NfmwBfr1JpFxM2uRKaB9oe4LxE= +github.com/ipld/go-codec-dagpb v1.5.0/go.mod h1:0yRIutEFD8o1DGVqw4RSHh+BUTlJA9XWldxaaWR/o4g= +github.com/ipld/go-codec-dagpb v1.6.0/go.mod h1:ANzFhfP2uMJxRBr8CE+WQWs5UsNa0pYtmKZ+agnUw9s= +github.com/ipld/go-ipld-prime v0.9.0/go.mod h1:KvBLMr4PX1gWptgkzRjVZCrLmSGcZCb/jioOQwCqZN8= +github.com/ipld/go-ipld-prime v0.9.1-0.20210324083106-dc342a9917db/go.mod h1:KvBLMr4PX1gWptgkzRjVZCrLmSGcZCb/jioOQwCqZN8= +github.com/ipld/go-ipld-prime v0.11.0/go.mod h1:+WIAkokurHmZ/KwzDOMUuoeJgaRQktHtEaLglS3ZeV8= +github.com/ipld/go-ipld-prime v0.14.0/go.mod h1:9ASQLwUFLptCov6lIYc70GRB4V7UTyLD0IJtrDJe6ZM= +github.com/ipld/go-ipld-prime v0.16.0/go.mod h1:axSCuOCBPqrH+gvXr2w9uAOulJqBPhHPT2PjoiiU1qA= +github.com/ipld/go-ipld-prime v0.18.0/go.mod h1:735yXW548CKrLwVCYXzqx90p5deRJMVVxM9eJ4Qe+qE= +github.com/ipld/go-ipld-prime v0.19.0/go.mod h1:Q9j3BaVXwaA3o5JUDNvptDDr/x8+F7FG6XJ8WI3ILg4= +github.com/ipld/go-ipld-prime v0.20.0 h1:Ud3VwE9ClxpO2LkCYP7vWPc0Fo+dYdYzgxUJZ3uRG4g= +github.com/ipld/go-ipld-prime v0.20.0/go.mod h1:PzqZ/ZR981eKbgdr3y2DJYeD/8bgMawdGVlJDE8kK+M= +github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20211210234204-ce2a1c70cd73/go.mod h1:2PJ0JgxyB08t0b2WKrcuqI3di0V+5n6RS/LTUJhkoxY= +github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20230102063945-1a409dc236dd/go.mod h1:wZ8hH8UxeryOs4kJEJaiui/s00hDSbE37OKsL47g+Sw= +github.com/jackpal/gateway v1.0.5/go.mod h1:lTpwd4ACLXmpyiCTRtfiNyVnUmqT9RivzCDQetPfnjA= +github.com/jackpal/go-nat-pmp v1.0.1/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= +github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= +github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= +github.com/jbenet/go-cienv v0.0.0-20150120210510-1bb1476777ec/go.mod h1:rGaEvXB4uRSZMmzKNLoXvTu1sfx+1kv/DojUlPrSZGs= +github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA= +github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2/go.mod h1:8GXXJV31xl8whumTzdZsTt3RnUIiPqzkyf7mxToRCMs= +github.com/jbenet/go-temp-err-catcher v0.1.0 h1:zpb3ZH6wIE8Shj2sKS+khgRvf7T7RABoLk/+KKHggpk= +github.com/jbenet/go-temp-err-catcher v0.1.0/go.mod h1:0kJRvmDZXNMIiJirNPEYfhpPwbGVtZVWC34vc5WLsDk= +github.com/jbenet/goprocess v0.0.0-20160826012719-b497e2f366b8/go.mod h1:Ly/wlsjFq/qrU3Rar62tu1gASgGw6chQbSh/XgIIXCY= +github.com/jbenet/goprocess v0.1.3/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= +github.com/jbenet/goprocess v0.1.4 h1:DRGOFReOMqqDNXwW70QkacFW0YN9QnwLV0Vqk+3oU0o= +github.com/jbenet/goprocess v0.1.4/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= +github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= +github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= +github.com/jcmturner/gofork v1.7.6/go.mod h1:1622LH6i/EZqLloHfE7IeZ0uEJwMSUyQ/nDd82IeqRo= +github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= +github.com/jcmturner/gokrb5/v8 v8.4.3/go.mod h1:dqRwJGXznQrzw6cWmyo6kH+E7jksEQG/CyVWsJEsJO0= +github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= +github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod h1:E0B/fFc00Y+Rasa88328GlI/XbtyysCtTHZS8h7IrBU= +github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= +github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= +github.com/kami-zh/go-capturer v0.0.0-20171211120116-e492ea43421d/go.mod h1:P2viExyCEfeWGU259JnaQ34Inuec4R38JCyBx2edgD0= +github.com/keybase/go-ps v0.0.0-20190827175125-91aafc93ba19/go.mod h1:hY+WOq6m2FpbvyrI93sMaypsttvaIL5nhVR92dTMUcQ= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= +github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.15.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/compress v1.15.10/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= +github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= +github.com/klauspost/compress v1.15.12/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= +github.com/klauspost/compress v1.16.4/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= +github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.0.6/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c= +github.com/klauspost/cpuid/v2 v2.1.0/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= +github.com/klauspost/cpuid/v2 v2.1.1/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= +github.com/klauspost/cpuid/v2 v2.1.2/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= +github.com/klauspost/cpuid/v2 v2.2.1/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= +github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= +github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= +github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/qbZg= +github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/koron/go-ssdp v0.0.0-20180514024734-4a0ed625a78b/go.mod h1:5Ky9EC2xfoUKUor0Hjgi2BJhCSXJfMOFlmyYrVKGQMk= +github.com/koron/go-ssdp v0.0.0-20191105050749-2e1c40ed0b5d/go.mod h1:5Ky9EC2xfoUKUor0Hjgi2BJhCSXJfMOFlmyYrVKGQMk= +github.com/koron/go-ssdp v0.0.3/go.mod h1:b2MxI6yh02pKrsyNoQUsk4+YNikaGhe4894J+Q5lDvA= +github.com/koron/go-ssdp v0.0.4 h1:1IDwrghSKYM7yLf7XCzbByg2sJ/JcNOZRXS2jczTwz0= +github.com/koron/go-ssdp v0.0.4/go.mod h1:oDXq+E5IL5q0U8uSBcoAXzTzInwy5lEgC91HoKtbmZk= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/pty v1.1.3/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= +github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= +github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= +github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= +github.com/libp2p/go-addr-util v0.0.1/go.mod h1:4ac6O7n9rIAKB1dnd+s8IbbMXkt+oBpzX4/+RACcnlQ= +github.com/libp2p/go-addr-util v0.0.2/go.mod h1:Ecd6Fb3yIuLzq4bD7VcywcVSBtefcAwnUISBM3WG15E= +github.com/libp2p/go-buffer-pool v0.0.1/go.mod h1:xtyIz9PMobb13WaxR6Zo1Pd1zXJKYg0a8KiIvDp3TzQ= +github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= +github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= +github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +github.com/libp2p/go-cidranger v1.1.0 h1:ewPN8EZ0dd1LSnrtuwd4709PXVcITVeuwbag38yPW7c= +github.com/libp2p/go-cidranger v1.1.0/go.mod h1:KWZTfSr+r9qEo9OkI9/SIEeAtw+NNoU0dXIXt15Okic= +github.com/libp2p/go-conn-security-multistream v0.1.0/go.mod h1:aw6eD7LOsHEX7+2hJkDxw1MteijaVcI+/eP2/x3J1xc= +github.com/libp2p/go-conn-security-multistream v0.2.0/go.mod h1:hZN4MjlNetKD3Rq5Jb/P5ohUnFLNzEAR4DLSzpn2QLU= +github.com/libp2p/go-conn-security-multistream v0.2.1/go.mod h1:cR1d8gA0Hr59Fj6NhaTpFhJZrjSYuNmhpT2r25zYR70= +github.com/libp2p/go-doh-resolver v0.4.0/go.mod h1:v1/jwsFusgsWIGX/c6vCRrnJ60x7bhTiq/fs2qt0cAg= +github.com/libp2p/go-eventbus v0.1.0/go.mod h1:vROgu5cs5T7cv7POWlWxBaVLxfSegC5UGQf8A2eEmx4= +github.com/libp2p/go-eventbus v0.2.1/go.mod h1:jc2S4SoEVPP48H9Wpzm5aiGwUCBMfGhVhhBjyhhCJs8= +github.com/libp2p/go-flow-metrics v0.0.1/go.mod h1:Iv1GH0sG8DtYN3SVJ2eG221wMiNpZxBdp967ls1g+k8= +github.com/libp2p/go-flow-metrics v0.0.3/go.mod h1:HeoSNUrOJVK1jEpDqVEiUOIXqhbnS27omG0uWU5slZs= +github.com/libp2p/go-flow-metrics v0.1.0 h1:0iPhMI8PskQwzh57jB9WxIuIOQ0r+15PChFGkx3Q3WM= +github.com/libp2p/go-flow-metrics v0.1.0/go.mod h1:4Xi8MX8wj5aWNDAZttg6UPmc0ZrnFNsMtpsYUClFtro= +github.com/libp2p/go-libp2p v0.1.0/go.mod h1:6D/2OBauqLUoqcADOJpn9WbKqvaM07tDw68qHM0BxUM= +github.com/libp2p/go-libp2p v0.1.1/go.mod h1:I00BRo1UuUSdpuc8Q2mN7yDF/oTUTRAX6JWpTiK9Rp8= +github.com/libp2p/go-libp2p v0.6.1/go.mod h1:CTFnWXogryAHjXAKEbOf1OWY+VeAP3lDMZkfEI5sT54= +github.com/libp2p/go-libp2p v0.7.0/go.mod h1:hZJf8txWeCduQRDC/WSqBGMxaTHCOYHt2xSU1ivxn0k= +github.com/libp2p/go-libp2p v0.7.4/go.mod h1:oXsBlTLF1q7pxr+9w6lqzS1ILpyHsaBPniVO7zIHGMw= +github.com/libp2p/go-libp2p v0.8.1/go.mod h1:QRNH9pwdbEBpx5DTJYg+qxcVaDMAz3Ee/qDKwXujH5o= +github.com/libp2p/go-libp2p v0.13.0/go.mod h1:pM0beYdACRfHO1WcJlp65WXyG2A6NqYM+t2DTVAJxMo= +github.com/libp2p/go-libp2p v0.14.3/go.mod h1:d12V4PdKbpL0T1/gsUNN8DfgMuRPDX8bS2QxCZlwRH0= +github.com/libp2p/go-libp2p v0.22.0/go.mod h1:UDolmweypBSjQb2f7xutPnwZ/fxioLbMBxSjRksxxU4= +github.com/libp2p/go-libp2p v0.23.4/go.mod h1:s9DEa5NLR4g+LZS+md5uGU4emjMWFiqkZr6hBTY8UxI= +github.com/libp2p/go-libp2p v0.25.0/go.mod h1:vXHmFpcfl+xIGN4qW58Bw3a0/SKGAesr5/T4IuJHE3o= +github.com/libp2p/go-libp2p v0.25.1/go.mod h1:xnK9/1d9+jeQCVvi/f1g12KqtVi/jP/SijtKV1hML3g= +github.com/libp2p/go-libp2p v0.26.3/go.mod h1:x75BN32YbwuY0Awm2Uix4d4KOz+/4piInkp4Wr3yOo8= +github.com/libp2p/go-libp2p v0.27.6/go.mod h1:oMfQGTb9CHnrOuSM6yMmyK2lXz3qIhnkn2+oK3B1Y2g= +github.com/libp2p/go-libp2p v0.28.1 h1:YurK+ZAI6cKfASLJBVFkpVBdl3wGhFi6fusOt725ii8= +github.com/libp2p/go-libp2p v0.28.1/go.mod h1:s3Xabc9LSwOcnv9UD4nORnXKTsWkPMkIMB/JIGXVnzk= +github.com/libp2p/go-libp2p-asn-util v0.2.0/go.mod h1:WoaWxbHKBymSN41hWSq/lGKJEca7TNm58+gGJi2WsLI= +github.com/libp2p/go-libp2p-asn-util v0.3.0 h1:gMDcMyYiZKkocGXDQ5nsUQyquC9+H+iLEQHwOCZ7s8s= +github.com/libp2p/go-libp2p-asn-util v0.3.0/go.mod h1:B1mcOrKUE35Xq/ASTmQ4tN3LNzVVaMNmq2NACuqyB9w= +github.com/libp2p/go-libp2p-autonat v0.1.0/go.mod h1:1tLf2yXxiE/oKGtDwPYWTSYG3PtvYlJmg7NeVtPRqH8= +github.com/libp2p/go-libp2p-autonat v0.1.1/go.mod h1:OXqkeGOY2xJVWKAGV2inNF5aKN/djNA3fdpCWloIudE= +github.com/libp2p/go-libp2p-autonat v0.2.0/go.mod h1:DX+9teU4pEEoZUqR1PiMlqliONQdNbfzE1C718tcViI= +github.com/libp2p/go-libp2p-autonat v0.2.1/go.mod h1:MWtAhV5Ko1l6QBsHQNSuM6b1sRkXrpk0/LqCr+vCVxI= +github.com/libp2p/go-libp2p-autonat v0.2.2/go.mod h1:HsM62HkqZmHR2k1xgX34WuWDzk/nBwNHoeyyT4IWV6A= +github.com/libp2p/go-libp2p-autonat v0.4.0/go.mod h1:YxaJlpr81FhdOv3W3BTconZPfhaYivRdf53g+S2wobk= +github.com/libp2p/go-libp2p-autonat v0.4.2/go.mod h1:YxaJlpr81FhdOv3W3BTconZPfhaYivRdf53g+S2wobk= +github.com/libp2p/go-libp2p-blankhost v0.1.1/go.mod h1:pf2fvdLJPsC1FsVrNP3DUUvMzUts2dsLLBEpo1vW1ro= +github.com/libp2p/go-libp2p-blankhost v0.1.4/go.mod h1:oJF0saYsAXQCSfDq254GMNmLNz6ZTHTOvtF4ZydUvwU= +github.com/libp2p/go-libp2p-blankhost v0.2.0/go.mod h1:eduNKXGTioTuQAUcZ5epXi9vMl+t4d8ugUBRQ4SqaNQ= +github.com/libp2p/go-libp2p-circuit v0.1.0/go.mod h1:Ahq4cY3V9VJcHcn1SBXjr78AbFkZeIRmfunbA7pmFh8= +github.com/libp2p/go-libp2p-circuit v0.1.4/go.mod h1:CY67BrEjKNDhdTk8UgBX1Y/H5c3xkAcs3gnksxY7osU= +github.com/libp2p/go-libp2p-circuit v0.2.1/go.mod h1:BXPwYDN5A8z4OEY9sOfr2DUQMLQvKt/6oku45YUmjIo= +github.com/libp2p/go-libp2p-circuit v0.4.0/go.mod h1:t/ktoFIUzM6uLQ+o1G6NuBl2ANhBKN9Bc8jRIk31MoA= +github.com/libp2p/go-libp2p-core v0.0.1/go.mod h1:g/VxnTZ/1ygHxH3dKok7Vno1VfpvGcGip57wjTU4fco= +github.com/libp2p/go-libp2p-core v0.0.2/go.mod h1:9dAcntw/n46XycV4RnlBq3BpgrmyUi9LuoTNdPrbUco= +github.com/libp2p/go-libp2p-core v0.0.3/go.mod h1:j+YQMNz9WNSkNezXOsahp9kwZBKBvxLpKD316QWSJXE= +github.com/libp2p/go-libp2p-core v0.0.4/go.mod h1:jyuCQP356gzfCFtRKyvAbNkyeuxb7OlyhWZ3nls5d2I= +github.com/libp2p/go-libp2p-core v0.2.0/go.mod h1:X0eyB0Gy93v0DZtSYbEM7RnMChm9Uv3j7yRXjO77xSI= +github.com/libp2p/go-libp2p-core v0.2.2/go.mod h1:8fcwTbsG2B+lTgRJ1ICZtiM5GWCWZVoVrLaDRvIRng0= +github.com/libp2p/go-libp2p-core v0.2.4/go.mod h1:STh4fdfa5vDYr0/SzYYeqnt+E6KfEV5VxfIrm0bcI0g= +github.com/libp2p/go-libp2p-core v0.3.0/go.mod h1:ACp3DmS3/N64c2jDzcV429ukDpicbL6+TrrxANBjPGw= +github.com/libp2p/go-libp2p-core v0.3.1/go.mod h1:thvWy0hvaSBhnVBaW37BvzgVV68OUhgJJLAa6almrII= +github.com/libp2p/go-libp2p-core v0.4.0/go.mod h1:49XGI+kc38oGVwqSBhDEwytaAxgZasHhFfQKibzTls0= +github.com/libp2p/go-libp2p-core v0.5.0/go.mod h1:49XGI+kc38oGVwqSBhDEwytaAxgZasHhFfQKibzTls0= +github.com/libp2p/go-libp2p-core v0.5.1/go.mod h1:uN7L2D4EvPCvzSH5SrhR72UWbnSGpt5/a35Sm4upn4Y= +github.com/libp2p/go-libp2p-core v0.5.4/go.mod h1:uN7L2D4EvPCvzSH5SrhR72UWbnSGpt5/a35Sm4upn4Y= +github.com/libp2p/go-libp2p-core v0.5.5/go.mod h1:vj3awlOr9+GMZJFH9s4mpt9RHHgGqeHCopzbYKZdRjM= +github.com/libp2p/go-libp2p-core v0.5.6/go.mod h1:txwbVEhHEXikXn9gfC7/UDDw7rkxuX0bJvM49Ykaswo= +github.com/libp2p/go-libp2p-core v0.5.7/go.mod h1:txwbVEhHEXikXn9gfC7/UDDw7rkxuX0bJvM49Ykaswo= +github.com/libp2p/go-libp2p-core v0.6.0/go.mod h1:txwbVEhHEXikXn9gfC7/UDDw7rkxuX0bJvM49Ykaswo= +github.com/libp2p/go-libp2p-core v0.7.0/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= +github.com/libp2p/go-libp2p-core v0.8.0/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= +github.com/libp2p/go-libp2p-core v0.8.1/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= +github.com/libp2p/go-libp2p-core v0.8.2/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= +github.com/libp2p/go-libp2p-core v0.8.5/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= +github.com/libp2p/go-libp2p-core v0.19.0/go.mod h1:AkA+FUKQfYt1FLNef5fOPlo/naAWjKy/RCjkcPjqzYg= +github.com/libp2p/go-libp2p-crypto v0.1.0/go.mod h1:sPUokVISZiy+nNuTTH/TY+leRSxnFj/2GLjtOTW90hI= +github.com/libp2p/go-libp2p-discovery v0.1.0/go.mod h1:4F/x+aldVHjHDHuX85x1zWoFTGElt8HnoDzwkFZm29g= +github.com/libp2p/go-libp2p-discovery v0.2.0/go.mod h1:s4VGaxYMbw4+4+tsoQTqh7wfxg97AEdo4GYBt6BadWg= +github.com/libp2p/go-libp2p-discovery v0.3.0/go.mod h1:o03drFnz9BVAZdzC/QUQ+NeQOu38Fu7LJGEOK2gQltw= +github.com/libp2p/go-libp2p-discovery v0.5.0/go.mod h1:+srtPIU9gDaBNu//UHvcdliKBIcr4SfDcm0/PfPJLug= +github.com/libp2p/go-libp2p-kad-dht v0.19.0/go.mod h1:qPIXdiZsLczhV4/+4EO1jE8ae0YCW4ZOogc4WVIyTEU= +github.com/libp2p/go-libp2p-kad-dht v0.21.0/go.mod h1:Bhm9diAFmc6qcWAr084bHNL159srVZRKADdp96Qqd1I= +github.com/libp2p/go-libp2p-kad-dht v0.21.1/go.mod h1:Oy8wvbdjpB70eS5AaFaI68tOtrdo3KylTvXDjikxqFo= +github.com/libp2p/go-libp2p-kad-dht v0.23.0 h1:sxE6LxLopp79eLeV695n7+c77V/Vn4AMF28AdM/XFqM= +github.com/libp2p/go-libp2p-kad-dht v0.23.0/go.mod h1:oO5N308VT2msnQI6qi5M61wzPmJYg7Tr9e16m5n7uDU= +github.com/libp2p/go-libp2p-kbucket v0.3.1/go.mod h1:oyjT5O7tS9CQurok++ERgc46YLwEpuGoFq9ubvoUOio= +github.com/libp2p/go-libp2p-kbucket v0.5.0/go.mod h1:zGzGCpQd78b5BNTDGHNDLaTt9aDK/A02xeZp9QeFC4U= +github.com/libp2p/go-libp2p-kbucket v0.6.3 h1:p507271wWzpy2f1XxPzCQG9NiN6R6lHL9GiSErbQQo0= +github.com/libp2p/go-libp2p-kbucket v0.6.3/go.mod h1:RCseT7AH6eJWxxk2ol03xtP9pEHetYSPXOaJnOiD8i0= +github.com/libp2p/go-libp2p-loggables v0.1.0/go.mod h1:EyumB2Y6PrYjr55Q3/tiJ/o3xoDasoRYM7nOzEpoa90= +github.com/libp2p/go-libp2p-mplex v0.2.0/go.mod h1:Ejl9IyjvXJ0T9iqUTE1jpYATQ9NM3g+OtR+EMMODbKo= +github.com/libp2p/go-libp2p-mplex v0.2.1/go.mod h1:SC99Rxs8Vuzrf/6WhmH41kNn13TiYdAWNYHrwImKLnE= +github.com/libp2p/go-libp2p-mplex v0.2.2/go.mod h1:74S9eum0tVQdAfFiKxAyKzNdSuLqw5oadDq7+L/FELo= +github.com/libp2p/go-libp2p-mplex v0.2.3/go.mod h1:CK3p2+9qH9x+7ER/gWWDYJ3QW5ZxWDkm+dVvjfuG3ek= +github.com/libp2p/go-libp2p-mplex v0.4.0/go.mod h1:yCyWJE2sc6TBTnFpjvLuEJgTSw/u+MamvzILKdX7asw= +github.com/libp2p/go-libp2p-mplex v0.4.1/go.mod h1:cmy+3GfqfM1PceHTLL7zQzAAYaryDu6iPSC+CIb094g= +github.com/libp2p/go-libp2p-nat v0.0.4/go.mod h1:N9Js/zVtAXqaeT99cXgTV9e75KpnWCvVOiGzlcHmBbY= +github.com/libp2p/go-libp2p-nat v0.0.5/go.mod h1:1qubaE5bTZMJE+E/uu2URroMbzdubFz1ChgiN79yKPE= +github.com/libp2p/go-libp2p-nat v0.0.6/go.mod h1:iV59LVhB3IkFvS6S6sauVTSOrNEANnINbI/fkaLimiw= +github.com/libp2p/go-libp2p-netutil v0.1.0/go.mod h1:3Qv/aDqtMLTUyQeundkKsA+YCThNdbQD54k3TqjpbFU= +github.com/libp2p/go-libp2p-noise v0.1.1/go.mod h1:QDFLdKX7nluB7DEnlVPbz7xlLHdwHFA9HiohJRr3vwM= +github.com/libp2p/go-libp2p-noise v0.2.0/go.mod h1:IEbYhBBzGyvdLBoxxULL/SGbJARhUeqlO8lVSREYu2Q= +github.com/libp2p/go-libp2p-peer v0.2.0/go.mod h1:RCffaCvUyW2CJmG2gAWVqwePwW7JMgxjsHm7+J5kjWY= +github.com/libp2p/go-libp2p-peerstore v0.1.0/go.mod h1:2CeHkQsr8svp4fZ+Oi9ykN1HBb6u0MOvdJ7YIsmcwtY= +github.com/libp2p/go-libp2p-peerstore v0.1.3/go.mod h1:BJ9sHlm59/80oSkpWgr1MyY1ciXAXV397W6h1GH/uKI= +github.com/libp2p/go-libp2p-peerstore v0.1.4/go.mod h1:+4BDbDiiKf4PzpANZDAT+knVdLxvqh7hXOujessqdzs= +github.com/libp2p/go-libp2p-peerstore v0.2.0/go.mod h1:N2l3eVIeAitSg3Pi2ipSrJYnqhVnMNQZo9nkSCuAbnQ= +github.com/libp2p/go-libp2p-peerstore v0.2.1/go.mod h1:NQxhNjWxf1d4w6PihR8btWIRjwRLBr4TYKfNgrUkOPA= +github.com/libp2p/go-libp2p-peerstore v0.2.2/go.mod h1:NQxhNjWxf1d4w6PihR8btWIRjwRLBr4TYKfNgrUkOPA= +github.com/libp2p/go-libp2p-peerstore v0.2.6/go.mod h1:ss/TWTgHZTMpsU/oKVVPQCGuDHItOpf2W8RxAi50P2s= +github.com/libp2p/go-libp2p-peerstore v0.2.7/go.mod h1:ss/TWTgHZTMpsU/oKVVPQCGuDHItOpf2W8RxAi50P2s= +github.com/libp2p/go-libp2p-pnet v0.2.0/go.mod h1:Qqvq6JH/oMZGwqs3N1Fqhv8NVhrdYcO0BW4wssv21LA= +github.com/libp2p/go-libp2p-pubsub v0.9.3 h1:ihcz9oIBMaCK9kcx+yHWm3mLAFBMAUsM4ux42aikDxo= +github.com/libp2p/go-libp2p-pubsub v0.9.3/go.mod h1:RYA7aM9jIic5VV47WXu4GkcRxRhrdElWf8xtyli+Dzc= +github.com/libp2p/go-libp2p-quic-transport v0.10.0/go.mod h1:RfJbZ8IqXIhxBRm5hqUEJqjiiY8xmEuq3HUDS993MkA= +github.com/libp2p/go-libp2p-record v0.1.0/go.mod h1:ujNc8iuE5dlKWVy6wuL6dd58t0n7xI4hAIl8pE6wu5Q= +github.com/libp2p/go-libp2p-record v0.2.0 h1:oiNUOCWno2BFuxt3my4i1frNrt7PerzB3queqa1NkQ0= +github.com/libp2p/go-libp2p-record v0.2.0/go.mod h1:I+3zMkvvg5m2OcSdoL0KPljyJyvNDFGKX7QdlpYUcwk= +github.com/libp2p/go-libp2p-routing-helpers v0.4.0/go.mod h1:dYEAgkVhqho3/YKxfOEGdFMIcWfAFNlZX8iAIihYA2E= +github.com/libp2p/go-libp2p-secio v0.1.0/go.mod h1:tMJo2w7h3+wN4pgU2LSYeiKPrfqBgkOsdiKK77hE7c8= +github.com/libp2p/go-libp2p-secio v0.2.0/go.mod h1:2JdZepB8J5V9mBp79BmwsaPQhRPNN2NrnB2lKQcdy6g= +github.com/libp2p/go-libp2p-secio v0.2.1/go.mod h1:cWtZpILJqkqrSkiYcDBh5lA3wbT2Q+hz3rJQq3iftD8= +github.com/libp2p/go-libp2p-secio v0.2.2/go.mod h1:wP3bS+m5AUnFA+OFO7Er03uO1mncHG0uVwGrwvjYlNY= +github.com/libp2p/go-libp2p-swarm v0.1.0/go.mod h1:wQVsCdjsuZoc730CgOvh5ox6K8evllckjebkdiY5ta4= +github.com/libp2p/go-libp2p-swarm v0.2.2/go.mod h1:fvmtQ0T1nErXym1/aa1uJEyN7JzaTNyBcHImCxRpPKU= +github.com/libp2p/go-libp2p-swarm v0.2.3/go.mod h1:P2VO/EpxRyDxtChXz/VPVXyTnszHvokHKRhfkEgFKNM= +github.com/libp2p/go-libp2p-swarm v0.2.8/go.mod h1:JQKMGSth4SMqonruY0a8yjlPVIkb0mdNSwckW7OYziM= +github.com/libp2p/go-libp2p-swarm v0.3.0/go.mod h1:hdv95GWCTmzkgeJpP+GK/9D9puJegb7H57B5hWQR5Kk= +github.com/libp2p/go-libp2p-swarm v0.4.0/go.mod h1:XVFcO52VoLoo0eitSxNQWYq4D6sydGOweTOAjJNraCw= +github.com/libp2p/go-libp2p-swarm v0.5.0/go.mod h1:sU9i6BoHE0Ve5SKz3y9WfKrh8dUat6JknzUehFx8xW4= +github.com/libp2p/go-libp2p-testing v0.0.2/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= +github.com/libp2p/go-libp2p-testing v0.0.3/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= +github.com/libp2p/go-libp2p-testing v0.0.4/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= +github.com/libp2p/go-libp2p-testing v0.1.0/go.mod h1:xaZWMJrPUM5GlDBxCeGUi7kI4eqnjVyavGroI2nxEM0= +github.com/libp2p/go-libp2p-testing v0.1.1/go.mod h1:xaZWMJrPUM5GlDBxCeGUi7kI4eqnjVyavGroI2nxEM0= +github.com/libp2p/go-libp2p-testing v0.1.2-0.20200422005655-8775583591d8/go.mod h1:Qy8sAncLKpwXtS2dSnDOP8ktexIAHKu+J+pnZOFZLTc= +github.com/libp2p/go-libp2p-testing v0.3.0/go.mod h1:efZkql4UZ7OVsEfaxNHZPzIehtsBXMrXnCfJIgDti5g= +github.com/libp2p/go-libp2p-testing v0.4.0/go.mod h1:Q+PFXYoiYFN5CAEG2w3gLPEzotlKsNSbKQ/lImlOWF0= +github.com/libp2p/go-libp2p-testing v0.11.0/go.mod h1:qG4sF27dfKFoK9KlVzK2y52LQKhp0VEmLjV5aDqr1Hg= +github.com/libp2p/go-libp2p-testing v0.12.0 h1:EPvBb4kKMWO29qP4mZGyhVzUyR25dvfUIK5WDu6iPUA= +github.com/libp2p/go-libp2p-testing v0.12.0/go.mod h1:KcGDRXyN7sQCllucn1cOOS+Dmm7ujhfEyXQL5lvkcPg= +github.com/libp2p/go-libp2p-tls v0.1.3/go.mod h1:wZfuewxOndz5RTnCAxFliGjvYSDA40sKitV4c50uI1M= +github.com/libp2p/go-libp2p-transport-upgrader v0.1.1/go.mod h1:IEtA6or8JUbsV07qPW4r01GnTenLW4oi3lOPbUMGJJA= +github.com/libp2p/go-libp2p-transport-upgrader v0.2.0/go.mod h1:mQcrHj4asu6ArfSoMuyojOdjx73Q47cYD7s5+gZOlns= +github.com/libp2p/go-libp2p-transport-upgrader v0.3.0/go.mod h1:i+SKzbRnvXdVbU3D1dwydnTmKRPXiAR/fyvi1dXuL4o= +github.com/libp2p/go-libp2p-transport-upgrader v0.4.0/go.mod h1:J4ko0ObtZSmgn5BX5AmegP+dK3CSnU2lMCKsSq/EY0s= +github.com/libp2p/go-libp2p-transport-upgrader v0.4.2/go.mod h1:NR8ne1VwfreD5VIWIU62Agt/J18ekORFU/j1i2y8zvk= +github.com/libp2p/go-libp2p-xor v0.1.0/go.mod h1:LSTM5yRnjGZbWNTA/hRwq2gGFrvRIbQJscoIL/u6InY= +github.com/libp2p/go-libp2p-yamux v0.2.0/go.mod h1:Db2gU+XfLpm6E4rG5uGCFX6uXA8MEXOxFcRoXUODaK8= +github.com/libp2p/go-libp2p-yamux v0.2.1/go.mod h1:1FBXiHDk1VyRM1C0aez2bCfHQ4vMZKkAQzZbkSQt5fI= +github.com/libp2p/go-libp2p-yamux v0.2.2/go.mod h1:lIohaR0pT6mOt0AZ0L2dFze9hds9Req3OfS+B+dv4qw= +github.com/libp2p/go-libp2p-yamux v0.2.5/go.mod h1:Zpgj6arbyQrmZ3wxSZxfBmbdnWtbZ48OpsfmQVTErwA= +github.com/libp2p/go-libp2p-yamux v0.2.7/go.mod h1:X28ENrBMU/nm4I3Nx4sZ4dgjZ6VhLEn0XhIoZ5viCwU= +github.com/libp2p/go-libp2p-yamux v0.2.8/go.mod h1:/t6tDqeuZf0INZMTgd0WxIRbtK2EzI2h7HbFm9eAKI4= +github.com/libp2p/go-libp2p-yamux v0.4.0/go.mod h1:+DWDjtFMzoAwYLVkNZftoucn7PelNoy5nm3tZ3/Zw30= +github.com/libp2p/go-libp2p-yamux v0.5.0/go.mod h1:AyR8k5EzyM2QN9Bbdg6X1SkVVuqLwTGf0L4DFq9g6po= +github.com/libp2p/go-libp2p-yamux v0.5.1/go.mod h1:dowuvDu8CRWmr0iqySMiSxK+W0iL5cMVO9S94Y6gkv4= +github.com/libp2p/go-libp2p-yamux v0.5.4/go.mod h1:tfrXbyaTqqSU654GTvK3ocnSZL3BuHoeTSqhcel1wsE= +github.com/libp2p/go-maddr-filter v0.0.4/go.mod h1:6eT12kSQMA9x2pvFQa+xesMKUBlj9VImZbj3B9FBH/Q= +github.com/libp2p/go-maddr-filter v0.0.5/go.mod h1:Jk+36PMfIqCJhAnaASRH83bdAvfDRp/w6ENFaC9bG+M= +github.com/libp2p/go-maddr-filter v0.1.0/go.mod h1:VzZhTXkMucEGGEOSKddrwGiOv0tUhgnKqNEmIAz/bPU= +github.com/libp2p/go-mplex v0.0.3/go.mod h1:pK5yMLmOoBR1pNCqDlA2GQrdAVTMkqFalaTWe7l4Yd0= +github.com/libp2p/go-mplex v0.1.0/go.mod h1:SXgmdki2kwCUlCCbfGLEgHjC4pFqhTp0ZoV6aiKgxDU= +github.com/libp2p/go-mplex v0.1.1/go.mod h1:Xgz2RDCi3co0LeZfgjm4OgUF15+sVR8SRcu3SFXI1lk= +github.com/libp2p/go-mplex v0.1.2/go.mod h1:Xgz2RDCi3co0LeZfgjm4OgUF15+sVR8SRcu3SFXI1lk= +github.com/libp2p/go-mplex v0.2.0/go.mod h1:0Oy/A9PQlwBytDRp4wSkFnzHYDKcpLot35JQ6msjvYQ= +github.com/libp2p/go-mplex v0.3.0/go.mod h1:0Oy/A9PQlwBytDRp4wSkFnzHYDKcpLot35JQ6msjvYQ= +github.com/libp2p/go-mplex v0.7.0/go.mod h1:rW8ThnRcYWft/Jb2jeORBmPd6xuG3dGxWN/W168L9EU= +github.com/libp2p/go-msgio v0.0.2/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= +github.com/libp2p/go-msgio v0.0.3/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= +github.com/libp2p/go-msgio v0.0.4/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= +github.com/libp2p/go-msgio v0.0.6/go.mod h1:4ecVB6d9f4BDSL5fqvPiC4A3KivjWn+Venn/1ALLMWA= +github.com/libp2p/go-msgio v0.2.0/go.mod h1:dBVM1gW3Jk9XqHkU4eKdGvVHdLa51hoGfll6jMJMSlY= +github.com/libp2p/go-msgio v0.3.0 h1:mf3Z8B1xcFN314sWX+2vOTShIE0Mmn2TXn3YCUQGNj0= +github.com/libp2p/go-msgio v0.3.0/go.mod h1:nyRM819GmVaF9LX3l03RMh10QdOroF++NBbxAb0mmDM= +github.com/libp2p/go-nat v0.0.3/go.mod h1:88nUEt0k0JD45Bk93NIwDqjlhiOwOoV36GchpcVc1yI= +github.com/libp2p/go-nat v0.0.4/go.mod h1:Nmw50VAvKuk38jUBcmNh6p9lUJLoODbJRvYAa/+KSDo= +github.com/libp2p/go-nat v0.0.5/go.mod h1:B7NxsVNPZmRLvMOwiEO1scOSyjA56zxYAGv1yQgRkEU= +github.com/libp2p/go-nat v0.1.0/go.mod h1:X7teVkwRHNInVNWQiO/tAiAVRwSr5zoRz4YSTC3uRBM= +github.com/libp2p/go-nat v0.2.0 h1:Tyz+bUFAYqGyJ/ppPPymMGbIgNRH+WqC5QrT5fKrrGk= +github.com/libp2p/go-nat v0.2.0/go.mod h1:3MJr+GRpRkyT65EpVPBstXLvOlAPzUVlG6Pwg9ohLJk= +github.com/libp2p/go-netroute v0.1.2/go.mod h1:jZLDV+1PE8y5XxBySEBgbuVAXbhtuHSdmLPL2n9MKbk= +github.com/libp2p/go-netroute v0.1.3/go.mod h1:jZLDV+1PE8y5XxBySEBgbuVAXbhtuHSdmLPL2n9MKbk= +github.com/libp2p/go-netroute v0.1.5/go.mod h1:V1SR3AaECRkEQCoFFzYwVYWvYIEtlxx89+O3qcpCl4A= +github.com/libp2p/go-netroute v0.1.6/go.mod h1:AqhkMh0VuWmfgtxKPp3Oc1LdU5QSWS7wl0QLhSZqXxQ= +github.com/libp2p/go-netroute v0.2.0/go.mod h1:Vio7LTzZ+6hoT4CMZi5/6CpY3Snzh2vgZhWgxMNwlQI= +github.com/libp2p/go-netroute v0.2.1 h1:V8kVrpD8GK0Riv15/7VN6RbUQ3URNZVosw7H2v9tksU= +github.com/libp2p/go-netroute v0.2.1/go.mod h1:hraioZr0fhBjG0ZRXJJ6Zj2IVEVNx6tDTFQfSmcq7mQ= +github.com/libp2p/go-openssl v0.0.2/go.mod h1:v8Zw2ijCSWBQi8Pq5GAixw6DbFfa9u6VIYDXnvOXkc0= +github.com/libp2p/go-openssl v0.0.3/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= +github.com/libp2p/go-openssl v0.0.4/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= +github.com/libp2p/go-openssl v0.0.5/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= +github.com/libp2p/go-openssl v0.0.7/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= +github.com/libp2p/go-openssl v0.1.0/go.mod h1:OiOxwPpL3n4xlenjx2h7AwSGaFSC/KZvf6gNdOBQMtc= +github.com/libp2p/go-reuseport v0.0.1/go.mod h1:jn6RmB1ufnQwl0Q1f+YxAj8isJgDCQzaaxIFYDhcYEA= +github.com/libp2p/go-reuseport v0.0.2/go.mod h1:SPD+5RwGC7rcnzngoYC86GjPzjSywuQyMVAheVBD9nQ= +github.com/libp2p/go-reuseport v0.2.0/go.mod h1:bvVho6eLMm6Bz5hmU0LYN3ixd3nPPvtIlaURZZgOY4k= +github.com/libp2p/go-reuseport v0.3.0 h1:iiZslO5byUYZEg9iCwJGf5h+sf1Agmqx2V2FDjPyvUw= +github.com/libp2p/go-reuseport v0.3.0/go.mod h1:laea40AimhtfEqysZ71UpYj4S+R9VpH8PgqLo7L+SwI= +github.com/libp2p/go-reuseport-transport v0.0.2/go.mod h1:YkbSDrvjUVDL6b8XqriyA20obEtsW9BLkuOUyQAOCbs= +github.com/libp2p/go-reuseport-transport v0.0.3/go.mod h1:Spv+MPft1exxARzP2Sruj2Wb5JSyHNncjf1Oi2dEbzM= +github.com/libp2p/go-reuseport-transport v0.0.4/go.mod h1:trPa7r/7TJK/d+0hdBLOCGvpQQVOU74OXbNCIMkufGw= +github.com/libp2p/go-sockaddr v0.0.2/go.mod h1:syPvOmNs24S3dFVGJA1/mrqdeijPxLV2Le3BRLKd68k= +github.com/libp2p/go-sockaddr v0.1.0/go.mod h1:syPvOmNs24S3dFVGJA1/mrqdeijPxLV2Le3BRLKd68k= +github.com/libp2p/go-sockaddr v0.1.1/go.mod h1:syPvOmNs24S3dFVGJA1/mrqdeijPxLV2Le3BRLKd68k= +github.com/libp2p/go-stream-muxer v0.0.1/go.mod h1:bAo8x7YkSpadMTbtTaxGVHWUQsR/l5MEaHbKaliuT14= +github.com/libp2p/go-stream-muxer-multistream v0.2.0/go.mod h1:j9eyPol/LLRqT+GPLSxvimPhNph4sfYfMoDPd7HkzIc= +github.com/libp2p/go-stream-muxer-multistream v0.3.0/go.mod h1:yDh8abSIzmZtqtOt64gFJUXEryejzNb0lisTt+fAMJA= +github.com/libp2p/go-tcp-transport v0.1.0/go.mod h1:oJ8I5VXryj493DEJ7OsBieu8fcg2nHGctwtInJVpipc= +github.com/libp2p/go-tcp-transport v0.1.1/go.mod h1:3HzGvLbx6etZjnFlERyakbaYPdfjg2pWP97dFZworkY= +github.com/libp2p/go-tcp-transport v0.2.0/go.mod h1:vX2U0CnWimU4h0SGSEsg++AzvBcroCGYw28kh94oLe0= +github.com/libp2p/go-tcp-transport v0.2.1/go.mod h1:zskiJ70MEfWz2MKxvFB/Pv+tPIB1PpPUrHIWQ8aFw7M= +github.com/libp2p/go-tcp-transport v0.2.3/go.mod h1:9dvr03yqrPyYGIEN6Dy5UvdJZjyPFvl1S/igQ5QD1SU= +github.com/libp2p/go-testutil v0.1.0/go.mod h1:81b2n5HypcVyrCg/MJx4Wgfp/VHojytjVe/gLzZ2Ehc= +github.com/libp2p/go-ws-transport v0.1.0/go.mod h1:rjw1MG1LU9YDC6gzmwObkPd/Sqwhw7yT74kj3raBFuo= +github.com/libp2p/go-ws-transport v0.2.0/go.mod h1:9BHJz/4Q5A9ludYWKoGCFC5gUElzlHoKzu0yY9p/klM= +github.com/libp2p/go-ws-transport v0.3.0/go.mod h1:bpgTJmRZAvVHrgHybCVyqoBmyLQ1fiZuEaBYusP5zsk= +github.com/libp2p/go-ws-transport v0.4.0/go.mod h1:EcIEKqf/7GDjth6ksuS/6p7R49V4CBY6/E7R/iyhYUA= +github.com/libp2p/go-yamux v1.2.2/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= +github.com/libp2p/go-yamux v1.2.3/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= +github.com/libp2p/go-yamux v1.3.0/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= +github.com/libp2p/go-yamux v1.3.3/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= +github.com/libp2p/go-yamux v1.3.5/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= +github.com/libp2p/go-yamux v1.3.7/go.mod h1:fr7aVgmdNGJK+N1g+b6DW6VxzbRCjCOejR/hkmpooHE= +github.com/libp2p/go-yamux v1.4.0/go.mod h1:fr7aVgmdNGJK+N1g+b6DW6VxzbRCjCOejR/hkmpooHE= +github.com/libp2p/go-yamux v1.4.1 h1:P1Fe9vF4th5JOxxgQvfbOHkrGqIZniTLf+ddhZp8YTI= +github.com/libp2p/go-yamux v1.4.1/go.mod h1:fr7aVgmdNGJK+N1g+b6DW6VxzbRCjCOejR/hkmpooHE= +github.com/libp2p/go-yamux/v2 v2.0.0/go.mod h1:NVWira5+sVUIU6tu1JWvaRn1dRnG+cawOJiflsAM+7U= +github.com/libp2p/go-yamux/v2 v2.2.0/go.mod h1:3So6P6TV6r75R9jiBpiIKgU/66lOarCZjqROGxzPpPQ= +github.com/libp2p/go-yamux/v3 v3.1.2/go.mod h1:jeLEQgLXqE2YqX1ilAClIfCMDY+0uXQUKmmb/qp0gT4= +github.com/libp2p/go-yamux/v4 v4.0.0 h1:+Y80dV2Yx/kv7Y7JKu0LECyVdMXm1VUoko+VQ9rBfZQ= +github.com/libp2p/go-yamux/v4 v4.0.0/go.mod h1:NWjl8ZTLOGlozrXSOZ/HlfG++39iKNnM5wwmtQP1YB4= +github.com/libp2p/zeroconf/v2 v2.2.0/go.mod h1:fuJqLnUwZTshS3U/bMRJ3+ow/v9oid1n0DmyYyNO1Xs= +github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= +github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= +github.com/lucas-clemente/quic-go v0.19.3/go.mod h1:ADXpNbTQjq1hIzCpB+y/k5iz4n4z4IwqoLb94Kh5Hu8= +github.com/lucas-clemente/quic-go v0.28.1/go.mod h1:oGz5DKK41cJt5+773+BSO9BXDsREY4HLf7+0odGAPO0= +github.com/lucas-clemente/quic-go v0.29.1/go.mod h1:CTcNfLYJS2UuRNB+zcNlgvkjBhxX6Hm3WUxxAQx2mgE= +github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= +github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= +github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= +github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= +github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/marten-seemann/qpack v0.2.1/go.mod h1:F7Gl5L1jIgN1D11ucXefiuJS9UMVP2opoCp2jDKb7wc= +github.com/marten-seemann/qtls v0.10.0/go.mod h1:UvMd1oaYDACI99/oZUYLzMCkBXQVT0aGm99sJhbT8hs= +github.com/marten-seemann/qtls-go1-15 v0.1.1/go.mod h1:GyFwywLKkRt+6mfU99csTEY1joMZz5vmB1WNZH3P81I= +github.com/marten-seemann/qtls-go1-16 v0.1.5/go.mod h1:gNpI2Ol+lRS3WwSOtIUUtRwZEQMXjYK+dQSBFbethAk= +github.com/marten-seemann/qtls-go1-17 v0.1.2/go.mod h1:C2ekUKcDdz9SDWxec1N/MvcXBpaX9l3Nx67XaR84L5s= +github.com/marten-seemann/qtls-go1-18 v0.1.2/go.mod h1:mJttiymBAByA49mhlNZZGrH5u1uXYZJ+RW28Py7f4m4= +github.com/marten-seemann/qtls-go1-19 v0.1.0-beta.1/go.mod h1:5HTDWtVudo/WFsHKRNuOhWlbdjrfs5JHrYb0wIJqGpI= +github.com/marten-seemann/qtls-go1-19 v0.1.0/go.mod h1:5HTDWtVudo/WFsHKRNuOhWlbdjrfs5JHrYb0wIJqGpI= +github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd h1:br0buuQ854V8u83wA0rVZ8ttrq5CpaPZdvrK0LP2lOk= +github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd/go.mod h1:QuCEs1Nt24+FYQEqAAncTDPJIuGs+LxK1MCiFL25pMU= +github.com/marten-seemann/webtransport-go v0.1.1/go.mod h1:kBEh5+RSvOA4troP1vyOVBWK4MIMzDICXVrvCPrYcrM= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= +github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-pointer v0.0.1/go.mod h1:2zXcozF6qYGgmsG+SeTZz3oAbFLdD3OWqnUbNvJZAlc= +github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= +github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= +github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= +github.com/microcosm-cc/bluemonday v1.0.1/go.mod h1:hsXNsILzKxV+sX77C5b8FSuKF00vh2OMYv+xgHpAMF4= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/miekg/dns v1.1.12/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/miekg/dns v1.1.28/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= +github.com/miekg/dns v1.1.31/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= +github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= +github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= +github.com/miekg/dns v1.1.50/go.mod h1:e3IlAVfNqAllflbibAZEWOXOQ+Ynzk/dDozDxY7XnME= +github.com/miekg/dns v1.1.53/go.mod h1:uInx36IzPl7FYnDcMeVWxj9byh7DutNykX4G9Sj60FY= +github.com/miekg/dns v1.1.54 h1:5jon9mWcb0sFJGpnI99tOMhCPyJ+RPVz5b63MQG0VWI= +github.com/miekg/dns v1.1.54/go.mod h1:uInx36IzPl7FYnDcMeVWxj9byh7DutNykX4G9Sj60FY= +github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c h1:bzE/A84HN25pxAuk9Eej1Kz9OUelF97nAc82bDquQI8= +github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c/go.mod h1:0SQS9kMwD2VsyFEB++InYyBJroV/FRmBgcydeSUcJms= +github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b h1:z78hV3sbSMAUoyUMM0I83AUIT6Hu17AWfgjzIbtrYFc= +github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b/go.mod h1:lxPUiZwKoFL8DUUmalo2yJJUCxbPKtm8OKfqr2/FTNU= +github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc h1:PTfri+PuQmWDqERdnNMiD9ZejrlswWrCpBEZgWOiTrc= +github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc/go.mod h1:cGKTAVKx4SxOuR/czcZ/E2RSJ3sfHs8FpHhQ5CWMf9s= +github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ= +github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= +github.com/minio/sha256-simd v0.0.0-20190328051042-05b4dd3047e5/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= +github.com/minio/sha256-simd v0.1.0/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= +github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= +github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= +github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM= +github.com/minio/sha256-simd v1.0.1 h1:6kaan5IFmwTNynnKKpDHe6FWHohJOHhCPchzK49dzMM= +github.com/minio/sha256-simd v1.0.1/go.mod h1:Pz6AKMiUdngCLpeTL/RJY1M9rUuPMYujV5xJjtbRSN8= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/mr-tron/base58 v1.1.0/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= +github.com/mr-tron/base58 v1.1.1/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= +github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= +github.com/mr-tron/base58 v1.1.3/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= +github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= +github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= +github.com/multiformats/go-base32 v0.0.3/go.mod h1:pLiuGC8y0QR3Ue4Zug5UzK9LjgbkL8NSQj0zQ5Nz/AA= +github.com/multiformats/go-base32 v0.0.4/go.mod h1:jNLFzjPZtp3aIARHbJRZIaPuspdH0J6q39uUM5pnABM= +github.com/multiformats/go-base32 v0.1.0 h1:pVx9xoSPqEIQG8o+UbAe7DNi51oej1NtK+aGkbLYxPE= +github.com/multiformats/go-base32 v0.1.0/go.mod h1:Kj3tFY6zNr+ABYMqeUNeGvkIC/UYgtWibDcT0rExnbI= +github.com/multiformats/go-base36 v0.1.0/go.mod h1:kFGE83c6s80PklsHO9sRn2NCoffoRdUUOENyW/Vv6sM= +github.com/multiformats/go-base36 v0.2.0 h1:lFsAbNOGeKtuKozrtBsAkSVhv1p9D0/qedU9rQyccr0= +github.com/multiformats/go-base36 v0.2.0/go.mod h1:qvnKE++v+2MWCfePClUEjE78Z7P2a1UV0xHgWc0hkp4= +github.com/multiformats/go-multiaddr v0.0.1/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.0.2/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.0.4/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.1.0/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.1.1/go.mod h1:aMKBKNEYmzmDmxfX88/vz+J5IU55txyt0p4aiWVohjo= +github.com/multiformats/go-multiaddr v0.2.0/go.mod h1:0nO36NvPpyV4QzvTLi/lafl2y95ncPj0vFwVF6k6wJ4= +github.com/multiformats/go-multiaddr v0.2.1/go.mod h1:s/Apk6IyxfvMjDafnhJgJ3/46z7tZ04iMk5wP4QMGGE= +github.com/multiformats/go-multiaddr v0.2.2/go.mod h1:NtfXiOtHvghW9KojvtySjH5y0u0xW5UouOmQQrn6a3Y= +github.com/multiformats/go-multiaddr v0.3.0/go.mod h1:dF9kph9wfJ+3VLAaeBqo9Of8x4fJxp6ggJGteB8HQTI= +github.com/multiformats/go-multiaddr v0.3.1/go.mod h1:uPbspcUPd5AfaP6ql3ujFY+QWzmBD8uLLL4bXW0XfGc= +github.com/multiformats/go-multiaddr v0.3.3/go.mod h1:lCKNGP1EQ1eZ35Za2wlqnabm9xQkib3fyB+nZXHLag0= +github.com/multiformats/go-multiaddr v0.4.1/go.mod h1:3afI9HfVW8csiF8UZqtpYRiDyew8pRX7qLIGHu9FLuM= +github.com/multiformats/go-multiaddr v0.6.0/go.mod h1:F4IpaKZuPP360tOMn2Tpyu0At8w23aRyVqeK0DbFeGM= +github.com/multiformats/go-multiaddr v0.7.0/go.mod h1:Fs50eBDWvZu+l3/9S6xAE7ZYj6yhxlvaVZjakWN7xRs= +github.com/multiformats/go-multiaddr v0.8.0/go.mod h1:Fs50eBDWvZu+l3/9S6xAE7ZYj6yhxlvaVZjakWN7xRs= +github.com/multiformats/go-multiaddr v0.9.0 h1:3h4V1LHIk5w4hJHekMKWALPXErDfz/sggzwC/NcqbDQ= +github.com/multiformats/go-multiaddr v0.9.0/go.mod h1:mI67Lb1EeTOYb8GQfL/7wpIZwc46ElrvzhYnoJOmTT0= +github.com/multiformats/go-multiaddr-dns v0.0.1/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= +github.com/multiformats/go-multiaddr-dns v0.0.2/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= +github.com/multiformats/go-multiaddr-dns v0.2.0/go.mod h1:TJ5pr5bBO7Y1B18djPuRsVkduhQH2YqYSbxWJzYGdK0= +github.com/multiformats/go-multiaddr-dns v0.3.0/go.mod h1:mNzQ4eTGDg0ll1N9jKPOUogZPoJ30W8a7zk66FQPpdQ= +github.com/multiformats/go-multiaddr-dns v0.3.1 h1:QgQgR+LQVt3NPTjbrLLpsaT2ufAA2y0Mkk+QRVJbW3A= +github.com/multiformats/go-multiaddr-dns v0.3.1/go.mod h1:G/245BRQ6FJGmryJCrOuTdB37AMA5AMOVuO6NY3JwTk= +github.com/multiformats/go-multiaddr-fmt v0.0.1/go.mod h1:aBYjqL4T/7j4Qx+R73XSv/8JsgnRFlf0w2KGLCmXl3Q= +github.com/multiformats/go-multiaddr-fmt v0.1.0 h1:WLEFClPycPkp4fnIzoFoV9FVd49/eQsuaL3/CWe167E= +github.com/multiformats/go-multiaddr-fmt v0.1.0/go.mod h1:hGtDIW4PU4BqJ50gW2quDuPVjyWNZxToGUh/HwTZYJo= +github.com/multiformats/go-multiaddr-net v0.0.1/go.mod h1:nw6HSxNmCIQH27XPGBuX+d1tnvM7ihcFwHMSstNAVUU= +github.com/multiformats/go-multiaddr-net v0.1.0/go.mod h1:5JNbcfBOP4dnhoZOv10JJVkJO0pCCEf8mTnipAo2UZQ= +github.com/multiformats/go-multiaddr-net v0.1.1/go.mod h1:5JNbcfBOP4dnhoZOv10JJVkJO0pCCEf8mTnipAo2UZQ= +github.com/multiformats/go-multiaddr-net v0.1.2/go.mod h1:QsWt3XK/3hwvNxZJp92iMQKME1qHfpYmyIjFVsSOY6Y= +github.com/multiformats/go-multiaddr-net v0.1.3/go.mod h1:ilNnaM9HbmVFqsb/qcNysjCu4PVONlrBZpHIrw/qQuA= +github.com/multiformats/go-multiaddr-net v0.1.4/go.mod h1:ilNnaM9HbmVFqsb/qcNysjCu4PVONlrBZpHIrw/qQuA= +github.com/multiformats/go-multiaddr-net v0.1.5/go.mod h1:ilNnaM9HbmVFqsb/qcNysjCu4PVONlrBZpHIrw/qQuA= +github.com/multiformats/go-multiaddr-net v0.2.0/go.mod h1:gGdH3UXny6U3cKKYCvpXI5rnK7YaOIEOPVDI9tsJbEA= +github.com/multiformats/go-multibase v0.0.1/go.mod h1:bja2MqRZ3ggyXtZSEDKpl0uO/gviWFaSteVbWT51qgs= +github.com/multiformats/go-multibase v0.0.3/go.mod h1:5+1R4eQrT3PkYZ24C3W2Ue2tPwIdYQD509ZjSb5y9Oc= +github.com/multiformats/go-multibase v0.1.1/go.mod h1:ZEjHE+IsUrgp5mhlEAYjMtZwK1k4haNkcaPg9aoe1a8= +github.com/multiformats/go-multibase v0.2.0 h1:isdYCVLvksgWlMW9OZRYJEa9pZETFivncJHmHnnd87g= +github.com/multiformats/go-multibase v0.2.0/go.mod h1:bFBZX4lKCA/2lyOFSAoKH5SS6oPyjtnzK/XTFDPkNuk= +github.com/multiformats/go-multicodec v0.3.0/go.mod h1:qGGaQmioCDh+TeFOnxrbU0DaIPw8yFgAZgFG0V7p1qQ= +github.com/multiformats/go-multicodec v0.3.1-0.20210902112759-1539a079fd61/go.mod h1:1Hj/eHRaVWSXiSNNfcEPcwZleTmdNP81xlxDLnWU9GQ= +github.com/multiformats/go-multicodec v0.3.1-0.20211210143421-a526f306ed2c/go.mod h1:1Hj/eHRaVWSXiSNNfcEPcwZleTmdNP81xlxDLnWU9GQ= +github.com/multiformats/go-multicodec v0.4.1/go.mod h1:1Hj/eHRaVWSXiSNNfcEPcwZleTmdNP81xlxDLnWU9GQ= +github.com/multiformats/go-multicodec v0.5.0/go.mod h1:DiY2HFaEp5EhEXb/iYzVAunmyX/aSFMxq2KMKfWEues= +github.com/multiformats/go-multicodec v0.6.0/go.mod h1:GUC8upxSBE4oG+q3kWZRw/+6yC1BqO550bjhWsJbZlw= +github.com/multiformats/go-multicodec v0.7.0/go.mod h1:GUC8upxSBE4oG+q3kWZRw/+6yC1BqO550bjhWsJbZlw= +github.com/multiformats/go-multicodec v0.8.0/go.mod h1:GUC8upxSBE4oG+q3kWZRw/+6yC1BqO550bjhWsJbZlw= +github.com/multiformats/go-multicodec v0.8.1/go.mod h1:L3QTQvMIaVBkXOXXtVmYE+LI16i14xuaojr/H7Ai54k= +github.com/multiformats/go-multicodec v0.9.0 h1:pb/dlPnzee/Sxv/j4PmkDRxCOi3hXTz3IbPKOXWJkmg= +github.com/multiformats/go-multicodec v0.9.0/go.mod h1:L3QTQvMIaVBkXOXXtVmYE+LI16i14xuaojr/H7Ai54k= +github.com/multiformats/go-multihash v0.0.1/go.mod h1:w/5tugSrLEbWqlcgJabL3oHFKTwfvkofsjW2Qa1ct4U= +github.com/multiformats/go-multihash v0.0.5/go.mod h1:lt/HCbqlQwlPBz7lv0sQCdtfcMtlJvakRUn/0Ual8po= +github.com/multiformats/go-multihash v0.0.8/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= +github.com/multiformats/go-multihash v0.0.10/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= +github.com/multiformats/go-multihash v0.0.13/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= +github.com/multiformats/go-multihash v0.0.14/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= +github.com/multiformats/go-multihash v0.0.15/go.mod h1:D6aZrWNLFTV/ynMpKsNtB40mJzmCl4jb1alC0OvHiHg= +github.com/multiformats/go-multihash v0.1.0/go.mod h1:RJlXsxt6vHGaia+S8We0ErjhojtKzPP2AH4+kYM7k84= +github.com/multiformats/go-multihash v0.2.0/go.mod h1:WxoMcYG85AZVQUyRyo9s4wULvW5qrI9vb2Lt6evduFc= +github.com/multiformats/go-multihash v0.2.1/go.mod h1:WxoMcYG85AZVQUyRyo9s4wULvW5qrI9vb2Lt6evduFc= +github.com/multiformats/go-multihash v0.2.2/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM= +github.com/multiformats/go-multihash v0.2.3 h1:7Lyc8XfX/IY2jWb/gI7JP+o7JEq9hOa7BFvVU9RSh+U= +github.com/multiformats/go-multihash v0.2.3/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM= +github.com/multiformats/go-multistream v0.1.0/go.mod h1:fJTiDfXJVmItycydCnNx4+wSzZ5NwG2FEVAI30fiovg= +github.com/multiformats/go-multistream v0.1.1/go.mod h1:KmHZ40hzVxiaiwlj3MEbYgK9JFk2/9UktWZAF54Du38= +github.com/multiformats/go-multistream v0.2.0/go.mod h1:5GZPQZbkWOLOn3J2y4Y99vVW7vOfsAflxARk3x14o6k= +github.com/multiformats/go-multistream v0.2.1/go.mod h1:5GZPQZbkWOLOn3J2y4Y99vVW7vOfsAflxARk3x14o6k= +github.com/multiformats/go-multistream v0.2.2/go.mod h1:UIcnm7Zuo8HKG+HkWgfQsGL+/MIEhyTqbODbIUwSXKs= +github.com/multiformats/go-multistream v0.3.3/go.mod h1:ODRoqamLUsETKS9BNcII4gcRsJBU5VAwRIv7O39cEXg= +github.com/multiformats/go-multistream v0.4.0/go.mod h1:BS6ZSYcA4NwYEaIMeCtpJydp2Dc+fNRA6uJMSu/m8+4= +github.com/multiformats/go-multistream v0.4.1 h1:rFy0Iiyn3YT0asivDUIR05leAdwZq3de4741sbiSdfo= +github.com/multiformats/go-multistream v0.4.1/go.mod h1:Mz5eykRVAjJWckE2U78c6xqdtyNUEhKSM0Lwar2p77Q= +github.com/multiformats/go-varint v0.0.1/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= +github.com/multiformats/go-varint v0.0.2/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= +github.com/multiformats/go-varint v0.0.5/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= +github.com/multiformats/go-varint v0.0.6/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= +github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/nEGOHFS8= +github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU= +github.com/multiversx/concurrent-map v0.1.4 h1:hdnbM8VE4b0KYJaGY5yJS2aNIW9TFFsUYwbO0993uPI= +github.com/multiversx/concurrent-map v0.1.4/go.mod h1:8cWFRJDOrWHOTNSqgYCUvwT7c7eFQ4U2vKMOp4A/9+o= +github.com/multiversx/mx-chain-core-go v1.1.30/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= +github.com/multiversx/mx-chain-core-go v1.1.37 h1:2EYoUWjr+8zUYEt3TBMnQ+0UUZwDb71HA+KBwqDUpVQ= +github.com/multiversx/mx-chain-core-go v1.1.37/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= +github.com/multiversx/mx-chain-crypto-go v1.2.5/go.mod h1:teqhNyWEqfMPgNn8sgWXlgtJ1a36jGCnhs/tRpXW6r4= +github.com/multiversx/mx-chain-crypto-go v1.2.6 h1:yxsjAQGh62los+iYmORMfh3w9qen0xbYlmwU0juNSeg= +github.com/multiversx/mx-chain-crypto-go v1.2.6/go.mod h1:rOj0Rr19HTOYt9YTeym7RKxlHt91NXln3LVKjHKVmA0= +github.com/multiversx/mx-chain-es-indexer-go v1.3.20 h1:/82eDBsjlEm6dNgW44WQOBqKByRAWr3n6OWjYpi43vE= +github.com/multiversx/mx-chain-es-indexer-go v1.3.20/go.mod h1:B8ahv6M93qHallA9fN+yknQFzdrDhHDgVlCy/0PVcG0= +github.com/multiversx/mx-chain-go v1.5.12 h1:DIgq+Gwu8lzpaSmusX12F9N9m6P7XA4ZsoBbtF5qhVs= +github.com/multiversx/mx-chain-go v1.5.12/go.mod h1:wD4sqoF8rkX+8qTrUMHL/xWr24r2Em9nGtwlExW78A0= +github.com/multiversx/mx-chain-logger-go v1.0.11 h1:DFsHa+sc5fKwhDR50I8uBM99RTDTEW68ESyr5ALRDwE= +github.com/multiversx/mx-chain-logger-go v1.0.11/go.mod h1:1srDkP0DQucWQ+rYfaq0BX2qLnULsUdRPADpYUTM6dA= +github.com/multiversx/mx-chain-p2p-go v1.0.17 h1:ijAwm/J4TqcDJvbWpGW9cQDNzfeaN/KfJYEVaTvM5c0= +github.com/multiversx/mx-chain-p2p-go v1.0.17/go.mod h1:Z7zPjv7adFUembS0XgxfecvvJTJOaGy09jT5JGqFyf0= +github.com/multiversx/mx-chain-storage-go v1.0.7 h1:UqLo/OLTD3IHiE/TB/SEdNRV1GG2f1R6vIP5ehHwCNw= +github.com/multiversx/mx-chain-storage-go v1.0.7/go.mod h1:gtKoV32Cg2Uy8deHzF8Ud0qAl0zv92FvWgPSYIP0Zmg= +github.com/multiversx/mx-chain-vm-common-go v1.3.40/go.mod h1:r+aILrY07ue89PH+D+B+Pp0viO1U3kN98t1pXneSgkE= +github.com/multiversx/mx-chain-vm-common-go v1.3.41/go.mod h1:r+aILrY07ue89PH+D+B+Pp0viO1U3kN98t1pXneSgkE= +github.com/multiversx/mx-chain-vm-common-go v1.3.42 h1:avhgUwi6f+wpHqaBk76j6islLzUlSRBXwisKoZnUXpk= +github.com/multiversx/mx-chain-vm-common-go v1.3.42/go.mod h1:r+aILrY07ue89PH+D+B+Pp0viO1U3kN98t1pXneSgkE= +github.com/multiversx/mx-chain-vm-v1_2-go v1.2.54 h1:c+S0xhfOMtwWEJHMqoPf8plF3sLnz3euPj4Rd/wN2UQ= +github.com/multiversx/mx-chain-vm-v1_2-go v1.2.54/go.mod h1:iuM50SqgelbKYNEm9s4BZcWczIgyCJIGFKajGUCDVm0= +github.com/multiversx/mx-chain-vm-v1_3-go v1.3.55 h1:hmo/QQ/qY+WgsMQeBODIX+tEnM/XIf7izNs9+WbKg4Y= +github.com/multiversx/mx-chain-vm-v1_3-go v1.3.55/go.mod h1:mgr3T06eLGFyDIk0BfLguNicejnDsRn1hi0ClURViEw= +github.com/multiversx/mx-chain-vm-v1_4-go v1.4.81 h1:PoUugtvMIZOvsDB2FrQa54XDnRz4nFtBvPkn0PsvF3I= +github.com/multiversx/mx-chain-vm-v1_4-go v1.4.81/go.mod h1:MIGlcQOBQIa1ujklUl949Bw7jseyvYDB1nmuCyXw/YQ= +github.com/multiversx/mx-components-big-int v0.1.1 h1:695mYPKYOrmGEGgRH4/pZruDoe3CPP1LHrBxKfvj5l4= +github.com/multiversx/mx-components-big-int v0.1.1/go.mod h1:0QrcFdfeLgJ/am10HGBeH0G0DNF+0Qx1E4DS/iozQls= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= +github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= +github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= +github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= +github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= +github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo= +github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nsf/termbox-go v0.0.0-20190121233118-02980233997d/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= +github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= +github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= +github.com/onsi/ginkgo v1.16.2/go.mod h1:CObGmKUOKaSC0RjmoAK7tKyn4Azo5P2IWuoMnvwxz1E= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU= +github.com/onsi/ginkgo/v2 v2.1.6/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk= +github.com/onsi/ginkgo/v2 v2.2.0/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk= +github.com/onsi/ginkgo/v2 v2.3.0/go.mod h1:Eew0uilEqZmIEZr8JrvYlvOM7Rr6xzTmMV8AyFNU9d0= +github.com/onsi/ginkgo/v2 v2.4.0/go.mod h1:iHkDK1fKGcBoEHT5W7YBq4RFWaQulw+caOMkAt4OrFo= +github.com/onsi/ginkgo/v2 v2.5.0/go.mod h1:Luc4sArBICYCS8THh8v3i3i5CuSZO+RaQRaJoeNwomw= +github.com/onsi/ginkgo/v2 v2.5.1/go.mod h1:63DOGlLAH8+REH8jUGdL3YpCpu7JODesutUjdENfUAc= +github.com/onsi/ginkgo/v2 v2.7.0/go.mod h1:yjiuMwPokqY1XauOgju45q3sJt6VzQ/Fict1LFVcsAo= +github.com/onsi/ginkgo/v2 v2.8.1/go.mod h1:N1/NbDngAFcSLdyZ+/aYTYGSlq9qMCS/cNKGJjy+csc= +github.com/onsi/ginkgo/v2 v2.9.0/go.mod h1:4xkjoL/tZv4SMWeww56BU5kAt19mVB47gTWxmrTcxyk= +github.com/onsi/ginkgo/v2 v2.9.1/go.mod h1:FEcmzVcCHl+4o9bQZVab+4dC9+j+91t2FHSzmGAPfuo= +github.com/onsi/ginkgo/v2 v2.9.2/go.mod h1:WHcJJG2dIlcCqVfBAwUCrJxSPFb6v4azBwgxeMeDuts= +github.com/onsi/ginkgo/v2 v2.9.5/go.mod h1:tvAoo1QUJwNEU2ITftXTpR7R1RbCzoZUOs3RonqW57k= +github.com/onsi/ginkgo/v2 v2.9.7 h1:06xGQy5www2oN160RtEZoTvnP2sPhEfePYmCDc2szss= +github.com/onsi/ginkgo/v2 v2.9.7/go.mod h1:cxrmXWykAwTwhQsJOPfdIDiJ+l2RYq7U8hFU+M/1uw0= +github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.9.0/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.13.0/go.mod h1:lRk9szgn8TxENtWd0Tp4c3wjlRfMTMH27I+3Je41yGY= +github.com/onsi/gomega v1.16.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +github.com/onsi/gomega v1.20.1/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= +github.com/onsi/gomega v1.21.1/go.mod h1:iYAIXgPSaDHak0LCMA+AWBpIKBr8WZicMxnE8luStNc= +github.com/onsi/gomega v1.22.1/go.mod h1:x6n7VNe4hw0vkyYUM4mjIXx3JbLiPaBPNgB7PRQ1tuM= +github.com/onsi/gomega v1.24.0/go.mod h1:Z/NWtiqwBrwUt4/2loMmHL63EDLnYHmVbuBpDr2vQAg= +github.com/onsi/gomega v1.24.1/go.mod h1:3AOiACssS3/MajrniINInwbfOOtfZvplPzuRSmvt1jM= +github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= +github.com/onsi/gomega v1.27.1/go.mod h1:aHX5xOykVYzWOV4WqQy0sy8BQptgukenXpCXfadcIAw= +github.com/onsi/gomega v1.27.3/go.mod h1:5vG284IBtfDAmDyrK+eGyZmUgUlmi+Wngqo557cZ6Gw= +github.com/onsi/gomega v1.27.4/go.mod h1:riYq/GJKh8hhoM01HN6Vmuy93AarCXCBGpvFDK3q3fQ= +github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg= +github.com/onsi/gomega v1.27.7 h1:fVih9JD6ogIiHUN6ePK7HJidyEDpWGVB5mzM7cWNXoU= +github.com/onsi/gomega v1.27.7/go.mod h1:1p8OOlwo2iUUDsHnOrjE5UKYJ+e3W8eQ3qSlRahPmr4= +github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= +github.com/opencontainers/runtime-spec v1.0.2 h1:UfAcuLBJB9Coz72x1hgl8O5RVzTdNiaglX6v2DM6FI0= +github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= +github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= +github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= +github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= +github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= +github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= +github.com/openzipkin/zipkin-go v0.1.1/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8= +github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= +github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/openzipkin/zipkin-go v0.4.1/go.mod h1:qY0VqDSN1pOBN94dBc6w2GJlWLiovAyg7Qt6/I9HecM= +github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 h1:onHthvaw9LFnH4t2DcNVpwGmV9E1BkGknEliJkfwQj0= +github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58/go.mod h1:DXv8WO4yhMYhSNPKjeNKa5WY9YCIEBRbNzFFPJbWO6Y= +github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= +github.com/pborman/uuid v1.2.1 h1:+ZZIw58t/ozdjRaXh/3awHfmWRbzYxJoAdNJxe/3pvw= +github.com/pborman/uuid v1.2.1/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pelletier/go-toml v1.9.3 h1:zeC5b1GviRUyKYd6OJPvBU/mcVDVoL1OhT17FCt5dSQ= +github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml/v2 v2.0.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= +github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= +github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= +github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= +github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9/go.mod h1:x3N5drFsm2uilKKuuYo6LdyD8vZAW55sH/9w+pbo1sw= +github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY= +github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= +github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= +github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.1.17/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= +github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= +github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/polydawn/refmt v0.0.0-20190221155625-df39d6c2d992/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= +github.com/polydawn/refmt v0.0.0-20190408063855-01bf1e26dd14/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= +github.com/polydawn/refmt v0.0.0-20190807091052-3d65705ee9f1/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= +github.com/polydawn/refmt v0.0.0-20201211092308-30ac6d18308e/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= +github.com/polydawn/refmt v0.89.0 h1:ADJTApkvkeBZsN0tBTx8QjpD9JkmxbKp0cxfr9qszm4= +github.com/polydawn/refmt v0.89.0/go.mod h1:/zvteZs/GwLtCgZ4BL6CBsk9IKIlexP43ObX9AxTqTw= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.10.0/go.mod h1:WJM3cc3yu7XKBKa/I8WeZm+V3eltZnBwfENSU7mdogU= +github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= +github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= +github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY= +github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= +github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.18.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= +github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= +github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= +github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= +github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= +github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= +github.com/quic-go/qpack v0.4.0 h1:Cr9BXA1sQS2SmDUWjSofMPNKmvF6IiIfDRmgU0w1ZCo= +github.com/quic-go/qpack v0.4.0/go.mod h1:UZVnYIfi5GRk+zI9UMaCPsmZ2xKJP7XBUvVyT1Knj9A= +github.com/quic-go/qtls-go1-18 v0.2.0/go.mod h1:moGulGHK7o6O8lSPSZNoOwcLvJKJ85vVNc7oJFD65bc= +github.com/quic-go/qtls-go1-19 v0.2.0/go.mod h1:ySOI96ew8lnoKPtSqx2BlI5wCpUVPT05RMAlajtnyOI= +github.com/quic-go/qtls-go1-19 v0.2.1/go.mod h1:ySOI96ew8lnoKPtSqx2BlI5wCpUVPT05RMAlajtnyOI= +github.com/quic-go/qtls-go1-19 v0.3.2 h1:tFxjCFcTQzK+oMxG6Zcvp4Dq8dx4yD3dDiIiyc86Z5U= +github.com/quic-go/qtls-go1-19 v0.3.2/go.mod h1:ySOI96ew8lnoKPtSqx2BlI5wCpUVPT05RMAlajtnyOI= +github.com/quic-go/qtls-go1-20 v0.1.0/go.mod h1:JKtK6mjbAVcUTN/9jZpvLbGxvdWIKS8uT7EiStoU1SM= +github.com/quic-go/qtls-go1-20 v0.1.1/go.mod h1:JKtK6mjbAVcUTN/9jZpvLbGxvdWIKS8uT7EiStoU1SM= +github.com/quic-go/qtls-go1-20 v0.2.2 h1:WLOPx6OY/hxtTxKV1Zrq20FtXtDEkeY00CGQm8GEa3E= +github.com/quic-go/qtls-go1-20 v0.2.2/go.mod h1:JKtK6mjbAVcUTN/9jZpvLbGxvdWIKS8uT7EiStoU1SM= +github.com/quic-go/quic-go v0.32.0/go.mod h1:/fCsKANhQIeD5l76c2JFU+07gVE3KaA0FP+0zMWwfwo= +github.com/quic-go/quic-go v0.33.0 h1:ItNoTDN/Fm/zBlq769lLJc8ECe9gYaW40veHCCco7y0= +github.com/quic-go/quic-go v0.33.0/go.mod h1:YMuhaAV9/jIu0XclDXwZPAsP/2Kgr5yMYhe9oxhhOFA= +github.com/quic-go/webtransport-go v0.5.1/go.mod h1:OhmmgJIzTTqXK5xvtuX0oBpLV2GkLWNDA+UeTGJXErU= +github.com/quic-go/webtransport-go v0.5.2/go.mod h1:OhmmgJIzTTqXK5xvtuX0oBpLV2GkLWNDA+UeTGJXErU= +github.com/quic-go/webtransport-go v0.5.3 h1:5XMlzemqB4qmOlgIus5zB45AcZ2kCgCy2EptUrfOPWU= +github.com/quic-go/webtransport-go v0.5.3/go.mod h1:OhmmgJIzTTqXK5xvtuX0oBpLV2GkLWNDA+UeTGJXErU= +github.com/rabbitmq/amqp091-go v1.5.0/go.mod h1:JsV0ofX5f1nwOGafb8L5rBItt9GyhfQfcJj+oyz0dGg= +github.com/raulk/go-watchdog v1.3.0 h1:oUmdlHxdkXRJlwfG0O9omj8ukerm8MEQavSiDTEtBsk= +github.com/raulk/go-watchdog v1.3.0/go.mod h1:fIvOnLbF0b0ZwkB9YU4mOW9Did//4vPZtDqv66NfsMU= +github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= +github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.21.0/go.mod h1:ZPhntP/xmq1nnND05hhpAh2QMhSsA4UN3MGZ6O2J3hM= +github.com/rs/zerolog v1.28.0/go.mod h1:NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0= +github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w= +github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/samber/lo v1.36.0/go.mod h1:HLeWcJRRyLKp3+/XBJvOrerCQn9mhdKMHyd7IRlgeQ8= +github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= +github.com/shirou/gopsutil v3.21.11+incompatible h1:+1+c1VGhc88SSonWP6foOcLhvnKlUeu/erjjvaPEYiI= +github.com/shirou/gopsutil v3.21.11+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= +github.com/shirou/gopsutil/v3 v3.21.2/go.mod h1:ghfMypLDrFSWN2c9cDYFLHyynQ+QUht0cv/18ZqVczw= +github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod h1:XhFIlyj5a1fBNx5aJTbKoIq0mNaPvOagO+HjB3EtxrY= +github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod h1:5u70Mqkb5O5cxEA8nxTsgrgLehJeAw6Oc4Ab1c/P1HM= +github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470/go.mod h1:2dOwnU2uBioM+SGy2aZoq1f/Sd1l9OkAeAUvjSyvgU0= +github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= +github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= +github.com/shurcooL/gofontwoff v0.0.0-20180329035133-29b52fc0a18d/go.mod h1:05UtEgK5zq39gLST6uB0cf3NEHjETfB4Fgr3Gx5R9Vw= +github.com/shurcooL/gopherjslib v0.0.0-20160914041154-feb6d3990c2c/go.mod h1:8d3azKNyqcHP1GaQE/c6dDgjkgSx2BZ4IoEi4F1reUI= +github.com/shurcooL/highlight_diff v0.0.0-20170515013008-09bb4053de1b/go.mod h1:ZpfEhSmds4ytuByIcDnOLkTHGUI6KNqRNPDLHDk+mUU= +github.com/shurcooL/highlight_go v0.0.0-20181028180052-98c3abbbae20/go.mod h1:UDKB5a1T23gOMUJrI+uSuH0VRDStOiUVSjBTRDVBVag= +github.com/shurcooL/home v0.0.0-20181020052607-80b7ffcb30f9/go.mod h1:+rgNQw2P9ARFAs37qieuu7ohDNQ3gds9msbT2yn85sg= +github.com/shurcooL/htmlg v0.0.0-20170918183704-d01228ac9e50/go.mod h1:zPn1wHpTIePGnXSHpsVPWEktKXHr6+SS6x/IKRb7cpw= +github.com/shurcooL/httperror v0.0.0-20170206035902-86b7830d14cc/go.mod h1:aYMfkZ6DWSJPJ6c4Wwz3QtW22G7mf/PEgaB9k/ik5+Y= +github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= +github.com/shurcooL/httpgzip v0.0.0-20180522190206-b1c53ac65af9/go.mod h1:919LwcH0M7/W4fcZ0/jy0qGght1GIhqyS/EgWGH2j5Q= +github.com/shurcooL/issues v0.0.0-20181008053335-6292fdc1e191/go.mod h1:e2qWDig5bLteJ4fwvDAc2NHzqFEthkqn7aOZAOpj+PQ= +github.com/shurcooL/issuesapp v0.0.0-20180602232740-048589ce2241/go.mod h1:NPpHK2TI7iSaM0buivtFUc9offApnI0Alt/K8hcHy0I= +github.com/shurcooL/notifications v0.0.0-20181007000457-627ab5aea122/go.mod h1:b5uSkrEVM1jQUspwbixRBhaIjIzL2xazXp6kntxYle0= +github.com/shurcooL/octicon v0.0.0-20181028054416-fa4f57f9efb2/go.mod h1:eWdoE5JD4R5UVWDucdOPg1g2fqQRq78IQa9zlOV1vpQ= +github.com/shurcooL/reactions v0.0.0-20181006231557-f2e0b4ca5b82/go.mod h1:TCR1lToEk4d2s07G3XGfz2QrgHXg4RJBvjrOozvoWfk= +github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537/go.mod h1:QJTqeLYEDaXHZDBsXlPCDqdhQuJkuw4NOtaxYe3xii4= +github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133/go.mod h1:hKmq5kWdCj2z2KEozexVbfEZIWiTjhE0+UjmZgPqehw= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/assertions v1.0.0/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUrLW/7eUrw0BU5VaoM= +github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= +github.com/smartystreets/assertions v1.13.0 h1:Dx1kYM01xsSqKPno3aqLnrwac2LetPvN23diwyr69Qs= +github.com/smartystreets/assertions v1.13.0/go.mod h1:wDmR7qL282YbGsPy6H/yAsesrxfxaaSlJazyFLYVFx8= +github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa/go.mod h1:2RVY1rIf+2J2o/IM9+vPq9RzmHDSseB7FoXiSNIUsoU= +github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hgR6gDIPg= +github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM= +github.com/smola/gocompat v0.2.0/go.mod h1:1B0MlxbmoZNo3h8guHp8HztB3BSYR5itql9qtVc0ypY= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= +github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE= +github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA= +github.com/spacemonkeygo/openssl v0.0.0-20181017203307-c2dcc5cca94a/go.mod h1:7AyxJNCJ7SBZ1MfVQCWD6Uqo2oubI2Eq2y2eqf+A5r0= +github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572/go.mod h1:w0SWMsp6j9O/dk4/ZpIhL+3CkG8ofA2vuv7k+ltqUMc= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= +github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= +github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= +github.com/src-d/envconfig v1.0.0/go.mod h1:Q9YQZ7BKITldTBnoxsE5gOeB5y66RyPXeue/R4aaNBc= +github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= +github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= +github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= +github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA= +github.com/thoas/go-funk v0.9.1/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q= +github.com/tidwall/gjson v1.14.0 h1:6aeJ0bzojgWLa82gDQHcx3S0Lr/O51I9bJ5nv6JFx5w= +github.com/tidwall/gjson v1.14.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= +github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= +github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/tj/assert v0.0.3/go.mod h1:Ne6X72Q+TB1AteidzQncjw9PabbMp4PBMZ1k+vd1Pvk= +github.com/tklauser/go-sysconf v0.3.4 h1:HT8SVixZd3IzLdfs/xlpq0jeSfTX57g1v6wB1EuzV7M= +github.com/tklauser/go-sysconf v0.3.4/go.mod h1:Cl2c8ZRWfHD5IrfHo9VN+FX9kCFjIOyVklgXycLB6ek= +github.com/tklauser/numcpus v0.2.1 h1:ct88eFm+Q7m2ZfXJdan1xYoXKlmwsfP+k88q05KvlZc= +github.com/tklauser/numcpus v0.2.1/go.mod h1:9aU+wOc6WjUIZEwWMP62PL/41d65P+iks1gBkr4QyP8= +github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= +github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= +github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8= +github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U= +github.com/ucarion/urlpath v0.0.0-20200424170820-7ccc79b76bbb/go.mod h1:ikPs9bRWicNw3S7XpJ8sK/smGwU9WcSVU3dy9qahYBM= +github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= +github.com/ugorji/go v1.2.7 h1:qYhyWUUd6WbiM+C6JZAUkIJt/1WrjzNHY9+KCIjVqTo= +github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= +github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= +github.com/ugorji/go/codec v1.2.9/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= +github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= +github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/urfave/cli v1.22.5/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/urfave/cli v1.22.9/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/urfave/cli v1.22.10/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/urfave/cli/v2 v2.11.0/go.mod h1:f8iq5LtQ/bLxafbdBSLPPNsgaW0l/2fYYEHhAyPlwvo= +github.com/viant/assertly v0.4.8/go.mod h1:aGifi++jvCrUaklKEKT0BU95igDNaqkvz+49uaYMPRU= +github.com/viant/toolbox v0.24.0/go.mod h1:OxMCG57V0PXuIP2HNQrtJf2CjqdmbrOx5EkMILuUhzM= +github.com/wangjia184/sortedset v0.0.0-20160527075905-f5d03557ba30/go.mod h1:YkocrP2K2tcw938x9gCOmT5G5eCD6jsTz0SZuyAqwIE= +github.com/warpfork/go-testmark v0.3.0/go.mod h1:jhEf8FVxd+F17juRubpmut64NEG6I2rgkUhlcqqXwE0= +github.com/warpfork/go-testmark v0.10.0/go.mod h1:jhEf8FVxd+F17juRubpmut64NEG6I2rgkUhlcqqXwE0= +github.com/warpfork/go-testmark v0.11.0/go.mod h1:jhEf8FVxd+F17juRubpmut64NEG6I2rgkUhlcqqXwE0= +github.com/warpfork/go-wish v0.0.0-20180510122957-5ad1f5abf436/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= +github.com/warpfork/go-wish v0.0.0-20190328234359-8b3e70f8e830/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= +github.com/warpfork/go-wish v0.0.0-20200122115046-b9ea61034e4a/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= +github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0 h1:GDDkbFiaK8jsSDJfjId/PEGEShv6ugrt4kYsC5UIDaQ= +github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= +github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc/go.mod h1:r45hJU7yEoA81k6MWNhpMj/kms0n14dkzkxYHoB96UM= +github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11/go.mod h1:Wlo/SzPmxVp6vXpGt/zaXhHH0fn4IxgqZc82aKg6bpQ= +github.com/whyrusleeping/cbor-gen v0.0.0-20200123233031-1cdf64d27158/go.mod h1:Xj/M2wWU+QdTdRbu/L/1dIZY8/Wb2K9pAhtroQuxJJI= +github.com/whyrusleeping/cbor-gen v0.0.0-20221220214510-0333c149dec0/go.mod h1:fgkXqYy7bV2cFeIEOkVTZS/WjXARfBqSH6Q2qHL33hQ= +github.com/whyrusleeping/cbor-gen v0.0.0-20230126041949-52956bd4c9aa/go.mod h1:fgkXqYy7bV2cFeIEOkVTZS/WjXARfBqSH6Q2qHL33hQ= +github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f/go.mod h1:p9UJB6dDgdPgMJZs7UjUOdulKyRr9fqkS+6JKAInPy8= +github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 h1:EKhdznlJHPMoKr0XTrX+IlJs1LH3lyx2nfr1dOlZ79k= +github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1/go.mod h1:8UvriyWtv5Q5EOgjHaSseUEdkQfvwFv1I/In/O2M9gc= +github.com/whyrusleeping/go-logging v0.0.0-20170515211332-0457bb6b88fc/go.mod h1:bopw91TMyo8J3tvftk8xmU2kPmlrt4nScJQZU2hE5EM= +github.com/whyrusleeping/go-logging v0.0.1/go.mod h1:lDPYj54zutzG1XYfHAhcc7oNXEburHQBn+Iqd4yS4vE= +github.com/whyrusleeping/go-notifier v0.0.0-20170827234753-097c5d47330f/go.mod h1:cZNvX9cFybI01GriPRMXDtczuvUhgbcYr9iCGaNlRv8= +github.com/whyrusleeping/mafmt v1.2.8/go.mod h1:faQJFPbLSxzD9xpA02ttW/tS9vZykNvXwGvqIpk20FA= +github.com/whyrusleeping/mdns v0.0.0-20180901202407-ef14215e6b30/go.mod h1:j4l84WPFclQPj320J9gp0XwNKBb3U0zt5CBqjPp22G4= +github.com/whyrusleeping/mdns v0.0.0-20190826153040-b9b60ed33aa9/go.mod h1:j4l84WPFclQPj320J9gp0XwNKBb3U0zt5CBqjPp22G4= +github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7/go.mod h1:X2c0RVCI1eSUFI8eLcY3c0423ykwiUdxLJtkDvruhjI= +github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee h1:lYbXeSvJi5zk5GLKVuid9TVjS9a0OmLIDKTfoZBL6Ow= +github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee/go.mod h1:m2aV4LZI4Aez7dP5PMyVKEHhUyEJ/RjmPEDOpDvudHg= +github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE= +github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= +github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= +github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= +github.com/xhit/go-str2duration v1.2.0/go.mod h1:3cPSlfZlUHVlneIVfePFWcJZsuwf+P1v2SRTV4cUmp4= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xlab/treeprint v1.0.0/go.mod h1:IoImgRak9i3zJyuxOKUP1v4UZd1tMoKkq/Cimt1uhCg= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg= +github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= +go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA= +go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.1/go.mod h1:Ap50jQcDJrx6rB6VgeeFPtuPIf3wMRvRfrfYDO6+BmA= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/otel v0.20.0/go.mod h1:Y3ugLH2oa81t5QO+Lty+zXf8zC9L26ax4Nzoxm/dooo= +go.opentelemetry.io/otel v1.7.0/go.mod h1:5BdUoMIz5WEs0vt0CUEMtSSaTSHBBVwrhnz7+nrD5xk= +go.opentelemetry.io/otel v1.13.0/go.mod h1:FH3RtdZCzRkJYFTCsAKDy9l/XYjMdNv6QrkFFB8DvVg= +go.opentelemetry.io/otel v1.14.0 h1:/79Huy8wbf5DnIPhemGB+zEPVwnN6fuQybr/SRXa6hM= +go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= +go.opentelemetry.io/otel/exporters/jaeger v1.14.0/go.mod h1:4Ay9kk5vELRrbg5z4cpP9EtmQRFap2Wb0woPG4lujZA= +go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.14.0/go.mod h1:UFG7EBMRdXyFstOwH028U0sVf+AvukSGhF0g8+dmNG8= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.14.0/go.mod h1:HrbCVv40OOLTABmOn1ZWty6CHXkU8DK/Urc43tHug70= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.14.0/go.mod h1:5w41DY6S9gZrbjuq6Y+753e96WfPha5IcsOSZTtullM= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.14.0/go.mod h1:+N7zNjIJv4K+DeX67XXET0P+eIciESgaFDBqh+ZJFS4= +go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.14.0/go.mod h1:oCslUcizYdpKYyS9e8srZEqM6BB8fq41VJBjLAE6z1w= +go.opentelemetry.io/otel/exporters/zipkin v1.14.0/go.mod h1:RcjvOAcvhzcufQP8aHmzRw1gE9g/VEZufDdo2w+s4sk= +go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= +go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= +go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= +go.opentelemetry.io/otel/sdk v1.14.0/go.mod h1:bwIC5TjrNG6QDCHNWvW4HLHtUQ4I+VQDsnjhvyZCALM= +go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16gUEi0Nf1iBdgw= +go.opentelemetry.io/otel/trace v1.7.0/go.mod h1:fzLSB9nqR2eXzxPXb2JW9IKE+ScyXA48yyE4TNvoHqU= +go.opentelemetry.io/otel/trace v1.13.0/go.mod h1:muCvmmO9KKpvuXSf3KKAXXB2ygNYHQ+ZfI5X08d3tds= +go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M= +go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.opentelemetry.io/proto/otlp v0.15.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= +go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= +go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= +go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/dig v1.15.0/go.mod h1:pKHs0wMynzL6brANhB2hLMro+zalv1osARTviTcqHLM= +go.uber.org/dig v1.16.1/go.mod h1:557JTAUZT5bUK0SvCwikmLPPtdQhfvLYtO5tJgQSbnk= +go.uber.org/dig v1.17.0 h1:5Chju+tUvcC+N7N6EV08BJz41UZuO3BmHcN4A287ZLI= +go.uber.org/dig v1.17.0/go.mod h1:rTxpf7l5I0eBTlE6/9RL+lDybC7WFwY2QH55ZSjy1mU= +go.uber.org/fx v1.18.2/go.mod h1:g0V1KMQ66zIRk8bLu3Ea5Jt2w/cHlOIp4wdRsgh0JaY= +go.uber.org/fx v1.19.2 h1:SyFgYQFr1Wl0AYstE8vyYIzP4bFz2URrScjwC4cwUvY= +go.uber.org/fx v1.19.2/go.mod h1:43G1VcqSzbIv77y00p1DRAsyZS8WdzuYdhZXmEUkMyQ= +go.uber.org/goleak v1.0.0/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= +go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= +go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= +go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= +go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= +go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= +go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= +go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= +go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= +go.uber.org/zap v1.14.1/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= +go.uber.org/zap v1.15.0/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= +go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= +go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= +go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= +go.uber.org/zap v1.22.0/go.mod h1:H4siCOZOrAolnUPJEkfaSjDqyP+BDS0DdDWzwcgt3+U= +go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY= +go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= +go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE= +golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k= +golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw= +golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190225124518-7f87c0fbb88b/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190618222545-ea8f1a30c443/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200423211502-4bdfaf469ed5/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200602180216-279210d13fed/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= +golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= +golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= +golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20221010152910-d6f0a8c073c2/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= +golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= +golang.org/x/crypto v0.4.0/go.mod h1:3quD/ATkf6oY+rnes5c3ExXTbLc8mueNue5/DoinL80= +golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU= +golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= +golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= +golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3/go.mod h1:NOZ3BPKG0ec/BKJQgnvsSFpcKLM5xXVWnvZS97DWHgE= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20210615023648-acb5c1269671/go.mod h1:DVyR6MI7P4kEQgvZJSj1fQGrWIi2RzIrfYWycwheUAc= +golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE= +golang.org/x/exp v0.0.0-20220426173459-3bcf042a4bf5/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE= +golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod h1:Kr81I6Kryrl9sr8s2FK3vxD90NdsKWRuOIl2O4CvYbA= +golang.org/x/exp v0.0.0-20220916125017-b168a2c6b86b/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= +golang.org/x/exp v0.0.0-20221205204356-47842c84f3db/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= +golang.org/x/exp v0.0.0-20230129154200-a960b3787bd2/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= +golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= +golang.org/x/exp v0.0.0-20230321023759-10a507213a29 h1:ooxPy7fPvB4kwsA2h+iBNHkAbp/4JxTSwCmvdjEYmug= +golang.org/x/exp v0.0.0-20230321023759-10a507213a29/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= +golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200430140353-33d19683fad8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200618115811-c13761719519/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20201208152932-35266b937fa6/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20210216034530-4410531fe030/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20210607152325-775e3b0c77b9/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/image v0.0.0-20211028202545-6944b10bf410/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/image v0.0.0-20220302094943-723b81ca9867/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= +golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= +golang.org/x/mod v0.6.0-dev.0.20211013180041-c96bc1413d57/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= +golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= +golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181029044818-c44066c5c816/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181106065722-10aee1819953/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190227160552-c95aed5357e7/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190313220215-9f648a60d977/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190611141213-3f473d35a33a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210423184538-5f58ad60dda6/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220725212005-46097bf591d3/go.mod h1:AaygXjzTFtRAg2ttMY5RMuhpJ3cNnI0XpyFJD1iQRSM= +golang.org/x/net v0.0.0-20220812174116-3211cb980234/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20220920183852-bf014ff85ad5/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20220923203811-8be639271d50/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20220927171203-f486391704dc/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221004154528-8021a29435af/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= +golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= +golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= +golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221006150949-b44042a4b9c1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec= +golang.org/x/oauth2 v0.5.0 h1:HuArIo48skDwlrvM3sEdHXElYslAMsf3KwRkkW4MC4s= +golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I= +golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod h1:JLpeXjPJfIyPr5TlbXLkXWLhP8nz10XfvxElABhCtcw= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220923202941-7f9b1623fab7/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= +golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180810173357-98c5dad5d1a0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190219092855-153ac476189d/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190228124157-a34e9553db1e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190302025703-b6889370fb10/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190405154228-4b34438f7a67/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190524122548-abf6ff778158/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190526052359-791d8a0f4d09/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210217105451-b926d437f341/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210304124612-50617c2ba197/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210309074719-68d13333faf2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210317225723-c4fcb01b228e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210426080607-c94f62235c83/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210903071746-97244b99971b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220405210540-1e041c57c461/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220429233432-b5fbb4746d32/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.0.0-20220526004731-065cf7ba2467/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= +golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= +golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030000716-a0a13e073c7b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181130052023-1c3d964395ce/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.8-0.20211029000441-d6a9af8af023/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= +golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= +golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= +golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= +golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= +golang.org/x/tools v0.9.1 h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo= +golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= +gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= +gonum.org/v1/gonum v0.9.3/go.mod h1:TZumC3NeyVQskjXqmyWt4S3bINhy7B4eYwW69EbyX+0= +gonum.org/v1/gonum v0.11.0 h1:f1IJhK4Km5tBJmaiJXtk/PkL4cdVX6J+tGiM187uT5E= +gonum.org/v1/gonum v0.11.0/go.mod h1:fSG4YDCxxUZQJ7rKsQrj0gMOg00Il0Z96/qMA4bVQhA= +gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= +gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= +gonum.org/v1/plot v0.9.0/go.mod h1:3Pcqqmp6RHvJI72kgb8fThyUnav364FOsdDo2aGW5lY= +gonum.org/v1/plot v0.10.1/go.mod h1:VZW5OlhkL1mysU9vaqNHnsy86inf6Ot+jB3r+BczCEo= +google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= +google.golang.org/api v0.0.0-20181030000543-1d582fd0359e/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= +google.golang.org/api v0.1.0/go.mod h1:UGEZY7KEX120AnNLIHFMKIo4obdJhkp2tPbaPlQx13Y= +google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= +google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= +google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= +google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= +google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= +google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= +google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= +google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= +google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= +google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= +google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.99.0/go.mod h1:1YOf74vkVndF7pG6hIHuINsM7eWwpVTAfNMNiL91A08= +google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= +google.golang.org/api v0.102.0/go.mod h1:3VFl6/fzoA+qNuS1N1/VfXY4LjoXN/wzeIp7TweWwGo= +google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898/go.mod h1:7Ep/1NZk928CDR8SjdVbjWNpdIf6nzjE3BTgJDr2Atg= +google.golang.org/genproto v0.0.0-20190306203927-b5d61aea6440/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220329172620-7be39ac1afc7/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= +google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220914142337-ca0e39ece12f/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220919141832-68c03719ef51/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw= +google.golang.org/genproto v0.0.0-20220926165614-551eb538f295/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= +google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221024153911-1573dae28c9c/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= +google.golang.org/genproto v0.0.0-20221114212237-e4508ebdbee1/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221117204609-8f9c96812029/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio= +google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.28.1/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww= +google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= +gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= +gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= +gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/src-d/go-cli.v0 v0.0.0-20181105080154-d492247bbc0d/go.mod h1:z+K8VcOYVYcSwSjGebuDL6176A1XskgbtNl64NSg+n8= +gopkg.in/src-d/go-log.v1 v1.0.1/go.mod h1:GN34hKP0g305ysm2/hctJ0Y8nWP3zxXXJ8GFabTyABE= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJdjuHRquDANNeA4x7B8WQ9o= +honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= +lukechampine.com/blake3 v1.1.6/go.mod h1:tkKEOtDkNtklkXtLNEOGNq5tcV90tJiA1vAA12R78LA= +lukechampine.com/blake3 v1.1.7/go.mod h1:tkKEOtDkNtklkXtLNEOGNq5tcV90tJiA1vAA12R78LA= +lukechampine.com/blake3 v1.2.1 h1:YuqqRuaqsGV71BV/nm9xlI0MKUv4QC54jQnBChWbGnI= +lukechampine.com/blake3 v1.2.1/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k= +nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/goversion v1.2.0/go.mod h1:Eih9y/uIBS3ulggl7KNJ09xGSLcuNaLgmvvqa07sgfo= +rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= +sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod h1:kuch7UrkMzY0X+p9CRK03kfuPQ2zzQcaEFbx8wA8rck= +sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= diff --git a/headerCheck/errors.go b/mx-sdk-go-old/headerCheck/errors.go similarity index 100% rename from headerCheck/errors.go rename to mx-sdk-go-old/headerCheck/errors.go diff --git a/headerCheck/export_test.go b/mx-sdk-go-old/headerCheck/export_test.go similarity index 100% rename from headerCheck/export_test.go rename to mx-sdk-go-old/headerCheck/export_test.go diff --git a/headerCheck/factory/coreComponents.go b/mx-sdk-go-old/headerCheck/factory/coreComponents.go similarity index 97% rename from headerCheck/factory/coreComponents.go rename to mx-sdk-go-old/headerCheck/factory/coreComponents.go index d1477528..53dceb16 100644 --- a/headerCheck/factory/coreComponents.go +++ b/mx-sdk-go-old/headerCheck/factory/coreComponents.go @@ -12,8 +12,8 @@ import ( "github.com/multiversx/mx-chain-go/config" "github.com/multiversx/mx-chain-go/process/rating" "github.com/multiversx/mx-chain-go/sharding/nodesCoordinator" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/disabled" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/disabled" ) const ( diff --git a/headerCheck/factory/cryptoComponents.go b/mx-sdk-go-old/headerCheck/factory/cryptoComponents.go similarity index 100% rename from headerCheck/factory/cryptoComponents.go rename to mx-sdk-go-old/headerCheck/factory/cryptoComponents.go diff --git a/headerCheck/factory/nodesCoordinator.go b/mx-sdk-go-old/headerCheck/factory/nodesCoordinator.go similarity index 97% rename from headerCheck/factory/nodesCoordinator.go rename to mx-sdk-go-old/headerCheck/factory/nodesCoordinator.go index c068865e..01a5c1a8 100644 --- a/headerCheck/factory/nodesCoordinator.go +++ b/mx-sdk-go-old/headerCheck/factory/nodesCoordinator.go @@ -8,8 +8,8 @@ import ( "github.com/multiversx/mx-chain-go/config" "github.com/multiversx/mx-chain-go/dataRetriever/dataPool" "github.com/multiversx/mx-chain-go/sharding/nodesCoordinator" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/disabled" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/disabled" ) const ( diff --git a/headerCheck/headerCheck.go b/mx-sdk-go-old/headerCheck/headerCheck.go similarity index 100% rename from headerCheck/headerCheck.go rename to mx-sdk-go-old/headerCheck/headerCheck.go diff --git a/headerCheck/headerCheckFactory.go b/mx-sdk-go-old/headerCheck/headerCheckFactory.go similarity index 93% rename from headerCheck/headerCheckFactory.go rename to mx-sdk-go-old/headerCheck/headerCheckFactory.go index 60159ce3..abb650ba 100644 --- a/headerCheck/headerCheckFactory.go +++ b/mx-sdk-go-old/headerCheck/headerCheckFactory.go @@ -6,9 +6,9 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-go/factory/crypto" "github.com/multiversx/mx-chain-go/process/headerCheck" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/disabled" - "github.com/multiversx/mx-sdk-go/headerCheck/factory" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/disabled" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/headerCheck/factory" ) // NewHeaderCheckHandler will create all components needed for header diff --git a/headerCheck/headerCheck_test.go b/mx-sdk-go-old/headerCheck/headerCheck_test.go similarity index 97% rename from headerCheck/headerCheck_test.go rename to mx-sdk-go-old/headerCheck/headerCheck_test.go index e1f68da3..7fc2c10b 100644 --- a/headerCheck/headerCheck_test.go +++ b/mx-sdk-go-old/headerCheck/headerCheck_test.go @@ -9,8 +9,8 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data" "github.com/multiversx/mx-chain-core-go/data/block" - "github.com/multiversx/mx-sdk-go/headerCheck" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/headerCheck" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/headerCheck/interface.go b/mx-sdk-go-old/headerCheck/interface.go similarity index 97% rename from headerCheck/interface.go rename to mx-sdk-go-old/headerCheck/interface.go index a82c2b09..c916b75f 100644 --- a/headerCheck/interface.go +++ b/mx-sdk-go-old/headerCheck/interface.go @@ -5,7 +5,7 @@ import ( coreData "github.com/multiversx/mx-chain-core-go/data" "github.com/multiversx/mx-chain-go/state" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) // Proxy holds the behaviour needed for header verifier in order to interact with proxy diff --git a/headerCheck/rawHeaderHandler.go b/mx-sdk-go-old/headerCheck/rawHeaderHandler.go similarity index 100% rename from headerCheck/rawHeaderHandler.go rename to mx-sdk-go-old/headerCheck/rawHeaderHandler.go diff --git a/headerCheck/rawHeaderHandler_test.go b/mx-sdk-go-old/headerCheck/rawHeaderHandler_test.go similarity index 97% rename from headerCheck/rawHeaderHandler_test.go rename to mx-sdk-go-old/headerCheck/rawHeaderHandler_test.go index 67e82727..025ba923 100644 --- a/headerCheck/rawHeaderHandler_test.go +++ b/mx-sdk-go-old/headerCheck/rawHeaderHandler_test.go @@ -9,8 +9,8 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data/block" "github.com/multiversx/mx-chain-go/state" - "github.com/multiversx/mx-sdk-go/headerCheck" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/headerCheck" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/interactors/errors.go b/mx-sdk-go-old/interactors/errors.go similarity index 100% rename from interactors/errors.go rename to mx-sdk-go-old/interactors/errors.go diff --git a/interactors/interface.go b/mx-sdk-go-old/interactors/interface.go similarity index 95% rename from interactors/interface.go rename to mx-sdk-go-old/interactors/interface.go index 83d62d91..65338a51 100644 --- a/interactors/interface.go +++ b/mx-sdk-go-old/interactors/interface.go @@ -4,8 +4,8 @@ import ( "context" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) // Proxy holds the primitive functions that the multiversx proxy engine supports & implements diff --git a/interactors/nonceHandlerV1/addressNonceHandler.go b/mx-sdk-go-old/interactors/nonceHandlerV1/addressNonceHandler.go similarity index 96% rename from interactors/nonceHandlerV1/addressNonceHandler.go rename to mx-sdk-go-old/interactors/nonceHandlerV1/addressNonceHandler.go index 604951ff..bfc237d6 100644 --- a/interactors/nonceHandlerV1/addressNonceHandler.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV1/addressNonceHandler.go @@ -7,8 +7,8 @@ import ( "github.com/multiversx/mx-chain-core-go/core" "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/interactors" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) // addressNonceHandler is the handler used for one address. It is able to handle the current diff --git a/interactors/nonceHandlerV1/nonceTransactionsHandler.go b/mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler.go similarity index 97% rename from interactors/nonceHandlerV1/nonceTransactionsHandler.go rename to mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler.go index 1d397193..8e8430c7 100644 --- a/interactors/nonceHandlerV1/nonceTransactionsHandler.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler.go @@ -9,9 +9,9 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data/transaction" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) const minimumIntervalToResend = time.Second diff --git a/interactors/nonceHandlerV1/nonceTransactionsHandler_test.go b/mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler_test.go similarity index 98% rename from interactors/nonceHandlerV1/nonceTransactionsHandler_test.go rename to mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler_test.go index b9c8c3c6..785d2300 100644 --- a/interactors/nonceHandlerV1/nonceTransactionsHandler_test.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler_test.go @@ -10,10 +10,10 @@ import ( "time" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/interactors" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/interactors/nonceHandlerV2/addressNonceHandler.go b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler.go similarity index 98% rename from interactors/nonceHandlerV2/addressNonceHandler.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler.go index a77a84fb..6855ccbe 100644 --- a/interactors/nonceHandlerV2/addressNonceHandler.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler.go @@ -8,8 +8,8 @@ import ( "github.com/multiversx/mx-chain-core-go/core" "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/interactors" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) //TODO EN-13182: create a baseAddressNonceHandler component that can remove the duplicate code as much as possible from the diff --git a/interactors/nonceHandlerV2/addressNonceHandlerCreator.go b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator.go similarity index 82% rename from interactors/nonceHandlerV2/addressNonceHandlerCreator.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator.go index a6f81b2d..3dad10dd 100644 --- a/interactors/nonceHandlerV2/addressNonceHandlerCreator.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator.go @@ -1,8 +1,8 @@ package nonceHandlerV2 import ( - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) // AddressNonceHandlerCreator is used to create addressNonceHandler instances diff --git a/interactors/nonceHandlerV2/addressNonceHandlerCreator_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator_test.go similarity index 83% rename from interactors/nonceHandlerV2/addressNonceHandlerCreator_test.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator_test.go index 8583a9ad..8e4bdeec 100644 --- a/interactors/nonceHandlerV2/addressNonceHandlerCreator_test.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/require" ) diff --git a/interactors/nonceHandlerV2/addressNonceHandler_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler_test.go similarity index 97% rename from interactors/nonceHandlerV2/addressNonceHandler_test.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler_test.go index 560453c9..3ccba867 100644 --- a/interactors/nonceHandlerV2/addressNonceHandler_test.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler_test.go @@ -7,10 +7,10 @@ import ( "testing" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/interactors" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/interactors/nonceHandlerV2/export_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/export_test.go similarity index 83% rename from interactors/nonceHandlerV2/export_test.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/export_test.go index 86714ad2..ec06ac7d 100644 --- a/interactors/nonceHandlerV2/export_test.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/export_test.go @@ -3,8 +3,8 @@ package nonceHandlerV2 import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/interactors" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) // NewAddressNonceHandlerWithPrivateAccess - diff --git a/interactors/nonceHandlerV2/nonceTransactionsHandler.go b/mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler.go similarity index 97% rename from interactors/nonceHandlerV2/nonceTransactionsHandler.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler.go index 52ece9ff..a43e9729 100644 --- a/interactors/nonceHandlerV2/nonceTransactionsHandler.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler.go @@ -9,9 +9,9 @@ import ( "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data/transaction" logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) const minimumIntervalToResend = time.Second diff --git a/interactors/nonceHandlerV2/nonceTransactionsHandler_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler_test.go similarity index 97% rename from interactors/nonceHandlerV2/nonceTransactionsHandler_test.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler_test.go index 89d34174..2dbb798d 100644 --- a/interactors/nonceHandlerV2/nonceTransactionsHandler_test.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler_test.go @@ -9,11 +9,11 @@ import ( "time" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/interactors" - "github.com/multiversx/mx-sdk-go/testsCommon" - testsInteractors "github.com/multiversx/mx-sdk-go/testsCommon/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" + testsInteractors "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon/interactors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler.go b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler.go similarity index 96% rename from interactors/nonceHandlerV2/singleTransactionAddressNonceHandler.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler.go index a0c2ff81..f5a9b234 100644 --- a/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler.go @@ -7,8 +7,8 @@ import ( "github.com/multiversx/mx-chain-core-go/core" "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/interactors" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) type singleTransactionAddressNonceHandler struct { diff --git a/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go similarity index 84% rename from interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go index 5f9b7b56..9f02e57a 100644 --- a/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go @@ -1,8 +1,8 @@ package nonceHandlerV2 import ( - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) // SingleTransactionAddressNonceHandlerCreator is used to create singleTransactionAddressNonceHandler instances diff --git a/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go similarity index 84% rename from interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go index 36e2f6e6..c8cd3b63 100644 --- a/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/require" ) diff --git a/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go similarity index 96% rename from interactors/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go rename to mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go index 4e276ccd..426c9426 100644 --- a/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go +++ b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go @@ -6,10 +6,10 @@ import ( "testing" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" - "github.com/multiversx/mx-sdk-go/interactors" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/interactors/testdata/test.json b/mx-sdk-go-old/interactors/testdata/test.json similarity index 100% rename from interactors/testdata/test.json rename to mx-sdk-go-old/interactors/testdata/test.json diff --git a/interactors/testdata/test.pem b/mx-sdk-go-old/interactors/testdata/test.pem similarity index 100% rename from interactors/testdata/test.pem rename to mx-sdk-go-old/interactors/testdata/test.pem diff --git a/interactors/testdata/testWithKind.json b/mx-sdk-go-old/interactors/testdata/testWithKind.json similarity index 100% rename from interactors/testdata/testWithKind.json rename to mx-sdk-go-old/interactors/testdata/testWithKind.json diff --git a/interactors/transaction.go b/mx-sdk-go-old/interactors/transaction.go similarity index 100% rename from interactors/transaction.go rename to mx-sdk-go-old/interactors/transaction.go diff --git a/interactors/transaction_test.go b/mx-sdk-go-old/interactors/transaction_test.go similarity index 97% rename from interactors/transaction_test.go rename to mx-sdk-go-old/interactors/transaction_test.go index b1b57b22..8350a42b 100644 --- a/interactors/transaction_test.go +++ b/mx-sdk-go-old/interactors/transaction_test.go @@ -7,8 +7,8 @@ import ( "time" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/builders" - "github.com/multiversx/mx-sdk-go/testsCommon" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/interactors/wallet.go b/mx-sdk-go-old/interactors/wallet.go similarity index 98% rename from interactors/wallet.go rename to mx-sdk-go-old/interactors/wallet.go index 8afb88cc..115353f6 100644 --- a/interactors/wallet.go +++ b/mx-sdk-go-old/interactors/wallet.go @@ -18,8 +18,8 @@ import ( "github.com/multiversx/mx-chain-crypto-go/signing" "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" "github.com/pborman/uuid" "github.com/tyler-smith/go-bip39" "golang.org/x/crypto/scrypt" diff --git a/interactors/wallet_test.go b/mx-sdk-go-old/interactors/wallet_test.go similarity index 99% rename from interactors/wallet_test.go rename to mx-sdk-go-old/interactors/wallet_test.go index 886f3de4..439fda8a 100644 --- a/interactors/wallet_test.go +++ b/mx-sdk-go-old/interactors/wallet_test.go @@ -7,7 +7,7 @@ import ( "os" "testing" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/libraries/libbls/README.md b/mx-sdk-go-old/libraries/libbls/README.md similarity index 100% rename from libraries/libbls/README.md rename to mx-sdk-go-old/libraries/libbls/README.md diff --git a/libraries/libbls/libbls.go b/mx-sdk-go-old/libraries/libbls/libbls.go similarity index 100% rename from libraries/libbls/libbls.go rename to mx-sdk-go-old/libraries/libbls/libbls.go diff --git a/libraries/libbls/libbls.h b/mx-sdk-go-old/libraries/libbls/libbls.h similarity index 100% rename from libraries/libbls/libbls.h rename to mx-sdk-go-old/libraries/libbls/libbls.h diff --git a/libraries/libbls/libbls_test.go b/mx-sdk-go-old/libraries/libbls/libbls_test.go similarity index 100% rename from libraries/libbls/libbls_test.go rename to mx-sdk-go-old/libraries/libbls/libbls_test.go diff --git a/libraries/libbls/main.go b/mx-sdk-go-old/libraries/libbls/main.go similarity index 100% rename from libraries/libbls/main.go rename to mx-sdk-go-old/libraries/libbls/main.go diff --git a/serde/deserializer.go b/mx-sdk-go-old/serde/deserializer.go similarity index 95% rename from serde/deserializer.go rename to mx-sdk-go-old/serde/deserializer.go index bc7ad101..d26ef335 100644 --- a/serde/deserializer.go +++ b/mx-sdk-go-old/serde/deserializer.go @@ -9,12 +9,12 @@ import ( type deserializer struct{} -//NewDeserializer will create a new instance of the deserializer. +// NewDeserializer will create a new instance of the deserializer. func NewDeserializer() *deserializer { return &deserializer{} } -//CreatePrimitiveDataType deserializes the buffer and populates the received object +// CreatePrimitiveDataType deserializes the buffer and populates the received object func (des *deserializer) CreatePrimitiveDataType(obj interface{}, buff []byte) error { reflectedValue, err := des.getReflectedValue(obj) if err != nil { @@ -40,7 +40,7 @@ func (des *deserializer) CreatePrimitiveDataType(obj interface{}, buff []byte) e return nil } -//CreateStruct deserialize the buffer and populate the fields of the received object +// CreateStruct deserialize the buffer and populate the fields of the received object func (des *deserializer) CreateStruct(obj interface{}, buff []byte) (uint64, error) { buffer := NewSourceBuffer(buff) diff --git a/serde/deserializer_test.go b/mx-sdk-go-old/serde/deserializer_test.go similarity index 97% rename from serde/deserializer_test.go rename to mx-sdk-go-old/serde/deserializer_test.go index df8ebc66..ceba9f25 100644 --- a/serde/deserializer_test.go +++ b/mx-sdk-go-old/serde/deserializer_test.go @@ -5,7 +5,7 @@ import ( "math/big" "testing" - "github.com/multiversx/mx-sdk-go/serde/testingMocks" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/serde/testingMocks" "github.com/stretchr/testify/assert" ) diff --git a/serde/interface.go b/mx-sdk-go-old/serde/interface.go similarity index 100% rename from serde/interface.go rename to mx-sdk-go-old/serde/interface.go diff --git a/serde/sourceBuffer.go b/mx-sdk-go-old/serde/sourceBuffer.go similarity index 65% rename from serde/sourceBuffer.go rename to mx-sdk-go-old/serde/sourceBuffer.go index c72eb452..ec30e48f 100644 --- a/serde/sourceBuffer.go +++ b/mx-sdk-go-old/serde/sourceBuffer.go @@ -12,10 +12,10 @@ const ( uint256Size = 32 ) -//Uint256 is an alias for [32]byte +// Uint256 is an alias for [32]byte type Uint256 [uint256Size]byte -//SourceBuffer encapsulates a bytes array +// SourceBuffer encapsulates a bytes array type SourceBuffer struct { s []byte off uint64 // current reading index @@ -26,7 +26,7 @@ func NewSourceBuffer(b []byte) *SourceBuffer { return &SourceBuffer{b, 0} } -//Len returns the number of unused bytes +// Len returns the number of unused bytes func (sb *SourceBuffer) Len() uint64 { length := uint64(len(sb.s)) if sb.off >= length { @@ -35,25 +35,25 @@ func (sb *SourceBuffer) Len() uint64 { return length - sb.off } -//Bytes returns the entire array of bytes +// Bytes returns the entire array of bytes func (sb *SourceBuffer) Bytes() []byte { return sb.s } -//OffBytes returns unused bytes +// OffBytes returns unused bytes func (sb *SourceBuffer) OffBytes() []byte { return sb.s[sb.off:] } -//Pos returns offset position +// Pos returns offset position func (sb *SourceBuffer) Pos() uint64 { return sb.off } -//Size returns the length of the byte array +// Size returns the length of the byte array func (sb *SourceBuffer) Size() uint64 { return uint64(len(sb.s)) } -//NextBytes returns the next n bytes after offset and increase offset position +// NextBytes returns the next n bytes after offset and increase offset position func (sb *SourceBuffer) NextBytes(n uint32) ([]byte, bool) { eof := false m := uint64(len(sb.s)) @@ -68,7 +68,7 @@ func (sb *SourceBuffer) NextBytes(n uint32) ([]byte, bool) { return data, eof } -//Skip increase offset position with n bytes +// Skip increase offset position with n bytes func (sb *SourceBuffer) Skip(n uint64) bool { eof := false m := uint64(len(sb.s)) @@ -82,7 +82,7 @@ func (sb *SourceBuffer) Skip(n uint64) bool { return eof } -//NextByte returns the next byte after offset and increase offset position +// NextByte returns the next byte after offset and increase offset position func (sb *SourceBuffer) NextByte() (byte, bool) { if sb.off >= uint64(len(sb.s)) { return 0, true @@ -93,13 +93,13 @@ func (sb *SourceBuffer) NextByte() (byte, bool) { return data, false } -//NextUint8 returns the next byte after offset as uint8 and increase offset position +// NextUint8 returns the next byte after offset as uint8 and increase offset position func (sb *SourceBuffer) NextUint8() (uint8, bool) { val, eof := sb.NextByte() return val, eof } -//NextBool returns the next byte after offset as bool and increase offset position +// NextBool returns the next byte after offset as bool and increase offset position func (sb *SourceBuffer) NextBool() (bool, bool) { val, eof := sb.NextByte() data := false @@ -113,12 +113,12 @@ func (sb *SourceBuffer) NextBool() (bool, bool) { return data, eof } -//BackUp decrease offset position with n bytes +// BackUp decrease offset position with n bytes func (sb *SourceBuffer) BackUp(n uint64) { sb.off -= n } -//NextUint16 returns the next 2 bytes after offset as uint16 and increase offset position +// NextUint16 returns the next 2 bytes after offset as uint16 and increase offset position func (sb *SourceBuffer) NextUint16() (uint16, bool) { buf, eof := sb.NextBytes(uint16Size) if eof { @@ -128,7 +128,7 @@ func (sb *SourceBuffer) NextUint16() (uint16, bool) { return binary.BigEndian.Uint16(buf), eof } -//NextUint32 returns the next 4 bytes after offset as uint32 and increase offset position +// NextUint32 returns the next 4 bytes after offset as uint32 and increase offset position func (sb *SourceBuffer) NextUint32() (uint32, bool) { buf, eof := sb.NextBytes(uint32Size) if eof { @@ -138,7 +138,7 @@ func (sb *SourceBuffer) NextUint32() (uint32, bool) { return binary.BigEndian.Uint32(buf), eof } -//NextUint64 returns the next 8 bytes after offset as uint64 and increase offset position +// NextUint64 returns the next 8 bytes after offset as uint64 and increase offset position func (sb *SourceBuffer) NextUint64() (uint64, bool) { buf, eof := sb.NextBytes(uint64Size) if eof { @@ -148,26 +148,26 @@ func (sb *SourceBuffer) NextUint64() (uint64, bool) { return binary.BigEndian.Uint64(buf), eof } -//NextInt32 returns the next 4 bytes after offset as int32 and increase offset position +// NextInt32 returns the next 4 bytes after offset as int32 and increase offset position func (sb *SourceBuffer) NextInt32() (int32, bool) { val, eof := sb.NextUint32() return int32(val), eof } -//NextInt64 returns the next 8 bytes after offset as int64 and increase offset position +// NextInt64 returns the next 8 bytes after offset as int64 and increase offset position func (sb *SourceBuffer) NextInt64() (int64, bool) { val, eof := sb.NextUint64() return int64(val), eof } -//NextInt16 returns the next 2 bytes after offset as int16 and increase offset position +// NextInt16 returns the next 2 bytes after offset as int16 and increase offset position func (sb *SourceBuffer) NextInt16() (int16, bool) { val, eof := sb.NextUint16() return int16(val), eof } -//NextVarBytes uses the next 4 bytes to determine the number of bytes after the offset to be returned and returns them -//and increase offset position +// NextVarBytes uses the next 4 bytes to determine the number of bytes after the offset to be returned and returns them +// and increase offset position func (sb *SourceBuffer) NextVarBytes() ([]byte, bool) { count, eof := sb.NextUint32() if eof { @@ -177,7 +177,7 @@ func (sb *SourceBuffer) NextVarBytes() ([]byte, bool) { return data, eof } -//NextHash returns the next 32 bytes after offset as Uint256 and increase offset position +// NextHash returns the next 32 bytes after offset as Uint256 and increase offset position func (sb *SourceBuffer) NextHash() (Uint256, bool) { buf, eof := sb.NextBytes(uint256Size) if eof { @@ -189,8 +189,8 @@ func (sb *SourceBuffer) NextHash() (Uint256, bool) { return data, eof } -//NextString uses the next 4 bytes to determine the number of bytes after the offset to be returned and returns them -//as string and increase offset position +// NextString uses the next 4 bytes to determine the number of bytes after the offset to be returned and returns them +// as string and increase offset position func (sb *SourceBuffer) NextString() (string, bool) { val, eof := sb.NextVarBytes() data := string(val) diff --git a/serde/testingMocks/basicDataTypes b/mx-sdk-go-old/serde/testingMocks/basicDataTypes similarity index 100% rename from serde/testingMocks/basicDataTypes rename to mx-sdk-go-old/serde/testingMocks/basicDataTypes diff --git a/serde/testingMocks/basicTypeBigInt b/mx-sdk-go-old/serde/testingMocks/basicTypeBigInt similarity index 100% rename from serde/testingMocks/basicTypeBigInt rename to mx-sdk-go-old/serde/testingMocks/basicTypeBigInt diff --git a/serde/testingMocks/entities.go b/mx-sdk-go-old/serde/testingMocks/entities.go similarity index 100% rename from serde/testingMocks/entities.go rename to mx-sdk-go-old/serde/testingMocks/entities.go diff --git a/serde/testingMocks/nestedStructures b/mx-sdk-go-old/serde/testingMocks/nestedStructures similarity index 100% rename from serde/testingMocks/nestedStructures rename to mx-sdk-go-old/serde/testingMocks/nestedStructures diff --git a/storage/mapCacher.go b/mx-sdk-go-old/storage/mapCacher.go similarity index 100% rename from storage/mapCacher.go rename to mx-sdk-go-old/storage/mapCacher.go diff --git a/storage/mapCacher_test.go b/mx-sdk-go-old/storage/mapCacher_test.go similarity index 100% rename from storage/mapCacher_test.go rename to mx-sdk-go-old/storage/mapCacher_test.go diff --git a/testsCommon/cryptoComponentsHolderStub.go b/mx-sdk-go-old/testsCommon/cryptoComponentsHolderStub.go similarity index 95% rename from testsCommon/cryptoComponentsHolderStub.go rename to mx-sdk-go-old/testsCommon/cryptoComponentsHolderStub.go index af584ea9..ccd61daf 100644 --- a/testsCommon/cryptoComponentsHolderStub.go +++ b/mx-sdk-go-old/testsCommon/cryptoComponentsHolderStub.go @@ -2,7 +2,7 @@ package testsCommon import ( crypto "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) // CryptoComponentsHolderStub - diff --git a/testsCommon/finalityProviderStub.go b/mx-sdk-go-old/testsCommon/finalityProviderStub.go similarity index 100% rename from testsCommon/finalityProviderStub.go rename to mx-sdk-go-old/testsCommon/finalityProviderStub.go diff --git a/testsCommon/headerSigVerifierStub.go b/mx-sdk-go-old/testsCommon/headerSigVerifierStub.go similarity index 100% rename from testsCommon/headerSigVerifierStub.go rename to mx-sdk-go-old/testsCommon/headerSigVerifierStub.go diff --git a/testsCommon/httpClientWrapperStub.go b/mx-sdk-go-old/testsCommon/httpClientWrapperStub.go similarity index 100% rename from testsCommon/httpClientWrapperStub.go rename to mx-sdk-go-old/testsCommon/httpClientWrapperStub.go diff --git a/testsCommon/interactors/addressNonceHandlerCreatorStub.go b/mx-sdk-go-old/testsCommon/interactors/addressNonceHandlerCreatorStub.go similarity index 83% rename from testsCommon/interactors/addressNonceHandlerCreatorStub.go rename to mx-sdk-go-old/testsCommon/interactors/addressNonceHandlerCreatorStub.go index 87a7dc9e..84888d2f 100644 --- a/testsCommon/interactors/addressNonceHandlerCreatorStub.go +++ b/mx-sdk-go-old/testsCommon/interactors/addressNonceHandlerCreatorStub.go @@ -1,8 +1,8 @@ package interactors import ( - "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/interactors" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" ) // AddressNonceHandlerCreatorStub - diff --git a/testsCommon/marshalizerMock.go b/mx-sdk-go-old/testsCommon/marshalizerMock.go similarity index 100% rename from testsCommon/marshalizerMock.go rename to mx-sdk-go-old/testsCommon/marshalizerMock.go diff --git a/testsCommon/marshalizerStub.go b/mx-sdk-go-old/testsCommon/marshalizerStub.go similarity index 100% rename from testsCommon/marshalizerStub.go rename to mx-sdk-go-old/testsCommon/marshalizerStub.go diff --git a/testsCommon/nodesCoordinatorStub.go b/mx-sdk-go-old/testsCommon/nodesCoordinatorStub.go similarity index 100% rename from testsCommon/nodesCoordinatorStub.go rename to mx-sdk-go-old/testsCommon/nodesCoordinatorStub.go diff --git a/testsCommon/privateKeyStub.go b/mx-sdk-go-old/testsCommon/privateKeyStub.go similarity index 94% rename from testsCommon/privateKeyStub.go rename to mx-sdk-go-old/testsCommon/privateKeyStub.go index e06aa4f5..fa596fc5 100644 --- a/testsCommon/privateKeyStub.go +++ b/mx-sdk-go-old/testsCommon/privateKeyStub.go @@ -1,6 +1,6 @@ package testsCommon -import "github.com/multiversx/mx-chain-crypto-go" +import crypto "github.com/multiversx/mx-chain-crypto-go" // PrivateKeyStub - type PrivateKeyStub struct { diff --git a/testsCommon/proxyStub.go b/mx-sdk-go-old/testsCommon/proxyStub.go similarity index 98% rename from testsCommon/proxyStub.go rename to mx-sdk-go-old/testsCommon/proxyStub.go index 32350488..a6461f43 100644 --- a/testsCommon/proxyStub.go +++ b/mx-sdk-go-old/testsCommon/proxyStub.go @@ -6,8 +6,8 @@ import ( "github.com/multiversx/mx-chain-core-go/core" "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/multiversx/mx-chain-go/state" - sdkCore "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) // ProxyStub - diff --git a/testsCommon/publicKeyStub.go b/mx-sdk-go-old/testsCommon/publicKeyStub.go similarity index 92% rename from testsCommon/publicKeyStub.go rename to mx-sdk-go-old/testsCommon/publicKeyStub.go index f57e21d8..a0250eb2 100644 --- a/testsCommon/publicKeyStub.go +++ b/mx-sdk-go-old/testsCommon/publicKeyStub.go @@ -1,6 +1,6 @@ package testsCommon -import "github.com/multiversx/mx-chain-crypto-go" +import crypto "github.com/multiversx/mx-chain-crypto-go" // PublicKeyStub - type PublicKeyStub struct { diff --git a/testsCommon/rawHeaderHandlerStub.go b/mx-sdk-go-old/testsCommon/rawHeaderHandlerStub.go similarity index 100% rename from testsCommon/rawHeaderHandlerStub.go rename to mx-sdk-go-old/testsCommon/rawHeaderHandlerStub.go diff --git a/testsCommon/server/serverStub.go b/mx-sdk-go-old/testsCommon/server/serverStub.go similarity index 100% rename from testsCommon/server/serverStub.go rename to mx-sdk-go-old/testsCommon/server/serverStub.go diff --git a/testsCommon/signerStub.go b/mx-sdk-go-old/testsCommon/signerStub.go similarity index 100% rename from testsCommon/signerStub.go rename to mx-sdk-go-old/testsCommon/signerStub.go diff --git a/testsCommon/txBuilderStub.go b/mx-sdk-go-old/testsCommon/txBuilderStub.go similarity index 90% rename from testsCommon/txBuilderStub.go rename to mx-sdk-go-old/testsCommon/txBuilderStub.go index 070f1229..65ce039c 100644 --- a/testsCommon/txBuilderStub.go +++ b/mx-sdk-go-old/testsCommon/txBuilderStub.go @@ -2,7 +2,7 @@ package testsCommon import ( "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/core" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) // TxBuilderStub - diff --git a/testsCommon/txNonceHandlerV1Stub.go b/mx-sdk-go-old/testsCommon/txNonceHandlerV1Stub.go similarity index 96% rename from testsCommon/txNonceHandlerV1Stub.go rename to mx-sdk-go-old/testsCommon/txNonceHandlerV1Stub.go index 48fd7e80..5f6f7a3b 100644 --- a/testsCommon/txNonceHandlerV1Stub.go +++ b/mx-sdk-go-old/testsCommon/txNonceHandlerV1Stub.go @@ -4,7 +4,7 @@ import ( "context" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) // TxNonceHandlerV1Stub - diff --git a/testsCommon/txNonceHandlerV2Stub.go b/mx-sdk-go-old/testsCommon/txNonceHandlerV2Stub.go similarity index 96% rename from testsCommon/txNonceHandlerV2Stub.go rename to mx-sdk-go-old/testsCommon/txNonceHandlerV2Stub.go index 5c8876d4..1425aec9 100644 --- a/testsCommon/txNonceHandlerV2Stub.go +++ b/mx-sdk-go-old/testsCommon/txNonceHandlerV2Stub.go @@ -4,7 +4,7 @@ import ( "context" "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" ) // TxNonceHandlerV2Stub - diff --git a/workflows/addressesAccumulator.go b/mx-sdk-go-old/workflows/addressesAccumulator.go similarity index 100% rename from workflows/addressesAccumulator.go rename to mx-sdk-go-old/workflows/addressesAccumulator.go diff --git a/workflows/errors.go b/mx-sdk-go-old/workflows/errors.go similarity index 100% rename from workflows/errors.go rename to mx-sdk-go-old/workflows/errors.go diff --git a/workflows/interface.go b/mx-sdk-go-old/workflows/interface.go similarity index 92% rename from workflows/interface.go rename to mx-sdk-go-old/workflows/interface.go index 0a80a45b..ee424bcf 100644 --- a/workflows/interface.go +++ b/mx-sdk-go-old/workflows/interface.go @@ -4,8 +4,8 @@ import ( "context" "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/core" - "github.com/multiversx/mx-sdk-go/data" + sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) // TrackableAddressesProvider defines the behavior for a component that can determine if one address is tracked or not diff --git a/workflows/moveBalanceHandler.go b/mx-sdk-go-old/workflows/moveBalanceHandler.go similarity index 97% rename from workflows/moveBalanceHandler.go rename to mx-sdk-go-old/workflows/moveBalanceHandler.go index 8957922f..c7bdbf61 100644 --- a/workflows/moveBalanceHandler.go +++ b/mx-sdk-go-old/workflows/moveBalanceHandler.go @@ -11,8 +11,8 @@ import ( "github.com/multiversx/mx-chain-core-go/data/transaction" "github.com/multiversx/mx-chain-crypto-go/signing" "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) var ( @@ -30,7 +30,7 @@ type MoveBalanceHandlerArgs struct { } // moveBalanceHandler is an implementation that can create move balance transactions that will empty the balance -//of the existing accounts +// of the existing accounts type moveBalanceHandler struct { proxy ProxyHandler mutCachedNetworkConfigs sync.RWMutex diff --git a/workflows/walletsTracker.go b/mx-sdk-go-old/workflows/walletsTracker.go similarity index 98% rename from workflows/walletsTracker.go rename to mx-sdk-go-old/workflows/walletsTracker.go index 7595d5ff..a22c0ed1 100644 --- a/workflows/walletsTracker.go +++ b/mx-sdk-go-old/workflows/walletsTracker.go @@ -3,13 +3,13 @@ package workflows import ( "context" "encoding/json" + logger "github.com/multiversx/mx-chain-logger-go" "math/big" "sync" "time" "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/data" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" ) var log = logger.GetOrCreate("mx-sdk-go/workflows") From bd20705282c8726300b5510e0b1aaf769b14c2ce Mon Sep 17 00:00:00 2001 From: Alexander Cristurean Date: Mon, 11 Dec 2023 14:29:02 +0200 Subject: [PATCH 2/5] initial wallet module. --- mx-sdk-go-wallet/crypto/crypto_test.go | 23 +++ mx-sdk-go-wallet/crypto/interface.go | 38 +++++ .../crypto/keypairEncryptedData.go | 16 ++ .../crypto/keypairEncryptorDecyptor.go | 41 ++++++ .../crypto/passwordEncryptorDecryptor.go | 139 ++++++++++++++++++ mx-sdk-go-wallet/go.mod | 27 ++++ mx-sdk-go-wallet/go.sum | 72 +++++++++ .../keystores/encryptedKeystore.go | 18 +++ mx-sdk-go-wallet/keystores/interface.go | 25 ++++ mx-sdk-go-wallet/mnemonic/mnemonic.go | 92 ++++++++++++ mx-sdk-go-wallet/mnemonic/mnemonic_test.go | 40 +++++ .../wallet/user_wallet_provider.go | 77 ++++++++++ .../wallet/validator_wallet_provider.go | 69 +++++++++ mx-sdk-go-wallet/wallet/wallet.go | 24 +++ mx-sdk-go-wallet/wallet/wallet_test.go | 39 +++++ 15 files changed, 740 insertions(+) create mode 100644 mx-sdk-go-wallet/crypto/crypto_test.go create mode 100644 mx-sdk-go-wallet/crypto/interface.go create mode 100644 mx-sdk-go-wallet/crypto/keypairEncryptedData.go create mode 100644 mx-sdk-go-wallet/crypto/keypairEncryptorDecyptor.go create mode 100644 mx-sdk-go-wallet/crypto/passwordEncryptorDecryptor.go create mode 100644 mx-sdk-go-wallet/go.mod create mode 100644 mx-sdk-go-wallet/go.sum create mode 100644 mx-sdk-go-wallet/keystores/encryptedKeystore.go create mode 100644 mx-sdk-go-wallet/keystores/interface.go create mode 100644 mx-sdk-go-wallet/mnemonic/mnemonic.go create mode 100644 mx-sdk-go-wallet/mnemonic/mnemonic_test.go create mode 100644 mx-sdk-go-wallet/wallet/user_wallet_provider.go create mode 100644 mx-sdk-go-wallet/wallet/validator_wallet_provider.go create mode 100644 mx-sdk-go-wallet/wallet/wallet.go create mode 100644 mx-sdk-go-wallet/wallet/wallet_test.go diff --git a/mx-sdk-go-wallet/crypto/crypto_test.go b/mx-sdk-go-wallet/crypto/crypto_test.go new file mode 100644 index 00000000..9e74598a --- /dev/null +++ b/mx-sdk-go-wallet/crypto/crypto_test.go @@ -0,0 +1,23 @@ +package crypto + +import ( + "github.com/stretchr/testify/require" + "testing" +) + +func TestPasswordBasedEncyptDecrypt(t *testing.T) { + message := "Thisisateststring" + password := "randompassword" + + bytes := []byte(message) + + p := NewPasswordBaseEncryptorDecryptor() + + encrypt, err := p.Encrypt(bytes, password) + require.NoError(t, err, "failed to encrypt message") + + decryptedMessage, err := p.Decrypt(encrypt, password) + require.NoError(t, err, "failed to decrypt message") + + require.Equal(t, string(decryptedMessage), message) +} diff --git a/mx-sdk-go-wallet/crypto/interface.go b/mx-sdk-go-wallet/crypto/interface.go new file mode 100644 index 00000000..3bb0907c --- /dev/null +++ b/mx-sdk-go-wallet/crypto/interface.go @@ -0,0 +1,38 @@ +package crypto + +const ( + CipherAlgorithmAes128Ctr = "aes-128-ctr" + KeyDerivationFunctionScrypt = "scrypt" + RandomSaltLength = 32 + RandomIvLength = 16 + EncryptorVersion = 4 + + ScryptN = 4096 + ScryptR = 8 + ScryptP = 1 + ScryptDKLen = 32 +) + +type PasswordBasedEncryptorDecryptor interface { + Decrypt(encryptedData *PasswordEncryptedData, password string) ([]byte, error) + Encrypt(data []byte, password string) (*PasswordEncryptedData, error) +} + +type PasswordEncryptedData struct { + ID string + Version int + Cipher string + CipherText string + Iv string + KDF string + KDFParams *KeyDerivationParams + Salt string + MAC string +} + +type KeyDerivationParams struct { + N int // numIterations + R int // memFactor + P int // pFactor + DKLen int +} diff --git a/mx-sdk-go-wallet/crypto/keypairEncryptedData.go b/mx-sdk-go-wallet/crypto/keypairEncryptedData.go new file mode 100644 index 00000000..b9fa25ec --- /dev/null +++ b/mx-sdk-go-wallet/crypto/keypairEncryptedData.go @@ -0,0 +1,16 @@ +package crypto + +//type PublicKeyEncryptedData struct { +// Nonce string +// Version int +// Cipher string +// Ciphertext string +// MAC string +// Identities *PublicKeyEncryptedDataIdentities +//} +// +//type PublicKeyEncryptedDataIdentities struct { +// Recipient string +// EphemeralPubKey string +// OriginatorPubKey string +//} diff --git a/mx-sdk-go-wallet/crypto/keypairEncryptorDecyptor.go b/mx-sdk-go-wallet/crypto/keypairEncryptorDecyptor.go new file mode 100644 index 00000000..3bff0bde --- /dev/null +++ b/mx-sdk-go-wallet/crypto/keypairEncryptorDecyptor.go @@ -0,0 +1,41 @@ +package crypto + +// +//import ( +// crypto "github.com/multiversx/mx-chain-crypto-go" +// "github.com/multiversx/mx-chain-crypto-go/encryption/x25519" +// "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" +//) +// +//func KeyPairBasedEncrypt(data []byte, recipientPublicKey crypto.PublicKey, authSecretKey crypto.PrivateKey) *PublicKeyEncryptedData { +// suite := ed25519.NewEd25519() +// ephemeralEdScalar, ephemeralEdPoint := suite.CreateKeyPair() +// +// recipientPubKeyBytes, err := recipientPublicKey.ToByteArray() +// if err != nil { +// return nil +// } +// +// ed := x25519.EncryptedData{} +// +// nonce, err := ed.generateEncryptionNonce(data) +// if err != nil { +// return err +// } +// +// ciphertext, err := ed.createCiphertext(data, ephemeralEdScalar, recipientPubKey, nonce) +// if err != nil { +// return err +// } +// +// ephemeralEdPointBytes, err := ephemeralEdPoint.MarshalBinary() +// if err != nil { +// return err +// } +// mac, err := ed.generateMAC(senderPrivateKey, append(ciphertext, ephemeralEdPointBytes...)) +// +// senderPubKey, err := senderPrivateKey.GeneratePublic().ToByteArray() +// if err != nil { +// return err +// } +//} diff --git a/mx-sdk-go-wallet/crypto/passwordEncryptorDecryptor.go b/mx-sdk-go-wallet/crypto/passwordEncryptorDecryptor.go new file mode 100644 index 00000000..49285e0e --- /dev/null +++ b/mx-sdk-go-wallet/crypto/passwordEncryptorDecryptor.go @@ -0,0 +1,139 @@ +package crypto + +import ( + "bytes" + "crypto/aes" + "crypto/cipher" + "crypto/hmac" + "crypto/rand" + "crypto/sha256" + "encoding/hex" + "errors" + "fmt" + "github.com/google/uuid" + "golang.org/x/crypto/scrypt" + "io" +) + +type passwordBasedEncryptorDecryptor struct{} + +func NewPasswordBaseEncryptorDecryptor() PasswordBasedEncryptorDecryptor { + return &passwordBasedEncryptorDecryptor{} +} + +func (p *passwordBasedEncryptorDecryptor) Decrypt(encryptedData *PasswordEncryptedData, password string) ([]byte, error) { + if encryptedData.KDF != KeyDerivationFunctionScrypt { + return nil, errors.New(fmt.Sprintf("Unknown derivation function: %v", encryptedData.KDF)) + } + + mac, err := hex.DecodeString(encryptedData.MAC) + if err != nil { + return nil, fmt.Errorf("failed to decode MAC: %v", err) + } + salt, err := hex.DecodeString(encryptedData.Salt) + if err != nil { + return nil, fmt.Errorf("failed to decode salt: %v", err) + } + cipherText, err := hex.DecodeString(encryptedData.CipherText) + if err != nil { + return nil, fmt.Errorf("failed to decode cipherText: %v", err) + } + iv, err := hex.DecodeString(encryptedData.Iv) + if err != nil { + return nil, fmt.Errorf("failed to decode iv: %v", err) + } + + derivedKey, err := scrypt.Key( + []byte(password), + salt, + encryptedData.KDFParams.N, + encryptedData.KDFParams.R, + encryptedData.KDFParams.P, + encryptedData.KDFParams.DKLen, + ) + if err != nil { + return nil, fmt.Errorf("failed to derive key: %v", err) + } + + hash := hmac.New(sha256.New, derivedKey[16:32]) + _, err = hash.Write(cipherText) + if err != nil { + return nil, err + } + + sha := hash.Sum(nil) + if !bytes.Equal(sha, mac) { + return nil, errors.New("wrong password") + } + + aesBlock, err := aes.NewCipher(derivedKey[:16]) + if err != nil { + return nil, err + } + + stream := cipher.NewCTR(aesBlock, iv) + decryptedData := make([]byte, len(cipherText)) + stream.XORKeyStream(decryptedData, cipherText) + + return decryptedData, nil +} + +func (p *passwordBasedEncryptorDecryptor) Encrypt(data []byte, password string) (*PasswordEncryptedData, error) { + kdfParams := KeyDerivationParams{N: 4096, R: 8, P: 1, DKLen: 32} + + salt := make([]byte, RandomSaltLength) + iv := make([]byte, RandomIvLength) + _, err := io.ReadFull(rand.Reader, salt) + if err != nil { + return nil, fmt.Errorf("failed to generate random salt: %v", err) + } + _, err = io.ReadFull(rand.Reader, iv) + if err != nil { + return nil, fmt.Errorf("failed to generate random iv: %v", err) + } + + derivedKey, err := scrypt.Key( + []byte(password), + salt, + kdfParams.N, + kdfParams.R, + kdfParams.P, + kdfParams.DKLen, + ) + if err != nil { + return nil, fmt.Errorf("failed to derive key: %v", err) + } + + aesBlock, err := aes.NewCipher(derivedKey[:16]) + if err != nil { + return nil, err + } + stream := cipher.NewCTR(aesBlock, iv) + cipherText := make([]byte, len(data)) + stream.XORKeyStream(cipherText, data) + + hash := hmac.New(sha256.New, derivedKey[16:32]) + _, err = hash.Write(cipherText) + if err != nil { + return nil, err + } + + sha := hash.Sum(nil) + + newUUID, err := uuid.NewUUID() + if err != nil { + return nil, fmt.Errorf("failed to generare uuid: %v", err) + } + + return &PasswordEncryptedData{ + ID: newUUID.String(), + Version: EncryptorVersion, + Cipher: CipherAlgorithmAes128Ctr, + CipherText: hex.EncodeToString(cipherText), + Iv: hex.EncodeToString(iv), + KDF: KeyDerivationFunctionScrypt, + KDFParams: &kdfParams, + Salt: hex.EncodeToString(salt), + MAC: hex.EncodeToString(sha), + }, nil +} diff --git a/mx-sdk-go-wallet/go.mod b/mx-sdk-go-wallet/go.mod new file mode 100644 index 00000000..8e34a603 --- /dev/null +++ b/mx-sdk-go-wallet/go.mod @@ -0,0 +1,27 @@ +module github.com/multiversx/mx-sdk-go/mx-sdk-go-wallet + +go 1.20 + +require ( + github.com/google/uuid v1.4.0 + github.com/multiversx/mx-chain-crypto-go v1.2.9 + github.com/stretchr/testify v1.8.4 + github.com/tyler-smith/go-bip39 v1.1.0 + golang.org/x/crypto v0.16.0 +) + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/denisbrodbeck/machineid v1.0.1 // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/protobuf v1.5.2 // indirect + github.com/herumi/bls-go-binary v1.28.2 // indirect + github.com/mr-tron/base58 v1.2.0 // indirect + github.com/multiversx/mx-chain-core-go v1.2.13 // indirect + github.com/multiversx/mx-chain-logger-go v1.0.13 // indirect + github.com/pelletier/go-toml v1.9.3 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/sys v0.15.0 // indirect + google.golang.org/protobuf v1.26.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/mx-sdk-go-wallet/go.sum b/mx-sdk-go-wallet/go.sum new file mode 100644 index 00000000..11de54b2 --- /dev/null +++ b/mx-sdk-go-wallet/go.sum @@ -0,0 +1,72 @@ +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/denisbrodbeck/machineid v1.0.1 h1:geKr9qtkB876mXguW2X6TU4ZynleN6ezuMSRhl4D7AQ= +github.com/denisbrodbeck/machineid v1.0.1/go.mod h1:dJUwb7PTidGDeYyUBmXZ2GphQBbjJCrnectwCyxcUSI= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= +github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/herumi/bls-go-binary v1.28.2 h1:F0AezsC0M1a9aZjk7g0l2hMb1F56Xtpfku97pDndNZE= +github.com/herumi/bls-go-binary v1.28.2/go.mod h1:O4Vp1AfR4raRGwFeQpr9X/PQtncEicMoOe6BQt1oX0Y= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= +github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= +github.com/multiversx/mx-chain-core-go v1.2.13 h1:4Svi23hdsoibStFXv0i7lbBWus3kDJPc6CFhrxrKIZ4= +github.com/multiversx/mx-chain-core-go v1.2.13/go.mod h1:BILOGHUOIG5dNNX8cgkzCNfDaVtoYrJRYcPnpxRMH84= +github.com/multiversx/mx-chain-crypto-go v1.2.9 h1:OEfF2kOQrtzUl273Z3DEcshjlTVUfPpJMd0R0SvTrlU= +github.com/multiversx/mx-chain-crypto-go v1.2.9/go.mod h1:fkaWKp1rbQN9wPKya5jeoRyC+c/SyN/NfggreyeBw+8= +github.com/multiversx/mx-chain-logger-go v1.0.13 h1:eru/TETo0MkO4ZTnXsQDKf4PBRpAXmqjT02klNT/JnY= +github.com/multiversx/mx-chain-logger-go v1.0.13/go.mod h1:MZJhTAtZTJxT+yK2EHc4ZW3YOHUc1UdjCD0iahRNBZk= +github.com/pelletier/go-toml v1.9.3 h1:zeC5b1GviRUyKYd6OJPvBU/mcVDVoL1OhT17FCt5dSQ= +github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8= +github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/mx-sdk-go-wallet/keystores/encryptedKeystore.go b/mx-sdk-go-wallet/keystores/encryptedKeystore.go new file mode 100644 index 00000000..905444e1 --- /dev/null +++ b/mx-sdk-go-wallet/keystores/encryptedKeystore.go @@ -0,0 +1,18 @@ +package keystores + +import ( + mxcrypto "github.com/multiversx/mx-chain-crypto-go" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-wallet/mnemonic" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-wallet/wallet" +) + +type Keystore struct{} + +func NewFromSecretKey(secretKey mxcrypto.PrivateKey) (*Keystore, error) { + return nil, nil +} + +// static new_from_mnemonic(wallet_provider: IWalletProvider, mnemonic: Mnemonic): Keystore +func NewFromMnemonic(walletProvider wallet.Provider, mnemonic mnemonic.Mnemonic) { + +} diff --git a/mx-sdk-go-wallet/keystores/interface.go b/mx-sdk-go-wallet/keystores/interface.go new file mode 100644 index 00000000..f32d3a3b --- /dev/null +++ b/mx-sdk-go-wallet/keystores/interface.go @@ -0,0 +1,25 @@ +package keystores + +type KeyFileObject struct { + Version int `json:"version"` + Id string `json:"id"` + Address string `json:"address"` + Bech32 string `json:"bech32"` + Kind string `json:"kind"` + Crypto struct { + Cipher string `json:"cipher"` + CipherText string `json:"ciphertext"` + CipherParams struct { + IV string `json:"iv"` + } `json:"cipherparams"` + KDF string `json:"kdf"` + KDFParams struct { + DkLen int `json:"dklen"` + Salt string `json:"salt"` + N int `json:"n"` + R int `json:"r"` + P int `json:"p"` + } `json:"kdfparams"` + MAC string `json:"mac"` + } `json:"crypto"` +} diff --git a/mx-sdk-go-wallet/mnemonic/mnemonic.go b/mx-sdk-go-wallet/mnemonic/mnemonic.go new file mode 100644 index 00000000..96ede480 --- /dev/null +++ b/mx-sdk-go-wallet/mnemonic/mnemonic.go @@ -0,0 +1,92 @@ +package mnemonic + +import ( + "crypto/hmac" + "crypto/sha512" + "encoding/binary" + "errors" + "fmt" + "github.com/tyler-smith/go-bip39" + "strings" +) + +const ( + mnemonicBitSize = 256 + egldCoinType = uint32(508) + hardened = uint32(0x80000000) + keystoreVersion = 4 + keyHeaderKDF = "scrypt" + scryptN = 4096 + scryptR = 8 + scryptP = 1 + scryptDKLen = 32 + addressLen = 32 + mnemonicKind = "mnemonic" +) + +type bip32Path []uint32 + +type bip32 struct { + Key []byte + ChainCode []byte +} + +type Mnemonic struct { + Text string +} + +func NewMnemonicFromText(text string) (*Mnemonic, error) { + if !bip39.IsMnemonicValid(text) { + return nil, errors.New(fmt.Sprintf("failed to create mnemonic from text: %s", text)) + } + + return &Mnemonic{Text: text}, nil +} + +func (m *Mnemonic) DeriveKey(addressIndex uint32, password string) []byte { + seed := bip39.NewSeed(m.Text, password) + var egldPath = bip32Path{ + 44 | hardened, + egldCoinType | hardened, + hardened, // account + hardened, + hardened, // addressIndex + } + + egldPath[2] = 0 | hardened + egldPath[4] = addressIndex | hardened + keyData := derivePrivateKey(seed, egldPath) + + return keyData.Key +} + +func (m *Mnemonic) GetWords() []string { + return strings.Split(m.Text, " ") +} + +func (m *Mnemonic) String() string { return m.Text } + +func derivePrivateKey(seed []byte, path bip32Path) *bip32 { + b := &bip32{} + digest := hmac.New(sha512.New, []byte("ed25519 seed")) + digest.Write(seed) + intermediary := digest.Sum(nil) + serializedKeyLen := 32 + serializedChildIndexLen := 4 + hardenedChildPadding := byte(0x00) + b.Key = intermediary[:serializedKeyLen] + b.ChainCode = intermediary[serializedKeyLen:] + for _, childIdx := range path { + buff := make([]byte, 1+serializedKeyLen+4) + buff[0] = hardenedChildPadding + copy(buff[1:1+serializedKeyLen], b.Key) + binary.BigEndian.PutUint32(buff[1+serializedKeyLen:1+serializedKeyLen+serializedChildIndexLen], childIdx) + digest = hmac.New(sha512.New, b.ChainCode) + digest.Write(buff) + intermediary = digest.Sum(nil) + b.Key = intermediary[:serializedKeyLen] + b.ChainCode = intermediary[serializedKeyLen:] + } + + return b +} diff --git a/mx-sdk-go-wallet/mnemonic/mnemonic_test.go b/mx-sdk-go-wallet/mnemonic/mnemonic_test.go new file mode 100644 index 00000000..3f1624fc --- /dev/null +++ b/mx-sdk-go-wallet/mnemonic/mnemonic_test.go @@ -0,0 +1,40 @@ +package mnemonic + +import ( + "encoding/hex" + "fmt" + "github.com/stretchr/testify/require" + "testing" +) + +func TestDeriveKey(t *testing.T) { + mnemonic := Mnemonic{"moral volcano peasant pass circle pen over picture flat shop clap goat never lyrics gather prepare woman film husband gravity behind test tiger improve"} + + key1 := hex.EncodeToString(mnemonic.DeriveKey(0, "")) + require.Equal(t, key1, "413f42575f7f26fad3317a778771212fdb80245850981e48b58a4f25e344e8f9") + + key2 := hex.EncodeToString(mnemonic.DeriveKey(1, "")) + require.Equal(t, key2, "b8ca6f8203fb4b545a8e83c5384da033c415db155b53fb5b8eba7ff5a039d639") + + key3 := hex.EncodeToString(mnemonic.DeriveKey(2, "")) + require.Equal(t, key3, "e253a571ca153dc2aee845819f74bcc9773b0586edead15a94cb7235a5027436") +} + +func TestNewMnemonicFromText(t *testing.T) { + badText := "bad mnemonic" + mnemonic, err := NewMnemonicFromText(badText) + require.Nil(t, mnemonic) + require.Error(t, err, fmt.Sprintf("failed to create mnemonic from text: %s", badText)) + + goodText := "moral volcano peasant pass circle pen over picture flat shop clap goat never lyrics gather prepare woman film husband gravity behind test tiger improve" + mnemonic, err = NewMnemonicFromText(goodText) + require.Equal(t, mnemonic, &Mnemonic{Text: goodText}) + require.Nil(t, err) +} + +func TestGenerateAndWords(t *testing.T) { + mnemonic, err := NewMnemonicFromText("moral volcano peasant pass circle pen over picture flat shop clap goat never lyrics gather prepare woman film husband gravity behind test tiger improve") + require.NoError(t, err, "failed to create mnemonic") + words := mnemonic.GetWords() + require.Len(t, words, 24) +} diff --git a/mx-sdk-go-wallet/wallet/user_wallet_provider.go b/mx-sdk-go-wallet/wallet/user_wallet_provider.go new file mode 100644 index 00000000..9d66a747 --- /dev/null +++ b/mx-sdk-go-wallet/wallet/user_wallet_provider.go @@ -0,0 +1,77 @@ +package wallet + +import ( + "errors" + "fmt" + crypto "github.com/multiversx/mx-chain-crypto-go" + "github.com/multiversx/mx-chain-crypto-go/signing" + "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" + "github.com/multiversx/mx-chain-crypto-go/signing/ed25519/singlesig" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-wallet/mnemonic" + "github.com/tyler-smith/go-bip39" +) + +type userWalletProvider struct { + suite crypto.Suite + keyGen crypto.KeyGenerator + signer singlesig.Ed25519Signer +} + +func NewUserWalletProvider() UserProvider { + suite := ed25519.NewEd25519() + return &userWalletProvider{ + suite, + signing.NewKeyGenerator(suite), + singlesig.Ed25519Signer{}, + } +} + +func (u *userWalletProvider) GenerateKeyPair() (secretKey crypto.PrivateKey, publicKey crypto.PublicKey) { + return u.keyGen.GeneratePair() +} + +func (u *userWalletProvider) Sign(data []byte, secretKey crypto.PrivateKey) ([]byte, error) { + sign, err := u.signer.Sign(secretKey, data) + if err != nil { + return nil, fmt.Errorf("failed to sign message: %v", err) + } + return sign, nil +} + +func (u *userWalletProvider) Verify(data []byte, signature []byte, publicKey crypto.PublicKey) (bool, error) { + err := u.signer.Verify(publicKey, data, signature) + if err != nil { + return false, fmt.Errorf("failed to verify signature: %v", err) + } + return true, nil +} + +func (u *userWalletProvider) CreateSecretKeyFromBytes(data []byte) (crypto.PrivateKey, error) { + pk, err := u.keyGen.PrivateKeyFromByteArray(data) + if err != nil { + return nil, fmt.Errorf("failed to create secret key: %v", err) + } + return pk, nil +} + +func (u *userWalletProvider) CreatePublicKeyFromBytes(data []byte) (crypto.PublicKey, error) { + pk, err := u.keyGen.PublicKeyFromByteArray(data) + if err != nil { + return nil, fmt.Errorf("failed to create public key: %v", err) + } + return pk, nil +} + +func (u *userWalletProvider) ComputePublicKeyFromSecretKey(secretKey crypto.PrivateKey) (crypto.PublicKey, error) { + public := secretKey.GeneratePublic() + if public == nil { + return nil, errors.New("failed to compute public key") + } + return public, nil +} + +func (u *userWalletProvider) GenerateMnemonic() *mnemonic.Mnemonic { + entropy, _ := bip39.NewEntropy(256) + m, _ := bip39.NewMnemonic(entropy) + return &mnemonic.Mnemonic{Text: m} +} diff --git a/mx-sdk-go-wallet/wallet/validator_wallet_provider.go b/mx-sdk-go-wallet/wallet/validator_wallet_provider.go new file mode 100644 index 00000000..e2a1dd05 --- /dev/null +++ b/mx-sdk-go-wallet/wallet/validator_wallet_provider.go @@ -0,0 +1,69 @@ +package wallet + +import ( + "errors" + "fmt" + crypto "github.com/multiversx/mx-chain-crypto-go" + "github.com/multiversx/mx-chain-crypto-go/signing" + mcl "github.com/multiversx/mx-chain-crypto-go/signing/mcl" + signer "github.com/multiversx/mx-chain-crypto-go/signing/mcl/singlesig" +) + +type validatorWalletProvider struct { + suite crypto.Suite + keyGen crypto.KeyGenerator + signer signer.BlsSingleSigner +} + +func NewValidatorWalletProvider() ValidatorProvider { + suite := mcl.NewSuiteBLS12() + return &validatorWalletProvider{ + suite, + signing.NewKeyGenerator(suite), + signer.BlsSingleSigner{}, + } +} + +func (v *validatorWalletProvider) GenerateKeyPair() (secretKey crypto.PrivateKey, publicKey crypto.PublicKey) { + return v.keyGen.GeneratePair() +} + +func (v *validatorWalletProvider) Sign(data []byte, secretKey crypto.PrivateKey) ([]byte, error) { + sign, err := v.signer.Sign(secretKey, data) + if err != nil { + return nil, fmt.Errorf("failed to sign message: %v", err) + } + return sign, nil +} + +func (v *validatorWalletProvider) Verify(data []byte, signature []byte, publicKey crypto.PublicKey) (bool, error) { + err := v.signer.Verify(publicKey, data, signature) + if err != nil { + return false, fmt.Errorf("failed to verify signature: %v", err) + } + return true, nil +} + +func (v *validatorWalletProvider) CreateSecretKeyFromBytes(data []byte) (crypto.PrivateKey, error) { + pk, err := v.keyGen.PrivateKeyFromByteArray(data) + if err != nil { + return nil, fmt.Errorf("failed to create secret key: %v", err) + } + return pk, nil +} + +func (v *validatorWalletProvider) CreatePublicKeyFromBytes(data []byte) (crypto.PublicKey, error) { + pk, err := v.keyGen.PublicKeyFromByteArray(data) + if err != nil { + return nil, fmt.Errorf("failed to create public key: %v", err) + } + return pk, nil +} + +func (v *validatorWalletProvider) ComputePublicKeyFromSecretKey(secretKey crypto.PrivateKey) (crypto.PublicKey, error) { + public := secretKey.GeneratePublic() + if public == nil { + return nil, errors.New("failed to compute public key") + } + return public, nil +} diff --git a/mx-sdk-go-wallet/wallet/wallet.go b/mx-sdk-go-wallet/wallet/wallet.go new file mode 100644 index 00000000..11bf33b1 --- /dev/null +++ b/mx-sdk-go-wallet/wallet/wallet.go @@ -0,0 +1,24 @@ +package wallet + +import ( + crypto "github.com/multiversx/mx-chain-crypto-go" + "github.com/multiversx/mx-sdk-go/mx-sdk-go-wallet/mnemonic" +) + +type Provider interface { + GenerateKeyPair() (secretKey crypto.PrivateKey, publicKey crypto.PublicKey) + Sign(data []byte, secretKey crypto.PrivateKey) ([]byte, error) + Verify(data []byte, signature []byte, publicKey crypto.PublicKey) (bool, error) + CreateSecretKeyFromBytes(data []byte) (crypto.PrivateKey, error) + CreatePublicKeyFromBytes(data []byte) (crypto.PublicKey, error) + ComputePublicKeyFromSecretKey(secretKey crypto.PrivateKey) (crypto.PublicKey, error) +} + +type UserProvider interface { + Provider + GenerateMnemonic() *mnemonic.Mnemonic +} + +type ValidatorProvider interface { + Provider +} diff --git a/mx-sdk-go-wallet/wallet/wallet_test.go b/mx-sdk-go-wallet/wallet/wallet_test.go new file mode 100644 index 00000000..fdcfb7ab --- /dev/null +++ b/mx-sdk-go-wallet/wallet/wallet_test.go @@ -0,0 +1,39 @@ +package wallet + +import ( + "github.com/stretchr/testify/require" + "testing" +) + +func TestSignAndVerify(t *testing.T) { + userWallet := NewUserWalletProvider() + secretKey, publicKey := userWallet.GenerateKeyPair() + message := "someRandomMessage" + signature, err := userWallet.Sign([]byte(message), secretKey) + require.NoError(t, err) + result, err := userWallet.Verify([]byte(message), signature, publicKey) + require.NoError(t, err) + require.Equal(t, result, true) + + validatorWallet := NewValidatorWalletProvider() + secretKey, publicKey = validatorWallet.GenerateKeyPair() + signature, err = validatorWallet.Sign([]byte(message), secretKey) + require.NoError(t, err) + result, err = validatorWallet.Verify([]byte(message), signature, publicKey) + require.NoError(t, err) + require.Equal(t, result, true) +} + +func TestComputePublicKeyFromSecretKey(t *testing.T) { + userWallet := NewUserWalletProvider() + secretKey, publicKey := userWallet.GenerateKeyPair() + key, err := userWallet.ComputePublicKeyFromSecretKey(secretKey) + require.NoError(t, err) + require.Equal(t, publicKey, key) + + validatorWallet := NewValidatorWalletProvider() + secretKey, publicKey = validatorWallet.GenerateKeyPair() + key, err = validatorWallet.ComputePublicKeyFromSecretKey(secretKey) + require.NoError(t, err) + require.Equal(t, publicKey, key) +} From d13c43bc15352652e1afb470bdd08c10f5baf262 Mon Sep 17 00:00:00 2001 From: Staking Agency Date: Tue, 28 Nov 2023 20:24:10 +0200 Subject: [PATCH 3/5] added RoundsPerEpoch to NetworkConfig --- mx-sdk-go-old/data/networkConfig.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mx-sdk-go-old/data/networkConfig.go b/mx-sdk-go-old/data/networkConfig.go index 7902cabb..79e18847 100644 --- a/mx-sdk-go-old/data/networkConfig.go +++ b/mx-sdk-go-old/data/networkConfig.go @@ -27,4 +27,6 @@ type NetworkConfig struct { StartTime int64 `json:"erd_start_time"` Adaptivity bool `json:"erd_adaptivity,string"` Hysteresys float32 `json:"erd_hysteresis,string"` + RoundsPerEpoch uint32 `json:"erd_rounds_per_epoch"` + ExtraGasLimitGuardedTx uint64 `json:"erd_extra_gas_limit_guarded_tx"` } From 33ccc3e5f26707472e8715d2377447230451796f Mon Sep 17 00:00:00 2001 From: Alexander Cristurean Date: Mon, 11 Dec 2023 14:47:26 +0200 Subject: [PATCH 4/5] initial wallet module. --- mx-sdk-go-old/Makefile | 15 - mx-sdk-go-old/aggregator/api/errors/errors.go | 6 - .../aggregator/api/gin/httpServer.go | 52 - .../aggregator/api/gin/httpServer_test.go | 82 - mx-sdk-go-old/aggregator/api/gin/interface.go | 8 - mx-sdk-go-old/aggregator/api/gin/webServer.go | 125 - .../aggregator/api/gin/webServer_test.go | 70 - mx-sdk-go-old/aggregator/api/gin/writers.go | 25 - .../aggregator/api/gin/writers_test.go | 29 - mx-sdk-go-old/aggregator/computers.go | 22 - mx-sdk-go-old/aggregator/computers_test.go | 52 - mx-sdk-go-old/aggregator/converters.go | 7 - mx-sdk-go-old/aggregator/converters_test.go | 19 - mx-sdk-go-old/aggregator/errors.go | 38 - mx-sdk-go-old/aggregator/export_test.go | 25 - .../aggregator/fetchers/baseFetcher.go | 54 - .../aggregator/fetchers/baseFetcher_test.go | 50 - mx-sdk-go-old/aggregator/fetchers/binance.go | 52 - mx-sdk-go-old/aggregator/fetchers/bitfinex.go | 56 - .../aggregator/fetchers/constants.go | 38 - .../aggregator/fetchers/converters.go | 18 - .../aggregator/fetchers/cryptocom.go | 61 - mx-sdk-go-old/aggregator/fetchers/errors.go | 13 - mx-sdk-go-old/aggregator/fetchers/factory.go | 80 - .../aggregator/fetchers/factory_test.go | 77 - .../aggregator/fetchers/fetchers_test.go | 428 --- mx-sdk-go-old/aggregator/fetchers/gemini.go | 51 - mx-sdk-go-old/aggregator/fetchers/hitbtc.go | 50 - mx-sdk-go-old/aggregator/fetchers/huobi.go | 56 - mx-sdk-go-old/aggregator/fetchers/kraken.go | 65 - mx-sdk-go-old/aggregator/fetchers/okex.go | 58 - .../aggregator/fetchers/xexchange.go | 97 - .../aggregator/graphqlResponseGetter.go | 65 - .../aggregator/graphqlResponseGetter_test.go | 44 - .../aggregator/httpResponseGetter.go | 47 - .../aggregator/httpResponseGetter_test.go | 91 - mx-sdk-go-old/aggregator/interface.go | 47 - .../mock/graphqlResponseGetterStub.go | 16 - .../aggregator/mock/httpResponseGetterStub.go | 17 - .../aggregator/mock/priceFetcherStub.go | 40 - .../aggregator/mock/priceNotifeeStub.go | 26 - mx-sdk-go-old/aggregator/notifees/errors.go | 13 - .../aggregator/notifees/interface.go | 32 - .../aggregator/notifees/mxNotifee.go | 153 - .../aggregator/notifees/mxNotifee_test.go | 359 -- mx-sdk-go-old/aggregator/pair.go | 71 - mx-sdk-go-old/aggregator/pair_test.go | 83 - mx-sdk-go-old/aggregator/priceAggregator.go | 114 - .../aggregator/priceAggregator_test.go | 131 - mx-sdk-go-old/aggregator/priceNotifier.go | 196 -- .../aggregator/priceNotifier_test.go | 344 -- mx-sdk-go-old/authentication/errors.go | 12 - mx-sdk-go-old/authentication/interface.go | 7 - .../authentication/mock/nativeStub.go | 19 - mx-sdk-go-old/authentication/native.go | 116 - mx-sdk-go-old/authentication/native_test.go | 195 -- mx-sdk-go-old/blockchain/addressGenerator.go | 105 - .../blockchain/addressGenerator_test.go | 69 - mx-sdk-go-old/blockchain/baseProxy.go | 255 -- mx-sdk-go-old/blockchain/baseProxy_test.go | 716 ---- .../cryptoProvider/cryptoComponentsHolder.go | 61 - .../cryptoComponentsHolder_test.go | 88 - .../blockchain/cryptoProvider/errors.go | 6 - .../blockchain/cryptoProvider/signer.go | 85 - .../blockchain/cryptoProvider/signer_test.go | 122 - .../endpointProviders/baseEndpointProvider.go | 122 - .../baseEndpointProvider_test.go | 30 - .../endpointProviders/nodeEndpointProvider.go | 59 - .../nodeEndpointProvider_test.go | 34 - .../proxyEndpointProvider.go | 59 - .../proxyEndpointProvider_test.go | 36 - mx-sdk-go-old/blockchain/errors.go | 61 - mx-sdk-go-old/blockchain/factory/errors.go | 6 - mx-sdk-go-old/blockchain/factory/factory.go | 37 - .../blockchain/factory/factory_test.go | 94 - mx-sdk-go-old/blockchain/factory/interface.go | 50 - .../disabledFinalityProvider.go | 21 - .../disabledFinalityProvider_test.go | 24 - .../blockchain/finalityProvider/errors.go | 15 - .../blockchain/finalityProvider/interface.go | 12 - .../finalityProvider/nodeFinalityProvider.go | 84 - .../nodeFinalityProvider_test.go | 152 - .../finalityProvider/proxyFinalityProvider.go | 122 - .../proxyFinalityProvider_test.go | 197 -- mx-sdk-go-old/blockchain/interface.go | 61 - mx-sdk-go-old/blockchain/proxy.go | 633 ---- mx-sdk-go-old/blockchain/proxy_test.go | 992 ------ .../blockchain/queryResponseError.go | 29 - .../blockchain/queryResponseError_test.go | 16 - mx-sdk-go-old/blockchain/shardCoordinator.go | 40 - mx-sdk-go-old/blockchain/vmQueryGetter.go | 176 - .../blockchain/vmQueryGetter_test.go | 346 -- mx-sdk-go-old/builders/baseBuilder.go | 97 - mx-sdk-go-old/builders/baseBuilder_test.go | 26 - mx-sdk-go-old/builders/errors.go | 42 - mx-sdk-go-old/builders/interface.go | 53 - mx-sdk-go-old/builders/relayedTxV1Builder.go | 136 - .../builders/relayedTxV1Builder_test.go | 101 - mx-sdk-go-old/builders/relayedTxV2Builder.go | 117 - .../builders/relayedTxV2Builder_test.go | 66 - mx-sdk-go-old/builders/txBuilder.go | 119 - mx-sdk-go-old/builders/txBuilder_test.go | 148 - mx-sdk-go-old/builders/txDataBuilder.go | 106 - mx-sdk-go-old/builders/txDataBuilder_test.go | 164 - mx-sdk-go-old/builders/vmQueryBuilder.go | 109 - mx-sdk-go-old/builders/vmQueryBuilder_test.go | 111 - mx-sdk-go-old/core/api.go | 53 - mx-sdk-go-old/core/api_test.go | 46 - mx-sdk-go-old/core/constants.go | 10 - mx-sdk-go-old/core/http/clientWrapper.go | 105 - mx-sdk-go-old/core/http/clientWrapper_test.go | 100 - mx-sdk-go-old/core/http/interface.go | 8 - mx-sdk-go-old/core/interface.go | 21 - mx-sdk-go-old/core/polling/errors.go | 15 - mx-sdk-go-old/core/polling/interface.go | 10 - .../core/polling/mock/executorStub.go | 22 - mx-sdk-go-old/core/polling/pollingHandler.go | 144 - .../core/polling/pollingHandler_test.go | 204 -- mx-sdk-go-old/core/types.go | 11 - mx-sdk-go-old/core/variables.go | 11 - mx-sdk-go-old/data/account.go | 88 - mx-sdk-go-old/data/address.go | 57 - mx-sdk-go-old/data/enableEpochsConfig.go | 24 - mx-sdk-go-old/data/hyperblock.go | 27 - mx-sdk-go-old/data/internalBlock.go | 19 - mx-sdk-go-old/data/mnemonic.go | 13 - mx-sdk-go-old/data/mnemonic_test.go | 16 - mx-sdk-go-old/data/networkConfig.go | 32 - mx-sdk-go-old/data/networkEconomics.go | 21 - mx-sdk-go-old/data/networkStatus.go | 26 - mx-sdk-go-old/data/nodeConfig.go | 27 - mx-sdk-go-old/data/nodeStatus.go | 10 - mx-sdk-go-old/data/ratingsConfig.go | 41 - mx-sdk-go-old/data/transaction.go | 94 - mx-sdk-go-old/data/vmValues.go | 33 - mx-sdk-go-old/disabled/accounts.go | 144 - mx-sdk-go-old/disabled/blockchain.go | 76 - .../disabled/blockchainHookCounter.go | 35 - .../disabled/builtInFunctionContainer.go | 47 - mx-sdk-go-old/disabled/cache.go | 19 - mx-sdk-go-old/disabled/datapool.go | 90 - mx-sdk-go-old/disabled/enableEpochsHandler.go | 584 ---- mx-sdk-go-old/disabled/epochNotifier.go | 28 - mx-sdk-go-old/disabled/epochStartNotifier.go | 22 - .../disabled/fallbackHeaderValidator.go | 19 - mx-sdk-go-old/disabled/gasScheduleNotifier.go | 29 - .../disabled/globalSettingsHandler.go | 20 - mx-sdk-go-old/disabled/nodeTypeProvider.go | 23 - mx-sdk-go-old/disabled/shardCoordinator.go | 35 - mx-sdk-go-old/disabled/shuffleOutHandler.go | 24 - .../disabled/simpleESDTNFTStorageHandler.go | 26 - mx-sdk-go-old/disabled/storageService.go | 63 - mx-sdk-go-old/disabled/storer.go | 80 - .../examples/examplesAccount/main.go | 65 - mx-sdk-go-old/examples/examplesBlock/main.go | 52 - .../examplesFlowWalletTracker/main.go | 204 -- .../mock/memoryNonceTracker.go | 30 - .../mock/trackableAddressProviderMock.go | 61 - .../examples/examplesHeaderCheck/main.go | 74 - .../examples/examplesPriceAggregator/main.go | 245 -- .../examples/examplesTransaction/main.go | 114 - .../examples/examplesVMQuery/main.go | 47 - mx-sdk-go-old/examples/examplesWallet/main.go | 50 - mx-sdk-go-old/examples/keys.go | 14 - mx-sdk-go-old/examples/networks.go | 9 - mx-sdk-go-old/go.mod | 166 - mx-sdk-go-old/go.sum | 2953 ----------------- mx-sdk-go-old/headerCheck/errors.go | 18 - mx-sdk-go-old/headerCheck/export_test.go | 15 - .../headerCheck/factory/coreComponents.go | 144 - .../headerCheck/factory/cryptoComponents.go | 48 - .../headerCheck/factory/nodesCoordinator.go | 137 - mx-sdk-go-old/headerCheck/headerCheck.go | 122 - .../headerCheck/headerCheckFactory.go | 103 - mx-sdk-go-old/headerCheck/headerCheck_test.go | 195 -- mx-sdk-go-old/headerCheck/interface.go | 44 - mx-sdk-go-old/headerCheck/rawHeaderHandler.go | 105 - .../headerCheck/rawHeaderHandler_test.go | 212 -- mx-sdk-go-old/interactors/errors.go | 36 - mx-sdk-go-old/interactors/interface.go | 57 - .../nonceHandlerV1/addressNonceHandler.go | 133 - .../nonceTransactionsHandler.go | 172 - .../nonceTransactionsHandler_test.go | 471 --- .../nonceHandlerV2/addressNonceHandler.go | 204 -- .../addressNonceHandlerCreator.go | 19 - .../addressNonceHandlerCreator_test.go | 27 - .../addressNonceHandler_test.go | 364 -- .../interactors/nonceHandlerV2/export_test.go | 23 - .../nonceTransactionsHandler.go | 215 -- .../nonceTransactionsHandler_test.go | 499 --- .../singleTransactionAddressNonceHandler.go | 120 - ...leTransactionAddressNonceHandlerCreator.go | 19 - ...nsactionAddressNonceHandlerCreator_test.go | 27 - ...ngleTransactionAddressNonceHandler_test.go | 244 -- mx-sdk-go-old/interactors/testdata/test.json | 1 - mx-sdk-go-old/interactors/testdata/test.pem | 5 - .../interactors/testdata/testWithKind.json | 21 - mx-sdk-go-old/interactors/transaction.go | 112 - mx-sdk-go-old/interactors/transaction_test.go | 171 - mx-sdk-go-old/interactors/wallet.go | 374 --- mx-sdk-go-old/interactors/wallet_test.go | 171 - mx-sdk-go-old/libraries/libbls/README.md | 17 - mx-sdk-go-old/libraries/libbls/libbls.go | 110 - mx-sdk-go-old/libraries/libbls/libbls.h | 78 - mx-sdk-go-old/libraries/libbls/libbls_test.go | 89 - mx-sdk-go-old/libraries/libbls/main.go | 42 - mx-sdk-go-old/serde/deserializer.go | 182 - mx-sdk-go-old/serde/deserializer_test.go | 106 - mx-sdk-go-old/serde/interface.go | 7 - mx-sdk-go-old/serde/sourceBuffer.go | 202 -- .../serde/testingMocks/basicDataTypes | Bin 75 -> 0 bytes .../serde/testingMocks/basicTypeBigInt | Bin 75 -> 0 bytes mx-sdk-go-old/serde/testingMocks/entities.go | 40 - .../serde/testingMocks/nestedStructures | Bin 68 -> 0 bytes mx-sdk-go-old/storage/mapCacher.go | 182 - mx-sdk-go-old/storage/mapCacher_test.go | 14 - .../testsCommon/cryptoComponentsHolderStub.go | 51 - .../testsCommon/finalityProviderStub.go | 22 - .../testsCommon/headerSigVerifierStub.go | 52 - .../testsCommon/httpClientWrapperStub.go | 35 - .../addressNonceHandlerCreatorStub.go | 24 - mx-sdk-go-old/testsCommon/marshalizerMock.go | 53 - mx-sdk-go-old/testsCommon/marshalizerStub.go | 22 - .../testsCommon/nodesCoordinatorStub.go | 183 - mx-sdk-go-old/testsCommon/privateKeyStub.go | 52 - mx-sdk-go-old/testsCommon/proxyStub.go | 215 -- mx-sdk-go-old/testsCommon/publicKeyStub.go | 42 - .../testsCommon/rawHeaderHandlerStub.go | 44 - .../testsCommon/server/serverStub.go | 34 - mx-sdk-go-old/testsCommon/signerStub.go | 55 - mx-sdk-go-old/testsCommon/txBuilderStub.go | 25 - .../testsCommon/txNonceHandlerV1Stub.go | 57 - .../testsCommon/txNonceHandlerV2Stub.go | 48 - .../workflows/addressesAccumulator.go | 34 - mx-sdk-go-old/workflows/errors.go | 24 - mx-sdk-go-old/workflows/interface.go | 40 - mx-sdk-go-old/workflows/moveBalanceHandler.go | 175 - mx-sdk-go-old/workflows/walletsTracker.go | 194 -- 238 files changed, 24441 deletions(-) delete mode 100644 mx-sdk-go-old/Makefile delete mode 100644 mx-sdk-go-old/aggregator/api/errors/errors.go delete mode 100644 mx-sdk-go-old/aggregator/api/gin/httpServer.go delete mode 100644 mx-sdk-go-old/aggregator/api/gin/httpServer_test.go delete mode 100644 mx-sdk-go-old/aggregator/api/gin/interface.go delete mode 100644 mx-sdk-go-old/aggregator/api/gin/webServer.go delete mode 100644 mx-sdk-go-old/aggregator/api/gin/webServer_test.go delete mode 100644 mx-sdk-go-old/aggregator/api/gin/writers.go delete mode 100644 mx-sdk-go-old/aggregator/api/gin/writers_test.go delete mode 100644 mx-sdk-go-old/aggregator/computers.go delete mode 100644 mx-sdk-go-old/aggregator/computers_test.go delete mode 100644 mx-sdk-go-old/aggregator/converters.go delete mode 100644 mx-sdk-go-old/aggregator/converters_test.go delete mode 100644 mx-sdk-go-old/aggregator/errors.go delete mode 100644 mx-sdk-go-old/aggregator/export_test.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/baseFetcher.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/baseFetcher_test.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/binance.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/bitfinex.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/constants.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/converters.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/cryptocom.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/errors.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/factory.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/factory_test.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/fetchers_test.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/gemini.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/hitbtc.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/huobi.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/kraken.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/okex.go delete mode 100644 mx-sdk-go-old/aggregator/fetchers/xexchange.go delete mode 100644 mx-sdk-go-old/aggregator/graphqlResponseGetter.go delete mode 100644 mx-sdk-go-old/aggregator/graphqlResponseGetter_test.go delete mode 100644 mx-sdk-go-old/aggregator/httpResponseGetter.go delete mode 100644 mx-sdk-go-old/aggregator/httpResponseGetter_test.go delete mode 100644 mx-sdk-go-old/aggregator/interface.go delete mode 100644 mx-sdk-go-old/aggregator/mock/graphqlResponseGetterStub.go delete mode 100644 mx-sdk-go-old/aggregator/mock/httpResponseGetterStub.go delete mode 100644 mx-sdk-go-old/aggregator/mock/priceFetcherStub.go delete mode 100644 mx-sdk-go-old/aggregator/mock/priceNotifeeStub.go delete mode 100644 mx-sdk-go-old/aggregator/notifees/errors.go delete mode 100644 mx-sdk-go-old/aggregator/notifees/interface.go delete mode 100644 mx-sdk-go-old/aggregator/notifees/mxNotifee.go delete mode 100644 mx-sdk-go-old/aggregator/notifees/mxNotifee_test.go delete mode 100644 mx-sdk-go-old/aggregator/pair.go delete mode 100644 mx-sdk-go-old/aggregator/pair_test.go delete mode 100644 mx-sdk-go-old/aggregator/priceAggregator.go delete mode 100644 mx-sdk-go-old/aggregator/priceAggregator_test.go delete mode 100644 mx-sdk-go-old/aggregator/priceNotifier.go delete mode 100644 mx-sdk-go-old/aggregator/priceNotifier_test.go delete mode 100644 mx-sdk-go-old/authentication/errors.go delete mode 100644 mx-sdk-go-old/authentication/interface.go delete mode 100644 mx-sdk-go-old/authentication/mock/nativeStub.go delete mode 100644 mx-sdk-go-old/authentication/native.go delete mode 100644 mx-sdk-go-old/authentication/native_test.go delete mode 100644 mx-sdk-go-old/blockchain/addressGenerator.go delete mode 100644 mx-sdk-go-old/blockchain/addressGenerator_test.go delete mode 100644 mx-sdk-go-old/blockchain/baseProxy.go delete mode 100644 mx-sdk-go-old/blockchain/baseProxy_test.go delete mode 100644 mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder.go delete mode 100644 mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder_test.go delete mode 100644 mx-sdk-go-old/blockchain/cryptoProvider/errors.go delete mode 100644 mx-sdk-go-old/blockchain/cryptoProvider/signer.go delete mode 100644 mx-sdk-go-old/blockchain/cryptoProvider/signer_test.go delete mode 100644 mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider.go delete mode 100644 mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider_test.go delete mode 100644 mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider.go delete mode 100644 mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider_test.go delete mode 100644 mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider.go delete mode 100644 mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider_test.go delete mode 100644 mx-sdk-go-old/blockchain/errors.go delete mode 100644 mx-sdk-go-old/blockchain/factory/errors.go delete mode 100644 mx-sdk-go-old/blockchain/factory/factory.go delete mode 100644 mx-sdk-go-old/blockchain/factory/factory_test.go delete mode 100644 mx-sdk-go-old/blockchain/factory/interface.go delete mode 100644 mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider.go delete mode 100644 mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider_test.go delete mode 100644 mx-sdk-go-old/blockchain/finalityProvider/errors.go delete mode 100644 mx-sdk-go-old/blockchain/finalityProvider/interface.go delete mode 100644 mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider.go delete mode 100644 mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider_test.go delete mode 100644 mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider.go delete mode 100644 mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider_test.go delete mode 100644 mx-sdk-go-old/blockchain/interface.go delete mode 100644 mx-sdk-go-old/blockchain/proxy.go delete mode 100644 mx-sdk-go-old/blockchain/proxy_test.go delete mode 100644 mx-sdk-go-old/blockchain/queryResponseError.go delete mode 100644 mx-sdk-go-old/blockchain/queryResponseError_test.go delete mode 100644 mx-sdk-go-old/blockchain/shardCoordinator.go delete mode 100644 mx-sdk-go-old/blockchain/vmQueryGetter.go delete mode 100644 mx-sdk-go-old/blockchain/vmQueryGetter_test.go delete mode 100644 mx-sdk-go-old/builders/baseBuilder.go delete mode 100644 mx-sdk-go-old/builders/baseBuilder_test.go delete mode 100644 mx-sdk-go-old/builders/errors.go delete mode 100644 mx-sdk-go-old/builders/interface.go delete mode 100644 mx-sdk-go-old/builders/relayedTxV1Builder.go delete mode 100644 mx-sdk-go-old/builders/relayedTxV1Builder_test.go delete mode 100644 mx-sdk-go-old/builders/relayedTxV2Builder.go delete mode 100644 mx-sdk-go-old/builders/relayedTxV2Builder_test.go delete mode 100644 mx-sdk-go-old/builders/txBuilder.go delete mode 100644 mx-sdk-go-old/builders/txBuilder_test.go delete mode 100644 mx-sdk-go-old/builders/txDataBuilder.go delete mode 100644 mx-sdk-go-old/builders/txDataBuilder_test.go delete mode 100644 mx-sdk-go-old/builders/vmQueryBuilder.go delete mode 100644 mx-sdk-go-old/builders/vmQueryBuilder_test.go delete mode 100644 mx-sdk-go-old/core/api.go delete mode 100644 mx-sdk-go-old/core/api_test.go delete mode 100644 mx-sdk-go-old/core/constants.go delete mode 100644 mx-sdk-go-old/core/http/clientWrapper.go delete mode 100644 mx-sdk-go-old/core/http/clientWrapper_test.go delete mode 100644 mx-sdk-go-old/core/http/interface.go delete mode 100644 mx-sdk-go-old/core/interface.go delete mode 100644 mx-sdk-go-old/core/polling/errors.go delete mode 100644 mx-sdk-go-old/core/polling/interface.go delete mode 100644 mx-sdk-go-old/core/polling/mock/executorStub.go delete mode 100644 mx-sdk-go-old/core/polling/pollingHandler.go delete mode 100644 mx-sdk-go-old/core/polling/pollingHandler_test.go delete mode 100644 mx-sdk-go-old/core/types.go delete mode 100644 mx-sdk-go-old/core/variables.go delete mode 100644 mx-sdk-go-old/data/account.go delete mode 100644 mx-sdk-go-old/data/address.go delete mode 100644 mx-sdk-go-old/data/enableEpochsConfig.go delete mode 100644 mx-sdk-go-old/data/hyperblock.go delete mode 100644 mx-sdk-go-old/data/internalBlock.go delete mode 100644 mx-sdk-go-old/data/mnemonic.go delete mode 100644 mx-sdk-go-old/data/mnemonic_test.go delete mode 100644 mx-sdk-go-old/data/networkConfig.go delete mode 100644 mx-sdk-go-old/data/networkEconomics.go delete mode 100644 mx-sdk-go-old/data/networkStatus.go delete mode 100644 mx-sdk-go-old/data/nodeConfig.go delete mode 100644 mx-sdk-go-old/data/nodeStatus.go delete mode 100644 mx-sdk-go-old/data/ratingsConfig.go delete mode 100644 mx-sdk-go-old/data/transaction.go delete mode 100644 mx-sdk-go-old/data/vmValues.go delete mode 100644 mx-sdk-go-old/disabled/accounts.go delete mode 100644 mx-sdk-go-old/disabled/blockchain.go delete mode 100644 mx-sdk-go-old/disabled/blockchainHookCounter.go delete mode 100644 mx-sdk-go-old/disabled/builtInFunctionContainer.go delete mode 100644 mx-sdk-go-old/disabled/cache.go delete mode 100644 mx-sdk-go-old/disabled/datapool.go delete mode 100644 mx-sdk-go-old/disabled/enableEpochsHandler.go delete mode 100644 mx-sdk-go-old/disabled/epochNotifier.go delete mode 100644 mx-sdk-go-old/disabled/epochStartNotifier.go delete mode 100644 mx-sdk-go-old/disabled/fallbackHeaderValidator.go delete mode 100644 mx-sdk-go-old/disabled/gasScheduleNotifier.go delete mode 100644 mx-sdk-go-old/disabled/globalSettingsHandler.go delete mode 100644 mx-sdk-go-old/disabled/nodeTypeProvider.go delete mode 100644 mx-sdk-go-old/disabled/shardCoordinator.go delete mode 100644 mx-sdk-go-old/disabled/shuffleOutHandler.go delete mode 100644 mx-sdk-go-old/disabled/simpleESDTNFTStorageHandler.go delete mode 100644 mx-sdk-go-old/disabled/storageService.go delete mode 100644 mx-sdk-go-old/disabled/storer.go delete mode 100644 mx-sdk-go-old/examples/examplesAccount/main.go delete mode 100644 mx-sdk-go-old/examples/examplesBlock/main.go delete mode 100644 mx-sdk-go-old/examples/examplesFlowWalletTracker/main.go delete mode 100644 mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/memoryNonceTracker.go delete mode 100644 mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/trackableAddressProviderMock.go delete mode 100644 mx-sdk-go-old/examples/examplesHeaderCheck/main.go delete mode 100644 mx-sdk-go-old/examples/examplesPriceAggregator/main.go delete mode 100644 mx-sdk-go-old/examples/examplesTransaction/main.go delete mode 100644 mx-sdk-go-old/examples/examplesVMQuery/main.go delete mode 100644 mx-sdk-go-old/examples/examplesWallet/main.go delete mode 100644 mx-sdk-go-old/examples/keys.go delete mode 100644 mx-sdk-go-old/examples/networks.go delete mode 100644 mx-sdk-go-old/go.mod delete mode 100644 mx-sdk-go-old/go.sum delete mode 100644 mx-sdk-go-old/headerCheck/errors.go delete mode 100644 mx-sdk-go-old/headerCheck/export_test.go delete mode 100644 mx-sdk-go-old/headerCheck/factory/coreComponents.go delete mode 100644 mx-sdk-go-old/headerCheck/factory/cryptoComponents.go delete mode 100644 mx-sdk-go-old/headerCheck/factory/nodesCoordinator.go delete mode 100644 mx-sdk-go-old/headerCheck/headerCheck.go delete mode 100644 mx-sdk-go-old/headerCheck/headerCheckFactory.go delete mode 100644 mx-sdk-go-old/headerCheck/headerCheck_test.go delete mode 100644 mx-sdk-go-old/headerCheck/interface.go delete mode 100644 mx-sdk-go-old/headerCheck/rawHeaderHandler.go delete mode 100644 mx-sdk-go-old/headerCheck/rawHeaderHandler_test.go delete mode 100644 mx-sdk-go-old/interactors/errors.go delete mode 100644 mx-sdk-go-old/interactors/interface.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV1/addressNonceHandler.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler_test.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator_test.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler_test.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/export_test.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler_test.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go delete mode 100644 mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go delete mode 100644 mx-sdk-go-old/interactors/testdata/test.json delete mode 100644 mx-sdk-go-old/interactors/testdata/test.pem delete mode 100644 mx-sdk-go-old/interactors/testdata/testWithKind.json delete mode 100644 mx-sdk-go-old/interactors/transaction.go delete mode 100644 mx-sdk-go-old/interactors/transaction_test.go delete mode 100644 mx-sdk-go-old/interactors/wallet.go delete mode 100644 mx-sdk-go-old/interactors/wallet_test.go delete mode 100644 mx-sdk-go-old/libraries/libbls/README.md delete mode 100644 mx-sdk-go-old/libraries/libbls/libbls.go delete mode 100644 mx-sdk-go-old/libraries/libbls/libbls.h delete mode 100644 mx-sdk-go-old/libraries/libbls/libbls_test.go delete mode 100644 mx-sdk-go-old/libraries/libbls/main.go delete mode 100644 mx-sdk-go-old/serde/deserializer.go delete mode 100644 mx-sdk-go-old/serde/deserializer_test.go delete mode 100644 mx-sdk-go-old/serde/interface.go delete mode 100644 mx-sdk-go-old/serde/sourceBuffer.go delete mode 100644 mx-sdk-go-old/serde/testingMocks/basicDataTypes delete mode 100644 mx-sdk-go-old/serde/testingMocks/basicTypeBigInt delete mode 100644 mx-sdk-go-old/serde/testingMocks/entities.go delete mode 100644 mx-sdk-go-old/serde/testingMocks/nestedStructures delete mode 100644 mx-sdk-go-old/storage/mapCacher.go delete mode 100644 mx-sdk-go-old/storage/mapCacher_test.go delete mode 100644 mx-sdk-go-old/testsCommon/cryptoComponentsHolderStub.go delete mode 100644 mx-sdk-go-old/testsCommon/finalityProviderStub.go delete mode 100644 mx-sdk-go-old/testsCommon/headerSigVerifierStub.go delete mode 100644 mx-sdk-go-old/testsCommon/httpClientWrapperStub.go delete mode 100644 mx-sdk-go-old/testsCommon/interactors/addressNonceHandlerCreatorStub.go delete mode 100644 mx-sdk-go-old/testsCommon/marshalizerMock.go delete mode 100644 mx-sdk-go-old/testsCommon/marshalizerStub.go delete mode 100644 mx-sdk-go-old/testsCommon/nodesCoordinatorStub.go delete mode 100644 mx-sdk-go-old/testsCommon/privateKeyStub.go delete mode 100644 mx-sdk-go-old/testsCommon/proxyStub.go delete mode 100644 mx-sdk-go-old/testsCommon/publicKeyStub.go delete mode 100644 mx-sdk-go-old/testsCommon/rawHeaderHandlerStub.go delete mode 100644 mx-sdk-go-old/testsCommon/server/serverStub.go delete mode 100644 mx-sdk-go-old/testsCommon/signerStub.go delete mode 100644 mx-sdk-go-old/testsCommon/txBuilderStub.go delete mode 100644 mx-sdk-go-old/testsCommon/txNonceHandlerV1Stub.go delete mode 100644 mx-sdk-go-old/testsCommon/txNonceHandlerV2Stub.go delete mode 100644 mx-sdk-go-old/workflows/addressesAccumulator.go delete mode 100644 mx-sdk-go-old/workflows/errors.go delete mode 100644 mx-sdk-go-old/workflows/interface.go delete mode 100644 mx-sdk-go-old/workflows/moveBalanceHandler.go delete mode 100644 mx-sdk-go-old/workflows/walletsTracker.go diff --git a/mx-sdk-go-old/Makefile b/mx-sdk-go-old/Makefile deleted file mode 100644 index d1836927..00000000 --- a/mx-sdk-go-old/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -test: - @echo " > Running unit tests" - go test -cover -race -coverprofile=coverage.txt -covermode=atomic -v ./... - -lint-install: -ifeq (,$(wildcard test -f bin/golangci-lint)) - @echo "Installing golint" - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -endif - -run-lint: - @echo "Running golint" - bin/golangci-lint run --max-issues-per-linter 0 --max-same-issues 0 --timeout=2m - -lint: lint-install run-lint diff --git a/mx-sdk-go-old/aggregator/api/errors/errors.go b/mx-sdk-go-old/aggregator/api/errors/errors.go deleted file mode 100644 index bb113784..00000000 --- a/mx-sdk-go-old/aggregator/api/errors/errors.go +++ /dev/null @@ -1,6 +0,0 @@ -package errors - -import "errors" - -// ErrNilHttpServer signals that a nil http server has been provided -var ErrNilHttpServer = errors.New("nil http server") diff --git a/mx-sdk-go-old/aggregator/api/gin/httpServer.go b/mx-sdk-go-old/aggregator/api/gin/httpServer.go deleted file mode 100644 index 3b0afea3..00000000 --- a/mx-sdk-go-old/aggregator/api/gin/httpServer.go +++ /dev/null @@ -1,52 +0,0 @@ -package gin - -import ( - "context" - "net/http" - "time" - - apiErrors "github.com/multiversx/mx-chain-go/api/errors" -) - -type httpServer struct { - server server -} - -// NewHttpServer returns a new instance of httpServer -func NewHttpServer(server server) (*httpServer, error) { - if server == nil { - return nil, apiErrors.ErrNilHttpServer - } - - return &httpServer{ - server: server, - }, nil -} - -// Start will handle the starting of the gin web server. This call is blocking and it should be -// called on a go routine (different than the main one) -func (h *httpServer) Start() { - err := h.server.ListenAndServe() - if err != nil { - if err != http.ErrServerClosed { - log.Error("could not start webserver", - "error", err.Error(), - ) - } else { - log.Debug("ListenAndServe - webserver closed") - } - } -} - -// Close will handle the stopping of the gin web server -func (h *httpServer) Close() error { - ctx, cancel := context.WithTimeout(context.Background(), time.Second) - defer cancel() - - return h.server.Shutdown(ctx) -} - -// IsInterfaceNil returns true if there is no value under the interface -func (h *httpServer) IsInterfaceNil() bool { - return h == nil -} diff --git a/mx-sdk-go-old/aggregator/api/gin/httpServer_test.go b/mx-sdk-go-old/aggregator/api/gin/httpServer_test.go deleted file mode 100644 index 78eb277a..00000000 --- a/mx-sdk-go-old/aggregator/api/gin/httpServer_test.go +++ /dev/null @@ -1,82 +0,0 @@ -package gin - -import ( - "context" - "errors" - "net/http" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - apiErrors "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/api/errors" - testsServer "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon/server" - "github.com/stretchr/testify/assert" -) - -func TestNewHttpServer(t *testing.T) { - t.Parallel() - - t.Run("nil server should error", func(t *testing.T) { - t.Parallel() - - hs, err := NewHttpServer(nil) - assert.Equal(t, apiErrors.ErrNilHttpServer, err) - assert.True(t, check.IfNil(hs)) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - hs, err := NewHttpServer(&testsServer.ServerStub{}) - assert.Nil(t, err) - assert.False(t, check.IfNil(hs)) - }) -} - -func TestNewHttpServer_Start(t *testing.T) { - t.Parallel() - - t.Run("ListenAndServe returns closed server", func(t *testing.T) { - t.Parallel() - - s := &testsServer.ServerStub{ - ListenAndServeCalled: func() error { - return http.ErrServerClosed - }, - } - - hs, _ := NewHttpServer(s) - assert.False(t, check.IfNil(hs)) - - hs.Start() - }) - t.Run("ListenAndServe returns other error", func(t *testing.T) { - t.Parallel() - - s := &testsServer.ServerStub{ - ListenAndServeCalled: func() error { - return http.ErrContentLength - }, - } - - hs, _ := NewHttpServer(s) - assert.False(t, check.IfNil(hs)) - - hs.Start() - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected err") - s := &testsServer.ServerStub{ - ShutdownCalled: func(ctx context.Context) error { - return expectedErr - }, - } - hs, _ := NewHttpServer(s) - assert.False(t, check.IfNil(hs)) - - hs.Start() - - err := hs.Close() - assert.Equal(t, expectedErr, err) - }) -} diff --git a/mx-sdk-go-old/aggregator/api/gin/interface.go b/mx-sdk-go-old/aggregator/api/gin/interface.go deleted file mode 100644 index 6773fe65..00000000 --- a/mx-sdk-go-old/aggregator/api/gin/interface.go +++ /dev/null @@ -1,8 +0,0 @@ -package gin - -import "context" - -type server interface { - ListenAndServe() error - Shutdown(ctx context.Context) error -} diff --git a/mx-sdk-go-old/aggregator/api/gin/webServer.go b/mx-sdk-go-old/aggregator/api/gin/webServer.go deleted file mode 100644 index 6209db86..00000000 --- a/mx-sdk-go-old/aggregator/api/gin/webServer.go +++ /dev/null @@ -1,125 +0,0 @@ -package gin - -import ( - "fmt" - "net/http" - "sync" - - "github.com/gin-contrib/cors" - "github.com/gin-gonic/gin" - "github.com/gorilla/websocket" - "github.com/multiversx/mx-chain-core-go/marshal" - "github.com/multiversx/mx-chain-go/api/logs" - mxChainShared "github.com/multiversx/mx-chain-go/api/shared" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -var log = logger.GetOrCreate("api") - -type webServer struct { - sync.RWMutex - httpServer mxChainShared.HttpServerCloser - apiInterface string - cancelFunc func() -} - -// NewWebServerHandler returns a new instance of webServer -func NewWebServerHandler(apiInterface string) (*webServer, error) { - gws := &webServer{ - apiInterface: apiInterface, - } - - return gws, nil -} - -// StartHttpServer will create a new instance of http.Server and populate it with all the routes -func (ws *webServer) StartHttpServer() error { - ws.Lock() - defer ws.Unlock() - - if ws.apiInterface == core.WebServerOffString { - log.Debug("web server is turned off") - return nil - } - - var engine *gin.Engine - - gin.DefaultWriter = &ginWriter{} - gin.DefaultErrorWriter = &ginErrorWriter{} - gin.DisableConsoleColor() - gin.SetMode(gin.ReleaseMode) - - engine = gin.Default() - engine.Use(cors.Default()) - - ws.registerRoutes(engine) - - server := &http.Server{Addr: ws.apiInterface, Handler: engine} - log.Debug("creating gin web sever", "interface", ws.apiInterface) - var err error - ws.httpServer, err = NewHttpServer(server) - if err != nil { - return err - } - - log.Debug("starting web server") - go ws.httpServer.Start() - - return nil -} - -func (ws *webServer) registerRoutes(ginRouter *gin.Engine) { - marshalizerForLogs := &marshal.GogoProtoMarshalizer{} - registerLoggerWsRoute(ginRouter, marshalizerForLogs) -} - -// registerLoggerWsRoute will register the log route -func registerLoggerWsRoute(ws *gin.Engine, marshalizer marshal.Marshalizer) { - upgrader := websocket.Upgrader{} - - ws.GET("/log", func(c *gin.Context) { - upgrader.CheckOrigin = func(r *http.Request) bool { - return true - } - - conn, err := upgrader.Upgrade(c.Writer, c.Request, nil) - if err != nil { - log.Error(err.Error()) - return - } - - ls, err := logs.NewLogSender(marshalizer, conn, log) - if err != nil { - log.Error(err.Error()) - return - } - - ls.StartSendingBlocking() - }) -} - -// Close will handle the closing of inner components -func (ws *webServer) Close() error { - if ws.cancelFunc != nil { - ws.cancelFunc() - } - - var err error - ws.Lock() - if ws.httpServer != nil { - err = ws.httpServer.Close() - } - ws.Unlock() - - if err != nil { - err = fmt.Errorf("%w while closing the http server in gin/webServer", err) - } - - return err -} - -// IsInterfaceNil returns true if there is no value under the interface -func (ws *webServer) IsInterfaceNil() bool { - return ws == nil -} diff --git a/mx-sdk-go-old/aggregator/api/gin/webServer_test.go b/mx-sdk-go-old/aggregator/api/gin/webServer_test.go deleted file mode 100644 index 071c4c64..00000000 --- a/mx-sdk-go-old/aggregator/api/gin/webServer_test.go +++ /dev/null @@ -1,70 +0,0 @@ -package gin - -import ( - "net/http" - "testing" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/stretchr/testify/assert" -) - -func TestNewWebServerHandler(t *testing.T) { - t.Parallel() - - t.Run("should work", func(t *testing.T) { - t.Parallel() - - ws, err := NewWebServerHandler("127.0.0.1:8080") - assert.Nil(t, err) - assert.False(t, check.IfNil(ws)) - }) -} - -func TestWebServer_StartHttpServer(t *testing.T) { - t.Run("upgrade on get returns error", func(t *testing.T) { - ws, _ := NewWebServerHandler("127.0.0.1:8080") - assert.False(t, check.IfNil(ws)) - - err := ws.StartHttpServer() - assert.Nil(t, err) - - time.Sleep(2 * time.Second) - - resp, err := http.Get("http://127.0.0.1:8080/log") - assert.Nil(t, err) - assert.Equal(t, http.StatusBadRequest, resp.StatusCode) // Bad request - - time.Sleep(2 * time.Second) - err = ws.Close() - assert.Nil(t, err) - }) - t.Run("should work", func(t *testing.T) { - ws, _ := NewWebServerHandler("127.0.0.1:8080") - assert.False(t, check.IfNil(ws)) - - err := ws.StartHttpServer() - assert.Nil(t, err) - - time.Sleep(2 * time.Second) - - client := &http.Client{} - req, err := http.NewRequest("GET", "http://127.0.0.1:8080/log", nil) - assert.Nil(t, err) - - req.Header.Set("Sec-Websocket-Version", "13") - req.Header.Set("Connection", "upgrade") - req.Header.Set("Upgrade", "websocket") - req.Header.Set("Sec-Websocket-Key", "key") - - resp, err := client.Do(req) - assert.Nil(t, err) - - err = resp.Body.Close() - assert.Nil(t, err) - - time.Sleep(2 * time.Second) - err = ws.Close() - assert.Nil(t, err) - }) -} diff --git a/mx-sdk-go-old/aggregator/api/gin/writers.go b/mx-sdk-go-old/aggregator/api/gin/writers.go deleted file mode 100644 index 0e7f3dbb..00000000 --- a/mx-sdk-go-old/aggregator/api/gin/writers.go +++ /dev/null @@ -1,25 +0,0 @@ -package gin - -import "bytes" - -type ginWriter struct { -} - -// Write will output the message using mx-chain-logger-go's logger -func (gv *ginWriter) Write(p []byte) (n int, err error) { - trimmed := bytes.TrimSpace(p) - log.Trace("gin server", "message", string(trimmed)) - - return len(p), nil -} - -type ginErrorWriter struct { -} - -// Write will output the error using mx-chain-logger-go's logger -func (gev *ginErrorWriter) Write(p []byte) (n int, err error) { - trimmed := bytes.TrimSpace(p) - log.Trace("gin server", "error", string(trimmed)) - - return len(p), nil -} diff --git a/mx-sdk-go-old/aggregator/api/gin/writers_test.go b/mx-sdk-go-old/aggregator/api/gin/writers_test.go deleted file mode 100644 index 943d7b79..00000000 --- a/mx-sdk-go-old/aggregator/api/gin/writers_test.go +++ /dev/null @@ -1,29 +0,0 @@ -package gin - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestGinErrorWriter_Write(t *testing.T) { - t.Parallel() - - gew := ginErrorWriter{} - - providedBuff := []byte("provided buff") - l, err := gew.Write(providedBuff) - assert.Nil(t, err) - assert.Equal(t, len(providedBuff), l) -} - -func TestGinWriter_Write(t *testing.T) { - t.Parallel() - - gw := ginWriter{} - - providedBuff := []byte("provided buff") - l, err := gw.Write(providedBuff) - assert.Nil(t, err) - assert.Equal(t, len(providedBuff), l) -} diff --git a/mx-sdk-go-old/aggregator/computers.go b/mx-sdk-go-old/aggregator/computers.go deleted file mode 100644 index 3a6e9bf9..00000000 --- a/mx-sdk-go-old/aggregator/computers.go +++ /dev/null @@ -1,22 +0,0 @@ -package aggregator - -import "sort" - -const minNumberOfElementsToComputeMedian = 1 - -func computeMedian(nums []float64) (float64, error) { - if len(nums) < minNumberOfElementsToComputeMedian { - return 0, ErrInvalidNumOfElementsToComputeMedian - } - - sort.Float64s(nums) - - numsLen := len(nums) - mid := numsLen / 2 - - if numsLen&1 != 0 { - return nums[mid], nil - } - - return (nums[mid-1] + nums[mid]) / 2, nil -} diff --git a/mx-sdk-go-old/aggregator/computers_test.go b/mx-sdk-go-old/aggregator/computers_test.go deleted file mode 100644 index 08881dea..00000000 --- a/mx-sdk-go-old/aggregator/computers_test.go +++ /dev/null @@ -1,52 +0,0 @@ -package aggregator_test - -import ( - "testing" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" - "github.com/stretchr/testify/assert" -) - -func TestComputeMedian(t *testing.T) { - t.Parallel() - - t.Run("nil slice should err", func(t *testing.T) { - t.Parallel() - - median, err := aggregator.ComputeMedian(nil) - assert.Equal(t, 0.0, median) - assert.Equal(t, aggregator.ErrInvalidNumOfElementsToComputeMedian, err) - }) - t.Run("one value should return that value", func(t *testing.T) { - t.Parallel() - - prices := []float64{1.0045} - median, err := aggregator.ComputeMedian(prices) - assert.Equal(t, 1.0045, median) - assert.Nil(t, err) - }) - t.Run("two values should return the median", func(t *testing.T) { - t.Parallel() - - prices := []float64{1.0045, 1.0047} - median, err := aggregator.ComputeMedian(prices) - assert.Equal(t, 1.0046, median) - assert.Nil(t, err) - }) - t.Run("three values should return the median", func(t *testing.T) { - t.Parallel() - - prices := []float64{1.0045, 1.0047, 1.0049} - median, err := aggregator.ComputeMedian(prices) - assert.Equal(t, 1.0047, median) - assert.Nil(t, err) - }) - t.Run("extreme values should be eliminated", func(t *testing.T) { - t.Parallel() - - prices := []float64{0.0001, 1.0045, 1.0047, 892789.0} - median, err := aggregator.ComputeMedian(prices) - assert.Equal(t, 1.0046, median) - assert.Nil(t, err) - }) -} diff --git a/mx-sdk-go-old/aggregator/converters.go b/mx-sdk-go-old/aggregator/converters.go deleted file mode 100644 index 9bd2982d..00000000 --- a/mx-sdk-go-old/aggregator/converters.go +++ /dev/null @@ -1,7 +0,0 @@ -package aggregator - -import "math" - -func trim(v float64, precision float64) float64 { - return math.Round(v/precision) * precision -} diff --git a/mx-sdk-go-old/aggregator/converters_test.go b/mx-sdk-go-old/aggregator/converters_test.go deleted file mode 100644 index 92b21f68..00000000 --- a/mx-sdk-go-old/aggregator/converters_test.go +++ /dev/null @@ -1,19 +0,0 @@ -package aggregator - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestTrim(t *testing.T) { - t.Parallel() - - assert.Equal(t, 1.0, trim(1, 1)) - assert.Equal(t, 2.0, trim(1.83892672, 1)) - assert.Equal(t, 1.8, trim(1.83892672, 0.1)) - assert.Equal(t, 1.84, trim(1.83892672, 0.01)) - assert.Equal(t, 0.0, trim(1.83892672, 10)) - assert.Equal(t, 10.0, trim(11.83892672, 10)) - assert.Equal(t, 12.0, trim(11.83892672, 1)) -} diff --git a/mx-sdk-go-old/aggregator/errors.go b/mx-sdk-go-old/aggregator/errors.go deleted file mode 100644 index 4b03d2f7..00000000 --- a/mx-sdk-go-old/aggregator/errors.go +++ /dev/null @@ -1,38 +0,0 @@ -package aggregator - -import "errors" - -var ( - // ErrNotEnoughResponses signals that not enough responses were fetched - ErrNotEnoughResponses = errors.New("not enough responses to compute a valid price") - // ErrInvalidMinNumberOfResults signals that an invalid minimum number of results value was provided - ErrInvalidMinNumberOfResults = errors.New("invalid minimum number of results") - // ErrInvalidNumberOfPriceFetchers signals that an invalid number of price fetchers were provided - ErrInvalidNumberOfPriceFetchers = errors.New("invalid number of price fetchers") - // ErrNilPriceFetcher signals that a nil price fetcher was provided - ErrNilPriceFetcher = errors.New("nil price fetcher") - // ErrNilPriceAggregator signals that a nil price aggregator was provided - ErrNilPriceAggregator = errors.New("nil price aggregator") - // ErrEmptyArgsPairsSlice signals that an empty arguments pair slice was provided - ErrEmptyArgsPairsSlice = errors.New("empty pair arguments slice") - // ErrNilArgsPair signals that a nil argument pair was found - ErrNilArgsPair = errors.New("nil pair argument") - // ErrNilPriceNotifee signals that a nil price notifee was provided - ErrNilPriceNotifee = errors.New("nil price notifee") - // ErrInvalidNumOfElementsToComputeMedian signals that an invalid number of elements to compute the median was provided - ErrInvalidNumOfElementsToComputeMedian = errors.New("invalid number of elements to compute the median") - // ErrInvalidDecimals signals that an invalid number of decimals was provided - ErrInvalidDecimals = errors.New("invalid decimals") - // ErrNilBaseName signals that an invalid base name was provided - ErrNilBaseName = errors.New("nil base name") - // ErrNilQuoteName signals that an invalid quote name was provided - ErrNilQuoteName = errors.New("nil quote name") - //ErrNilExchanges signals that an nil exchanges map was provided - ErrNilExchanges = errors.New("nil exchanges map") - // ErrInvalidAutoSendInterval signals that an invalid auto send interval value was provided - ErrInvalidAutoSendInterval = errors.New("invalid auto send interval") - // ErrPairNotSupported signals that the pair is not supported by the fetcher - ErrPairNotSupported = errors.New("pair not supported") - // ErrNilAuthClient signals that a nil auth client was provided - ErrNilAuthClient = errors.New("nil auth client") -) diff --git a/mx-sdk-go-old/aggregator/export_test.go b/mx-sdk-go-old/aggregator/export_test.go deleted file mode 100644 index bbc4b196..00000000 --- a/mx-sdk-go-old/aggregator/export_test.go +++ /dev/null @@ -1,25 +0,0 @@ -package aggregator - -import "time" - -// ComputeMedian - -func ComputeMedian(nums []float64) (float64, error) { - return computeMedian(nums) -} - -// SetLastNotifiedPrices - -func (pn *priceNotifier) SetLastNotifiedPrices(lastNotifiedPrices []float64) { - pn.mut.Lock() - pn.lastNotifiedPrices = lastNotifiedPrices - pn.mut.Unlock() -} - -// SetTimeSinceHandler - -func (pn *priceNotifier) SetTimeSinceHandler(handler func(time time.Time) time.Duration) { - pn.timeSinceHandler = handler -} - -// LastTimeAutoSent - -func (pn *priceNotifier) LastTimeAutoSent() time.Time { - return pn.lastTimeAutoSent -} diff --git a/mx-sdk-go-old/aggregator/fetchers/baseFetcher.go b/mx-sdk-go-old/aggregator/fetchers/baseFetcher.go deleted file mode 100644 index 27b4d40a..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/baseFetcher.go +++ /dev/null @@ -1,54 +0,0 @@ -package fetchers - -import ( - "fmt" - "strings" - "sync" -) - -type baseFetcher struct { - knownPairs map[string]struct{} - knownPairsMut sync.RWMutex -} - -func newBaseFetcher() baseFetcher { - return baseFetcher{ - knownPairs: make(map[string]struct{}), - knownPairsMut: sync.RWMutex{}, - } -} - -func (b *baseFetcher) normalizeQuoteName(quote string, fetcherName string) string { - if strings.Contains(quote, quoteUSDFiat) { - switch fetcherName { - case BinanceName, CryptocomName, HitbtcName, HuobiName, OkexName: - return quoteUSDT - default: - return quoteUSDFiat - } - } - return quote -} - -// AddPair adds the specified base-quote pair to the internal cache -func (b *baseFetcher) AddPair(base, quote string) { - key := b.getPairKey(base, quote) - - b.knownPairsMut.Lock() - b.knownPairs[key] = struct{}{} - b.knownPairsMut.Unlock() -} - -func (b *baseFetcher) hasPair(base, quote string) bool { - key := b.getPairKey(base, quote) - - b.knownPairsMut.RLock() - _, ok := b.knownPairs[key] - b.knownPairsMut.RUnlock() - - return ok -} - -func (b *baseFetcher) getPairKey(base, quote string) string { - return fmt.Sprintf("%s-%s", base, quote) -} diff --git a/mx-sdk-go-old/aggregator/fetchers/baseFetcher_test.go b/mx-sdk-go-old/aggregator/fetchers/baseFetcher_test.go deleted file mode 100644 index 6857c47a..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/baseFetcher_test.go +++ /dev/null @@ -1,50 +0,0 @@ -package fetchers - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func Test_normalizeQuoteName(t *testing.T) { - t.Parallel() - - t.Run("updating to usdt", func(t *testing.T) { - t.Parallel() - - base := baseFetcher{} - quote := "AAA USD AAA" - quote = base.normalizeQuoteName(quote, BinanceName) - assert.Equal(t, quoteUSDT, quote) - }) - t.Run("updating to usd", func(t *testing.T) { - t.Parallel() - - base := baseFetcher{} - quote := "AAA USD AAA" - quote = base.normalizeQuoteName(quote, "other fetcher name") - assert.Equal(t, quoteUSDFiat, quote) - }) - t.Run("update not needed", func(t *testing.T) { - t.Parallel() - - base := baseFetcher{} - providedQuote := "custom quote" - quote := providedQuote - quote = base.normalizeQuoteName(quote, "other fetcher name") - assert.Equal(t, providedQuote, quote) - }) -} - -func TestBaseFetcher_knownPairs(t *testing.T) { - t.Parallel() - - b := baseFetcher{ - knownPairs: make(map[string]struct{}), - } - base := "base" - quote := "quote" - assert.False(t, b.hasPair(base, quote)) - b.AddPair(base, quote) - assert.True(t, b.hasPair(base, quote)) -} diff --git a/mx-sdk-go-old/aggregator/fetchers/binance.go b/mx-sdk-go-old/aggregator/fetchers/binance.go deleted file mode 100644 index 3bb169a3..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/binance.go +++ /dev/null @@ -1,52 +0,0 @@ -package fetchers - -import ( - "context" - "fmt" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -const ( - binancePriceUrl = "https://api.binance.com/api/v3/ticker/price?symbol=%s%s" -) - -type binancePriceRequest struct { - Symbol string `json:"symbol"` - Price string `json:"price"` -} - -type binance struct { - aggregator.ResponseGetter - baseFetcher -} - -// FetchPrice will fetch the price using the http client -func (b *binance) FetchPrice(ctx context.Context, base string, quote string) (float64, error) { - if !b.hasPair(base, quote) { - return 0, aggregator.ErrPairNotSupported - } - - quote = b.normalizeQuoteName(quote, BinanceName) - - var bpr binancePriceRequest - err := b.ResponseGetter.Get(ctx, fmt.Sprintf(binancePriceUrl, base, quote), &bpr) - if err != nil { - return 0, err - } - if bpr.Price == "" { - return 0, errInvalidResponseData - } - - return StrToPositiveFloat64(bpr.Price) -} - -// Name returns the name -func (b *binance) Name() string { - return BinanceName -} - -// IsInterfaceNil returns true if there is no value under the interface -func (b *binance) IsInterfaceNil() bool { - return b == nil -} diff --git a/mx-sdk-go-old/aggregator/fetchers/bitfinex.go b/mx-sdk-go-old/aggregator/fetchers/bitfinex.go deleted file mode 100644 index f73ccffe..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/bitfinex.go +++ /dev/null @@ -1,56 +0,0 @@ -package fetchers - -import ( - "context" - "fmt" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -const ( - bitfinexPriceUrl = "https://api.bitfinex.com/v1/pubticker/%s%s" - bitfinexPriceLongUrl = "https://api.bitfinex.com/v1/pubticker/%s:%s" - maxBaseLength = 3 -) - -type bitfinexPriceRequest struct { - Price string `json:"last_price"` -} - -type bitfinex struct { - aggregator.ResponseGetter - baseFetcher -} - -// FetchPrice will fetch the price using the http client -func (b *bitfinex) FetchPrice(ctx context.Context, base, quote string) (float64, error) { - if !b.hasPair(base, quote) { - return 0, aggregator.ErrPairNotSupported - } - - quote = b.normalizeQuoteName(quote, BitfinexName) - - priceUrl := bitfinexPriceUrl - if len(base) > maxBaseLength { - priceUrl = bitfinexPriceLongUrl - } - var bit bitfinexPriceRequest - err := b.ResponseGetter.Get(ctx, fmt.Sprintf(priceUrl, base, quote), &bit) - if err != nil { - return 0, err - } - if bit.Price == "" { - return 0, errInvalidResponseData - } - return StrToPositiveFloat64(bit.Price) -} - -// Name returns the name -func (b *bitfinex) Name() string { - return BitfinexName -} - -// IsInterfaceNil returns true if there is no value under the interface -func (b *bitfinex) IsInterfaceNil() bool { - return b == nil -} diff --git a/mx-sdk-go-old/aggregator/fetchers/constants.go b/mx-sdk-go-old/aggregator/fetchers/constants.go deleted file mode 100644 index b64c4f5c..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/constants.go +++ /dev/null @@ -1,38 +0,0 @@ -package fetchers - -const ( - quoteUSDFiat = "USD" - quoteUSDT = "USDT" - - // BinanceName defines the Binance exchange name - BinanceName = "Binance" - // BitfinexName defines the Bitfinex exchange name - BitfinexName = "Bitfinex" - // CryptocomName defines the crypto.com exchange name - CryptocomName = "Crypto.com" - // GeminiName defines the Gemini exchange name - GeminiName = "Gemini" - // HitbtcName defines the HitBTC exchange name - HitbtcName = "HitBTC" - // HuobiName defines the Huobi exchange name - HuobiName = "Huobi" - // KrakenName defines the Kraken exchange name - KrakenName = "Kraken" - // OkexName defines the Okex exchange name - OkexName = "Okex" - // XExchangeName defines the XExchange name - XExchangeName = "XExchange" -) - -// ImplementedFetchers is the map of all implemented exchange fetchers -var ImplementedFetchers = map[string]struct{}{ - BinanceName: {}, - BitfinexName: {}, - CryptocomName: {}, - GeminiName: {}, - HitbtcName: {}, - HuobiName: {}, - KrakenName: {}, - OkexName: {}, - XExchangeName: {}, -} diff --git a/mx-sdk-go-old/aggregator/fetchers/converters.go b/mx-sdk-go-old/aggregator/fetchers/converters.go deleted file mode 100644 index 8c697aab..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/converters.go +++ /dev/null @@ -1,18 +0,0 @@ -package fetchers - -import ( - "strconv" -) - -// StrToPositiveFloat64 converts the provided string to its float64 representation -func StrToPositiveFloat64(v string) (float64, error) { - vFloat, err := strconv.ParseFloat(v, 64) - if err != nil { - return 0, err - } - if vFloat <= 0 { - return 0, errInvalidResponseData - } - - return vFloat, nil -} diff --git a/mx-sdk-go-old/aggregator/fetchers/cryptocom.go b/mx-sdk-go-old/aggregator/fetchers/cryptocom.go deleted file mode 100644 index 53ee9984..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/cryptocom.go +++ /dev/null @@ -1,61 +0,0 @@ -package fetchers - -import ( - "context" - "fmt" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -const ( - cryptocomPriceUrl = "https://api.crypto.com/v2/public/get-ticker?instrument_name=%s_%s" -) - -type cryptocomPriceRequest struct { - Result cryptocomData `json:"result"` -} - -type cryptocomData struct { - Data []cryptocomPair `json:"data"` -} - -type cryptocomPair struct { - Price string `json:"a"` -} - -type cryptocom struct { - aggregator.ResponseGetter - baseFetcher -} - -// FetchPrice will fetch the price using the http client -func (c *cryptocom) FetchPrice(ctx context.Context, base, quote string) (float64, error) { - if !c.hasPair(base, quote) { - return 0, aggregator.ErrPairNotSupported - } - - quote = c.normalizeQuoteName(quote, CryptocomName) - - var cpr cryptocomPriceRequest - err := c.ResponseGetter.Get(ctx, fmt.Sprintf(cryptocomPriceUrl, base, quote), &cpr) - if err != nil { - return 0, err - } - if len(cpr.Result.Data) == 0 { - return 0, errInvalidResponseData - } - if cpr.Result.Data[0].Price == "" { - return 0, errInvalidResponseData - } - return StrToPositiveFloat64(cpr.Result.Data[0].Price) -} - -// Name returns the name -func (c *cryptocom) Name() string { - return CryptocomName -} - -// IsInterfaceNil returns true if there is no value under the interface -func (c *cryptocom) IsInterfaceNil() bool { - return c == nil -} diff --git a/mx-sdk-go-old/aggregator/fetchers/errors.go b/mx-sdk-go-old/aggregator/fetchers/errors.go deleted file mode 100644 index 27fc3322..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/errors.go +++ /dev/null @@ -1,13 +0,0 @@ -package fetchers - -import "errors" - -var ( - errInvalidResponseData = errors.New("invalid response data") - errInvalidFetcherName = errors.New("invalid fetcher name") - errNilResponseGetter = errors.New("nil response getter") - errNilGraphqlGetter = errors.New("nil graphql getter") - errNilXExchangeTokensMap = errors.New("nil xexchange tokens map") - errInvalidPair = errors.New("invalid pair") - errInvalidGraphqlResponse = errors.New("invalid graphql response") -) diff --git a/mx-sdk-go-old/aggregator/fetchers/factory.go b/mx-sdk-go-old/aggregator/fetchers/factory.go deleted file mode 100644 index e45fc369..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/factory.go +++ /dev/null @@ -1,80 +0,0 @@ -package fetchers - -import ( - "fmt" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -// XExchangeTokensPair defines a base-quote pair of ids used by XExchange -type XExchangeTokensPair struct { - Base string - Quote string -} - -// NewPriceFetcher returns a new price fetcher of the type provided -func NewPriceFetcher(fetcherName string, responseGetter aggregator.ResponseGetter, graphqlGetter aggregator.GraphqlGetter, xExchangeTokensMap map[string]XExchangeTokensPair) (aggregator.PriceFetcher, error) { - if responseGetter == nil { - return nil, errNilResponseGetter - } - if graphqlGetter == nil { - return nil, errNilGraphqlGetter - } - if xExchangeTokensMap == nil && fetcherName == XExchangeName { - return nil, errNilXExchangeTokensMap - } - - return createFetcher(fetcherName, responseGetter, graphqlGetter, xExchangeTokensMap) -} - -func createFetcher(fetcherName string, responseGetter aggregator.ResponseGetter, graphqlGetter aggregator.GraphqlGetter, xExchangeTokensMap map[string]XExchangeTokensPair) (aggregator.PriceFetcher, error) { - switch fetcherName { - case BinanceName: - return &binance{ - ResponseGetter: responseGetter, - baseFetcher: newBaseFetcher(), - }, nil - case BitfinexName: - return &bitfinex{ - ResponseGetter: responseGetter, - baseFetcher: newBaseFetcher(), - }, nil - case CryptocomName: - return &cryptocom{ - ResponseGetter: responseGetter, - baseFetcher: newBaseFetcher(), - }, nil - case GeminiName: - return &gemini{ - ResponseGetter: responseGetter, - baseFetcher: newBaseFetcher(), - }, nil - case HitbtcName: - return &hitbtc{ - ResponseGetter: responseGetter, - baseFetcher: newBaseFetcher(), - }, nil - case HuobiName: - return &huobi{ - ResponseGetter: responseGetter, - baseFetcher: newBaseFetcher(), - }, nil - case KrakenName: - return &kraken{ - ResponseGetter: responseGetter, - baseFetcher: newBaseFetcher(), - }, nil - case OkexName: - return &okex{ - ResponseGetter: responseGetter, - baseFetcher: newBaseFetcher(), - }, nil - case XExchangeName: - return &xExchange{ - GraphqlGetter: graphqlGetter, - baseFetcher: newBaseFetcher(), - xExchangeTokensMap: xExchangeTokensMap, - }, nil - } - return nil, fmt.Errorf("%w, fetcherName %s", errInvalidFetcherName, fetcherName) -} diff --git a/mx-sdk-go-old/aggregator/fetchers/factory_test.go b/mx-sdk-go-old/aggregator/fetchers/factory_test.go deleted file mode 100644 index e5a0e893..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/factory_test.go +++ /dev/null @@ -1,77 +0,0 @@ -package fetchers - -import ( - "errors" - "fmt" - "strings" - "testing" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/mock" - "github.com/stretchr/testify/assert" -) - -func TestNewPriceFetcher(t *testing.T) { - t.Parallel() - - t.Run("invalid fetcher name should error", func(t *testing.T) { - t.Parallel() - - name := "invalid name" - pf, err := NewPriceFetcher(name, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, nil) - assert.Nil(t, pf) - assert.True(t, errors.Is(err, errInvalidFetcherName)) - assert.True(t, strings.Contains(err.Error(), name)) - }) - t.Run("nil responseGetter should error", func(t *testing.T) { - t.Parallel() - - pf, err := NewPriceFetcher(BinanceName, nil, &mock.GraphqlResponseGetterStub{}, nil) - assert.Nil(t, pf) - assert.Equal(t, errNilResponseGetter, err) - }) - t.Run("nil graphqlGetter should error", func(t *testing.T) { - t.Parallel() - - pf, err := NewPriceFetcher(XExchangeName, &mock.HttpResponseGetterStub{}, nil, nil) - assert.Nil(t, pf) - assert.True(t, errors.Is(err, errNilGraphqlGetter)) - }) - t.Run("nil map for xExchange should error", func(t *testing.T) { - t.Parallel() - - pf, err := NewPriceFetcher(XExchangeName, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, nil) - assert.Nil(t, pf) - assert.True(t, errors.Is(err, errNilXExchangeTokensMap)) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - pf, err := NewPriceFetcher(BinanceName, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, createMockMap()) - assert.Equal(t, "*fetchers.binance", fmt.Sprintf("%T", pf)) - assert.Nil(t, err) - pf, err = NewPriceFetcher(BitfinexName, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, createMockMap()) - assert.Equal(t, "*fetchers.bitfinex", fmt.Sprintf("%T", pf)) - assert.Nil(t, err) - pf, err = NewPriceFetcher(CryptocomName, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, createMockMap()) - assert.Equal(t, "*fetchers.cryptocom", fmt.Sprintf("%T", pf)) - assert.Nil(t, err) - pf, err = NewPriceFetcher(GeminiName, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, createMockMap()) - assert.Equal(t, "*fetchers.gemini", fmt.Sprintf("%T", pf)) - assert.Nil(t, err) - pf, err = NewPriceFetcher(HitbtcName, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, createMockMap()) - assert.Equal(t, "*fetchers.hitbtc", fmt.Sprintf("%T", pf)) - assert.Nil(t, err) - pf, err = NewPriceFetcher(HuobiName, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, createMockMap()) - assert.Equal(t, "*fetchers.huobi", fmt.Sprintf("%T", pf)) - assert.Nil(t, err) - pf, err = NewPriceFetcher(KrakenName, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, createMockMap()) - assert.Equal(t, "*fetchers.kraken", fmt.Sprintf("%T", pf)) - assert.Nil(t, err) - pf, err = NewPriceFetcher(OkexName, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, createMockMap()) - assert.Equal(t, "*fetchers.okex", fmt.Sprintf("%T", pf)) - assert.Nil(t, err) - pf, err = NewPriceFetcher(XExchangeName, &mock.HttpResponseGetterStub{}, &mock.GraphqlResponseGetterStub{}, createMockMap()) - assert.Equal(t, "*fetchers.xExchange", fmt.Sprintf("%T", pf)) - assert.Nil(t, err) - }) -} diff --git a/mx-sdk-go-old/aggregator/fetchers/fetchers_test.go b/mx-sdk-go-old/aggregator/fetchers/fetchers_test.go deleted file mode 100644 index c69b8b94..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/fetchers_test.go +++ /dev/null @@ -1,428 +0,0 @@ -package fetchers - -import ( - "context" - "encoding/json" - "errors" - "fmt" - "strconv" - "testing" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-crypto-go/signing" - "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/mock" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/authentication" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -var errShouldSkipTest = errors.New("should skip test") - -const networkAddress = "https://testnet-gateway.multiversx.com" - -func createMockMap() map[string]XExchangeTokensPair { - return map[string]XExchangeTokensPair{ - "ETH-USD": { - Base: "WEGLD-bd4d79", // for tests only until we have an ETH id - Quote: "USDC-c76f1f", - }, - "EGLD-USD": { - Base: "WEGLD-bd4d79", - Quote: "USDC-c76f1f", - }, - "BTC-USD": { - Base: "BTC-test1", - Quote: "USD-test1", - }, - } -} - -func createAuthClient() (authentication.AuthClient, error) { - w := interactors.NewWallet() - privateKeyBytes, err := w.LoadPrivateKeyFromPemData([]byte(examples.AlicePemContents)) - if err != nil { - return nil, err - } - - argsProxy := blockchain.ArgsProxy{ - ProxyURL: networkAddress, - SameScState: false, - ShouldBeSynced: false, - FinalityCheck: false, - AllowedDeltaToFinal: 1, - CacheExpirationTime: time.Second, - EntityType: core.Proxy, - } - - proxy, err := blockchain.NewProxy(argsProxy) - if err != nil { - return nil, err - } - - keyGen := signing.NewKeyGenerator(ed25519.NewEd25519()) - holder, _ := cryptoProvider.NewCryptoComponentsHolder(keyGen, privateKeyBytes) - args := authentication.ArgsNativeAuthClient{ - Signer: cryptoProvider.NewSigner(), - ExtraInfo: nil, - Proxy: proxy, - CryptoComponentsHolder: holder, - TokenExpiryInSeconds: 60 * 60 * 24, - Host: "oracle", - } - - authClient, err := authentication.NewNativeAuthClient(args) - if err != nil { - return nil, err - } - - return authClient, nil -} - -func Test_FunctionalTesting(t *testing.T) { - t.Parallel() - - responseGetter, err := aggregator.NewHttpResponseGetter() - require.Nil(t, err) - - authClient, err := createAuthClient() - require.Nil(t, err) - - graphqlGetter, err := aggregator.NewGraphqlResponseGetter(authClient) - require.Nil(t, err) - - for f := range ImplementedFetchers { - fetcherName := f - t.Run("Test_FunctionalTesting_"+fetcherName, func(t *testing.T) { - t.Skip("this test should be run only when doing debugging work on the component") - - t.Parallel() - fetcher, _ := NewPriceFetcher(fetcherName, responseGetter, graphqlGetter, createMockMap()) - ethTicker := "ETH" - fetcher.AddPair(ethTicker, quoteUSDFiat) - price, fetchErr := fetcher.FetchPrice(context.Background(), ethTicker, quoteUSDFiat) - require.Nil(t, fetchErr) - fmt.Printf("price between %s and %s is: %v from %s\n", ethTicker, quoteUSDFiat, price, fetcherName) - require.True(t, price > 0) - }) - } -} - -func Test_FetchPriceErrors(t *testing.T) { - t.Parallel() - - ethTicker := "ETH" - pair := ethTicker + quoteUSDFiat - - for f := range ImplementedFetchers { - fetcherName := f - - t.Run("response getter errors should error "+fetcherName, func(t *testing.T) { - t.Parallel() - - expectedError := errors.New("expected error") - returnPrice := "" - fetcher, _ := NewPriceFetcher(fetcherName, - &mock.HttpResponseGetterStub{ - GetCalled: getFuncGetCalled(fetcherName, returnPrice, pair, expectedError), - }, - &mock.GraphqlResponseGetterStub{ - GetCalled: getFuncQueryCalled(fetcherName, returnPrice, expectedError), - }, createMockMap()) - - assert.False(t, check.IfNil(fetcher)) - - fetcher.AddPair(ethTicker, quoteUSDFiat) - price, err := fetcher.FetchPrice(context.Background(), ethTicker, quoteUSDFiat) - if err == errShouldSkipTest { - return - } - require.Equal(t, expectedError, err) - require.Equal(t, float64(0), price) - }) - t.Run("empty string for price should error "+fetcherName, func(t *testing.T) { - t.Parallel() - - returnPrice := "" - fetcher, _ := NewPriceFetcher(fetcherName, - &mock.HttpResponseGetterStub{ - GetCalled: getFuncGetCalled(fetcherName, returnPrice, pair, nil), - }, - &mock.GraphqlResponseGetterStub{ - GetCalled: getFuncQueryCalled(fetcherName, returnPrice, nil), - }, createMockMap()) - - assert.False(t, check.IfNil(fetcher)) - - fetcher.AddPair(ethTicker, quoteUSDFiat) - price, err := fetcher.FetchPrice(context.Background(), ethTicker, quoteUSDFiat) - if err == errShouldSkipTest { - return - } - require.Equal(t, errInvalidResponseData, err) - require.Equal(t, float64(0), price) - }) - t.Run("negative price should error "+fetcherName, func(t *testing.T) { - t.Parallel() - - returnPrice := "-1" - fetcher, _ := NewPriceFetcher(fetcherName, - &mock.HttpResponseGetterStub{ - GetCalled: getFuncGetCalled(fetcherName, returnPrice, pair, nil), - }, - &mock.GraphqlResponseGetterStub{ - GetCalled: getFuncQueryCalled(fetcherName, returnPrice, nil), - }, createMockMap()) - - assert.False(t, check.IfNil(fetcher)) - - fetcher.AddPair(ethTicker, quoteUSDFiat) - price, err := fetcher.FetchPrice(context.Background(), ethTicker, quoteUSDFiat) - if err == errShouldSkipTest { - return - } - require.Equal(t, errInvalidResponseData, err) - require.Equal(t, float64(0), price) - }) - t.Run("invalid string for price should error "+fetcherName, func(t *testing.T) { - t.Parallel() - - returnPrice := "not a number" - fetcher, _ := NewPriceFetcher(fetcherName, - &mock.HttpResponseGetterStub{ - GetCalled: getFuncGetCalled(fetcherName, returnPrice, pair, nil), - }, - &mock.GraphqlResponseGetterStub{ - GetCalled: getFuncQueryCalled(fetcherName, returnPrice, nil), - }, createMockMap()) - - assert.False(t, check.IfNil(fetcher)) - - fetcher.AddPair(ethTicker, quoteUSDFiat) - price, err := fetcher.FetchPrice(context.Background(), ethTicker, quoteUSDFiat) - if err == errShouldSkipTest { - return - } - require.NotNil(t, err) - require.Equal(t, float64(0), price) - require.IsType(t, err, &strconv.NumError{}) - }) - t.Run("xExchange: missing key from map should error "+fetcherName, func(t *testing.T) { - t.Parallel() - - if fetcherName != XExchangeName { - return - } - - returnPrice := "4714.05000000" - fetcher, _ := NewPriceFetcher(fetcherName, - &mock.HttpResponseGetterStub{}, - &mock.GraphqlResponseGetterStub{ - GetCalled: getFuncQueryCalled(fetcherName, returnPrice, nil), - }, createMockMap()) - - assert.False(t, check.IfNil(fetcher)) - - missingTicker := "missing ticker" - fetcher.AddPair(missingTicker, quoteUSDFiat) - price, err := fetcher.FetchPrice(context.Background(), missingTicker, quoteUSDFiat) - if err == errShouldSkipTest { - return - } - assert.Equal(t, errInvalidPair, err) - require.Equal(t, float64(0), price) - }) - t.Run("xExchange: invalid graphql response should error "+fetcherName, func(t *testing.T) { - t.Parallel() - - if fetcherName != XExchangeName { - return - } - - fetcher, _ := NewPriceFetcher(fetcherName, - &mock.HttpResponseGetterStub{}, - &mock.GraphqlResponseGetterStub{ - GetCalled: func(ctx context.Context, url string, query string, variables string) ([]byte, error) { - return make([]byte, 0), nil - }, - }, createMockMap()) - - assert.False(t, check.IfNil(fetcher)) - - fetcher.AddPair(ethTicker, quoteUSDFiat) - price, err := fetcher.FetchPrice(context.Background(), ethTicker, quoteUSDFiat) - if err == errShouldSkipTest { - return - } - assert.Equal(t, errInvalidGraphqlResponse, err) - require.Equal(t, float64(0), price) - }) - t.Run("pair not added should error "+fetcherName, func(t *testing.T) { - t.Parallel() - - returnPrice := "" - fetcher, _ := NewPriceFetcher(fetcherName, - &mock.HttpResponseGetterStub{ - GetCalled: getFuncGetCalled(fetcherName, returnPrice, pair, nil), - }, - &mock.GraphqlResponseGetterStub{ - GetCalled: getFuncQueryCalled(fetcherName, returnPrice, nil), - }, createMockMap()) - - assert.False(t, check.IfNil(fetcher)) - - price, err := fetcher.FetchPrice(context.Background(), ethTicker, quoteUSDFiat) - if err == errShouldSkipTest { - return - } - require.Equal(t, aggregator.ErrPairNotSupported, err) - require.Equal(t, float64(0), price) - assert.Equal(t, fetcherName, fetcher.Name()) - }) - t.Run("should work eth-usd "+fetcherName, func(t *testing.T) { - t.Parallel() - - returnPrice := "4714.05000000" - fetcher, _ := NewPriceFetcher(fetcherName, - &mock.HttpResponseGetterStub{ - GetCalled: getFuncGetCalled(fetcherName, returnPrice, pair, nil), - }, - &mock.GraphqlResponseGetterStub{ - GetCalled: getFuncQueryCalled(fetcherName, returnPrice, nil), - }, createMockMap()) - - assert.False(t, check.IfNil(fetcher)) - - fetcher.AddPair(ethTicker, quoteUSDFiat) - price, err := fetcher.FetchPrice(context.Background(), ethTicker, quoteUSDFiat) - if err == errShouldSkipTest { - return - } - require.Nil(t, err) - require.Equal(t, 4714.05, price) - assert.Equal(t, fetcherName, fetcher.Name()) - }) - t.Run("should work btc-usd "+fetcherName, func(t *testing.T) { - t.Parallel() - - btcTicker := "BTC" - btcUsdPair := btcTicker + quoteUSDFiat - returnPrice := "4714.05000000" - fetcher, _ := NewPriceFetcher(fetcherName, - &mock.HttpResponseGetterStub{ - GetCalled: getFuncGetCalled(fetcherName, returnPrice, btcUsdPair, nil), - }, - &mock.GraphqlResponseGetterStub{ - GetCalled: getFuncQueryCalled(fetcherName, returnPrice, nil), - }, createMockMap()) - assert.False(t, check.IfNil(fetcher)) - - fetcher.AddPair(btcTicker, quoteUSDFiat) - price, err := fetcher.FetchPrice(context.Background(), btcTicker, quoteUSDFiat) - if err == errShouldSkipTest { - return - } - require.Nil(t, err) - require.Equal(t, 4714.05, price) - assert.Equal(t, fetcherName, fetcher.Name()) - }) - } -} - -func getFuncQueryCalled(name, returnPrice string, returnErr error) func(ctx context.Context, url string, query string, variables string) ([]byte, error) { - switch name { - case XExchangeName: - return func(ctx context.Context, url string, query string, variables string) ([]byte, error) { - priceArray := make([]priceResponse, 0) - var p priceResponse - - var err error - p.Last, err = strconv.ParseFloat(returnPrice, 64) - if err != nil { - return nil, errShouldSkipTest - } - p.Time = time.Now() - - priceArray = append(priceArray, p) - - var response graphqlResponse - response.Data.Trading.Pair.Price = priceArray - responseBytes, _ := json.Marshal(response) - - return responseBytes, returnErr - } - } - return nil -} - -func getFuncGetCalled(name, returnPrice, pair string, returnErr error) func(ctx context.Context, url string, response interface{}) error { - switch name { - case BinanceName: - return func(ctx context.Context, url string, response interface{}) error { - cast, _ := response.(*binancePriceRequest) - cast.Price = returnPrice - return returnErr - } - case BitfinexName: - return func(ctx context.Context, url string, response interface{}) error { - cast, _ := response.(*bitfinexPriceRequest) - cast.Price = returnPrice - return returnErr - } - case CryptocomName: - return func(ctx context.Context, url string, response interface{}) error { - cast, _ := response.(*cryptocomPriceRequest) - cast.Result.Data = []cryptocomPair{ - { - Price: returnPrice, - }, - } - return returnErr - } - case GeminiName: - return func(ctx context.Context, url string, response interface{}) error { - cast, _ := response.(*geminiPriceRequest) - cast.Price = returnPrice - return returnErr - } - case HitbtcName: - return func(ctx context.Context, url string, response interface{}) error { - cast, _ := response.(*hitbtcPriceRequest) - cast.Price = returnPrice - return returnErr - } - case HuobiName: - return func(ctx context.Context, url string, response interface{}) error { - cast, _ := response.(*huobiPriceRequest) - var err error - cast.Ticker.Price, err = strconv.ParseFloat(returnPrice, 64) - if err != nil { - return errShouldSkipTest - } - return returnErr - } - case KrakenName: - return func(ctx context.Context, url string, response interface{}) error { - cast, _ := response.(*krakenPriceRequest) - cast.Result = map[string]krakenPricePair{ - pair: {[]string{returnPrice, ""}}, - } - return returnErr - } - case OkexName: - return func(ctx context.Context, url string, response interface{}) error { - cast, _ := response.(*okexPriceRequest) - cast.Data = []okexTicker{{returnPrice}} - return returnErr - } - } - - return nil -} diff --git a/mx-sdk-go-old/aggregator/fetchers/gemini.go b/mx-sdk-go-old/aggregator/fetchers/gemini.go deleted file mode 100644 index 6f001f4c..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/gemini.go +++ /dev/null @@ -1,51 +0,0 @@ -package fetchers - -import ( - "context" - "fmt" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -const ( - geminiPriceUrl = "https://api.gemini.com/v2/ticker/%s%s" -) - -type geminiPriceRequest struct { - Price string `json:"close"` -} - -type gemini struct { - aggregator.ResponseGetter - baseFetcher -} - -// FetchPrice will fetch the price using the http client -func (g *gemini) FetchPrice(ctx context.Context, base, quote string) (float64, error) { - if !g.hasPair(base, quote) { - return 0, aggregator.ErrPairNotSupported - } - - quote = g.normalizeQuoteName(quote, GeminiName) - - var gpr geminiPriceRequest - err := g.ResponseGetter.Get(ctx, fmt.Sprintf(geminiPriceUrl, base, quote), &gpr) - if err != nil { - return 0, err - } - if gpr.Price == "" { - return 0, errInvalidResponseData - } - - return StrToPositiveFloat64(gpr.Price) -} - -// Name returns the name -func (g *gemini) Name() string { - return GeminiName -} - -// IsInterfaceNil returns true if there is no value under the interface -func (g *gemini) IsInterfaceNil() bool { - return g == nil -} diff --git a/mx-sdk-go-old/aggregator/fetchers/hitbtc.go b/mx-sdk-go-old/aggregator/fetchers/hitbtc.go deleted file mode 100644 index 235955a9..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/hitbtc.go +++ /dev/null @@ -1,50 +0,0 @@ -package fetchers - -import ( - "context" - "fmt" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -const ( - hitbtcPriceUrl = "https://api.hitbtc.com/api/3/public/ticker/%s%s" -) - -type hitbtcPriceRequest struct { - Price string `json:"last"` -} - -type hitbtc struct { - aggregator.ResponseGetter - baseFetcher -} - -// FetchPrice will fetch the price using the http client -func (h *hitbtc) FetchPrice(ctx context.Context, base, quote string) (float64, error) { - if !h.hasPair(base, quote) { - return 0, aggregator.ErrPairNotSupported - } - - quote = h.normalizeQuoteName(quote, HitbtcName) - - var hpr hitbtcPriceRequest - err := h.ResponseGetter.Get(ctx, fmt.Sprintf(hitbtcPriceUrl, base, quote), &hpr) - if err != nil { - return 0, err - } - if hpr.Price == "" { - return 0, errInvalidResponseData - } - return StrToPositiveFloat64(hpr.Price) -} - -// Name returns the name -func (h *hitbtc) Name() string { - return HitbtcName -} - -// IsInterfaceNil returns true if there is no value under the interface -func (h *hitbtc) IsInterfaceNil() bool { - return h == nil -} diff --git a/mx-sdk-go-old/aggregator/fetchers/huobi.go b/mx-sdk-go-old/aggregator/fetchers/huobi.go deleted file mode 100644 index 28f9c939..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/huobi.go +++ /dev/null @@ -1,56 +0,0 @@ -package fetchers - -import ( - "context" - "fmt" - "strings" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -const ( - huobiPriceUrl = "https://api.huobi.pro/market/detail/merged?symbol=%s%s" -) - -type huobiPriceRequest struct { - Ticker huobiPriceTicker `json:"tick"` -} - -type huobiPriceTicker struct { - Price float64 `json:"close"` -} - -type huobi struct { - aggregator.ResponseGetter - baseFetcher -} - -// FetchPrice will fetch the price using the http client -func (h *huobi) FetchPrice(ctx context.Context, base string, quote string) (float64, error) { - if !h.hasPair(base, quote) { - return 0, aggregator.ErrPairNotSupported - } - - quote = h.normalizeQuoteName(quote, HuobiName) - - var hpr huobiPriceRequest - err := h.ResponseGetter.Get(ctx, fmt.Sprintf(huobiPriceUrl, strings.ToLower(base), strings.ToLower(quote)), &hpr) - if err != nil { - return 0, err - } - if hpr.Ticker.Price <= 0 { - return 0, errInvalidResponseData - } - - return hpr.Ticker.Price, nil -} - -// Name returns the name -func (h *huobi) Name() string { - return HuobiName -} - -// IsInterfaceNil returns true if there is no value under the interface -func (h *huobi) IsInterfaceNil() bool { - return h == nil -} diff --git a/mx-sdk-go-old/aggregator/fetchers/kraken.go b/mx-sdk-go-old/aggregator/fetchers/kraken.go deleted file mode 100644 index b549f373..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/kraken.go +++ /dev/null @@ -1,65 +0,0 @@ -package fetchers - -import ( - "context" - "fmt" - "strings" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -const ( - krakenPriceUrl = "https://api.kraken.com/0/public/Ticker?pair=%s%s" -) - -type krakenPriceRequest struct { - Result map[string]krakenPricePair `json:"result"` -} - -type krakenPricePair struct { - Price []string `json:"c"` -} - -type kraken struct { - aggregator.ResponseGetter - baseFetcher -} - -// FetchPrice will fetch the price using the http client -func (k *kraken) FetchPrice(ctx context.Context, base string, quote string) (float64, error) { - if !k.hasPair(base, quote) { - return 0, aggregator.ErrPairNotSupported - } - - quote = k.normalizeQuoteName(quote, KrakenName) - - var hpr krakenPriceRequest - err := k.ResponseGetter.Get(ctx, fmt.Sprintf(krakenPriceUrl, base, quote), &hpr) - if err != nil { - return 0, err - } - if len(hpr.Result) == 0 { - return 0, errInvalidResponseData - } - for k, v := range hpr.Result { - if k == "" || v.Price[0] == "" { - return 0, errInvalidResponseData - } - - if strings.Contains(k, base) || strings.Contains(k, quote) { - return StrToPositiveFloat64(v.Price[0]) - } - } - - return 0, errInvalidResponseData -} - -// Name returns the name -func (k *kraken) Name() string { - return KrakenName -} - -// IsInterfaceNil returns true if there is no value under the interface -func (k *kraken) IsInterfaceNil() bool { - return k == nil -} diff --git a/mx-sdk-go-old/aggregator/fetchers/okex.go b/mx-sdk-go-old/aggregator/fetchers/okex.go deleted file mode 100644 index 600ec8ee..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/okex.go +++ /dev/null @@ -1,58 +0,0 @@ -package fetchers - -import ( - "context" - "fmt" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -const ( - okexPriceUrl = "https://www.okex.com/api/v5/market/ticker?instId=%s-%s" -) - -type okexPriceRequest struct { - Data []okexTicker -} - -type okexTicker struct { - Price string `json:"last"` -} - -type okex struct { - aggregator.ResponseGetter - baseFetcher -} - -// FetchPrice will fetch the price using the http client -func (o *okex) FetchPrice(ctx context.Context, base string, quote string) (float64, error) { - if !o.hasPair(base, quote) { - return 0, aggregator.ErrPairNotSupported - } - - quote = o.normalizeQuoteName(quote, OkexName) - - var opr okexPriceRequest - err := o.ResponseGetter.Get(ctx, fmt.Sprintf(okexPriceUrl, base, quote), &opr) - if err != nil { - return 0, err - } - if len(opr.Data) == 0 { - return 0, errInvalidResponseData - } - if opr.Data[0].Price == "" { - return 0, errInvalidResponseData - } - - return StrToPositiveFloat64(opr.Data[0].Price) -} - -// Name returns the name -func (o *okex) Name() string { - return OkexName -} - -// IsInterfaceNil returns true if there is no value under the interface -func (o *okex) IsInterfaceNil() bool { - return o == nil -} diff --git a/mx-sdk-go-old/aggregator/fetchers/xexchange.go b/mx-sdk-go-old/aggregator/fetchers/xexchange.go deleted file mode 100644 index 5444bf68..00000000 --- a/mx-sdk-go-old/aggregator/fetchers/xexchange.go +++ /dev/null @@ -1,97 +0,0 @@ -package fetchers - -import ( - "context" - "encoding/json" - "fmt" - "time" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -const ( - // TODO EN-13146: extract this urls constants in a file - dataApiUrl = "https://tools.multiversx.com/data-api/graphql" - // TODO: update the query after data-api rebranding - query = "query MaiarPriceUrl($base: String!, $quote: String!) { trading { pair(first_token: $base, second_token: $quote) { price { last time } } } }" -) - -type variables struct { - BasePrice string `json:"base"` - QuotePrice string `json:"quote"` -} - -type priceResponse struct { - Last float64 `json:"last"` - Time time.Time `json:"time"` -} - -type graphqlResponse struct { - Data struct { - Trading struct { - Pair struct { - Price []priceResponse `json:"price"` - } `json:"pair"` - } `json:"trading"` - } `json:"data"` -} - -type xExchange struct { - aggregator.GraphqlGetter - baseFetcher - xExchangeTokensMap map[string]XExchangeTokensPair -} - -// FetchPrice will fetch the price using the http client -func (x *xExchange) FetchPrice(ctx context.Context, base string, quote string) (float64, error) { - if !x.hasPair(base, quote) { - return 0, aggregator.ErrPairNotSupported - } - - xExchangeTokensPair, ok := x.fetchXExchangeTokensPair(base, quote) - if !ok { - return 0, errInvalidPair - } - - vars, err := json.Marshal(variables{ - BasePrice: xExchangeTokensPair.Base, - QuotePrice: xExchangeTokensPair.Quote, - }) - if err != nil { - return 0, err - } - - resp, err := x.GraphqlGetter.Query(ctx, dataApiUrl, query, string(vars)) - if err != nil { - return 0, err - } - - var graphqlResp graphqlResponse - err = json.Unmarshal(resp, &graphqlResp) - if err != nil { - return 0, errInvalidGraphqlResponse - } - - price := graphqlResp.Data.Trading.Pair.Price[0].Last - - if price <= 0 { - return 0, errInvalidResponseData - } - return price, nil -} - -func (x *xExchange) fetchXExchangeTokensPair(base, quote string) (XExchangeTokensPair, bool) { - pair := fmt.Sprintf("%s-%s", base, quote) - mtp, ok := x.xExchangeTokensMap[pair] - return mtp, ok -} - -// Name returns the name -func (x *xExchange) Name() string { - return XExchangeName -} - -// IsInterfaceNil returns true if there is no value under the interface -func (x *xExchange) IsInterfaceNil() bool { - return x == nil -} diff --git a/mx-sdk-go-old/aggregator/graphqlResponseGetter.go b/mx-sdk-go-old/aggregator/graphqlResponseGetter.go deleted file mode 100644 index 05206a96..00000000 --- a/mx-sdk-go-old/aggregator/graphqlResponseGetter.go +++ /dev/null @@ -1,65 +0,0 @@ -package aggregator - -import ( - "context" - "encoding/json" - "io" - "strings" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/authentication" - "golang.org/x/oauth2" -) - -// graphqlResponseGetter wraps over the default http client -type graphqlResponseGetter struct { - authClient authentication.AuthClient -} - -type graphQLRequest struct { - Query string `json:"query"` - Variables string `json:"variables"` -} - -// NewGraphqlResponseGetter returns a new graphql response getter instance -func NewGraphqlResponseGetter(authClient authentication.AuthClient) (*graphqlResponseGetter, error) { - if check.IfNil(authClient) { - return nil, ErrNilAuthClient - } - return &graphqlResponseGetter{ - authClient: authClient, - }, nil -} - -// Query does a get operation on the specified url and tries to cast the response bytes over the response object through -// the json serializer -func (getter *graphqlResponseGetter) Query(ctx context.Context, url string, query string, variables string) ([]byte, error) { - - accessToken, err := getter.authClient.GetAccessToken() - if err != nil { - return nil, err - } - - client := oauth2.NewClient( - ctx, - oauth2.StaticTokenSource( - &oauth2.Token{AccessToken: accessToken}, - ), - ) - - request := graphQLRequest{ - Query: query, - Variables: variables, - } - gqlMarshalled, err := json.Marshal(request) - if err != nil { - return nil, err - } - resp, err := client.Post(url, "application/json", strings.NewReader(string(gqlMarshalled))) - if err != nil { - return nil, err - } - responseBytes, _ := io.ReadAll(resp.Body) - - return responseBytes, nil -} diff --git a/mx-sdk-go-old/aggregator/graphqlResponseGetter_test.go b/mx-sdk-go-old/aggregator/graphqlResponseGetter_test.go deleted file mode 100644 index 5d9c8f51..00000000 --- a/mx-sdk-go-old/aggregator/graphqlResponseGetter_test.go +++ /dev/null @@ -1,44 +0,0 @@ -package aggregator - -import ( - "context" - "errors" - "net/url" - "testing" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/authentication/mock" - "github.com/stretchr/testify/require" -) - -func TestGraphqlResponseGetter_Query(t *testing.T) { - - expectedErr := errors.New("expected error") - - t.Run("native auth client errors should error", func(t *testing.T) { - t.Parallel() - - responseGetter := &graphqlResponseGetter{ - authClient: &mock.NativeStub{GetAccessTokenCalled: func() (string, error) { - return "", expectedErr - }}, - } - - query, err := responseGetter.Query(context.Background(), "", "", "") - require.Nil(t, query) - require.Equal(t, expectedErr, err) - }) - t.Run("invalid URL should error", func(t *testing.T) { - t.Parallel() - - responseGetter := &graphqlResponseGetter{ - authClient: &mock.NativeStub{GetAccessTokenCalled: func() (string, error) { - return "accessToken", nil - }}, - } - - query, err := responseGetter.Query(context.Background(), "invalid URL", "", "") - require.Nil(t, query) - require.NotNil(t, err) - require.IsType(t, err, &url.Error{}) - }) -} diff --git a/mx-sdk-go-old/aggregator/httpResponseGetter.go b/mx-sdk-go-old/aggregator/httpResponseGetter.go deleted file mode 100644 index 1c210b24..00000000 --- a/mx-sdk-go-old/aggregator/httpResponseGetter.go +++ /dev/null @@ -1,47 +0,0 @@ -package aggregator - -import ( - "context" - "encoding/json" - "io/ioutil" - "net/http" -) - -const ( - httpGetVerb = "GET" -) - -// httpResponseGetter wraps over the default http client -type httpResponseGetter struct { -} - -// NewHttpResponseGetter returns a new http response getter instance -func NewHttpResponseGetter() (*httpResponseGetter, error) { - return &httpResponseGetter{}, nil -} - -// Get does a get operation on the specified url and tries to cast the response bytes over the response object through -// the json serializer -func (getter *httpResponseGetter) Get(ctx context.Context, url string, response interface{}) error { - client := &http.Client{} - - req, err := http.NewRequestWithContext(ctx, httpGetVerb, url, nil) - if err != nil { - return err - } - - resp, err := client.Do(req) - if err != nil { - return err - } - - respBytes, err := ioutil.ReadAll(resp.Body) - if err != nil { - return nil - } - defer func() { - _ = resp.Body.Close() - }() - - return json.Unmarshal(respBytes, response) -} diff --git a/mx-sdk-go-old/aggregator/httpResponseGetter_test.go b/mx-sdk-go-old/aggregator/httpResponseGetter_test.go deleted file mode 100644 index 82758078..00000000 --- a/mx-sdk-go-old/aggregator/httpResponseGetter_test.go +++ /dev/null @@ -1,91 +0,0 @@ -package aggregator_test - -import ( - "context" - "encoding/json" - "net/http" - "net/http/httptest" - "net/url" - "testing" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" - "github.com/stretchr/testify/require" -) - -type testStruct struct { - IntVal int - StringVal string -} - -func TestHttpResponseGetter_InvalidURLShouldError(t *testing.T) { - t.Parallel() - - responseGetter, err := aggregator.NewHttpResponseGetter() - require.Nil(t, err) - responseStruct := &testStruct{} - - err = responseGetter.Get(context.Background(), "invalid URL", responseStruct) - require.NotNil(t, err) - require.IsType(t, err, &url.Error{}) -} - -func TestHttpResponseGetter_NilResponseObjectShouldError(t *testing.T) { - t.Parallel() - - httpServer := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { - rw.WriteHeader(http.StatusOK) - _, _ = rw.Write(nil) - })) - defer httpServer.Close() - - responseGetter, err := aggregator.NewHttpResponseGetter() - require.Nil(t, err) - - err = responseGetter.Get(context.Background(), httpServer.URL, nil) - require.NotNil(t, err) - require.IsType(t, err, &json.SyntaxError{}) -} - -func TestHttpResponseGetter_InvalidResponseShouldError(t *testing.T) { - t.Parallel() - - httpServer := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { - rw.WriteHeader(http.StatusOK) - _, _ = rw.Write([]byte("invalid bytes")) - })) - defer httpServer.Close() - - responseGetter, err := aggregator.NewHttpResponseGetter() - require.Nil(t, err) - - err = responseGetter.Get(context.Background(), httpServer.URL, responseGetter) - require.NotNil(t, err) - require.IsType(t, err, &json.SyntaxError{}) -} - -func TestHttpResponseGetter_GetShouldWork(t *testing.T) { - t.Parallel() - - expectedStruct := &testStruct{ - IntVal: 1232, - StringVal: "string value", - } - - httpServer := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { - buff, err := json.Marshal(expectedStruct) - require.Nil(t, err) - - rw.WriteHeader(http.StatusOK) - _, _ = rw.Write(buff) - })) - defer httpServer.Close() - - responseGetter, err := aggregator.NewHttpResponseGetter() - require.Nil(t, err) - - responseStruct := &testStruct{} - - err = responseGetter.Get(context.Background(), httpServer.URL, responseStruct) - require.Nil(t, err) - require.Equal(t, expectedStruct, responseStruct) -} diff --git a/mx-sdk-go-old/aggregator/interface.go b/mx-sdk-go-old/aggregator/interface.go deleted file mode 100644 index b80a57cc..00000000 --- a/mx-sdk-go-old/aggregator/interface.go +++ /dev/null @@ -1,47 +0,0 @@ -package aggregator - -import "context" - -// ResponseGetter is the component able to execute a get operation on the provided URL -type ResponseGetter interface { - Get(ctx context.Context, url string, response interface{}) error -} - -// GraphqlGetter is the graphql component able to execute a get operation on the provided URL -type GraphqlGetter interface { - Query(ctx context.Context, url string, query string, variables string) ([]byte, error) -} - -// basePriceFetcher defines the behavior of a component able to query the price -type basePriceFetcher interface { - Name() string - FetchPrice(ctx context.Context, base string, quote string) (float64, error) - IsInterfaceNil() bool -} - -// PriceAggregator defines the behavior of a component able to query the median price of a provided pair -// from all the fetchers that has the pair -type PriceAggregator interface { - basePriceFetcher -} - -// PriceFetcher defines the behavior of a component able to query the price for the provided pairs -type PriceFetcher interface { - basePriceFetcher - AddPair(base, quote string) -} - -// ArgsPriceChanged is the argument used when notifying the notifee instance -type ArgsPriceChanged struct { - Base string - Quote string - DenominatedPrice uint64 - Decimals uint64 - Timestamp int64 -} - -// PriceNotifee defines the behavior of a component able to be notified over a price change -type PriceNotifee interface { - PriceChanged(ctx context.Context, priceChanges []*ArgsPriceChanged) error - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/aggregator/mock/graphqlResponseGetterStub.go b/mx-sdk-go-old/aggregator/mock/graphqlResponseGetterStub.go deleted file mode 100644 index dbf0cd65..00000000 --- a/mx-sdk-go-old/aggregator/mock/graphqlResponseGetterStub.go +++ /dev/null @@ -1,16 +0,0 @@ -package mock - -import "context" - -// GraphqlResponseGetterStub - -type GraphqlResponseGetterStub struct { - GetCalled func(ctx context.Context, url string, query string, variables string) ([]byte, error) -} - -// Query - -func (stub *GraphqlResponseGetterStub) Query(ctx context.Context, url string, query string, variables string) ([]byte, error) { - if stub.GetCalled != nil { - return stub.GetCalled(ctx, url, query, variables) - } - return nil, nil -} diff --git a/mx-sdk-go-old/aggregator/mock/httpResponseGetterStub.go b/mx-sdk-go-old/aggregator/mock/httpResponseGetterStub.go deleted file mode 100644 index 8174236b..00000000 --- a/mx-sdk-go-old/aggregator/mock/httpResponseGetterStub.go +++ /dev/null @@ -1,17 +0,0 @@ -package mock - -import "context" - -// HttpResponseGetterStub - -type HttpResponseGetterStub struct { - GetCalled func(ctx context.Context, url string, response interface{}) error -} - -// Get - -func (stub *HttpResponseGetterStub) Get(ctx context.Context, url string, response interface{}) error { - if stub.GetCalled != nil { - return stub.GetCalled(ctx, url, response) - } - - return nil -} diff --git a/mx-sdk-go-old/aggregator/mock/priceFetcherStub.go b/mx-sdk-go-old/aggregator/mock/priceFetcherStub.go deleted file mode 100644 index c06186ff..00000000 --- a/mx-sdk-go-old/aggregator/mock/priceFetcherStub.go +++ /dev/null @@ -1,40 +0,0 @@ -package mock - -import "context" - -// PriceFetcherStub - -type PriceFetcherStub struct { - NameCalled func() string - FetchPriceCalled func(ctx context.Context, base string, quote string) (float64, error) - AddPairCalled func(base, quote string) -} - -// Name - -func (stub *PriceFetcherStub) Name() string { - if stub.NameCalled != nil { - return stub.NameCalled() - } - - return "" -} - -// FetchPrice - -func (stub *PriceFetcherStub) FetchPrice(ctx context.Context, base string, quote string) (float64, error) { - if stub.FetchPriceCalled != nil { - return stub.FetchPriceCalled(ctx, base, quote) - } - - return 1, nil -} - -// AddPair - -func (stub *PriceFetcherStub) AddPair(base, quote string) { - if stub.AddPairCalled != nil { - stub.AddPairCalled(base, quote) - } -} - -// IsInterfaceNil - -func (stub *PriceFetcherStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/aggregator/mock/priceNotifeeStub.go b/mx-sdk-go-old/aggregator/mock/priceNotifeeStub.go deleted file mode 100644 index 216de616..00000000 --- a/mx-sdk-go-old/aggregator/mock/priceNotifeeStub.go +++ /dev/null @@ -1,26 +0,0 @@ -package mock - -import ( - "context" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" -) - -// PriceNotifeeStub - -type PriceNotifeeStub struct { - PriceChangedCalled func(ctx context.Context, args []*aggregator.ArgsPriceChanged) error -} - -// PriceChanged - -func (stub *PriceNotifeeStub) PriceChanged(ctx context.Context, args []*aggregator.ArgsPriceChanged) error { - if stub.PriceChangedCalled != nil { - return stub.PriceChangedCalled(ctx, args) - } - - return nil -} - -// IsInterfaceNil - -func (stub *PriceNotifeeStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/aggregator/notifees/errors.go b/mx-sdk-go-old/aggregator/notifees/errors.go deleted file mode 100644 index 5d0e27e9..00000000 --- a/mx-sdk-go-old/aggregator/notifees/errors.go +++ /dev/null @@ -1,13 +0,0 @@ -package notifees - -import "errors" - -var ( - errNilProxy = errors.New("nil proxy") - errNilTxBuilder = errors.New("nil tx builder") - errNilTxNonceHandler = errors.New("nil tx nonce handler") - errNilContractAddressHandler = errors.New("nil contract address handler") - errInvalidContractAddress = errors.New("invalid contract address") - errInvalidBaseGasLimit = errors.New("invalid base gas limit") - errInvalidGasLimitForEach = errors.New("invalid gas limit for each price change") -) diff --git a/mx-sdk-go-old/aggregator/notifees/interface.go b/mx-sdk-go-old/aggregator/notifees/interface.go deleted file mode 100644 index 1329d2f7..00000000 --- a/mx-sdk-go-old/aggregator/notifees/interface.go +++ /dev/null @@ -1,32 +0,0 @@ -package notifees - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -// TxBuilder defines the component able to build & sign a transaction -type TxBuilder interface { - ApplySignature(cryptoHolder core.CryptoComponentsHolder, tx *transaction.FrontendTransaction) error - IsInterfaceNil() bool -} - -// Proxy holds the primitive functions that the multiversx proxy engine supports & implements -// dependency inversion: blockchain package is considered inner business logic, this package is considered "plugin" -type Proxy interface { - GetNetworkConfig(ctx context.Context) (*data.NetworkConfig, error) - GetAccount(ctx context.Context, address core.AddressHandler) (*data.Account, error) - SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) - SendTransactions(ctx context.Context, txs []*transaction.FrontendTransaction) ([]string, error) - IsInterfaceNil() bool -} - -// TransactionNonceHandler defines the component able to apply nonce for a given FrontendTransaction -type TransactionNonceHandler interface { - ApplyNonceAndGasPrice(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error - SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/aggregator/notifees/mxNotifee.go b/mx-sdk-go-old/aggregator/notifees/mxNotifee.go deleted file mode 100644 index 6ea5e041..00000000 --- a/mx-sdk-go-old/aggregator/notifees/mxNotifee.go +++ /dev/null @@ -1,153 +0,0 @@ -package notifees - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -const zeroString = "0" -const txVersion = uint32(1) -const function = "submitBatch" -const minGasLimit = uint64(1) - -var log = logger.GetOrCreate("mx-sdk-go/aggregator/notifees") - -// ArgsMxNotifee is the argument DTO for the NewMxNotifee function -type ArgsMxNotifee struct { - Proxy Proxy - TxBuilder TxBuilder - TxNonceHandler TransactionNonceHandler - ContractAddress core.AddressHandler - CryptoHolder core.CryptoComponentsHolder - BaseGasLimit uint64 - GasLimitForEach uint64 -} - -type mxNotifee struct { - proxy Proxy - txBuilder TxBuilder - txNonceHandler TransactionNonceHandler - contractAddress core.AddressHandler - baseGasLimit uint64 - gasLimitForEach uint64 - cryptoHolder core.CryptoComponentsHolder -} - -// NewMxNotifee will create a new instance of mxNotifee -func NewMxNotifee(args ArgsMxNotifee) (*mxNotifee, error) { - err := checkArgsMxNotifee(args) - if err != nil { - return nil, err - } - - notifee := &mxNotifee{ - proxy: args.Proxy, - txBuilder: args.TxBuilder, - txNonceHandler: args.TxNonceHandler, - contractAddress: args.ContractAddress, - baseGasLimit: args.BaseGasLimit, - gasLimitForEach: args.GasLimitForEach, - cryptoHolder: args.CryptoHolder, - } - - return notifee, nil -} - -func checkArgsMxNotifee(args ArgsMxNotifee) error { - if check.IfNil(args.Proxy) { - return errNilProxy - } - if check.IfNil(args.TxBuilder) { - return errNilTxBuilder - } - if check.IfNil(args.TxNonceHandler) { - return errNilTxNonceHandler - } - if check.IfNil(args.ContractAddress) { - return errNilContractAddressHandler - } - if !args.ContractAddress.IsValid() { - return errInvalidContractAddress - } - if check.IfNil(args.CryptoHolder) { - return builders.ErrNilCryptoComponentsHolder - } - if args.BaseGasLimit < minGasLimit { - return errInvalidBaseGasLimit - } - if args.GasLimitForEach < minGasLimit { - return errInvalidGasLimitForEach - } - - return nil -} - -// PriceChanged is the function that gets called by a price notifier. This function will assemble a MultiversX -// transaction, having the transaction's data field containing all the price changes information -func (en *mxNotifee) PriceChanged(ctx context.Context, priceChanges []*aggregator.ArgsPriceChanged) error { - txData, err := en.prepareTxData(priceChanges) - if err != nil { - return err - } - - networkConfigs, err := en.proxy.GetNetworkConfig(ctx) - if err != nil { - return err - } - - gasLimit := en.baseGasLimit + uint64(len(priceChanges))*en.gasLimitForEach - tx := &transaction.FrontendTransaction{ - Value: zeroString, - Receiver: en.contractAddress.AddressAsBech32String(), - GasPrice: networkConfigs.MinGasPrice, - GasLimit: gasLimit, - Data: txData, - ChainID: networkConfigs.ChainID, - Version: txVersion, - } - - err = en.txNonceHandler.ApplyNonceAndGasPrice(ctx, en.cryptoHolder.GetAddressHandler(), tx) - if err != nil { - return err - } - - err = en.txBuilder.ApplySignature(en.cryptoHolder, tx) - if err != nil { - return err - } - - txHash, err := en.txNonceHandler.SendTransaction(ctx, tx) - if err != nil { - return err - } - - log.Debug("sent transaction", "hash", txHash) - - return nil -} - -func (en *mxNotifee) prepareTxData(priceChanges []*aggregator.ArgsPriceChanged) ([]byte, error) { - txDataBuilder := builders.NewTxDataBuilder() - txDataBuilder.Function(function) - - for _, priceChange := range priceChanges { - txDataBuilder.ArgBytes([]byte(priceChange.Base)). - ArgBytes([]byte(priceChange.Quote)). - ArgInt64(priceChange.Timestamp). - ArgInt64(int64(priceChange.DenominatedPrice)). - ArgInt64(int64(priceChange.Decimals)) - } - - return txDataBuilder.ToDataBytes() -} - -// IsInterfaceNil returns true if there is no value under the interface -func (en *mxNotifee) IsInterfaceNil() bool { - return en == nil -} diff --git a/mx-sdk-go-old/aggregator/notifees/mxNotifee_test.go b/mx-sdk-go-old/aggregator/notifees/mxNotifee_test.go deleted file mode 100644 index 4997c753..00000000 --- a/mx-sdk-go-old/aggregator/notifees/mxNotifee_test.go +++ /dev/null @@ -1,359 +0,0 @@ -package notifees - -import ( - "bytes" - "context" - "encoding/hex" - "errors" - "math/big" - "strings" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-chain-crypto-go/signing" - "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -var ( - suite = ed25519.NewEd25519() - keyGen = signing.NewKeyGenerator(suite) -) - -func createMockArgsMxNotifee() ArgsMxNotifee { - return ArgsMxNotifee{ - Proxy: &testsCommon.ProxyStub{}, - TxBuilder: &testsCommon.TxBuilderStub{}, - TxNonceHandler: &testsCommon.TxNonceHandlerV2Stub{}, - ContractAddress: data.NewAddressFromBytes(bytes.Repeat([]byte{1}, 32)), - CryptoHolder: &testsCommon.CryptoComponentsHolderStub{}, - BaseGasLimit: 1, - GasLimitForEach: 1, - } -} - -func createMockArgsMxNotifeeWithSomeRealComponents() ArgsMxNotifee { - proxy := &testsCommon.ProxyStub{ - GetNetworkConfigCalled: func() (*data.NetworkConfig, error) { - return &data.NetworkConfig{ - ChainID: "test", - MinGasLimit: 1000, - MinGasPrice: 10, - }, nil - }, - } - - skBytes, _ := hex.DecodeString("6ae10fed53a84029e53e35afdbe083688eea0917a09a9431951dd42fd4da14c40d248169f4dd7c90537f05be1c49772ddbf8f7948b507ed17fb23284cf218b7d") - holder, _ := cryptoProvider.NewCryptoComponentsHolder(keyGen, skBytes) - txBuilder, _ := builders.NewTxBuilder(cryptoProvider.NewSigner()) - - return ArgsMxNotifee{ - Proxy: proxy, - TxBuilder: txBuilder, - TxNonceHandler: &testsCommon.TxNonceHandlerV2Stub{}, - ContractAddress: data.NewAddressFromBytes(bytes.Repeat([]byte{1}, 32)), - CryptoHolder: holder, - BaseGasLimit: 2000, - GasLimitForEach: 30, - } -} - -func createMockPriceChanges() []*aggregator.ArgsPriceChanged { - return []*aggregator.ArgsPriceChanged{ - { - Base: "USD", - Quote: "ETH", - DenominatedPrice: 380000, - Decimals: 2, - Timestamp: 200, - }, - { - Base: "USD", - Quote: "BTC", - DenominatedPrice: 47000000000, - Decimals: 6, - Timestamp: 300, - }, - } -} - -func TestNewMxNotifee(t *testing.T) { - t.Parallel() - - t.Run("nil proxy should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsMxNotifee() - args.Proxy = nil - en, err := NewMxNotifee(args) - - assert.True(t, check.IfNil(en)) - assert.Equal(t, errNilProxy, err) - }) - t.Run("nil tx builder should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsMxNotifee() - args.TxBuilder = nil - en, err := NewMxNotifee(args) - - assert.True(t, check.IfNil(en)) - assert.Equal(t, errNilTxBuilder, err) - }) - t.Run("nil tx nonce handler should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsMxNotifee() - args.TxNonceHandler = nil - en, err := NewMxNotifee(args) - - assert.True(t, check.IfNil(en)) - assert.Equal(t, errNilTxNonceHandler, err) - }) - t.Run("nil contract address should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsMxNotifee() - args.ContractAddress = nil - en, err := NewMxNotifee(args) - - assert.True(t, check.IfNil(en)) - assert.Equal(t, errNilContractAddressHandler, err) - }) - t.Run("invalid contract address should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsMxNotifee() - args.ContractAddress = data.NewAddressFromBytes([]byte("invalid")) - en, err := NewMxNotifee(args) - - assert.True(t, check.IfNil(en)) - assert.Equal(t, errInvalidContractAddress, err) - }) - t.Run("nil cryptoHlder should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsMxNotifee() - args.CryptoHolder = nil - en, err := NewMxNotifee(args) - - assert.True(t, check.IfNil(en)) - assert.Equal(t, builders.ErrNilCryptoComponentsHolder, err) - }) - t.Run("invalid base gas limit should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsMxNotifee() - args.BaseGasLimit = minGasLimit - 1 - en, err := NewMxNotifee(args) - - assert.True(t, check.IfNil(en)) - assert.Equal(t, errInvalidBaseGasLimit, err) - }) - t.Run("invalid gas limit for each should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsMxNotifee() - args.GasLimitForEach = minGasLimit - 1 - en, err := NewMxNotifee(args) - - assert.True(t, check.IfNil(en)) - assert.Equal(t, errInvalidGasLimitForEach, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgsMxNotifee() - en, err := NewMxNotifee(args) - - assert.False(t, check.IfNil(en)) - assert.Nil(t, err) - }) -} - -func TestMxNotifee_PriceChanged(t *testing.T) { - t.Parallel() - - t.Run("get nonce errors", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - args := createMockArgsMxNotifeeWithSomeRealComponents() - args.TxNonceHandler = &testsCommon.TxNonceHandlerV2Stub{ - ApplyNonceAndGasPriceCalled: func(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error { - return expectedErr - }, - SendTransactionCalled: func(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - assert.Fail(t, "should have not called SendTransaction") - return "", nil - }, - } - - en, err := NewMxNotifee(args) - require.Nil(t, err) - - priceChanges := createMockPriceChanges() - err = en.PriceChanged(context.Background(), priceChanges) - assert.Equal(t, expectedErr, err) - }) - t.Run("invalid price arguments", func(t *testing.T) { - t.Parallel() - - args := createMockArgsMxNotifeeWithSomeRealComponents() - args.TxNonceHandler = &testsCommon.TxNonceHandlerV2Stub{ - ApplyNonceAndGasPriceCalled: func(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error { - tx.Nonce = 43 - return nil - }, - SendTransactionCalled: func(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - assert.Fail(t, "should have not called SendTransaction") - return "", nil - }, - } - - en, err := NewMxNotifee(args) - require.Nil(t, err) - - priceChanges := createMockPriceChanges() - priceChanges[0].Base = "" - err = en.PriceChanged(context.Background(), priceChanges) - assert.True(t, errors.Is(err, builders.ErrInvalidValue)) - }) - t.Run("get network config errors", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - args := createMockArgsMxNotifeeWithSomeRealComponents() - args.Proxy = &testsCommon.ProxyStub{ - GetNetworkConfigCalled: func() (*data.NetworkConfig, error) { - return nil, expectedErr - }, - } - args.TxNonceHandler = &testsCommon.TxNonceHandlerV2Stub{ - ApplyNonceAndGasPriceCalled: func(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error { - tx.Nonce = 43 - return nil - }, - SendTransactionCalled: func(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - assert.Fail(t, "should have not called SendTransaction") - return "", nil - }, - } - - en, err := NewMxNotifee(args) - require.Nil(t, err) - - priceChanges := createMockPriceChanges() - err = en.PriceChanged(context.Background(), priceChanges) - assert.Equal(t, expectedErr, err) - }) - t.Run("apply signature and generate transaction errors", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - args := createMockArgsMxNotifeeWithSomeRealComponents() - args.TxNonceHandler = &testsCommon.TxNonceHandlerV2Stub{ - ApplyNonceAndGasPriceCalled: func(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error { - tx.Nonce = 43 - return nil - }, - SendTransactionCalled: func(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - assert.Fail(t, "should have not called SendTransaction") - return "", nil - }, - } - args.TxBuilder = &testsCommon.TxBuilderStub{ - ApplySignatureCalled: func(cryptoHolder core.CryptoComponentsHolder, tx *transaction.FrontendTransaction) error { - return expectedErr - }, - } - - en, err := NewMxNotifee(args) - require.Nil(t, err) - - priceChanges := createMockPriceChanges() - err = en.PriceChanged(context.Background(), priceChanges) - assert.Equal(t, expectedErr, err) - }) - t.Run("send transaction errors", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - args := createMockArgsMxNotifeeWithSomeRealComponents() - args.TxNonceHandler = &testsCommon.TxNonceHandlerV2Stub{ - ApplyNonceAndGasPriceCalled: func(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error { - tx.Nonce = 43 - return nil - }, - SendTransactionCalled: func(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - return "", expectedErr - }, - } - - en, err := NewMxNotifee(args) - require.Nil(t, err) - - priceChanges := createMockPriceChanges() - err = en.PriceChanged(context.Background(), priceChanges) - assert.Equal(t, expectedErr, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - priceChanges := createMockPriceChanges() - sentWasCalled := false - args := createMockArgsMxNotifeeWithSomeRealComponents() - args.TxNonceHandler = &testsCommon.TxNonceHandlerV2Stub{ - ApplyNonceAndGasPriceCalled: func(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error { - tx.Nonce = 43 - return nil - }, - SendTransactionCalled: func(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - txDataStrings := []string{ - function, - hex.EncodeToString([]byte(priceChanges[0].Base)), - hex.EncodeToString([]byte(priceChanges[0].Quote)), - hex.EncodeToString(big.NewInt(priceChanges[0].Timestamp).Bytes()), - hex.EncodeToString(big.NewInt(int64(priceChanges[0].DenominatedPrice)).Bytes()), - hex.EncodeToString(big.NewInt(int64(priceChanges[0].Decimals)).Bytes()), - hex.EncodeToString([]byte(priceChanges[1].Base)), - hex.EncodeToString([]byte(priceChanges[1].Quote)), - hex.EncodeToString(big.NewInt(priceChanges[1].Timestamp).Bytes()), - hex.EncodeToString(big.NewInt(int64(priceChanges[1].DenominatedPrice)).Bytes()), - hex.EncodeToString(big.NewInt(int64(priceChanges[1].Decimals)).Bytes()), - } - txData := []byte(strings.Join(txDataStrings, "@")) - - assert.Equal(t, uint64(43), tx.Nonce) - assert.Equal(t, "0", tx.Value) - assert.Equal(t, "erd1qyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqsl6e0p7", tx.Receiver) - assert.Equal(t, "erd1p5jgz605m47fq5mlqklpcjth9hdl3au53dg8a5tlkgegfnep3d7stdk09x", tx.Sender) - assert.Equal(t, uint64(10), tx.GasPrice) - assert.Equal(t, uint64(2060), tx.GasLimit) - assert.Equal(t, txData, tx.Data) - assert.Equal(t, "test", tx.ChainID) - assert.Equal(t, uint32(1), tx.Version) - assert.Equal(t, uint32(0), tx.Options) - - sentWasCalled = true - - return "hash", nil - }, - } - - en, err := NewMxNotifee(args) - require.Nil(t, err) - - err = en.PriceChanged(context.Background(), priceChanges) - assert.Nil(t, err) - assert.True(t, sentWasCalled) - }) -} diff --git a/mx-sdk-go-old/aggregator/pair.go b/mx-sdk-go-old/aggregator/pair.go deleted file mode 100644 index 717ba00b..00000000 --- a/mx-sdk-go-old/aggregator/pair.go +++ /dev/null @@ -1,71 +0,0 @@ -package aggregator - -import ( - "fmt" - "math" -) - -const ( - minDecimals = 1 - maxDecimals = 18 -) - -// ArgsPair is the argument DTO for a pair -type ArgsPair struct { - Base string - Quote string - PercentDifferenceToNotify uint32 - Decimals uint64 - Exchanges map[string]struct{} -} - -type pair struct { - base string - quote string - percentDifferenceToNotify uint32 - decimals uint64 - trimPrecision float64 - denominationFactor uint64 - exchanges map[string]struct{} -} - -func newPair(args *ArgsPair) (*pair, error) { - err := checkPairArgs(args) - if err != nil { - return nil, err - } - - denominationFactorAsFloat64 := math.Pow(10, float64(args.Decimals)) - return &pair{ - base: args.Base, - quote: args.Quote, - percentDifferenceToNotify: args.PercentDifferenceToNotify, - decimals: args.Decimals, - trimPrecision: float64(1) / denominationFactorAsFloat64, - denominationFactor: uint64(denominationFactorAsFloat64), - exchanges: args.Exchanges, - }, nil -} - -func checkPairArgs(args *ArgsPair) error { - if len(args.Base) == 0 { - return ErrNilBaseName - } - if len(args.Quote) == 0 { - return ErrNilQuoteName - } - if args.Decimals < minDecimals || args.Decimals > maxDecimals { - return fmt.Errorf("%w, got %d for pair %s-%s", ErrInvalidDecimals, - args.Decimals, args.Base, args.Quote) - } - if len(args.Exchanges) == 0 { - return ErrNilExchanges - } - - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (p *pair) IsInterfaceNil() bool { - return p == nil -} diff --git a/mx-sdk-go-old/aggregator/pair_test.go b/mx-sdk-go-old/aggregator/pair_test.go deleted file mode 100644 index 3f2102a1..00000000 --- a/mx-sdk-go-old/aggregator/pair_test.go +++ /dev/null @@ -1,83 +0,0 @@ -package aggregator - -import ( - "errors" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/stretchr/testify/assert" -) - -func TestNewPair(t *testing.T) { - t.Parallel() - - t.Run("invalid base name", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPair() - args.Base = "" - - pn, err := newPair(args) - assert.True(t, check.IfNil(pn)) - assert.Equal(t, ErrNilBaseName, err) - }) - t.Run("invalid quote name", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPair() - args.Quote = "" - - pn, err := newPair(args) - assert.True(t, check.IfNil(pn)) - assert.Equal(t, ErrNilQuoteName, err) - }) - t.Run("0 decimals", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPair() - args.Decimals = 0 - - pn, err := newPair(args) - assert.True(t, check.IfNil(pn)) - assert.True(t, errors.Is(err, ErrInvalidDecimals)) - }) - t.Run(">18 decimals", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPair() - args.Decimals = 19 - - pn, err := newPair(args) - assert.True(t, check.IfNil(pn)) - assert.True(t, errors.Is(err, ErrInvalidDecimals)) - }) - t.Run("nil exchanges map", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPair() - args.Exchanges = nil - - pn, err := newPair(args) - assert.True(t, check.IfNil(pn)) - assert.Equal(t, ErrNilExchanges, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPair() - - pn, err := newPair(args) - assert.False(t, check.IfNil(pn)) - assert.Nil(t, err) - }) -} - -func createMockArgsPair() *ArgsPair { - return &ArgsPair{ - Base: "BASE", - Quote: "QUOTE", - PercentDifferenceToNotify: 1, - Decimals: 2, - Exchanges: map[string]struct{}{"Binance": {}}, - } -} diff --git a/mx-sdk-go-old/aggregator/priceAggregator.go b/mx-sdk-go-old/aggregator/priceAggregator.go deleted file mode 100644 index b05a610a..00000000 --- a/mx-sdk-go-old/aggregator/priceAggregator.go +++ /dev/null @@ -1,114 +0,0 @@ -package aggregator - -import ( - "context" - "fmt" - "strings" - "sync" - - "github.com/multiversx/mx-chain-core-go/core/check" - logger "github.com/multiversx/mx-chain-logger-go" -) - -const minResultsNum = 1 - -var log = logger.GetOrCreate("mx-sdk-go/aggregator") - -// ArgsPriceAggregator is the DTO used in the NewPriceAggregator function -type ArgsPriceAggregator struct { - PriceFetchers []PriceFetcher - MinResultsNum int -} - -type priceAggregator struct { - priceFetchers []PriceFetcher - minResultsNum int -} - -// NewPriceAggregator creates a new priceAggregator instance -func NewPriceAggregator(args ArgsPriceAggregator) (*priceAggregator, error) { - err := checkArgs(args) - if err != nil { - return nil, err - } - - return &priceAggregator{ - priceFetchers: args.PriceFetchers, - minResultsNum: args.MinResultsNum, - }, nil -} - -func checkArgs(args ArgsPriceAggregator) error { - if args.MinResultsNum < minResultsNum { - return fmt.Errorf("%w, provided: %d, minimum accepted: %d", ErrInvalidMinNumberOfResults, args.MinResultsNum, minResultsNum) - } - if len(args.PriceFetchers) < args.MinResultsNum { - return fmt.Errorf("%w, len(args.PriceFetchers): %d, MinResultsNum: %d", ErrInvalidNumberOfPriceFetchers, - len(args.PriceFetchers), args.MinResultsNum) - } - for idx, pf := range args.PriceFetchers { - if check.IfNil(pf) { - return fmt.Errorf("%w, index: %d", ErrNilPriceFetcher, idx) - } - } - - return nil -} - -// FetchPrice will try to fetch the price based on the provided array of price fetchers -func (pa *priceAggregator) FetchPrice(ctx context.Context, base string, quote string) (float64, error) { - var wg sync.WaitGroup - var mut sync.Mutex - var prices []float64 - - baseUpper := strings.ToUpper(base) - quoteUpper := strings.ToUpper(quote) - - wg.Add(len(pa.priceFetchers)) - for _, pf := range pa.priceFetchers { - go func(priceFetcher PriceFetcher) { - defer wg.Done() - price, err := priceFetcher.FetchPrice(ctx, baseUpper, quoteUpper) - - if err == ErrPairNotSupported { - log.Trace("pair not supported", - "price fetcher", priceFetcher.Name(), - "base", baseUpper, - "quote", quoteUpper, - ) - return - } - - if err != nil { - log.Debug("failed to fetch price", - "price fetcher", priceFetcher.Name(), - "base", baseUpper, - "quote", quoteUpper, - "err", err.Error(), - ) - return - } - - mut.Lock() - prices = append(prices, price) - mut.Unlock() - }(pf) - } - wg.Wait() - - if len(prices) < pa.minResultsNum { - return 0, ErrNotEnoughResponses - } - - return computeMedian(prices) -} - -// Name returns the name -func (pa *priceAggregator) Name() string { - return "price aggregator" -} - -// IsInterfaceNil returns true if there is no value under the interface -func (pa *priceAggregator) IsInterfaceNil() bool { - return pa == nil -} diff --git a/mx-sdk-go-old/aggregator/priceAggregator_test.go b/mx-sdk-go-old/aggregator/priceAggregator_test.go deleted file mode 100644 index 5b787d92..00000000 --- a/mx-sdk-go-old/aggregator/priceAggregator_test.go +++ /dev/null @@ -1,131 +0,0 @@ -package aggregator_test - -import ( - "context" - "errors" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/mock" - "github.com/stretchr/testify/assert" -) - -func createMockArgsPriceAggregator() aggregator.ArgsPriceAggregator { - return aggregator.ArgsPriceAggregator{ - PriceFetchers: []aggregator.PriceFetcher{&mock.PriceFetcherStub{}}, - MinResultsNum: 1, - } -} - -func TestNewPriceAggregator(t *testing.T) { - t.Parallel() - - t.Run("invalid MinResultsNum should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceAggregator() - args.MinResultsNum = 0 - pa, err := aggregator.NewPriceAggregator(args) - - assert.True(t, check.IfNil(pa)) - assert.True(t, errors.Is(err, aggregator.ErrInvalidMinNumberOfResults)) - }) - t.Run("invalid number of price fetchers should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceAggregator() - args.PriceFetchers = make([]aggregator.PriceFetcher, 0) - pa, err := aggregator.NewPriceAggregator(args) - - assert.True(t, check.IfNil(pa)) - assert.True(t, errors.Is(err, aggregator.ErrInvalidNumberOfPriceFetchers)) - }) - t.Run("nil price fetcher should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceAggregator() - args.PriceFetchers = append(args.PriceFetchers, nil) - pa, err := aggregator.NewPriceAggregator(args) - - assert.True(t, check.IfNil(pa)) - assert.True(t, errors.Is(err, aggregator.ErrNilPriceFetcher)) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceAggregator() - pa, err := aggregator.NewPriceAggregator(args) - - assert.Equal(t, "price aggregator", pa.Name()) - assert.False(t, check.IfNil(pa)) - assert.Nil(t, err) - }) -} - -func TestPriceAggregator_FetchPrice(t *testing.T) { - t.Parallel() - - t.Run("all stubs return valid values and no errors", func(t *testing.T) { - args := createMockArgsPriceAggregator() - args.PriceFetchers = []aggregator.PriceFetcher{ - &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 1.0045, nil - }, - }, - &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 1.0047, nil - }, - }, - } - pa, _ := aggregator.NewPriceAggregator(args) - - value, err := pa.FetchPrice(context.Background(), "", "") - assert.Nil(t, err) - assert.Equal(t, 1.0046, value) - }) - t.Run("one stub returns an error", func(t *testing.T) { - expectedErr := errors.New("expected error") - args := createMockArgsPriceAggregator() - args.PriceFetchers = []aggregator.PriceFetcher{ - &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 1.0045, nil - }, - }, - &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 0, expectedErr - }, - }, - } - pa, _ := aggregator.NewPriceAggregator(args) - - value, err := pa.FetchPrice(context.Background(), "", "") - assert.Nil(t, err) - assert.Equal(t, 1.0045, value) - }) - t.Run("all stubs return errors", func(t *testing.T) { - expectedErr := errors.New("expected error") - args := createMockArgsPriceAggregator() - args.PriceFetchers = []aggregator.PriceFetcher{ - &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 0, expectedErr - }, - }, - &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 0, expectedErr - }, - }, - } - pa, _ := aggregator.NewPriceAggregator(args) - - value, err := pa.FetchPrice(context.Background(), "", "") - assert.Equal(t, aggregator.ErrNotEnoughResponses, err) - assert.Equal(t, 0.00, value) - }) -} diff --git a/mx-sdk-go-old/aggregator/priceNotifier.go b/mx-sdk-go-old/aggregator/priceNotifier.go deleted file mode 100644 index d2f14107..00000000 --- a/mx-sdk-go-old/aggregator/priceNotifier.go +++ /dev/null @@ -1,196 +0,0 @@ -package aggregator - -import ( - "context" - "fmt" - "math" - "sync" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" -) - -const epsilon = 0.0001 -const minAutoSendInterval = time.Second - -// ArgsPriceNotifier is the argument DTO for the price notifier -type ArgsPriceNotifier struct { - Pairs []*ArgsPair - Aggregator PriceAggregator - Notifee PriceNotifee - AutoSendInterval time.Duration -} - -type priceInfo struct { - price float64 - timestamp int64 -} - -type notifyArgs struct { - *pair - newPrice priceInfo - lastNotifiedPrice float64 - index int -} - -type priceNotifier struct { - mut sync.Mutex - priceAggregator PriceAggregator - pairs []*pair - lastNotifiedPrices []float64 - notifee PriceNotifee - autoSendInterval time.Duration - lastTimeAutoSent time.Time - timeSinceHandler func(t time.Time) time.Duration -} - -// NewPriceNotifier will create a new priceNotifier instance -func NewPriceNotifier(args ArgsPriceNotifier) (*priceNotifier, error) { - err := checkArgsPriceNotifier(args) - if err != nil { - return nil, err - } - - pairs := make([]*pair, 0) - for idx, argsPair := range args.Pairs { - if argsPair == nil { - return nil, fmt.Errorf("%w, index %d", ErrNilArgsPair, idx) - } - pair, err := newPair(argsPair) - if err != nil { - return nil, err - } - pairs = append(pairs, pair) - } - - return &priceNotifier{ - priceAggregator: args.Aggregator, - pairs: pairs, - lastNotifiedPrices: make([]float64, len(args.Pairs)), - notifee: args.Notifee, - autoSendInterval: args.AutoSendInterval, - lastTimeAutoSent: time.Now(), - timeSinceHandler: time.Since, - }, nil -} - -func checkArgsPriceNotifier(args ArgsPriceNotifier) error { - if len(args.Pairs) < 1 { - return ErrEmptyArgsPairsSlice - } - - if args.AutoSendInterval < minAutoSendInterval { - return fmt.Errorf("%w, minimum %v, got %v", ErrInvalidAutoSendInterval, minAutoSendInterval, args.AutoSendInterval) - } - if check.IfNil(args.Notifee) { - return ErrNilPriceNotifee - } - if check.IfNil(args.Aggregator) { - return ErrNilPriceAggregator - } - - return nil -} - -// Execute will trigger the price fetching and notification if the new price exceeded provided percentage change -func (pn *priceNotifier) Execute(ctx context.Context) error { - fetchedPrices, err := pn.getAllPrices(ctx) - if err != nil { - return err - } - - notifyArgsSlice := pn.computeNotifyArgsSlice(fetchedPrices) - - return pn.notify(ctx, notifyArgsSlice) -} - -func (pn *priceNotifier) getAllPrices(ctx context.Context) ([]priceInfo, error) { - fetchedPrices := make([]priceInfo, len(pn.pairs)) - for idx, pair := range pn.pairs { - price, err := pn.priceAggregator.FetchPrice(ctx, pair.base, pair.quote) - if err != nil { - return nil, fmt.Errorf("%w while querying the pair %s-%s", err, pair.base, pair.quote) - } - - fetchedPrice := priceInfo{ - price: trim(price, pair.trimPrecision), - timestamp: time.Now().Unix(), - } - fetchedPrices[idx] = fetchedPrice - } - - return fetchedPrices, nil -} - -func (pn *priceNotifier) computeNotifyArgsSlice(fetchedPrices []priceInfo) []*notifyArgs { - pn.mut.Lock() - defer pn.mut.Unlock() - - shouldNotifyAll := pn.timeSinceHandler(pn.lastTimeAutoSent) > pn.autoSendInterval - - result := make([]*notifyArgs, 0, len(pn.pairs)) - for idx, pair := range pn.pairs { - notifyArgsValue := ¬ifyArgs{ - pair: pair, - newPrice: fetchedPrices[idx], - lastNotifiedPrice: pn.lastNotifiedPrices[idx], - index: idx, - } - - if shouldNotifyAll || shouldNotify(notifyArgsValue) { - result = append(result, notifyArgsValue) - } - } - - if shouldNotifyAll { - pn.lastTimeAutoSent = time.Now() - } - - return result -} - -func shouldNotify(notifyArgsValue *notifyArgs) bool { - percentValue := float64(notifyArgsValue.percentDifferenceToNotify) / 100 - shouldBypassPercentCheck := notifyArgsValue.lastNotifiedPrice < epsilon || percentValue < epsilon - if shouldBypassPercentCheck { - return true - } - - absoluteChange := math.Abs(notifyArgsValue.lastNotifiedPrice - notifyArgsValue.newPrice.price) - percentageChange := absoluteChange * 100 / notifyArgsValue.lastNotifiedPrice - - return percentageChange >= float64(notifyArgsValue.percentDifferenceToNotify) -} - -func (pn *priceNotifier) notify(ctx context.Context, notifyArgsSlice []*notifyArgs) error { - if len(notifyArgsSlice) == 0 { - return nil - } - - args := make([]*ArgsPriceChanged, 0, len(notifyArgsSlice)) - for _, notify := range notifyArgsSlice { - priceTrimmed := trim(notify.newPrice.price, notify.trimPrecision) - denominatedPrice := uint64(priceTrimmed * float64(notify.denominationFactor)) - - argPriceChanged := &ArgsPriceChanged{ - Base: notify.base, - Quote: notify.quote, - DenominatedPrice: denominatedPrice, - Decimals: notify.decimals, - Timestamp: notify.newPrice.timestamp, - } - - args = append(args, argPriceChanged) - - pn.mut.Lock() - pn.lastNotifiedPrices[notify.index] = priceTrimmed - pn.mut.Unlock() - } - - return pn.notifee.PriceChanged(ctx, args) -} - -// IsInterfaceNil returns true if there is no value under the interface -func (pn *priceNotifier) IsInterfaceNil() bool { - return pn == nil -} diff --git a/mx-sdk-go-old/aggregator/priceNotifier_test.go b/mx-sdk-go-old/aggregator/priceNotifier_test.go deleted file mode 100644 index e863a39b..00000000 --- a/mx-sdk-go-old/aggregator/priceNotifier_test.go +++ /dev/null @@ -1,344 +0,0 @@ -package aggregator_test - -import ( - "context" - "errors" - "fmt" - "strings" - "testing" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/mock" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func createMockArgsPriceNotifier() aggregator.ArgsPriceNotifier { - return aggregator.ArgsPriceNotifier{ - Pairs: []*aggregator.ArgsPair{ - { - Base: "BASE", - Quote: "QUOTE", - PercentDifferenceToNotify: 1, - Decimals: 2, - Exchanges: map[string]struct{}{"Binance": {}}, - }, - }, - Aggregator: &mock.PriceFetcherStub{}, - Notifee: &mock.PriceNotifeeStub{}, - AutoSendInterval: time.Minute, - } -} - -func TestNewPriceNotifier(t *testing.T) { - t.Parallel() - - t.Run("empty pair arguments slice should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - args.Pairs = nil - - pn, err := aggregator.NewPriceNotifier(args) - assert.True(t, check.IfNil(pn)) - assert.Equal(t, aggregator.ErrEmptyArgsPairsSlice, err) - }) - t.Run("nil pair argument should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - args.Pairs = append(args.Pairs, nil) - - pn, err := aggregator.NewPriceNotifier(args) - assert.True(t, check.IfNil(pn)) - assert.True(t, errors.Is(err, aggregator.ErrNilArgsPair)) - assert.True(t, strings.Contains(err.Error(), "index 1")) - }) - t.Run("invalid auto send interval", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - args.AutoSendInterval = time.Second - time.Nanosecond - - pn, err := aggregator.NewPriceNotifier(args) - assert.True(t, check.IfNil(pn)) - assert.True(t, errors.Is(err, aggregator.ErrInvalidAutoSendInterval)) - }) - t.Run("nil notifee", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - args.Notifee = nil - - pn, err := aggregator.NewPriceNotifier(args) - assert.True(t, check.IfNil(pn)) - assert.Equal(t, aggregator.ErrNilPriceNotifee, err) - }) - t.Run("nil aggregator", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - args.Aggregator = nil - - pn, err := aggregator.NewPriceNotifier(args) - assert.True(t, check.IfNil(pn)) - assert.Equal(t, aggregator.ErrNilPriceAggregator, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - - pn, err := aggregator.NewPriceNotifier(args) - assert.False(t, check.IfNil(pn)) - assert.Nil(t, err) - }) - t.Run("should work with 0 percentage to notify", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - args.Pairs[0].PercentDifferenceToNotify = 0 - - pn, err := aggregator.NewPriceNotifier(args) - assert.False(t, check.IfNil(pn)) - assert.Nil(t, err) - }) -} - -func TestPriceNotifier_Execute(t *testing.T) { - t.Parallel() - - t.Run("price fetch errors should error", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - args := createMockArgsPriceNotifier() - args.Aggregator = &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 0, expectedErr - }, - } - args.Notifee = &mock.PriceNotifeeStub{ - PriceChangedCalled: func(ctx context.Context, args []*aggregator.ArgsPriceChanged) error { - assert.Fail(t, "should have not called notifee.PriceChanged") - return nil - }, - } - - pn, _ := aggregator.NewPriceNotifier(args) - err := pn.Execute(context.Background()) - assert.True(t, errors.Is(err, expectedErr)) - }) - t.Run("first time should notify", func(t *testing.T) { - t.Parallel() - - var startTimestamp, endTimestamp, receivedTimestamp int64 - args := createMockArgsPriceNotifier() - args.Aggregator = &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 1.987654321, nil - }, - } - wasCalled := false - args.Notifee = &mock.PriceNotifeeStub{ - PriceChangedCalled: func(ctx context.Context, args []*aggregator.ArgsPriceChanged) error { - require.Equal(t, 1, len(args)) - for _, arg := range args { - assert.Equal(t, arg.Base, "BASE") - assert.Equal(t, arg.Quote, "QUOTE") - assert.Equal(t, uint64(199), arg.DenominatedPrice) - assert.Equal(t, uint64(2), arg.Decimals) - receivedTimestamp = arg.Timestamp - } - wasCalled = true - - return nil - }, - } - - pn, _ := aggregator.NewPriceNotifier(args) - startTimestamp = time.Now().Unix() - err := pn.Execute(context.Background()) - endTimestamp = time.Now().Unix() - assert.Nil(t, err) - assert.True(t, wasCalled) - assert.True(t, startTimestamp <= receivedTimestamp) - assert.True(t, endTimestamp >= receivedTimestamp) - }) - t.Run("double call should notify once", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - args.Aggregator = &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 1.987654321, nil - }, - } - numCalled := 0 - args.Notifee = &mock.PriceNotifeeStub{ - PriceChangedCalled: func(ctx context.Context, args []*aggregator.ArgsPriceChanged) error { - require.Equal(t, 1, len(args)) - for _, arg := range args { - assert.Equal(t, arg.Base, "BASE") - assert.Equal(t, arg.Quote, "QUOTE") - assert.Equal(t, uint64(199), arg.DenominatedPrice) - assert.Equal(t, uint64(2), arg.Decimals) - } - numCalled++ - - return nil - }, - } - - pn, _ := aggregator.NewPriceNotifier(args) - err := pn.Execute(context.Background()) - assert.Nil(t, err) - - err = pn.Execute(context.Background()) - assert.Nil(t, err) - - assert.Equal(t, 1, numCalled) - }) - t.Run("double call should notify twice if the percentage value is 0", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - args.Pairs[0].PercentDifferenceToNotify = 0 - args.Aggregator = &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 1.987654321, nil - }, - } - numCalled := 0 - args.Notifee = &mock.PriceNotifeeStub{ - PriceChangedCalled: func(ctx context.Context, args []*aggregator.ArgsPriceChanged) error { - require.Equal(t, 1, len(args)) - for _, arg := range args { - assert.Equal(t, arg.Base, "BASE") - assert.Equal(t, arg.Quote, "QUOTE") - assert.Equal(t, uint64(199), arg.DenominatedPrice) - assert.Equal(t, uint64(2), arg.Decimals) - } - numCalled++ - - return nil - }, - } - - pn, err := aggregator.NewPriceNotifier(args) - require.Nil(t, err) - - err = pn.Execute(context.Background()) - assert.Nil(t, err) - - err = pn.Execute(context.Background()) - assert.Nil(t, err) - - assert.Equal(t, 2, numCalled) - }) - t.Run("no price changes should not notify", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - args.Pairs[0].PercentDifferenceToNotify = 1 - args.Aggregator = &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 1.987654321, nil - }, - } - args.Notifee = &mock.PriceNotifeeStub{ - PriceChangedCalled: func(ctx context.Context, args []*aggregator.ArgsPriceChanged) error { - require.Fail(t, "should have not called pricesChanged") - - return nil - }, - } - - pn, err := aggregator.NewPriceNotifier(args) - require.Nil(t, err) - pn.SetLastNotifiedPrices([]float64{1.987654321}) - - err = pn.Execute(context.Background()) - assert.Nil(t, err) - }) - t.Run("no price changes but auto send duration exceeded", func(t *testing.T) { - t.Parallel() - - startTime := time.Now() - - args := createMockArgsPriceNotifier() - args.Pairs[0].PercentDifferenceToNotify = 1 - args.Aggregator = &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - return 1.987654321, nil - }, - } - numCalled := 0 - args.Notifee = &mock.PriceNotifeeStub{ - PriceChangedCalled: func(ctx context.Context, args []*aggregator.ArgsPriceChanged) error { - numCalled++ - return nil - }, - } - - time.Sleep(time.Second) - pn, err := aggregator.NewPriceNotifier(args) - require.Nil(t, err) - pn.SetLastNotifiedPrices([]float64{1.987654321}) - - lastTimeAutoSent := pn.LastTimeAutoSent() - assert.True(t, lastTimeAutoSent.Sub(startTime) > 0) - - pn.SetTimeSinceHandler(func(providedTime time.Time) time.Duration { - assert.Equal(t, pn.LastTimeAutoSent(), providedTime) - - return time.Second * time.Duration(10000) - }) - - time.Sleep(time.Second) - - err = pn.Execute(context.Background()) - assert.Nil(t, err) - assert.Equal(t, 1, numCalled) - assert.True(t, pn.LastTimeAutoSent().Sub(lastTimeAutoSent) > 0) - }) - t.Run("price changed over the limit should notify twice", func(t *testing.T) { - t.Parallel() - - args := createMockArgsPriceNotifier() - price := 1.987654321 - args.Aggregator = &mock.PriceFetcherStub{ - FetchPriceCalled: func(ctx context.Context, base string, quote string) (float64, error) { - price = price * 1.012 // due to rounding errors, we need this slightly higher increase - - fmt.Printf("new price: %v\n", price) - - return price, nil - }, - } - numCalled := 0 - args.Notifee = &mock.PriceNotifeeStub{ - PriceChangedCalled: func(ctx context.Context, args []*aggregator.ArgsPriceChanged) error { - require.Equal(t, 1, len(args)) - for _, arg := range args { - assert.Equal(t, arg.Base, "BASE") - assert.Equal(t, arg.Quote, "QUOTE") - } - numCalled++ - - return nil - }, - } - - pn, _ := aggregator.NewPriceNotifier(args) - err := pn.Execute(context.Background()) - assert.Nil(t, err) - - err = pn.Execute(context.Background()) - assert.Nil(t, err) - - assert.Equal(t, 2, numCalled) - }) -} diff --git a/mx-sdk-go-old/authentication/errors.go b/mx-sdk-go-old/authentication/errors.go deleted file mode 100644 index a204abb0..00000000 --- a/mx-sdk-go-old/authentication/errors.go +++ /dev/null @@ -1,12 +0,0 @@ -package authentication - -import "errors" - -// ErrNilTxSigner signals that a nil transaction signer was provided -var ErrNilTxSigner = errors.New("nil transaction signer") - -// ErrNilProxy signals that a nil proxy was provided -var ErrNilProxy = errors.New("nil proxy") - -// ErrNilCryptoComponentsHolder signals that a nil cryptoComponentsHolder has been provided -var ErrNilCryptoComponentsHolder = errors.New("nil cryptoComponentsHolder") diff --git a/mx-sdk-go-old/authentication/interface.go b/mx-sdk-go-old/authentication/interface.go deleted file mode 100644 index 38f9db47..00000000 --- a/mx-sdk-go-old/authentication/interface.go +++ /dev/null @@ -1,7 +0,0 @@ -package authentication - -// AuthClient defines the behavior of an authentication client -type AuthClient interface { - GetAccessToken() (string, error) - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/authentication/mock/nativeStub.go b/mx-sdk-go-old/authentication/mock/nativeStub.go deleted file mode 100644 index 77ae51c8..00000000 --- a/mx-sdk-go-old/authentication/mock/nativeStub.go +++ /dev/null @@ -1,19 +0,0 @@ -package mock - -// NativeStub - -type NativeStub struct { - GetAccessTokenCalled func() (string, error) -} - -// GetAccessToken - -func (stub *NativeStub) GetAccessToken() (string, error) { - if stub.GetAccessTokenCalled != nil { - return stub.GetAccessTokenCalled() - } - return "", nil -} - -// IsInterfaceNil - -func (stub *NativeStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/authentication/native.go b/mx-sdk-go-old/authentication/native.go deleted file mode 100644 index 60833c71..00000000 --- a/mx-sdk-go-old/authentication/native.go +++ /dev/null @@ -1,116 +0,0 @@ -package authentication - -import ( - "context" - "encoding/base64" - "encoding/json" - "fmt" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/workflows" -) - -// ArgsNativeAuthClient is the DTO used in the native auth client constructor -type ArgsNativeAuthClient struct { - Signer builders.Signer - ExtraInfo interface{} - Proxy workflows.ProxyHandler - CryptoComponentsHolder core.CryptoComponentsHolder - TokenExpiryInSeconds uint64 - Host string -} - -type nativeAuthClient struct { - signer builders.Signer - encodedExtraInfo string - proxy workflows.ProxyHandler - tokenExpiryInSeconds uint64 - cryptoComponentsHolder core.CryptoComponentsHolder - encodedHost string - token string - tokenExpire time.Time - getTimeHandler func() time.Time -} - -// NewNativeAuthClient will create a new native client able to create authentication tokens -func NewNativeAuthClient(args ArgsNativeAuthClient) (*nativeAuthClient, error) { - if check.IfNil(args.Signer) { - return nil, ErrNilTxSigner - } - - extraInfoBytes, err := json.Marshal(args.ExtraInfo) - if err != nil { - return nil, fmt.Errorf("%w while marshaling args.ExtraInfo", err) - } - - if check.IfNil(args.Proxy) { - return nil, ErrNilProxy - } - - if check.IfNil(args.CryptoComponentsHolder) { - return nil, ErrNilCryptoComponentsHolder - } - - encodedHost := base64.StdEncoding.EncodeToString([]byte(args.Host)) - encodedExtraInfo := base64.StdEncoding.EncodeToString(extraInfoBytes) - - return &nativeAuthClient{ - signer: args.Signer, - encodedExtraInfo: encodedExtraInfo, - proxy: args.Proxy, - cryptoComponentsHolder: args.CryptoComponentsHolder, - encodedHost: encodedHost, - tokenExpiryInSeconds: args.TokenExpiryInSeconds, - getTimeHandler: time.Now, - }, nil -} - -// GetAccessToken returns an access token used for authentication into different MultiversX services -func (nac *nativeAuthClient) GetAccessToken() (string, error) { - now := nac.getTimeHandler() - noToken := nac.tokenExpire.IsZero() - tokenExpired := now.After(nac.tokenExpire) - if noToken || tokenExpired { - err := nac.createNewToken() - if err != nil { - return "", err - } - } - return nac.token, nil -} - -func (nac *nativeAuthClient) createNewToken() error { - nonce, err := nac.proxy.GetLatestHyperBlockNonce(context.Background()) - if err != nil { - return err - } - - lastHyperblock, err := nac.proxy.GetHyperBlockByNonce(context.Background(), nonce) - if err != nil { - return err - } - - token := fmt.Sprintf("%s.%s.%d.%s", nac.encodedHost, lastHyperblock.Hash, nac.tokenExpiryInSeconds, nac.encodedExtraInfo) - - signature, err := nac.signer.SignMessage([]byte(token), nac.cryptoComponentsHolder.GetPrivateKey()) - if err != nil { - return err - } - - encodedToken := base64.StdEncoding.EncodeToString([]byte(token)) - - encodedSignature := base64.StdEncoding.EncodeToString(signature) - - encodedAddress := base64.StdEncoding.EncodeToString([]byte(nac.cryptoComponentsHolder.GetBech32())) - nac.token = fmt.Sprintf("%s.%s.%s", encodedAddress, encodedToken, encodedSignature) - nac.tokenExpire = nac.getTimeHandler().Add(time.Duration(nac.tokenExpiryInSeconds)) - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (nac *nativeAuthClient) IsInterfaceNil() bool { - return nac == nil -} diff --git a/mx-sdk-go-old/authentication/native_test.go b/mx-sdk-go-old/authentication/native_test.go deleted file mode 100644 index 5bcb3b1f..00000000 --- a/mx-sdk-go-old/authentication/native_test.go +++ /dev/null @@ -1,195 +0,0 @@ -package authentication - -import ( - "context" - "encoding/base64" - "errors" - "fmt" - crypto "github.com/multiversx/mx-chain-crypto-go" - "testing" - "time" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/require" -) - -func TestNativeAuthClient_NewNativeAuthClient(t *testing.T) { - t.Parallel() - - t.Run("nil signer should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNativeAuthClient() - args.Signer = nil - authClient, err := NewNativeAuthClient(args) - require.Nil(t, authClient) - require.Equal(t, ErrNilTxSigner, err) - }) - t.Run("nil proxy should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNativeAuthClient() - args.Proxy = nil - authClient, err := NewNativeAuthClient(args) - require.Nil(t, authClient) - require.Equal(t, ErrNilProxy, err) - }) - t.Run("nil crypto components holder should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNativeAuthClient() - args.CryptoComponentsHolder = nil - authClient, err := NewNativeAuthClient(args) - require.Nil(t, authClient) - require.Equal(t, ErrNilCryptoComponentsHolder, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNativeAuthClient() - authClient, err := NewNativeAuthClient(args) - require.NotNil(t, authClient) - require.Nil(t, err) - }) -} - -func TestNativeAuthClient_GetAccessToken(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - t.Run("proxy returns error for GetLatestHyperBlockNonce", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNativeAuthClient() - args.Proxy = &testsCommon.ProxyStub{ - GetLatestHyperBlockNonceCalled: func(ctx context.Context) (uint64, error) { - return 0, expectedErr - }} - authClient, _ := NewNativeAuthClient(args) - - token, err := authClient.GetAccessToken() - require.Equal(t, "", token) - require.Equal(t, expectedErr, err) - }) - t.Run("proxy returns error for GetHyperBlockByNonce", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNativeAuthClient() - args.Proxy = &testsCommon.ProxyStub{ - GetHyperBlockByNonceCalled: func(ctx context.Context, nonce uint64) (*data.HyperBlock, error) { - return &data.HyperBlock{}, expectedErr - }, - } - authClient, _ := NewNativeAuthClient(args) - - token, err := authClient.GetAccessToken() - require.Equal(t, "", token) - require.Equal(t, expectedErr, err) - }) - t.Run("signer errors when sign message", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNativeAuthClient() - args.Signer = &testsCommon.SignerStub{ - SignMessageCalled: func(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) { - return make([]byte, 0), expectedErr - }, - } - authClient, _ := NewNativeAuthClient(args) - - token, err := authClient.GetAccessToken() - require.Equal(t, "", token) - require.Equal(t, expectedErr, err) - }) - t.Run("should work, nil token", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNativeAuthClient() - args.Host = "test.host" - args.TokenExpiryInSeconds = 120 - expectedNonce := uint64(100) - expectedHash := "hash" - expectedSignature := "signature" - expectedAddr := "addr" - args.Proxy = &testsCommon.ProxyStub{ - GetLatestHyperBlockNonceCalled: func(ctx context.Context) (uint64, error) { - return expectedNonce, nil - }, - GetHyperBlockByNonceCalled: func(ctx context.Context, nonce uint64) (*data.HyperBlock, error) { - require.Equal(t, expectedNonce, nonce) - return &data.HyperBlock{Hash: expectedHash}, nil - }, - } - args.Signer = &testsCommon.SignerStub{ - SignMessageCalled: func(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) { - return []byte(expectedSignature), nil - }, - } - args.CryptoComponentsHolder = &testsCommon.CryptoComponentsHolderStub{ - GetBech32Called: func() string { - return expectedAddr - }, - } - authClient, _ := NewNativeAuthClient(args) - authClient.token = "" - authClient.tokenExpire = time.Time{} - encodedHost := base64.StdEncoding.EncodeToString([]byte(args.Host)) - encodedExtraInfo := base64.StdEncoding.EncodeToString([]byte("null")) - internalToken := fmt.Sprintf("%s.%s.%d.%s", encodedHost, expectedHash, args.TokenExpiryInSeconds, encodedExtraInfo) - encodedInternalToken := base64.StdEncoding.EncodeToString([]byte(internalToken)) - encodedAddress := base64.StdEncoding.EncodeToString([]byte(expectedAddr)) - encodedSignature := base64.StdEncoding.EncodeToString([]byte(expectedSignature)) - token, err := authClient.GetAccessToken() - require.Nil(t, err) - require.Equal(t, fmt.Sprintf("%s.%s.%s", encodedAddress, encodedInternalToken, encodedSignature), token) - }) - t.Run("should work, token expired should generate new one", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNativeAuthClient() - args.Host = "test.host" - args.TokenExpiryInSeconds = 120 - expectedNonce := uint64(100) - expectedHash := "hash" - expectedSignature := "signature" - args.Proxy = &testsCommon.ProxyStub{ - GetLatestHyperBlockNonceCalled: func(ctx context.Context) (uint64, error) { - return expectedNonce, nil - }, - GetHyperBlockByNonceCalled: func(ctx context.Context, nonce uint64) (*data.HyperBlock, error) { - require.Equal(t, expectedNonce, nonce) - return &data.HyperBlock{Hash: expectedHash}, nil - }, - } - args.Signer = &testsCommon.SignerStub{ - SignMessageCalled: func(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) { - return []byte(expectedSignature), nil - }, - } - - authClient, _ := NewNativeAuthClient(args) - - currentTime := time.Now() - authClient.getTimeHandler = func() time.Time { - return currentTime.Add(time.Second * 1120) - } - storedToken := "token" - authClient.token = storedToken - authClient.tokenExpire = currentTime.Add(time.Second * 1000) - token, err := authClient.GetAccessToken() - require.NotEqual(t, storedToken, token) - require.Nil(t, err) - }) -} - -func createMockArgsNativeAuthClient() ArgsNativeAuthClient { - return ArgsNativeAuthClient{ - Signer: &testsCommon.SignerStub{}, - ExtraInfo: nil, - Proxy: &testsCommon.ProxyStub{}, - CryptoComponentsHolder: &testsCommon.CryptoComponentsHolderStub{}, - TokenExpiryInSeconds: 0, - Host: "", - } -} diff --git a/mx-sdk-go-old/blockchain/addressGenerator.go b/mx-sdk-go-old/blockchain/addressGenerator.go deleted file mode 100644 index 082abe37..00000000 --- a/mx-sdk-go-old/blockchain/addressGenerator.go +++ /dev/null @@ -1,105 +0,0 @@ -package blockchain - -import ( - "bytes" - - mxChainCore "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/typeConverters/uint64ByteSlice" - "github.com/multiversx/mx-chain-core-go/hashing" - "github.com/multiversx/mx-chain-core-go/hashing/keccak" - "github.com/multiversx/mx-chain-core-go/marshal" - "github.com/multiversx/mx-chain-go/process" - "github.com/multiversx/mx-chain-go/process/factory" - "github.com/multiversx/mx-chain-go/process/smartContract/hooks" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/disabled" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/storage" -) - -const accountStartNonce = uint64(0) - -var initialDNSAddress = bytes.Repeat([]byte{1}, 32) - -// addressGenerator is used to generate some addresses based on mx-chain-go logic -type addressGenerator struct { - coordinator *shardCoordinator - blockChainHook process.BlockChainHookHandler - hasher hashing.Hasher -} - -// NewAddressGenerator will create an address generator instance -func NewAddressGenerator(coordinator *shardCoordinator) (*addressGenerator, error) { - if check.IfNil(coordinator) { - return nil, ErrNilShardCoordinator - } - - builtInFuncs := &disabled.BuiltInFunctionContainer{} - - var argsHook = hooks.ArgBlockChainHook{ - Accounts: &disabled.Accounts{}, - PubkeyConv: core.AddressPublicKeyConverter, - StorageService: &disabled.StorageService{}, - BlockChain: &disabled.Blockchain{}, - ShardCoordinator: &disabled.ShardCoordinator{}, - Marshalizer: &marshal.JsonMarshalizer{}, - Uint64Converter: uint64ByteSlice.NewBigEndianConverter(), - BuiltInFunctions: builtInFuncs, - DataPool: &disabled.DataPool{}, - CompiledSCPool: storage.NewMapCacher(), - NilCompiledSCStore: true, - NFTStorageHandler: &disabled.SimpleESDTNFTStorageHandler{}, - EpochNotifier: &disabled.EpochNotifier{}, - GlobalSettingsHandler: &disabled.GlobalSettingsHandler{}, - EnableEpochsHandler: &disabled.EnableEpochsHandler{}, - GasSchedule: &disabled.GasScheduleNotifier{}, - Counter: &disabled.BlockChainHookCounter{}, - } - blockchainHook, err := hooks.NewBlockChainHookImpl(argsHook) - if err != nil { - return nil, err - } - - return &addressGenerator{ - coordinator: coordinator, - blockChainHook: blockchainHook, - hasher: keccak.NewKeccak(), - }, nil -} - -// CompatibleDNSAddress will return the compatible DNS address providing the shard ID -func (ag *addressGenerator) CompatibleDNSAddress(shardId byte) (core.AddressHandler, error) { - addressLen := len(initialDNSAddress) - shardInBytes := []byte{0, shardId} - - newDNSPk := string(initialDNSAddress[:(addressLen-mxChainCore.ShardIdentiferLen)]) + string(shardInBytes) - newDNSAddress, err := ag.blockChainHook.NewAddress([]byte(newDNSPk), accountStartNonce, factory.WasmVirtualMachine) - if err != nil { - return nil, err - } - - return data.NewAddressFromBytes(newDNSAddress), err -} - -// CompatibleDNSAddressFromUsername will return the compatible DNS address providing the username -func (ag *addressGenerator) CompatibleDNSAddressFromUsername(username string) (core.AddressHandler, error) { - hash := ag.hasher.Compute(username) - lastByte := hash[len(hash)-1] - return ag.CompatibleDNSAddress(lastByte) -} - -// ComputeArwenScAddress will return the smart contract address that will be generated by the Arwen VM providing -// the owner's address & nonce -func (ag *addressGenerator) ComputeArwenScAddress(address core.AddressHandler, nonce uint64) (core.AddressHandler, error) { - if check.IfNil(address) { - return nil, ErrNilAddress - } - - scAddressBytes, err := ag.blockChainHook.NewAddress(address.AddressBytes(), nonce, factory.WasmVirtualMachine) - if err != nil { - return nil, err - } - - return data.NewAddressFromBytes(scAddressBytes), nil -} diff --git a/mx-sdk-go-old/blockchain/addressGenerator_test.go b/mx-sdk-go-old/blockchain/addressGenerator_test.go deleted file mode 100644 index 6fbe3c2c..00000000 --- a/mx-sdk-go-old/blockchain/addressGenerator_test.go +++ /dev/null @@ -1,69 +0,0 @@ -package blockchain - -import ( - "crypto/rand" - "fmt" - "testing" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestAddress_GetShard(t *testing.T) { - t.Parallel() - - pubkey := make([]byte, 32) - _, _ = rand.Read(pubkey) - - numShardsWithoutMeta := uint32(2) - shardCoordinatorInstance, _ := NewShardCoordinator(numShardsWithoutMeta, 0) - - pubkey[31] &= 0xFE - addr0 := data.NewAddressFromBytes(pubkey) - - pubkey[31] |= 0x01 - addr1 := data.NewAddressFromBytes(pubkey) - - sh0, err := shardCoordinatorInstance.ComputeShardId(addr0) - assert.Nil(t, err) - - sh1, err := shardCoordinatorInstance.ComputeShardId(addr1) - assert.Nil(t, err) - - assert.Equal(t, sh0, uint32(0)) - assert.Equal(t, sh1, uint32(1)) -} - -func TestGenerateSameDNSAddress(t *testing.T) { - t.Parallel() - - coord, err := NewShardCoordinator(3, 0) - require.Nil(t, err) - - ag, err := NewAddressGenerator(coord) - require.Nil(t, err) - - newDNS, err := ag.CompatibleDNSAddressFromUsername("laura.elrond") - require.Nil(t, err) - - fmt.Printf("Compatibile DNS address is %s\n", newDNS.AddressAsBech32String()) - assert.Equal(t, "erd1qqqqqqqqqqqqqpgqvrsdh798pvd4x09x0argyscxc9h7lzfhqz4sttlatg", newDNS.AddressAsBech32String()) -} - -func TestAddressGenerator_ComputeArwenScAddress(t *testing.T) { - t.Parallel() - - coord, err := NewShardCoordinator(3, 0) - require.Nil(t, err) - - ag, err := NewAddressGenerator(coord) - require.Nil(t, err) - owner, err := data.NewAddressFromBech32String("erd1dglncxk6sl9a3xumj78n6z2xux4ghp5c92cstv5zsn56tjgtdwpsk46qrs") - require.Nil(t, err) - - scAddress, err := ag.ComputeArwenScAddress(owner, 10) - require.Nil(t, err) - - assert.Equal(t, "erd1qqqqqqqqqqqqqpgqxcy5fma93yhw44xcmt3zwrl0tlhaqmxrdwpsr2vh8p", scAddress.AddressAsBech32String()) -} diff --git a/mx-sdk-go-old/blockchain/baseProxy.go b/mx-sdk-go-old/blockchain/baseProxy.go deleted file mode 100644 index b2ff10c6..00000000 --- a/mx-sdk-go-old/blockchain/baseProxy.go +++ /dev/null @@ -1,255 +0,0 @@ -package blockchain - -import ( - "context" - "encoding/json" - "errors" - "fmt" - "net/http" - "sync" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -var log = logger.GetOrCreate("mx-sdk-go/blockchain") - -const ( - minimumCachingInterval = time.Second -) - -type argsBaseProxy struct { - expirationTime time.Duration - httpClientWrapper httpClientWrapper - endpointProvider EndpointProvider -} - -type baseProxy struct { - httpClientWrapper - mut sync.RWMutex - fetchedConfigs *data.NetworkConfig - lastFetchedTime time.Time - cacheExpiryDuration time.Duration - sinceTimeHandler func(t time.Time) time.Duration - endpointProvider EndpointProvider -} - -// newBaseProxy will create a base multiversx proxy with cache instance -func newBaseProxy(args argsBaseProxy) (*baseProxy, error) { - err := checkArgsBaseProxy(args) - if err != nil { - return nil, err - } - - return &baseProxy{ - httpClientWrapper: args.httpClientWrapper, - cacheExpiryDuration: args.expirationTime, - endpointProvider: args.endpointProvider, - sinceTimeHandler: since, - }, nil -} - -func checkArgsBaseProxy(args argsBaseProxy) error { - if args.expirationTime < minimumCachingInterval { - return fmt.Errorf("%w, provided: %v, minimum: %v", ErrInvalidCacherDuration, args.expirationTime, minimumCachingInterval) - } - if check.IfNil(args.httpClientWrapper) { - return ErrNilHTTPClientWrapper - } - if check.IfNil(args.endpointProvider) { - return ErrNilEndpointProvider - } - - return nil -} - -func since(t time.Time) time.Duration { - return time.Since(t) -} - -// GetNetworkConfig will return the cached network configs fetching new values and saving them if necessary -func (proxy *baseProxy) GetNetworkConfig(ctx context.Context) (*data.NetworkConfig, error) { - proxy.mut.RLock() - cachedConfigs := proxy.getCachedConfigs() - proxy.mut.RUnlock() - - if cachedConfigs != nil { - return cachedConfigs, nil - } - - return proxy.cacheConfigs(ctx) -} - -func (proxy *baseProxy) getCachedConfigs() *data.NetworkConfig { - if proxy.sinceTimeHandler(proxy.lastFetchedTime) > proxy.cacheExpiryDuration { - return nil - } - - return proxy.fetchedConfigs -} - -func (proxy *baseProxy) cacheConfigs(ctx context.Context) (*data.NetworkConfig, error) { - proxy.mut.Lock() - defer proxy.mut.Unlock() - - // maybe another parallel running go routine already did the fetching - cachedConfig := proxy.getCachedConfigs() - if cachedConfig != nil { - return cachedConfig, nil - } - - log.Debug("Network config not cached. caching...") - configs, err := proxy.getNetworkConfigFromSource(ctx) - if err != nil { - return nil, err - } - - proxy.lastFetchedTime = time.Now() - proxy.fetchedConfigs = configs - - return configs, nil -} - -// getNetworkConfigFromSource retrieves the network configuration from the proxy -func (proxy *baseProxy) getNetworkConfigFromSource(ctx context.Context) (*data.NetworkConfig, error) { - buff, code, err := proxy.GetHTTP(ctx, proxy.endpointProvider.GetNetworkConfig()) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.NetworkConfigResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.Config, nil -} - -// GetShardOfAddress returns the shard ID of a provided address by using a shardCoordinator object and querying the -// network config route -func (proxy *baseProxy) GetShardOfAddress(ctx context.Context, bech32Address string) (uint32, error) { - addr, err := data.NewAddressFromBech32String(bech32Address) - if err != nil { - return 0, err - } - - networkConfigs, err := proxy.GetNetworkConfig(ctx) - if err != nil { - return 0, err - } - - shardCoordinatorInstance, err := NewShardCoordinator(networkConfigs.NumShardsWithoutMeta, 0) - if err != nil { - return 0, err - } - - return shardCoordinatorInstance.ComputeShardId(addr) -} - -// GetNetworkStatus will return the network status of a provided shard -func (proxy *baseProxy) GetNetworkStatus(ctx context.Context, shardID uint32) (*data.NetworkStatus, error) { - endpoint := proxy.endpointProvider.GetNodeStatus(shardID) - buff, code, err := proxy.GetHTTP(ctx, endpoint) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - endpointProviderType := proxy.endpointProvider.GetRestAPIEntityType() - switch endpointProviderType { - case core.Proxy: - return proxy.getNetworkStatus(buff, shardID) - case core.ObserverNode: - return proxy.getNodeStatus(buff, shardID) - } - - return &data.NetworkStatus{}, ErrInvalidEndpointProvider -} - -func (proxy *baseProxy) getNetworkStatus(buff []byte, shardID uint32) (*data.NetworkStatus, error) { - response := &data.NetworkStatusResponse{} - err := json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - err = proxy.checkReceivedNodeStatus(response.Data.Status, shardID) - if err != nil { - return nil, err - } - - return response.Data.Status, nil -} - -func (proxy *baseProxy) getNodeStatus(buff []byte, shardID uint32) (*data.NetworkStatus, error) { - response := &data.NodeStatusResponse{} - err := json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - err = proxy.checkReceivedNodeStatus(response.Data.Status, shardID) - if err != nil { - return nil, err - } - - return response.Data.Status, nil -} - -func (proxy *baseProxy) checkReceivedNodeStatus(networkStatus *data.NetworkStatus, shardID uint32) error { - if networkStatus == nil { - return fmt.Errorf("%w, requested from %d", ErrNilNetworkStatus, shardID) - } - if !proxy.endpointProvider.ShouldCheckShardIDForNodeStatus() { - return nil - } - if networkStatus.ShardID == shardID { - return nil - } - - return fmt.Errorf("%w, requested from %d, got response from %d", ErrShardIDMismatch, shardID, networkStatus.ShardID) -} - -// GetRestAPIEntityType returns the REST API entity type that this implementation works with -func (proxy *baseProxy) GetRestAPIEntityType() core.RestAPIEntityType { - return proxy.endpointProvider.GetRestAPIEntityType() -} - -// ProcessTransactionStatus will parse the provided transaction info and return its status accordingly -func (proxy *baseProxy) ProcessTransactionStatus(ctx context.Context, hexTxHash string) (transaction.TxStatus, error) { - endpoint := proxy.endpointProvider.GetProcessedTransactionStatus(hexTxHash) - buff, code, err := proxy.GetHTTP(ctx, endpoint) - if err != nil || code != http.StatusOK { - wrappedErr := fmt.Errorf("%w, please make sure you run the proxy version v1.1.38 or higher", err) - return transaction.TxStatusFail, createHTTPStatusError(code, wrappedErr) - } - - response := &data.ProcessedTransactionStatus{} - err = json.Unmarshal(buff, response) - if err != nil { - return transaction.TxStatusFail, err - } - if response.Error != "" { - return transaction.TxStatusFail, errors.New(response.Error) - } - - return transaction.TxStatus(response.Data.ProcessedStatus), nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (proxy *baseProxy) IsInterfaceNil() bool { - return proxy == nil -} diff --git a/mx-sdk-go-old/blockchain/baseProxy_test.go b/mx-sdk-go-old/blockchain/baseProxy_test.go deleted file mode 100644 index 8e9e19db..00000000 --- a/mx-sdk-go-old/blockchain/baseProxy_test.go +++ /dev/null @@ -1,716 +0,0 @@ -package blockchain - -import ( - "context" - "encoding/json" - "errors" - "net/http" - "strings" - "testing" - "time" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/endpointProviders" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func createMockArgsBaseProxy() argsBaseProxy { - return argsBaseProxy{ - httpClientWrapper: &testsCommon.HTTPClientWrapperStub{}, - expirationTime: time.Second, - endpointProvider: endpointProviders.NewNodeEndpointProvider(), - } -} - -func TestNewBaseProxy(t *testing.T) { - t.Parallel() - - t.Run("nil http client wrapper", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.httpClientWrapper = nil - baseProxyInstance, err := newBaseProxy(args) - - assert.True(t, check.IfNil(baseProxyInstance)) - assert.True(t, errors.Is(err, ErrNilHTTPClientWrapper)) - }) - t.Run("invalid caching duration", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.expirationTime = time.Second - time.Nanosecond - baseProxyInstance, err := newBaseProxy(args) - - assert.True(t, check.IfNil(baseProxyInstance)) - assert.True(t, errors.Is(err, ErrInvalidCacherDuration)) - }) - t.Run("nil endpoint provider", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.endpointProvider = nil - baseProxyInstance, err := newBaseProxy(args) - - assert.True(t, check.IfNil(baseProxyInstance)) - assert.True(t, errors.Is(err, ErrNilEndpointProvider)) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - baseProxyInstance, err := newBaseProxy(args) - - assert.False(t, check.IfNil(baseProxyInstance)) - assert.Nil(t, err) - }) -} - -func TestBaseProxy_GetNetworkConfig(t *testing.T) { - t.Parallel() - - expectedReturnedNetworkConfig := &data.NetworkConfig{ - ChainID: "test", - Denomination: 1, - GasPerDataByte: 2, - LatestTagSoftwareVersion: "test", - MetaConsensusGroup: 3, - MinGasLimit: 4, - MinGasPrice: 5, - MinTransactionVersion: 6, - NumMetachainNodes: 7, - NumNodesInShard: 8, - NumShardsWithoutMeta: 9, - RoundDuration: 10, - ShardConsensusGroupSize: 11, - StartTime: 12, - } - response := &data.NetworkConfigResponse{ - Data: struct { - Config *data.NetworkConfig `json:"config"` - }{ - Config: expectedReturnedNetworkConfig, - }, - Error: "", - Code: "", - } - networkConfigBytes, _ := json.Marshal(response) - - t.Run("cache time expired", func(t *testing.T) { - t.Parallel() - - mockWrapper := &testsCommon.HTTPClientWrapperStub{} - wasCalled := false - mockWrapper.GetHTTPCalled = func(ctx context.Context, endpoint string) ([]byte, int, error) { - wasCalled = true - return networkConfigBytes, http.StatusOK, nil - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = mockWrapper - args.expirationTime = minimumCachingInterval * 2 - baseProxyInstance, _ := newBaseProxy(args) - baseProxyInstance.sinceTimeHandler = func(t time.Time) time.Duration { - return minimumCachingInterval - } - - configs, err := baseProxyInstance.GetNetworkConfig(context.Background()) - - require.Nil(t, err) - require.True(t, wasCalled) - assert.Equal(t, expectedReturnedNetworkConfig, configs) - }) - t.Run("fetchedConfigs is nil", func(t *testing.T) { - t.Parallel() - - mockWrapper := &testsCommon.HTTPClientWrapperStub{} - wasCalled := false - mockWrapper.GetHTTPCalled = func(ctx context.Context, endpoint string) ([]byte, int, error) { - wasCalled = true - return networkConfigBytes, http.StatusOK, nil - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = mockWrapper - args.expirationTime = minimumCachingInterval * 2 - baseProxyInstance, _ := newBaseProxy(args) - baseProxyInstance.sinceTimeHandler = func(t time.Time) time.Duration { - return minimumCachingInterval*2 + time.Millisecond - } - - configs, err := baseProxyInstance.GetNetworkConfig(context.Background()) - - require.Nil(t, err) - require.True(t, wasCalled) - assert.Equal(t, expectedReturnedNetworkConfig, configs) - }) - t.Run("Proxy.GetNetworkConfig returns error", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - mockWrapper := &testsCommon.HTTPClientWrapperStub{} - wasCalled := false - mockWrapper.GetHTTPCalled = func(ctx context.Context, endpoint string) ([]byte, int, error) { - wasCalled = true - return nil, http.StatusBadRequest, expectedErr - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = mockWrapper - baseProxyInstance, _ := newBaseProxy(args) - - configs, err := baseProxyInstance.GetNetworkConfig(context.Background()) - - require.Nil(t, configs) - require.True(t, wasCalled) - assert.True(t, errors.Is(err, expectedErr)) - assert.True(t, strings.Contains(err.Error(), http.StatusText(http.StatusBadRequest))) - }) - t.Run("and Proxy.GetNetworkConfig returns malformed data", func(t *testing.T) { - t.Parallel() - - mockWrapper := &testsCommon.HTTPClientWrapperStub{} - wasCalled := false - mockWrapper.GetHTTPCalled = func(ctx context.Context, endpoint string) ([]byte, int, error) { - wasCalled = true - return []byte("malformed data"), http.StatusOK, nil - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = mockWrapper - baseProxyInstance, _ := newBaseProxy(args) - - configs, err := baseProxyInstance.GetNetworkConfig(context.Background()) - - require.Nil(t, configs) - require.True(t, wasCalled) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "invalid character")) - }) - t.Run("and Proxy.GetNetworkConfig returns a response error", func(t *testing.T) { - t.Parallel() - - errMessage := "error message" - erroredResponse := &data.NetworkConfigResponse{ - Data: struct { - Config *data.NetworkConfig `json:"config"` - }{}, - Error: errMessage, - Code: "", - } - erroredNetworkConfigBytes, _ := json.Marshal(erroredResponse) - - mockWrapper := &testsCommon.HTTPClientWrapperStub{} - wasCalled := false - mockWrapper.GetHTTPCalled = func(ctx context.Context, endpoint string) ([]byte, int, error) { - wasCalled = true - return erroredNetworkConfigBytes, http.StatusOK, nil - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = mockWrapper - baseProxyInstance, _ := newBaseProxy(args) - - configs, err := baseProxyInstance.GetNetworkConfig(context.Background()) - - require.Nil(t, configs) - require.True(t, wasCalled) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), errMessage)) - }) - t.Run("getCachedConfigs returns valid fetchedConfigs", func(t *testing.T) { - t.Parallel() - - mockWrapper := &testsCommon.HTTPClientWrapperStub{} - wasCalled := false - mockWrapper.GetHTTPCalled = func(ctx context.Context, endpoint string) ([]byte, int, error) { - wasCalled = true - return nil, http.StatusOK, nil - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = mockWrapper - args.expirationTime = minimumCachingInterval * 2 - baseProxyInstance, _ := newBaseProxy(args) - baseProxyInstance.fetchedConfigs = expectedReturnedNetworkConfig - baseProxyInstance.sinceTimeHandler = func(t time.Time) time.Duration { - return minimumCachingInterval - } - - configs, err := baseProxyInstance.GetNetworkConfig(context.Background()) - - require.Nil(t, err) - assert.False(t, wasCalled) - assert.Equal(t, expectedReturnedNetworkConfig, configs) - }) -} - -func TestBaseProxy_GetNetworkStatus(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - t.Run("get errors", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return nil, http.StatusBadRequest, expectedErr - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - result, err := baseProxyInstance.GetNetworkStatus(context.Background(), 0) - assert.Nil(t, result) - assert.True(t, errors.Is(err, expectedErr)) - assert.True(t, strings.Contains(err.Error(), http.StatusText(http.StatusBadRequest))) - }) - t.Run("malformed response - node endpoint provider", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return []byte("malformed response"), http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - result, err := baseProxyInstance.GetNetworkStatus(context.Background(), 0) - assert.Nil(t, result) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "invalid character 'm'")) - }) - t.Run("malformed response - proxy endpoint provider", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.endpointProvider = endpointProviders.NewProxyEndpointProvider() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return []byte("malformed response"), http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - result, err := baseProxyInstance.GetNetworkStatus(context.Background(), 0) - assert.Nil(t, result) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "invalid character 'm'")) - }) - t.Run("response error - node endpoint provider", func(t *testing.T) { - t.Parallel() - - resp := &data.NodeStatusResponse{ - Data: struct { - Status *data.NetworkStatus `json:"metrics"` - }{}, - Error: expectedErr.Error(), - Code: "", - } - respBytes, _ := json.Marshal(resp) - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return respBytes, http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - result, err := baseProxyInstance.GetNetworkStatus(context.Background(), 0) - assert.Nil(t, result) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), expectedErr.Error())) - }) - t.Run("response error - proxy endpoint provider", func(t *testing.T) { - t.Parallel() - - resp := &data.NetworkStatusResponse{ - Data: struct { - Status *data.NetworkStatus `json:"status"` - }{}, - Error: expectedErr.Error(), - Code: "", - } - respBytes, _ := json.Marshal(resp) - - args := createMockArgsBaseProxy() - args.endpointProvider = endpointProviders.NewProxyEndpointProvider() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return respBytes, http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - result, err := baseProxyInstance.GetNetworkStatus(context.Background(), 0) - assert.Nil(t, result) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), expectedErr.Error())) - }) - t.Run("GetNodeStatus returns nil network status - node endpoint provider", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return getNetworkStatusBytes(nil), http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - result, err := baseProxyInstance.GetNetworkStatus(context.Background(), 0) - assert.Nil(t, result) - assert.True(t, errors.Is(err, ErrNilNetworkStatus)) - assert.True(t, strings.Contains(err.Error(), "requested from 0")) - }) - t.Run("GetNodeStatus returns nil network status - proxy endpoint provider", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.endpointProvider = endpointProviders.NewProxyEndpointProvider() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return getNetworkStatusBytes(nil), http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - result, err := baseProxyInstance.GetNetworkStatus(context.Background(), 0) - assert.Nil(t, result) - assert.True(t, errors.Is(err, ErrNilNetworkStatus)) - assert.True(t, strings.Contains(err.Error(), "requested from 0")) - }) - t.Run("requested from wrong shard should error", func(t *testing.T) { - t.Parallel() - - providedNetworkStatus := &data.NetworkStatus{ - CurrentRound: 1, - EpochNumber: 2, - Nonce: 3, - NonceAtEpochStart: 4, - NoncesPassedInCurrentEpoch: 5, - RoundAtEpochStart: 6, - RoundsPassedInCurrentEpoch: 7, - RoundsPerEpoch: 8, - CrossCheckBlockHeight: "aaa", - ShardID: core.MetachainShardId, - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return getNodeStatusBytes(providedNetworkStatus), http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - result, err := baseProxyInstance.GetNetworkStatus(context.Background(), 0) - assert.Nil(t, result) - assert.True(t, errors.Is(err, ErrShardIDMismatch)) - assert.True(t, strings.Contains(err.Error(), "requested from 0, got response from 4294967295")) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - providedNetworkStatus := &data.NetworkStatus{ - CurrentRound: 1, - EpochNumber: 2, - Nonce: 3, - NonceAtEpochStart: 4, - NoncesPassedInCurrentEpoch: 5, - RoundAtEpochStart: 6, - RoundsPassedInCurrentEpoch: 7, - RoundsPerEpoch: 8, - CrossCheckBlockHeight: "aaa", - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return getNodeStatusBytes(providedNetworkStatus), http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - result, err := baseProxyInstance.GetNetworkStatus(context.Background(), 0) - assert.Nil(t, err) - assert.Equal(t, providedNetworkStatus, result) - }) - t.Run("should work with proxy endpoint provider", func(t *testing.T) { - t.Parallel() - - providedNetworkStatus := &data.NetworkStatus{ - CurrentRound: 1, - EpochNumber: 2, - Nonce: 3, - NonceAtEpochStart: 4, - NoncesPassedInCurrentEpoch: 5, - RoundAtEpochStart: 6, - RoundsPassedInCurrentEpoch: 7, - RoundsPerEpoch: 8, - CrossCheckBlockHeight: "aaa", - ShardID: core.MetachainShardId, // this won't be tested in this test - } - - args := createMockArgsBaseProxy() - args.endpointProvider = endpointProviders.NewProxyEndpointProvider() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return getNetworkStatusBytes(providedNetworkStatus), http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - result, err := baseProxyInstance.GetNetworkStatus(context.Background(), 0) - assert.Nil(t, err) - assert.Equal(t, providedNetworkStatus, result) - }) -} - -func getNetworkStatusBytes(status *data.NetworkStatus) []byte { - resp := &data.NetworkStatusResponse{ - Data: struct { - Status *data.NetworkStatus `json:"status"` - }{Status: status}, - } - respBytes, _ := json.Marshal(resp) - - return respBytes -} - -func getNodeStatusBytes(status *data.NetworkStatus) []byte { - resp := &data.NodeStatusResponse{ - Data: struct { - Status *data.NetworkStatus `json:"metrics"` - }{Status: status}, - } - respBytes, _ := json.Marshal(resp) - - return respBytes -} - -func TestBaseProxy_GetShardOfAddress(t *testing.T) { - t.Parallel() - - t.Run("invalid address", func(t *testing.T) { - t.Parallel() - - baseProxyInstance := createBaseProxyForGetShardOfAddress(3, nil) - - addrShard1 := "invalid" - shardID, err := baseProxyInstance.GetShardOfAddress(context.Background(), addrShard1) - - assert.Zero(t, shardID) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "invalid bech32 string length 7")) - }) - t.Run("get network config errors", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - baseProxyInstance := createBaseProxyForGetShardOfAddress(3, expectedErr) - - addrShard1 := "erd1qqqqqqqqqqqqqpgqzyuaqg3dl7rqlkudrsnm5ek0j3a97qevd8sszj0glf" - shardID, err := baseProxyInstance.GetShardOfAddress(context.Background(), addrShard1) - - assert.Zero(t, shardID) - assert.True(t, errors.Is(err, expectedErr)) - assert.True(t, strings.Contains(err.Error(), http.StatusText(http.StatusBadRequest))) - }) - t.Run("num shards without meta is 0", func(t *testing.T) { - t.Parallel() - - baseProxyInstance := createBaseProxyForGetShardOfAddress(0, nil) - - addrShard1 := "erd1qqqqqqqqqqqqqpgqzyuaqg3dl7rqlkudrsnm5ek0j3a97qevd8sszj0glf" - shardID, err := baseProxyInstance.GetShardOfAddress(context.Background(), addrShard1) - - assert.Zero(t, shardID) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "the number of shards must be greater than zero")) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - baseProxyInstance := createBaseProxyForGetShardOfAddress(3, nil) - - addrShard1 := "erd1qqqqqqqqqqqqqpgqzyuaqg3dl7rqlkudrsnm5ek0j3a97qevd8sszj0glf" - shardID, err := baseProxyInstance.GetShardOfAddress(context.Background(), addrShard1) - - assert.Nil(t, err) - assert.Equal(t, uint32(1), shardID) - - addrShardMeta := "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqllls0lczs7" - shardID, err = baseProxyInstance.GetShardOfAddress(context.Background(), addrShardMeta) - - assert.Nil(t, err) - assert.Equal(t, core.MetachainShardId, shardID) - }) -} - -func createBaseProxyForGetShardOfAddress(numShards uint32, errGet error) *baseProxy { - expectedReturnedNetworkConfig := &data.NetworkConfig{ - NumShardsWithoutMeta: numShards, - } - response := &data.NetworkConfigResponse{ - Data: struct { - Config *data.NetworkConfig `json:"config"` - }{ - Config: expectedReturnedNetworkConfig, - }, - } - networkConfigBytes, _ := json.Marshal(response) - - mockWrapper := &testsCommon.HTTPClientWrapperStub{} - mockWrapper.GetHTTPCalled = func(ctx context.Context, endpoint string) ([]byte, int, error) { - if errGet != nil { - return nil, http.StatusBadRequest, errGet - } - - return networkConfigBytes, http.StatusOK, nil - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = mockWrapper - baseProxyInstance, _ := newBaseProxy(args) - - return baseProxyInstance -} - -func TestBaseProxy_GetRestAPIEntityType(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - baseProxyInstance, _ := newBaseProxy(args) - - assert.Equal(t, args.endpointProvider.GetRestAPIEntityType(), baseProxyInstance.GetRestAPIEntityType()) -} - -func TestBaseProxyInstance_ProcessTransactionStatus(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - t.Run("proxy errors when calling the API endpoint - StatusNotFound", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return nil, http.StatusNotFound, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - txStatus, err := baseProxyInstance.ProcessTransactionStatus(context.Background(), "tx hash") - assert.Equal(t, transaction.TxStatusFail, txStatus) - assert.NotNil(t, err) - assert.Contains(t, err.Error(), "returned http status: 404") - assert.Contains(t, err.Error(), "please make sure you run the proxy version v1.1.38 or higher") - }) - t.Run("proxy errors when calling the API endpoint, internal error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return nil, http.StatusOK, expectedErr - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - txStatus, err := baseProxyInstance.ProcessTransactionStatus(context.Background(), "tx hash") - assert.Equal(t, transaction.TxStatusFail, txStatus) - assert.NotNil(t, err) - assert.ErrorIs(t, err, expectedErr) - }) - t.Run("proxy errors when calling the API endpoint, internal error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return nil, http.StatusOK, expectedErr - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - txStatus, err := baseProxyInstance.ProcessTransactionStatus(context.Background(), "tx hash") - assert.Equal(t, transaction.TxStatusFail, txStatus) - assert.NotNil(t, err) - assert.ErrorIs(t, err, expectedErr) - }) - t.Run("proxy returns a malformed response", func(t *testing.T) { - t.Parallel() - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - return []byte("not a correct buffer"), http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - txStatus, err := baseProxyInstance.ProcessTransactionStatus(context.Background(), "tx hash") - assert.Equal(t, transaction.TxStatusFail, txStatus) - assert.NotNil(t, err) - assert.Contains(t, err.Error(), "invalid character") - }) - t.Run("proxy returns a valid response but with an error", func(t *testing.T) { - t.Parallel() - - response := &data.ProcessedTransactionStatus{ - Data: struct { - ProcessedStatus string `json:"status"` - }{}, - Error: expectedErr.Error(), - Code: "", - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - buff, _ := json.Marshal(response) - return buff, http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - txStatus, err := baseProxyInstance.ProcessTransactionStatus(context.Background(), "tx hash") - assert.Equal(t, transaction.TxStatusFail, txStatus) - assert.NotNil(t, err) - assert.Contains(t, err.Error(), expectedErr.Error()) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - response := &data.ProcessedTransactionStatus{ - Data: struct { - ProcessedStatus string `json:"status"` - }{ - ProcessedStatus: transaction.TxStatusSuccess.String(), - }, - Error: "", - Code: "", - } - - args := createMockArgsBaseProxy() - args.httpClientWrapper = &testsCommon.HTTPClientWrapperStub{ - GetHTTPCalled: func(ctx context.Context, endpoint string) ([]byte, int, error) { - buff, _ := json.Marshal(response) - return buff, http.StatusOK, nil - }, - } - baseProxyInstance, _ := newBaseProxy(args) - - txStatus, err := baseProxyInstance.ProcessTransactionStatus(context.Background(), "tx hash") - assert.Equal(t, transaction.TxStatusSuccess, txStatus) - assert.Nil(t, err) - }) -} diff --git a/mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder.go b/mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder.go deleted file mode 100644 index 18bf9f78..00000000 --- a/mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder.go +++ /dev/null @@ -1,61 +0,0 @@ -package cryptoProvider - -import ( - crypto "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -type cryptoComponentsHolder struct { - publicKey crypto.PublicKey - privateKey crypto.PrivateKey - addressHandler core.AddressHandler - bech32Address string -} - -// NewCryptoComponentsHolder returns a new cryptoComponentsHolder instance -func NewCryptoComponentsHolder(keyGen crypto.KeyGenerator, skBytes []byte) (*cryptoComponentsHolder, error) { - privateKey, err := keyGen.PrivateKeyFromByteArray(skBytes) - if err != nil { - return nil, err - } - publicKey := privateKey.GeneratePublic() - publicKeyBytes, err := publicKey.ToByteArray() - if err != nil { - return nil, err - } - addressHandler := data.NewAddressFromBytes(publicKeyBytes) - bech32Address := addressHandler.AddressAsBech32String() - - return &cryptoComponentsHolder{ - privateKey: privateKey, - publicKey: publicKey, - addressHandler: addressHandler, - bech32Address: bech32Address, - }, nil -} - -// GetPublicKey returns the held publicKey -func (holder *cryptoComponentsHolder) GetPublicKey() crypto.PublicKey { - return holder.publicKey -} - -// GetPrivateKey returns the held privateKey -func (holder *cryptoComponentsHolder) GetPrivateKey() crypto.PrivateKey { - return holder.privateKey -} - -// GetBech32 returns the held bech32 address -func (holder *cryptoComponentsHolder) GetBech32() string { - return holder.bech32Address -} - -// GetAddressHandler returns the held bech32 address -func (holder *cryptoComponentsHolder) GetAddressHandler() core.AddressHandler { - return holder.addressHandler -} - -// IsInterfaceNil returns true if there is no value under the interface -func (holder *cryptoComponentsHolder) IsInterfaceNil() bool { - return holder == nil -} diff --git a/mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder_test.go b/mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder_test.go deleted file mode 100644 index 6a88310d..00000000 --- a/mx-sdk-go-old/blockchain/cryptoProvider/cryptoComponentsHolder_test.go +++ /dev/null @@ -1,88 +0,0 @@ -package cryptoProvider - -import ( - "encoding/hex" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - crypto "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-chain-go/testscommon/cryptoMocks" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/require" -) - -func TestNewCryptoComponentsHolder(t *testing.T) { - t.Parallel() - - t.Run("invalid privateKey bytes", func(t *testing.T) { - t.Parallel() - - keyGenInstance := &cryptoMocks.KeyGenStub{ - PrivateKeyFromByteArrayStub: func(b []byte) (crypto.PrivateKey, error) { - return nil, expectedError - }, - } - holder, err := NewCryptoComponentsHolder(keyGenInstance, []byte("")) - require.Nil(t, holder) - require.Equal(t, expectedError, err) - }) - t.Run("invalid publicKey bytes", func(t *testing.T) { - t.Parallel() - - publicKey := &testsCommon.PublicKeyStub{ - ToByteArrayCalled: func() ([]byte, error) { - return nil, expectedError - }, - } - privateKey := &testsCommon.PrivateKeyStub{ - GeneratePublicCalled: func() crypto.PublicKey { - return publicKey - }} - keyGenInstance := &cryptoMocks.KeyGenStub{ - PrivateKeyFromByteArrayStub: func(b []byte) (crypto.PrivateKey, error) { - return privateKey, nil - }, - } - holder, err := NewCryptoComponentsHolder(keyGenInstance, []byte("")) - require.Nil(t, holder) - require.Equal(t, expectedError, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - privateKey := &testsCommon.PrivateKeyStub{ - GeneratePublicCalled: func() crypto.PublicKey { - return &testsCommon.PublicKeyStub{} - }, - } - keyGenInstance := &cryptoMocks.KeyGenStub{ - PrivateKeyFromByteArrayStub: func(b []byte) (crypto.PrivateKey, error) { - return privateKey, nil - }, - } - holder, err := NewCryptoComponentsHolder(keyGenInstance, []byte("")) - require.False(t, check.IfNil(holder)) - require.Nil(t, err) - _ = holder.GetPublicKey() - _ = holder.GetPrivateKey() - _ = holder.GetBech32() - _ = holder.GetAddressHandler() - }) - t.Run("should work with real components", func(t *testing.T) { - t.Parallel() - - sk, _ := hex.DecodeString("45f72e8b6e8d10086bacd2fc8fa1340f82a3f5d4ef31953b463ea03c606533a6") - holder, err := NewCryptoComponentsHolder(keyGen, sk) - require.False(t, check.IfNil(holder)) - require.Nil(t, err) - publicKey := holder.GetPublicKey() - privateKey := holder.GetPrivateKey() - require.False(t, check.IfNil(publicKey)) - require.False(t, check.IfNil(privateKey)) - - bech32Address := holder.GetBech32() - addressHandler := holder.GetAddressHandler() - require.Equal(t, addressHandler.AddressAsBech32String(), bech32Address) - require.Equal(t, "erd1j84k44nsqsme8r6e5aawutx0z2cd6cyx3wprkzdh73x2cf0kqvksa3snnq", bech32Address) - }) -} diff --git a/mx-sdk-go-old/blockchain/cryptoProvider/errors.go b/mx-sdk-go-old/blockchain/cryptoProvider/errors.go deleted file mode 100644 index 8d836419..00000000 --- a/mx-sdk-go-old/blockchain/cryptoProvider/errors.go +++ /dev/null @@ -1,6 +0,0 @@ -package cryptoProvider - -import "errors" - -// ErrTxAlreadySigned signals that the provided transaction is already signed -var ErrTxAlreadySigned = errors.New("tx already signed") diff --git a/mx-sdk-go-old/blockchain/cryptoProvider/signer.go b/mx-sdk-go-old/blockchain/cryptoProvider/signer.go deleted file mode 100644 index 253d5f11..00000000 --- a/mx-sdk-go-old/blockchain/cryptoProvider/signer.go +++ /dev/null @@ -1,85 +0,0 @@ -package cryptoProvider - -import ( - "encoding/json" - crypto "github.com/multiversx/mx-chain-crypto-go" - "strconv" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-chain-core-go/hashing/keccak" - "github.com/multiversx/mx-chain-crypto-go/signing/ed25519/singlesig" - logger "github.com/multiversx/mx-chain-logger-go" -) - -var ( - signerLog = logger.GetOrCreate("mx-sdk-go/signer") - hasher = keccak.NewKeccak() - singleSigner = &singlesig.Ed25519Signer{} - messagePrefix = []byte("\x17Elrond Signed Message:\n") -) - -// signer contains the primitives used to correctly sign a transaction -type signer struct{} - -// NewSigner will create a new instance of signer -func NewSigner() *signer { - return &signer{} -} - -// SignMessage will generate the signature providing the private key bytes and the message bytes -// prepending the standard messagePrefix -func (s *signer) SignMessage(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) { - serializedMessage := s.serializeForSigning(msg) - - return s.SignByteSlice(serializedMessage, privateKey) -} - -// VerifyMessage will verify the signature providing the public key bytes and the message bytes -func (s *signer) VerifyMessage(msg []byte, publicKey crypto.PublicKey, sig []byte) error { - serializedMessage := s.serializeForSigning(msg) - - return singleSigner.Verify(publicKey, serializedMessage, sig) -} - -// SignByteSlice will generate the signature providing the private key bytes and some arbitrary message -func (s *signer) SignByteSlice(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) { - return singleSigner.Sign(privateKey, msg) -} - -// VerifyByteSlice will verify the signature providing the public key bytes and the message bytes -func (s *signer) VerifyByteSlice(msg []byte, publicKey crypto.PublicKey, sig []byte) error { - return singleSigner.Verify(publicKey, msg, sig) -} - -// SignTransaction will generate the signature providing the private key bytes and the serialized form of the transaction -func (s *signer) SignTransaction(tx *transaction.FrontendTransaction, privateKey crypto.PrivateKey) ([]byte, error) { - if len(tx.Signature) > 0 { - return nil, ErrTxAlreadySigned - } - - txBytes, err := json.Marshal(tx) - if err != nil { - return nil, err - } - - shouldSignOnTxHash := tx.Version >= 2 && tx.Options&1 > 0 - if shouldSignOnTxHash { - signerLog.Debug("signing the transaction using the hash of the message") - txBytes = hasher.Compute(string(txBytes)) - } - - return s.SignByteSlice(txBytes, privateKey) -} - -func (s *signer) serializeForSigning(msg []byte) []byte { - msgSize := strconv.FormatInt(int64(len(msg)), 10) - msg = append([]byte(msgSize), msg...) - msg = append(messagePrefix, msg...) - - return hasher.Compute(string(msg)) -} - -// IsInterfaceNil returns true if there is no value under the interface -func (s *signer) IsInterfaceNil() bool { - return s == nil -} diff --git a/mx-sdk-go-old/blockchain/cryptoProvider/signer_test.go b/mx-sdk-go-old/blockchain/cryptoProvider/signer_test.go deleted file mode 100644 index cff06172..00000000 --- a/mx-sdk-go-old/blockchain/cryptoProvider/signer_test.go +++ /dev/null @@ -1,122 +0,0 @@ -package cryptoProvider - -import ( - "encoding/hex" - "errors" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-chain-crypto-go/signing" - "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" - "github.com/stretchr/testify/require" -) - -var ( - suite = ed25519.NewEd25519() - keyGen = signing.NewKeyGenerator(suite) - expectedError = errors.New("expected error") -) - -func TestSigner_SignMessage_VerifyMessage(t *testing.T) { - t.Parallel() - - t.Run("should work", func(t *testing.T) { - t.Parallel() - - signerInstance := NewSigner() - sk, _ := hex.DecodeString("45f72e8b6e8d10086bacd2fc8fa1340f82a3f5d4ef31953b463ea03c606533a6") - holder, err := NewCryptoComponentsHolder(keyGen, sk) - require.Nil(t, err) - sig, err := signerInstance.SignMessage([]byte("msg"), holder.GetPrivateKey()) - require.NotNil(t, sig) - require.Nil(t, err) - err = signerInstance.VerifyMessage([]byte("msg"), holder.GetPublicKey(), sig) - require.Nil(t, err) - }) -} - -func TestSigner_SignByteSlice_VerifyByteSlice(t *testing.T) { - t.Parallel() - - t.Run("should work", func(t *testing.T) { - t.Parallel() - - msg := []byte("msg") - signerInstance := NewSigner() - sk, _ := hex.DecodeString("45f72e8b6e8d10086bacd2fc8fa1340f82a3f5d4ef31953b463ea03c606533a6") - privateKey, err := keyGen.PrivateKeyFromByteArray(sk) - require.Nil(t, err) - sig, err := signerInstance.SignByteSlice(msg, privateKey) - require.Nil(t, err) - - publicKey := privateKey.GeneratePublic() - err = signerInstance.VerifyByteSlice(msg, publicKey, sig) - require.Nil(t, err) - }) -} - -func TestSigner_SignTransaction(t *testing.T) { - t.Parallel() - - sk, _ := hex.DecodeString("45f72e8b6e8d10086bacd2fc8fa1340f82a3f5d4ef31953b463ea03c606533a6") - privateKey, _ := keyGen.PrivateKeyFromByteArray(sk) - - t.Run("tx already signed", func(t *testing.T) { - t.Parallel() - - signerInstance := NewSigner() - require.False(t, check.IfNil(signerInstance)) - tx := &transaction.FrontendTransaction{Signature: "sig"} - sig, err := signerInstance.SignTransaction(tx, nil) - require.Nil(t, sig) - - require.Equal(t, ErrTxAlreadySigned, err) - - }) - - t.Run("should work if all the tx is signed", func(t *testing.T) { - t.Parallel() - - signerInstance := NewSigner() - require.False(t, check.IfNil(signerInstance)) - tx := &transaction.FrontendTransaction{Version: 1} - sig, err := signerInstance.SignTransaction(tx, privateKey) - require.NotNil(t, sig) - require.Nil(t, err) - }) - t.Run("should work if only txHash is signed", func(t *testing.T) { - t.Parallel() - - signerInstance := NewSigner() - require.False(t, check.IfNil(signerInstance)) - tx := &transaction.FrontendTransaction{Version: 2, Options: 1} - sig, err := signerInstance.SignTransaction(tx, privateKey) - require.NotNil(t, sig) - require.Nil(t, err) - }) - // { - // "address":"erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th", //alice - // "message":"0x6d657373616765", - // "signature":"0x546c6b6d6487852f54571ab2da81b48ff8f09bef71ba07b116fcf7203538cd64ea5f9bffcc13a0279a75ca3b1b0a1e478d23e1771d381011f8135e4372a9dd00", - // "version":1, - // "signer":"sdk-js" - // } - t.Run("should work with signature generated using sdk-js", func(t *testing.T) { - t.Parallel() - - signerInstance := NewSigner() - - w := interactors.NewWallet() - privateKeyInstance, err := w.LoadPrivateKeyFromPemData([]byte(examples.AlicePemContents)) - require.Nil(t, err) - holder, err := NewCryptoComponentsHolder(keyGen, privateKeyInstance) - require.Nil(t, err) - msg := []byte("message") - sig, _ := hex.DecodeString("546c6b6d6487852f54571ab2da81b48ff8f09bef71ba07b116fcf7203538cd64ea5f9bffcc13a0279a75ca3b1b0a1e478d23e1771d381011f8135e4372a9dd00") - err = signerInstance.VerifyMessage(msg, holder.GetPublicKey(), sig) - require.Nil(t, err) - }) -} diff --git a/mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider.go b/mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider.go deleted file mode 100644 index 89459490..00000000 --- a/mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider.go +++ /dev/null @@ -1,122 +0,0 @@ -package endpointProviders - -import "fmt" - -const ( - networkConfig = "network/config" - networkEconomics = "network/economics" - ratingsConfig = "network/ratings" - enableEpochsConfig = "network/enable-epochs" - account = "address/%s" - costTransaction = "transaction/cost" - sendTransaction = "transaction/send" - sendMultipleTransactions = "transaction/send-multiple" - transactionStatus = "transaction/%s/status" - processedTransactionStatus = "transaction/%s/process-status" - transactionInfo = "transaction/%s" - hyperBlockByNonce = "hyperblock/by-nonce/%d" - hyperBlockByHash = "hyperblock/by-hash/%s" - vmValues = "vm-values/query" - genesisNodesConfig = "network/genesis-nodes" - rawStartOfEpochMetaBlock = "internal/raw/startofepoch/metablock/by-epoch/%d" - rawStartOfEpochValidators = "internal/json/startofepoch/validators/by-epoch/%d" - esdt = "address/%s/esdt/%s" - nft = "address/%s/nft/%s/nonce/%d" -) - -type baseEndpointProvider struct{} - -// GetNetworkConfig returns the network config endpoint -func (base *baseEndpointProvider) GetNetworkConfig() string { - return networkConfig -} - -// GetNetworkEconomics returns the network economics endpoint -func (base *baseEndpointProvider) GetNetworkEconomics() string { - return networkEconomics -} - -// GetRatingsConfig returns the ratings config endpoint -func (base *baseEndpointProvider) GetRatingsConfig() string { - return ratingsConfig -} - -// GetEnableEpochsConfig returns the enable epochs config endpoint -func (base *baseEndpointProvider) GetEnableEpochsConfig() string { - return enableEpochsConfig -} - -// GetAccount returns the account endpoint -func (base *baseEndpointProvider) GetAccount(addressAsBech32 string) string { - return fmt.Sprintf(account, addressAsBech32) -} - -// GetESDTTokenData returns the esdt endpoint -func (base *baseEndpointProvider) GetESDTTokenData(addressAsBech32 string, tokenIdentifier string) string { - return fmt.Sprintf(esdt, addressAsBech32, tokenIdentifier) -} - -// GetNFTTokenData returns the NFT/SFT/MetaESDT endpoint -func (base *baseEndpointProvider) GetNFTTokenData(addressAsBech32 string, tokenIdentifier string, nonce uint64) string { - return fmt.Sprintf(nft, addressAsBech32, tokenIdentifier, nonce) -} - -// GetCostTransaction returns the transaction cost endpoint -func (base *baseEndpointProvider) GetCostTransaction() string { - return costTransaction -} - -// GetSendTransaction returns the send transaction endpoint -func (base *baseEndpointProvider) GetSendTransaction() string { - return sendTransaction -} - -// GetSendMultipleTransactions returns the send multiple transactions endpoint -func (base *baseEndpointProvider) GetSendMultipleTransactions() string { - return sendMultipleTransactions -} - -// GetTransactionStatus returns the transaction status endpoint -func (base *baseEndpointProvider) GetTransactionStatus(hexHash string) string { - return fmt.Sprintf(transactionStatus, hexHash) -} - -// GetProcessedTransactionStatus returns the transaction status endpoint -func (base *baseEndpointProvider) GetProcessedTransactionStatus(hexHash string) string { - return fmt.Sprintf(processedTransactionStatus, hexHash) -} - -// GetTransactionInfo returns the transaction info endpoint -func (base *baseEndpointProvider) GetTransactionInfo(hexHash string) string { - return fmt.Sprintf(transactionInfo, hexHash) -} - -// GetHyperBlockByNonce returns the hyper block by nonce endpoint -func (base *baseEndpointProvider) GetHyperBlockByNonce(nonce uint64) string { - return fmt.Sprintf(hyperBlockByNonce, nonce) -} - -// GetHyperBlockByHash returns the hyper block by hash endpoint -func (base *baseEndpointProvider) GetHyperBlockByHash(hexHash string) string { - return fmt.Sprintf(hyperBlockByHash, hexHash) -} - -// GetVmValues returns the VM values endpoint -func (base *baseEndpointProvider) GetVmValues() string { - return vmValues -} - -// GetGenesisNodesConfig returns the genesis nodes config endpoint -func (base *baseEndpointProvider) GetGenesisNodesConfig() string { - return genesisNodesConfig -} - -// GetRawStartOfEpochMetaBlock returns the raw start of epoch metablock endpoint -func (base *baseEndpointProvider) GetRawStartOfEpochMetaBlock(epoch uint32) string { - return fmt.Sprintf(rawStartOfEpochMetaBlock, epoch) -} - -// GetValidatorsInfo returns the validators endpoint -func (base *baseEndpointProvider) GetValidatorsInfo(epoch uint32) string { - return fmt.Sprintf(rawStartOfEpochValidators, epoch) -} diff --git a/mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider_test.go b/mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider_test.go deleted file mode 100644 index 54aaa8f3..00000000 --- a/mx-sdk-go-old/blockchain/endpointProviders/baseEndpointProvider_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package endpointProviders - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestBaseEndpointProvider(t *testing.T) { - t.Parallel() - - base := &baseEndpointProvider{} - assert.Equal(t, networkConfig, base.GetNetworkConfig()) - assert.Equal(t, networkEconomics, base.GetNetworkEconomics()) - assert.Equal(t, ratingsConfig, base.GetRatingsConfig()) - assert.Equal(t, enableEpochsConfig, base.GetEnableEpochsConfig()) - assert.Equal(t, "address/addressAsBech32", base.GetAccount("addressAsBech32")) - assert.Equal(t, costTransaction, base.GetCostTransaction()) - assert.Equal(t, sendTransaction, base.GetSendTransaction()) - assert.Equal(t, sendMultipleTransactions, base.GetSendMultipleTransactions()) - assert.Equal(t, "transaction/hex/status", base.GetTransactionStatus("hex")) - assert.Equal(t, "transaction/hex", base.GetTransactionInfo("hex")) - assert.Equal(t, "hyperblock/by-nonce/4", base.GetHyperBlockByNonce(4)) - assert.Equal(t, "hyperblock/by-hash/hex", base.GetHyperBlockByHash("hex")) - assert.Equal(t, vmValues, base.GetVmValues()) - assert.Equal(t, genesisNodesConfig, base.GetGenesisNodesConfig()) - assert.Equal(t, "internal/raw/startofepoch/metablock/by-epoch/5", base.GetRawStartOfEpochMetaBlock(5)) - assert.Equal(t, "address/erd1address/esdt/TKN-001122", base.GetESDTTokenData("erd1address", "TKN-001122")) - assert.Equal(t, "address/erd1address/nft/TKN-001122/nonce/37", base.GetNFTTokenData("erd1address", "TKN-001122", 37)) -} diff --git a/mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider.go b/mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider.go deleted file mode 100644 index ff24056d..00000000 --- a/mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider.go +++ /dev/null @@ -1,59 +0,0 @@ -package endpointProviders - -import ( - "fmt" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -const ( - nodeGetNodeStatusEndpoint = "node/status" - nodeRawBlockByHashEndpoint = "internal/raw/block/by-hash/%s" - nodeRawBlockByNonceEndpoint = "internal/raw/block/by-nonce/%d" - nodeRawMiniBlockByHashEndpoint = "internal/raw/miniblock/by-hash/%s/epoch/%d" -) - -// nodeEndpointProvider is suitable to work with a MultiversX node (observer) -type nodeEndpointProvider struct { - *baseEndpointProvider -} - -// NewNodeEndpointProvider returns a new instance of a nodeEndpointProvider -func NewNodeEndpointProvider() *nodeEndpointProvider { - return &nodeEndpointProvider{} -} - -// GetNodeStatus returns the node status endpoint -func (node *nodeEndpointProvider) GetNodeStatus(_ uint32) string { - return nodeGetNodeStatusEndpoint -} - -// ShouldCheckShardIDForNodeStatus returns true as some extra check will need to be done when requesting from an observer -func (node *nodeEndpointProvider) ShouldCheckShardIDForNodeStatus() bool { - return true -} - -// GetRawBlockByHash returns the raw block by hash endpoint -func (node *nodeEndpointProvider) GetRawBlockByHash(_ uint32, hexHash string) string { - return fmt.Sprintf(nodeRawBlockByHashEndpoint, hexHash) -} - -// GetRawBlockByNonce returns the raw block by nonce endpoint -func (node *nodeEndpointProvider) GetRawBlockByNonce(_ uint32, nonce uint64) string { - return fmt.Sprintf(nodeRawBlockByNonceEndpoint, nonce) -} - -// GetRawMiniBlockByHash returns the raw miniblock by hash endpoint -func (node *nodeEndpointProvider) GetRawMiniBlockByHash(_ uint32, hexHash string, epoch uint32) string { - return fmt.Sprintf(nodeRawMiniBlockByHashEndpoint, hexHash, epoch) -} - -// GetRestAPIEntityType returns the observer node constant -func (node *nodeEndpointProvider) GetRestAPIEntityType() core.RestAPIEntityType { - return core.ObserverNode -} - -// IsInterfaceNil returns true if there is no value under the interface -func (node *nodeEndpointProvider) IsInterfaceNil() bool { - return node == nil -} diff --git a/mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider_test.go b/mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider_test.go deleted file mode 100644 index 90b2af65..00000000 --- a/mx-sdk-go-old/blockchain/endpointProviders/nodeEndpointProvider_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package endpointProviders - -import ( - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/stretchr/testify/assert" -) - -func TestNewNodeEndpointProvider(t *testing.T) { - t.Parallel() - - provider := NewNodeEndpointProvider() - assert.False(t, check.IfNil(provider)) -} - -func TestNodeEndpointProvider_GetNodeStatus(t *testing.T) { - t.Parallel() - - provider := NewNodeEndpointProvider() - assert.Equal(t, nodeGetNodeStatusEndpoint, provider.GetNodeStatus(2)) -} - -func TestNodeEndpointProvider_Getters(t *testing.T) { - t.Parallel() - - provider := NewNodeEndpointProvider() - assert.Equal(t, "internal/raw/block/by-hash/hex", provider.GetRawBlockByHash(2, "hex")) - assert.Equal(t, "internal/raw/block/by-nonce/3", provider.GetRawBlockByNonce(2, 3)) - assert.Equal(t, "internal/raw/miniblock/by-hash/hex/epoch/4", provider.GetRawMiniBlockByHash(2, "hex", 4)) - assert.Equal(t, core.ObserverNode, provider.GetRestAPIEntityType()) - assert.True(t, provider.ShouldCheckShardIDForNodeStatus()) -} diff --git a/mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider.go b/mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider.go deleted file mode 100644 index 5e4094c5..00000000 --- a/mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider.go +++ /dev/null @@ -1,59 +0,0 @@ -package endpointProviders - -import ( - "fmt" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -const ( - proxyGetNodeStatus = "network/status/%d" - proxyRawBlockByHash = "internal/%d/raw/block/by-hash/%s" - proxyRawBlockByNonce = "internal/%d/raw/block/by-nonce/%d" - proxyRawMiniBlockByHash = "internal/%d/raw/miniblock/by-hash/%s/epoch/%d" -) - -// proxyEndpointProvider is suitable to work with a MultiversX Proxy -type proxyEndpointProvider struct { - *baseEndpointProvider -} - -// NewProxyEndpointProvider returns a new instance of a proxyEndpointProvider -func NewProxyEndpointProvider() *proxyEndpointProvider { - return &proxyEndpointProvider{} -} - -// GetNodeStatus returns the node status endpoint -func (proxy *proxyEndpointProvider) GetNodeStatus(shardID uint32) string { - return fmt.Sprintf(proxyGetNodeStatus, shardID) -} - -// ShouldCheckShardIDForNodeStatus returns false as the proxy will ensure the correct shard dispatching of the request -func (proxy *proxyEndpointProvider) ShouldCheckShardIDForNodeStatus() bool { - return false -} - -// GetRawBlockByHash returns the raw block by hash endpoint -func (proxy *proxyEndpointProvider) GetRawBlockByHash(shardID uint32, hexHash string) string { - return fmt.Sprintf(proxyRawBlockByHash, shardID, hexHash) -} - -// GetRawBlockByNonce returns the raw block by nonce endpoint -func (proxy *proxyEndpointProvider) GetRawBlockByNonce(shardID uint32, nonce uint64) string { - return fmt.Sprintf(proxyRawBlockByNonce, shardID, nonce) -} - -// GetRawMiniBlockByHash returns the raw miniblock by hash endpoint -func (proxy *proxyEndpointProvider) GetRawMiniBlockByHash(shardID uint32, hexHash string, epoch uint32) string { - return fmt.Sprintf(proxyRawMiniBlockByHash, shardID, hexHash, epoch) -} - -// GetRestAPIEntityType returns the proxy constant -func (proxy *proxyEndpointProvider) GetRestAPIEntityType() core.RestAPIEntityType { - return core.Proxy -} - -// IsInterfaceNil returns true if there is no value under the interface -func (proxy *proxyEndpointProvider) IsInterfaceNil() bool { - return proxy == nil -} diff --git a/mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider_test.go b/mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider_test.go deleted file mode 100644 index e7bc78d5..00000000 --- a/mx-sdk-go-old/blockchain/endpointProviders/proxyEndpointProvider_test.go +++ /dev/null @@ -1,36 +0,0 @@ -package endpointProviders - -import ( - "testing" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/stretchr/testify/assert" -) - -func TestNewProxyEndpointProvider(t *testing.T) { - t.Parallel() - - provider := NewProxyEndpointProvider() - assert.False(t, check.IfNil(provider)) -} - -func TestProxyEndpointProvider_GetNodeStatus(t *testing.T) { - t.Parallel() - - provider := NewProxyEndpointProvider() - assert.Equal(t, "network/status/0", provider.GetNodeStatus(0)) - assert.Equal(t, "network/status/4294967295", provider.GetNodeStatus(core.MetachainShardId)) -} - -func TestProxyEndpointProvider_Getters(t *testing.T) { - t.Parallel() - - provider := NewProxyEndpointProvider() - assert.Equal(t, "internal/2/raw/block/by-hash/hex", provider.GetRawBlockByHash(2, "hex")) - assert.Equal(t, "internal/2/raw/block/by-nonce/3", provider.GetRawBlockByNonce(2, 3)) - assert.Equal(t, "internal/2/raw/miniblock/by-hash/hex/epoch/4", provider.GetRawMiniBlockByHash(2, "hex", 4)) - assert.Equal(t, sdkCore.Proxy, provider.GetRestAPIEntityType()) - assert.False(t, provider.ShouldCheckShardIDForNodeStatus()) -} diff --git a/mx-sdk-go-old/blockchain/errors.go b/mx-sdk-go-old/blockchain/errors.go deleted file mode 100644 index e3bddf4a..00000000 --- a/mx-sdk-go-old/blockchain/errors.go +++ /dev/null @@ -1,61 +0,0 @@ -package blockchain - -import ( - "errors" - "fmt" - "net/http" -) - -// ErrInvalidAddress signals that the provided address is invalid -var ErrInvalidAddress = errors.New("invalid address") - -// ErrNilAddress signals that the provided address is nil -var ErrNilAddress = errors.New("nil address") - -// ErrNilShardCoordinator signals that the provided shard coordinator is nil -var ErrNilShardCoordinator = errors.New("nil shard coordinator") - -// ErrNilNetworkConfigs signals that the provided network configs is nil -var ErrNilNetworkConfigs = errors.New("nil network configs") - -// ErrInvalidCacherDuration signals that the provided caching duration is invalid -var ErrInvalidCacherDuration = errors.New("invalid caching duration") - -// ErrInvalidAllowedDeltaToFinal signals that an invalid allowed delta to final value has been provided -var ErrInvalidAllowedDeltaToFinal = errors.New("invalid allowed delta to final value") - -// ErrNilHTTPClientWrapper signals that a nil HTTP client wrapper was provided -var ErrNilHTTPClientWrapper = errors.New("nil HTTP client wrapper") - -// ErrHTTPStatusCodeIsNotOK signals that the returned HTTP status code is not OK -var ErrHTTPStatusCodeIsNotOK = errors.New("HTTP status code is not OK") - -// ErrNilEndpointProvider signals that a nil endpoint provider was provided -var ErrNilEndpointProvider = errors.New("nil endpoint provider") - -// ErrInvalidEndpointProvider signals that an invalid endpoint provider was provided -var ErrInvalidEndpointProvider = errors.New("invalid endpoint provider") - -// ErrShardIDMismatch signals that a shard ID mismatch has occurred -var ErrShardIDMismatch = errors.New("shard ID mismatch") - -// ErrNilNetworkStatus signals that nil network status was received -var ErrNilNetworkStatus = errors.New("nil network status") - -// ErrNilRequest signals that a nil request was provided -var ErrNilRequest = errors.New("nil request") - -// ErrNilProxy signals that a nil proxy has been provided -var ErrNilProxy = errors.New("nil proxy") - -// / ErrNotUint64Bytes signals that the provided bytes do not represent a valid uint64 number -var ErrNotUint64Bytes = errors.New("provided bytes do not represent a valid uint64 number") - -func createHTTPStatusError(httpStatusCode int, err error) error { - if err == nil { - err = ErrHTTPStatusCodeIsNotOK - } - - return fmt.Errorf("%w, returned http status: %d, %s", - err, httpStatusCode, http.StatusText(httpStatusCode)) -} diff --git a/mx-sdk-go-old/blockchain/factory/errors.go b/mx-sdk-go-old/blockchain/factory/errors.go deleted file mode 100644 index 75533de6..00000000 --- a/mx-sdk-go-old/blockchain/factory/errors.go +++ /dev/null @@ -1,6 +0,0 @@ -package factory - -import "errors" - -// ErrUnknownRestAPIEntityType signals that an unknown REST API entity type has been provided -var ErrUnknownRestAPIEntityType = errors.New("unknown REST API entity type") diff --git a/mx-sdk-go-old/blockchain/factory/factory.go b/mx-sdk-go-old/blockchain/factory/factory.go deleted file mode 100644 index 4262c607..00000000 --- a/mx-sdk-go-old/blockchain/factory/factory.go +++ /dev/null @@ -1,37 +0,0 @@ -package factory - -import ( - "fmt" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/endpointProviders" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/finalityProvider" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -// CreateEndpointProvider creates a new instance of EndpointProvider -func CreateEndpointProvider(entityType core.RestAPIEntityType) (EndpointProvider, error) { - switch entityType { - case core.ObserverNode: - return endpointProviders.NewNodeEndpointProvider(), nil - case core.Proxy: - return endpointProviders.NewProxyEndpointProvider(), nil - default: - return nil, fmt.Errorf("%w: %s", ErrUnknownRestAPIEntityType, entityType) - } -} - -// CreateFinalityProvider creates a new instance of FinalityProvider -func CreateFinalityProvider(proxy proxy, checkFinality bool) (FinalityProvider, error) { - if !checkFinality { - return finalityProvider.NewDisabledFinalityProvider(), nil - } - - switch proxy.GetRestAPIEntityType() { - case core.ObserverNode: - return finalityProvider.NewNodeFinalityProvider(proxy) - case core.Proxy: - return finalityProvider.NewProxyFinalityProvider(proxy) - default: - return nil, fmt.Errorf("%w: %s", ErrUnknownRestAPIEntityType, proxy.GetRestAPIEntityType()) - } -} diff --git a/mx-sdk-go-old/blockchain/factory/factory_test.go b/mx-sdk-go-old/blockchain/factory/factory_test.go deleted file mode 100644 index 03fe74a5..00000000 --- a/mx-sdk-go-old/blockchain/factory/factory_test.go +++ /dev/null @@ -1,94 +0,0 @@ -package factory - -import ( - "errors" - "fmt" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" -) - -func TestCreateEndpointProvider(t *testing.T) { - t.Parallel() - - t.Run("unknown type", func(t *testing.T) { - t.Parallel() - - provider, err := CreateEndpointProvider("unknown") - assert.True(t, check.IfNil(provider)) - assert.True(t, errors.Is(err, ErrUnknownRestAPIEntityType)) - }) - t.Run("node type", func(t *testing.T) { - t.Parallel() - - provider, err := CreateEndpointProvider(core.ObserverNode) - assert.False(t, check.IfNil(provider)) - assert.Nil(t, err) - assert.Equal(t, "*endpointProviders.nodeEndpointProvider", fmt.Sprintf("%T", provider)) - }) - t.Run("proxy type", func(t *testing.T) { - t.Parallel() - - provider, err := CreateEndpointProvider(core.Proxy) - assert.False(t, check.IfNil(provider)) - assert.Nil(t, err) - assert.Equal(t, "*endpointProviders.proxyEndpointProvider", fmt.Sprintf("%T", provider)) - }) -} - -func TestCreateFinalityProvider(t *testing.T) { - t.Parallel() - - t.Run("unknown type", func(t *testing.T) { - t.Parallel() - - proxyInstance := &testsCommon.ProxyStub{ - GetRestAPIEntityTypeCalled: func() core.RestAPIEntityType { - return "unknown" - }, - } - - provider, err := CreateFinalityProvider(proxyInstance, true) - assert.True(t, check.IfNil(provider)) - assert.True(t, errors.Is(err, ErrUnknownRestAPIEntityType)) - }) - t.Run("disabled finality checker", func(t *testing.T) { - t.Parallel() - - provider, err := CreateFinalityProvider(nil, false) - assert.False(t, check.IfNil(provider)) - assert.Nil(t, err) - assert.Equal(t, "*finalityProvider.disabledFinalityProvider", fmt.Sprintf("%T", provider)) - }) - t.Run("node type", func(t *testing.T) { - t.Parallel() - - proxyInstance := &testsCommon.ProxyStub{ - GetRestAPIEntityTypeCalled: func() core.RestAPIEntityType { - return core.ObserverNode - }, - } - - provider, err := CreateFinalityProvider(proxyInstance, true) - assert.False(t, check.IfNil(provider)) - assert.Nil(t, err) - assert.Equal(t, "*finalityProvider.nodeFinalityProvider", fmt.Sprintf("%T", provider)) - }) - t.Run("proxy type", func(t *testing.T) { - t.Parallel() - - proxyInstance := &testsCommon.ProxyStub{ - GetRestAPIEntityTypeCalled: func() core.RestAPIEntityType { - return core.Proxy - }, - } - - provider, err := CreateFinalityProvider(proxyInstance, true) - assert.False(t, check.IfNil(provider)) - assert.Nil(t, err) - assert.Equal(t, "*finalityProvider.proxyFinalityProvider", fmt.Sprintf("%T", provider)) - }) -} diff --git a/mx-sdk-go-old/blockchain/factory/interface.go b/mx-sdk-go-old/blockchain/factory/interface.go deleted file mode 100644 index b3d888e0..00000000 --- a/mx-sdk-go-old/blockchain/factory/interface.go +++ /dev/null @@ -1,50 +0,0 @@ -package factory - -import ( - "context" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -type proxy interface { - GetNetworkStatus(ctx context.Context, shardID uint32) (*data.NetworkStatus, error) - GetRestAPIEntityType() core.RestAPIEntityType - IsInterfaceNil() bool -} - -// EndpointProvider is able to return endpoint routes strings -type EndpointProvider interface { - GetNetworkConfig() string - GetNetworkEconomics() string - GetRatingsConfig() string - GetEnableEpochsConfig() string - GetAccount(addressAsBech32 string) string - GetCostTransaction() string - GetSendTransaction() string - GetSendMultipleTransactions() string - GetTransactionStatus(hexHash string) string - GetTransactionInfo(hexHash string) string - GetHyperBlockByNonce(nonce uint64) string - GetHyperBlockByHash(hexHash string) string - GetVmValues() string - GetGenesisNodesConfig() string - GetRawStartOfEpochMetaBlock(epoch uint32) string - GetNodeStatus(shardID uint32) string - ShouldCheckShardIDForNodeStatus() bool - GetRawBlockByHash(shardID uint32, hexHash string) string - GetRawBlockByNonce(shardID uint32, nonce uint64) string - GetRawMiniBlockByHash(shardID uint32, hexHash string, epoch uint32) string - GetRestAPIEntityType() core.RestAPIEntityType - GetValidatorsInfo(epoch uint32) string - GetProcessedTransactionStatus(hexHash string) string - GetESDTTokenData(addressAsBech32 string, tokenIdentifier string) string - GetNFTTokenData(addressAsBech32 string, tokenIdentifier string, nonce uint64) string - IsInterfaceNil() bool -} - -// FinalityProvider is able to check the shard finalization status -type FinalityProvider interface { - CheckShardFinalization(ctx context.Context, targetShardID uint32, maxNoncesDelta uint64) error - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider.go b/mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider.go deleted file mode 100644 index bced5bba..00000000 --- a/mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider.go +++ /dev/null @@ -1,21 +0,0 @@ -package finalityProvider - -import "context" - -type disabledFinalityProvider struct { -} - -// NewDisabledFinalityProvider returns a new instance of type disabledFinalityProvider -func NewDisabledFinalityProvider() *disabledFinalityProvider { - return &disabledFinalityProvider{} -} - -// CheckShardFinalization will always return nil -func (provider *disabledFinalityProvider) CheckShardFinalization(_ context.Context, _ uint32, _ uint64) error { - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (provider *disabledFinalityProvider) IsInterfaceNil() bool { - return provider == nil -} diff --git a/mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider_test.go b/mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider_test.go deleted file mode 100644 index 303d1289..00000000 --- a/mx-sdk-go-old/blockchain/finalityProvider/disabledFinalityProvider_test.go +++ /dev/null @@ -1,24 +0,0 @@ -package finalityProvider - -import ( - "context" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/stretchr/testify/assert" -) - -func TestNewDisabledFinalityProvider(t *testing.T) { - t.Parallel() - - provider := NewDisabledFinalityProvider() - assert.False(t, check.IfNil(provider)) -} - -func TestDisabledFinalityProvider_CheckShardFinalization(t *testing.T) { - t.Parallel() - - provider := NewDisabledFinalityProvider() - err := provider.CheckShardFinalization(context.Background(), 0, 0) - assert.Nil(t, err) -} diff --git a/mx-sdk-go-old/blockchain/finalityProvider/errors.go b/mx-sdk-go-old/blockchain/finalityProvider/errors.go deleted file mode 100644 index 8dfc0e53..00000000 --- a/mx-sdk-go-old/blockchain/finalityProvider/errors.go +++ /dev/null @@ -1,15 +0,0 @@ -package finalityProvider - -import "errors" - -// ErrInvalidNonceCrossCheckValueFormat signals that an invalid nonce cross-check value has been provided -var ErrInvalidNonceCrossCheckValueFormat = errors.New("invalid nonce cross check value format") - -// ErrInvalidAllowedDeltaToFinal signals that an invalid allowed delta to final value has been provided -var ErrInvalidAllowedDeltaToFinal = errors.New("invalid allowed delta to final value") - -// ErrNilProxy signals that a nil proxy has been provided -var ErrNilProxy = errors.New("nil proxy") - -// ErrNodeNotStarted signals that the node is not started -var ErrNodeNotStarted = errors.New("node not started") diff --git a/mx-sdk-go-old/blockchain/finalityProvider/interface.go b/mx-sdk-go-old/blockchain/finalityProvider/interface.go deleted file mode 100644 index 926c643f..00000000 --- a/mx-sdk-go-old/blockchain/finalityProvider/interface.go +++ /dev/null @@ -1,12 +0,0 @@ -package finalityProvider - -import ( - "context" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -type proxy interface { - GetNetworkStatus(ctx context.Context, shardID uint32) (*data.NetworkStatus, error) - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider.go b/mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider.go deleted file mode 100644 index 21c02c34..00000000 --- a/mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider.go +++ /dev/null @@ -1,84 +0,0 @@ -package finalityProvider - -import ( - "context" - "fmt" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -type nonces struct { - current uint64 - highest uint64 - probable uint64 -} - -type nodeFinalityProvider struct { - proxy proxy -} - -// NewNodeFinalityProvider creates a new instance of type nodeFinalityProvider -func NewNodeFinalityProvider(proxy proxy) (*nodeFinalityProvider, error) { - if check.IfNil(proxy) { - return nil, ErrNilProxy - } - - return &nodeFinalityProvider{ - proxy: proxy, - }, nil -} - -// CheckShardFinalization will query the proxy and check if the target shard ID has a current nonce close to the highest nonce -// nonce <= highest_nonce + maxNoncesDelta -// it also checks the probable nonce to determine (with high degree of precision) if the node is syncing: -// nonce + maxNoncesDelta < probable_nonce -func (provider *nodeFinalityProvider) CheckShardFinalization(ctx context.Context, targetShardID uint32, maxNoncesDelta uint64) error { - if maxNoncesDelta < core.MinAllowedDeltaToFinal { - return fmt.Errorf("%w, provided: %d, minimum: %d", ErrInvalidAllowedDeltaToFinal, maxNoncesDelta, core.MinAllowedDeltaToFinal) - } - - result, err := provider.getNonces(ctx, targetShardID) - if err != nil { - return err - } - - if result.current+maxNoncesDelta < result.probable { - return fmt.Errorf("shardID %d is syncing, probable nonce is %d, current nonce is %d, max delta: %d", - targetShardID, result.probable, result.current, maxNoncesDelta) - } - if result.current <= result.highest+maxNoncesDelta { - log.Trace("nodeFinalityProvider.CheckShardFinalization - shard is in sync", - "shardID", targetShardID, "highest nonce", result.highest, "probable nonce", result.probable, - "current nonce", result.current, "max delta", maxNoncesDelta) - return nil - } - - return fmt.Errorf("shardID %d is stuck, highest nonce is %d, current nonce is %d, max delta: %d", - targetShardID, result.highest, result.current, maxNoncesDelta) -} - -func (provider *nodeFinalityProvider) getNonces(ctx context.Context, targetShardID uint32) (nonces, error) { - networkStatusShard, err := provider.proxy.GetNetworkStatus(ctx, targetShardID) - if err != nil { - return nonces{}, err - } - - result := nonces{ - current: networkStatusShard.Nonce, - highest: networkStatusShard.HighestNonce, - probable: networkStatusShard.ProbableHighestNonce, - } - - isEmpty := result.current == 0 && result.highest == 0 && result.probable == 0 - if isEmpty { - return nonces{}, ErrNodeNotStarted - } - - return result, nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (provider *nodeFinalityProvider) IsInterfaceNil() bool { - return provider == nil -} diff --git a/mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider_test.go b/mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider_test.go deleted file mode 100644 index a9feaee4..00000000 --- a/mx-sdk-go-old/blockchain/finalityProvider/nodeFinalityProvider_test.go +++ /dev/null @@ -1,152 +0,0 @@ -package finalityProvider - -import ( - "context" - "errors" - "strings" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" -) - -func TestNewNodeFinalityProvider(t *testing.T) { - t.Parallel() - - t.Run("nil proxy should error", func(t *testing.T) { - t.Parallel() - - provider, err := NewNodeFinalityProvider(nil) - assert.True(t, check.IfNil(provider)) - assert.Equal(t, ErrNilProxy, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - provider, err := NewNodeFinalityProvider(&testsCommon.ProxyStub{}) - assert.False(t, check.IfNil(provider)) - assert.Nil(t, err) - }) -} - -func TestNodeFinalityProvider_CheckShardFinalization(t *testing.T) { - t.Parallel() - - t.Run("invalid maxNoncesDelta", func(t *testing.T) { - t.Parallel() - - provider, _ := NewNodeFinalityProvider(&testsCommon.ProxyStub{}) - - err := provider.CheckShardFinalization(context.Background(), 0, 0) - assert.True(t, errors.Is(err, ErrInvalidAllowedDeltaToFinal)) - }) - t.Run("get status fails", func(t *testing.T) { - expectedErr := errors.New("expected error") - provider := createNodeProviderForCheckShardFinalization(nonces{}, expectedErr) - - err := provider.CheckShardFinalization(context.Background(), 1, 1) - assert.True(t, errors.Is(err, expectedErr)) - }) - t.Run("node not started", func(t *testing.T) { - provider := createNodeProviderForCheckShardFinalization(nonces{}, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 1) - assert.True(t, errors.Is(err, ErrNodeNotStarted)) - }) - t.Run("node is syncing", func(t *testing.T) { - n := nonces{ - current: 1, - highest: 0, - probable: 9, - } - - provider := createNodeProviderForCheckShardFinalization(n, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 7) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "shardID 1 is syncing, probable nonce is 9, current nonce is 1")) - }) - t.Run("shard is stuck", func(t *testing.T) { - n := nonces{ - current: 10, - highest: 2, - probable: 13, - } - - provider := createNodeProviderForCheckShardFinalization(n, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 7) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "shardID 1 is stuck, highest nonce is 2, current nonce is 10")) - }) - t.Run("should work -> probable under current", func(t *testing.T) { - n := nonces{ - current: 10, - highest: 8, - probable: 9, - } - provider := createNodeProviderForCheckShardFinalization(n, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 7) - assert.Nil(t, err) - }) - t.Run("should work -> probable == current", func(t *testing.T) { - n := nonces{ - current: 10, - highest: 8, - probable: 10, - } - provider := createNodeProviderForCheckShardFinalization(n, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 7) - assert.Nil(t, err) - }) - t.Run("should work -> probable == current + maxDelta", func(t *testing.T) { - n := nonces{ - current: 10, - highest: 8, - probable: 17, - } - provider := createNodeProviderForCheckShardFinalization(n, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 7) - assert.Nil(t, err) - }) - t.Run("should work -> probable == current + maxDelta && highest + maxDelta == current", func(t *testing.T) { - n := nonces{ - current: 10, - highest: 3, - probable: 17, - } - provider := createNodeProviderForCheckShardFinalization(n, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 7) - assert.Nil(t, err) - }) -} - -func createNodeProviderForCheckShardFinalization( - nonces nonces, - err error, -) *nodeFinalityProvider { - - stub := &testsCommon.ProxyStub{ - GetNetworkStatusCalled: func(ctx context.Context, shardID uint32) (*data.NetworkStatus, error) { - if err != nil { - return nil, err - } - - return &data.NetworkStatus{ - Nonce: nonces.current, - HighestNonce: nonces.highest, - ProbableHighestNonce: nonces.probable, - }, nil - }, - } - - provider, _ := NewNodeFinalityProvider(stub) - - return provider -} diff --git a/mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider.go b/mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider.go deleted file mode 100644 index 3de5b8cb..00000000 --- a/mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider.go +++ /dev/null @@ -1,122 +0,0 @@ -package finalityProvider - -import ( - "context" - "fmt" - "math/big" - "strings" - - mxChainCore "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -var log = logger.GetOrCreate("mx-sdk-go/blockchain/finalityprovider") - -type proxyFinalityProvider struct { - proxy proxy -} - -// NewProxyFinalityProvider creates a new instance of type proxyFinalityProvider -func NewProxyFinalityProvider(proxy proxy) (*proxyFinalityProvider, error) { - if check.IfNil(proxy) { - return nil, ErrNilProxy - } - - return &proxyFinalityProvider{ - proxy: proxy, - }, nil -} - -// CheckShardFinalization will query the proxy and check if the target shard ID has a current nonce close to the cross -// check nonce from the metachain -// nonce(target shard ID) <= nonce(target shard ID notarized by meta) + maxNoncesDelta -func (provider *proxyFinalityProvider) CheckShardFinalization(ctx context.Context, targetShardID uint32, maxNoncesDelta uint64) error { - if maxNoncesDelta < core.MinAllowedDeltaToFinal { - return fmt.Errorf("%w, provided: %d, minimum: %d", ErrInvalidAllowedDeltaToFinal, maxNoncesDelta, core.MinAllowedDeltaToFinal) - } - if targetShardID == mxChainCore.MetachainShardId { - // we consider this final since the minAllowedDeltaToFinal is 1 - return nil - } - - nonceFromMeta, nonceFromShard, err := provider.getNoncesFromMetaAndShard(ctx, targetShardID) - if err != nil { - return err - } - - if nonceFromShard < nonceFromMeta { - return fmt.Errorf("shardID %d is syncing, meta cross check nonce is %d, current nonce is %d, max delta: %d", - targetShardID, nonceFromMeta, nonceFromShard, maxNoncesDelta) - } - if nonceFromShard <= nonceFromMeta+maxNoncesDelta { - log.Trace("proxyFinalityProvider.CheckShardFinalization - shard is in sync", - "shardID", targetShardID, "meta cross check nonce", nonceFromMeta, - "current nonce", nonceFromShard, "max delta", maxNoncesDelta) - return nil - } - - return fmt.Errorf("shardID %d is stuck, meta cross check nonce is %d, current nonce is %d, max delta: %d", - targetShardID, nonceFromMeta, nonceFromShard, maxNoncesDelta) -} - -func (provider *proxyFinalityProvider) getNoncesFromMetaAndShard(ctx context.Context, targetShardID uint32) (uint64, uint64, error) { - networkStatusMeta, err := provider.proxy.GetNetworkStatus(ctx, mxChainCore.MetachainShardId) - if err != nil { - return 0, 0, err - } - - crossCheckValue := networkStatusMeta.CrossCheckBlockHeight - nonceFromMeta, err := extractNonceOfShardID(crossCheckValue, targetShardID) - if err != nil { - return 0, 0, err - } - - networkStatusShard, err := provider.proxy.GetNetworkStatus(ctx, targetShardID) - if err != nil { - return 0, 0, err - } - - nonceFromShard := networkStatusShard.Nonce - - return nonceFromMeta, nonceFromShard, nil -} - -func extractNonceOfShardID(crossCheckValue string, shardID uint32) (uint64, error) { - // the value will come in this format: "0: 9169897, 1: 9166353, 2: 9170524, " - if len(crossCheckValue) == 0 { - return 0, fmt.Errorf("%w: empty value, maybe bad observer version", ErrInvalidNonceCrossCheckValueFormat) - } - shardsData := strings.Split(crossCheckValue, ",") - shardIdAsString := fmt.Sprintf("%d", shardID) - - for _, shardData := range shardsData { - shardNonce := strings.Split(shardData, ":") - if len(shardNonce) != 2 { - continue - } - - shardNonce[0] = strings.TrimSpace(shardNonce[0]) - shardNonce[1] = strings.TrimSpace(shardNonce[1]) - if shardNonce[0] != shardIdAsString { - continue - } - - val, ok := big.NewInt(0).SetString(shardNonce[1], 10) - if !ok { - return 0, fmt.Errorf("%w: %s is not a valid number as found in this response: %s", - ErrInvalidNonceCrossCheckValueFormat, shardNonce[1], crossCheckValue) - } - - return val.Uint64(), nil - } - - return 0, fmt.Errorf("%w: value not found for shard %d from this response: %s", - ErrInvalidNonceCrossCheckValueFormat, shardID, crossCheckValue) -} - -// IsInterfaceNil returns true if there is no value under the interface -func (provider *proxyFinalityProvider) IsInterfaceNil() bool { - return provider == nil -} diff --git a/mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider_test.go b/mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider_test.go deleted file mode 100644 index 4ac63498..00000000 --- a/mx-sdk-go-old/blockchain/finalityProvider/proxyFinalityProvider_test.go +++ /dev/null @@ -1,197 +0,0 @@ -package finalityProvider - -import ( - "context" - "errors" - "strings" - "testing" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" -) - -const goodResponseExample = "0: 9169897, 1: 9166353, 2: 9170524, " - -func TestNewProxyFinalityProvider(t *testing.T) { - t.Parallel() - - t.Run("nil proxy should error", func(t *testing.T) { - t.Parallel() - - provider, err := NewProxyFinalityProvider(nil) - assert.True(t, check.IfNil(provider)) - assert.Equal(t, ErrNilProxy, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - provider, err := NewProxyFinalityProvider(&testsCommon.ProxyStub{}) - assert.False(t, check.IfNil(provider)) - assert.Nil(t, err) - }) -} - -func TestExtractNonceOfShardID(t *testing.T) { - t.Parallel() - - t.Run("empty response should error", func(t *testing.T) { - t.Parallel() - - nonce, err := extractNonceOfShardID("", 0) - assert.True(t, errors.Is(err, ErrInvalidNonceCrossCheckValueFormat)) - assert.True(t, strings.Contains(err.Error(), "empty value")) - assert.Equal(t, uint64(0), nonce) - }) - t.Run("shard data contains a NaN", func(t *testing.T) { - t.Parallel() - - nonce, err := extractNonceOfShardID("0: aaa", 0) - assert.True(t, errors.Is(err, ErrInvalidNonceCrossCheckValueFormat)) - assert.True(t, strings.Contains(err.Error(), "is not a valid number")) - assert.Equal(t, uint64(0), nonce) - }) - t.Run("shard not found", func(t *testing.T) { - t.Parallel() - - nonce, err := extractNonceOfShardID(goodResponseExample, 3) - assert.True(t, errors.Is(err, ErrInvalidNonceCrossCheckValueFormat)) - assert.True(t, strings.Contains(err.Error(), "value not found for shard 3")) - assert.Equal(t, uint64(0), nonce) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - nonce, err := extractNonceOfShardID(goodResponseExample, 0) - assert.Nil(t, err) - assert.Equal(t, uint64(9169897), nonce) - - nonce, err = extractNonceOfShardID(goodResponseExample, 1) - assert.Nil(t, err) - assert.Equal(t, uint64(9166353), nonce) - - nonce, err = extractNonceOfShardID(goodResponseExample, 2) - assert.Nil(t, err) - assert.Equal(t, uint64(9170524), nonce) - }) - t.Run("should work even if it contains extra data", func(t *testing.T) { - t.Parallel() - - nonce, err := extractNonceOfShardID("extra,"+goodResponseExample, 0) - assert.Nil(t, err) - assert.Equal(t, uint64(9169897), nonce) - }) -} - -func TestBaseProxy_CheckShardFinalization(t *testing.T) { - t.Parallel() - - t.Run("invalid maxNoncesDelta", func(t *testing.T) { - t.Parallel() - - provider, _ := NewProxyFinalityProvider(&testsCommon.ProxyStub{}) - - err := provider.CheckShardFinalization(context.Background(), 0, 0) - assert.True(t, errors.Is(err, ErrInvalidAllowedDeltaToFinal)) - }) - t.Run("for metachain it will return nil", func(t *testing.T) { - t.Parallel() - - provider, _ := NewProxyFinalityProvider(&testsCommon.ProxyStub{}) - - err := provider.CheckShardFinalization(context.Background(), core.MetachainShardId, 1) - assert.Nil(t, err) - }) - t.Run("get cross check from meta fails", func(t *testing.T) { - expectedErr := errors.New("expected error") - provider := createProxyProviderForCheckShardFinalization(0, goodResponseExample, expectedErr, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 1) - assert.True(t, errors.Is(err, expectedErr)) - }) - t.Run("invalid response from meta", func(t *testing.T) { - provider := createProxyProviderForCheckShardFinalization(0, "invalid", nil, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 1) - assert.True(t, errors.Is(err, ErrInvalidNonceCrossCheckValueFormat)) - }) - t.Run("get nonce from shard fails", func(t *testing.T) { - expectedErr := errors.New("expected error") - provider := createProxyProviderForCheckShardFinalization(0, goodResponseExample, nil, expectedErr) - - err := provider.CheckShardFinalization(context.Background(), 1, 1) - assert.True(t, errors.Is(err, expectedErr)) - }) - t.Run("finalization checks", func(t *testing.T) { - t.Parallel() - - t.Run("0 difference", func(t *testing.T) { - nonce := uint64(9166353) - provider := createProxyProviderForCheckShardFinalization(nonce, goodResponseExample, nil, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 1) - assert.Nil(t, err) - - err = provider.CheckShardFinalization(context.Background(), 1, 10) - assert.Nil(t, err) - }) - t.Run("10 difference", func(t *testing.T) { - nonce := uint64(9166353 + 10) - provider := createProxyProviderForCheckShardFinalization(nonce, goodResponseExample, nil, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 10) - assert.Nil(t, err) - - err = provider.CheckShardFinalization(context.Background(), 1, 11) - assert.Nil(t, err) - - err = provider.CheckShardFinalization(context.Background(), 1, 9) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "shardID 1 is stuck")) - }) - t.Run("shard is syncing", func(t *testing.T) { - nonce := uint64(9166353 - 1) - provider := createProxyProviderForCheckShardFinalization(nonce, goodResponseExample, nil, nil) - - err := provider.CheckShardFinalization(context.Background(), 1, 9) - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "shardID 1 is syncing")) - }) - }) -} - -func createProxyProviderForCheckShardFinalization( - crtNonce uint64, - crossCheck string, - fetchFromMetaError error, - fetchFromShardError error, -) *proxyFinalityProvider { - - stub := &testsCommon.ProxyStub{ - GetNetworkStatusCalled: func(ctx context.Context, shardID uint32) (*data.NetworkStatus, error) { - if shardID == core.MetachainShardId { - if fetchFromMetaError != nil { - return nil, fetchFromMetaError - } - - return &data.NetworkStatus{ - CrossCheckBlockHeight: crossCheck, - }, nil - } - - if fetchFromShardError != nil { - return nil, fetchFromShardError - } - - return &data.NetworkStatus{ - Nonce: crtNonce, - }, nil - }, - } - - provider, _ := NewProxyFinalityProvider(stub) - - return provider -} diff --git a/mx-sdk-go-old/blockchain/interface.go b/mx-sdk-go-old/blockchain/interface.go deleted file mode 100644 index 40d39254..00000000 --- a/mx-sdk-go-old/blockchain/interface.go +++ /dev/null @@ -1,61 +0,0 @@ -package blockchain - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -// Proxy holds the primitive functions that the multiversx proxy engine supports & implements -type Proxy interface { - GetNetworkConfig(ctx context.Context) (*data.NetworkConfig, error) - GetAccount(ctx context.Context, address core.AddressHandler) (*data.Account, error) - SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) - SendTransactions(ctx context.Context, txs []*transaction.FrontendTransaction) ([]string, error) - ExecuteVMQuery(ctx context.Context, vmRequest *data.VmValueRequest) (*data.VmValuesResponseData, error) - IsInterfaceNil() bool -} - -type httpClientWrapper interface { - GetHTTP(ctx context.Context, endpoint string) ([]byte, int, error) - PostHTTP(ctx context.Context, endpoint string, data []byte) ([]byte, int, error) - IsInterfaceNil() bool -} - -// EndpointProvider is able to return endpoint routes strings -type EndpointProvider interface { - GetNetworkConfig() string - GetNetworkEconomics() string - GetRatingsConfig() string - GetEnableEpochsConfig() string - GetAccount(addressAsBech32 string) string - GetCostTransaction() string - GetSendTransaction() string - GetSendMultipleTransactions() string - GetTransactionStatus(hexHash string) string - GetTransactionInfo(hexHash string) string - GetHyperBlockByNonce(nonce uint64) string - GetHyperBlockByHash(hexHash string) string - GetVmValues() string - GetGenesisNodesConfig() string - GetRawStartOfEpochMetaBlock(epoch uint32) string - GetNodeStatus(shardID uint32) string - ShouldCheckShardIDForNodeStatus() bool - GetRawBlockByHash(shardID uint32, hexHash string) string - GetRawBlockByNonce(shardID uint32, nonce uint64) string - GetRawMiniBlockByHash(shardID uint32, hexHash string, epoch uint32) string - GetRestAPIEntityType() core.RestAPIEntityType - GetValidatorsInfo(epoch uint32) string - GetProcessedTransactionStatus(hexHash string) string - GetESDTTokenData(addressAsBech32 string, tokenIdentifier string) string - GetNFTTokenData(addressAsBech32 string, tokenIdentifier string, nonce uint64) string - IsInterfaceNil() bool -} - -// FinalityProvider is able to check the shard finalization status -type FinalityProvider interface { - CheckShardFinalization(ctx context.Context, targetShardID uint32, maxNoncesDelta uint64) error - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/blockchain/proxy.go b/mx-sdk-go-old/blockchain/proxy.go deleted file mode 100644 index 24ba4a11..00000000 --- a/mx-sdk-go-old/blockchain/proxy.go +++ /dev/null @@ -1,633 +0,0 @@ -package blockchain - -import ( - "context" - "encoding/json" - "errors" - "fmt" - "net/http" - "sort" - "time" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/api" - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-chain-go/state" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/factory" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - sdkHttp "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core/http" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -const ( - withResultsQueryParam = "?withResults=true" -) - -// ArgsProxy is the DTO used in the multiversx proxy constructor -type ArgsProxy struct { - ProxyURL string - Client sdkHttp.Client - SameScState bool - ShouldBeSynced bool - FinalityCheck bool - AllowedDeltaToFinal int - CacheExpirationTime time.Duration - EntityType sdkCore.RestAPIEntityType -} - -// proxy implements basic functions for interacting with a multiversx Proxy -type proxy struct { - *baseProxy - sameScState bool - shouldBeSynced bool - finalityCheck bool - allowedDeltaToFinal int - finalityProvider FinalityProvider -} - -// NewProxy initializes and returns a proxy object -func NewProxy(args ArgsProxy) (*proxy, error) { - err := checkArgsProxy(args) - if err != nil { - return nil, err - } - - endpointProvider, err := factory.CreateEndpointProvider(args.EntityType) - if err != nil { - return nil, err - } - - clientWrapper := sdkHttp.NewHttpClientWrapper(args.Client, args.ProxyURL) - baseArgs := argsBaseProxy{ - httpClientWrapper: clientWrapper, - expirationTime: args.CacheExpirationTime, - endpointProvider: endpointProvider, - } - baseProxyInstance, err := newBaseProxy(baseArgs) - if err != nil { - return nil, err - } - - finalityProvider, err := factory.CreateFinalityProvider(baseProxyInstance, args.FinalityCheck) - if err != nil { - return nil, err - } - - ep := &proxy{ - baseProxy: baseProxyInstance, - sameScState: args.SameScState, - shouldBeSynced: args.ShouldBeSynced, - finalityCheck: args.FinalityCheck, - allowedDeltaToFinal: args.AllowedDeltaToFinal, - finalityProvider: finalityProvider, - } - - return ep, nil -} - -func checkArgsProxy(args ArgsProxy) error { - if args.FinalityCheck { - if args.AllowedDeltaToFinal < sdkCore.MinAllowedDeltaToFinal { - return fmt.Errorf("%w, provided: %d, minimum: %d", - ErrInvalidAllowedDeltaToFinal, args.AllowedDeltaToFinal, sdkCore.MinAllowedDeltaToFinal) - } - } - - return nil -} - -// ExecuteVMQuery retrieves data from existing SC trie through the use of a VM -func (ep *proxy) ExecuteVMQuery(ctx context.Context, vmRequest *data.VmValueRequest) (*data.VmValuesResponseData, error) { - err := ep.checkFinalState(ctx, vmRequest.Address) - if err != nil { - return nil, err - } - - jsonVMRequestWithOptionalParams := data.VmValueRequestWithOptionalParameters{ - VmValueRequest: vmRequest, - SameScState: ep.sameScState, - ShouldBeSynced: ep.shouldBeSynced, - } - jsonVMRequest, err := json.Marshal(jsonVMRequestWithOptionalParams) - if err != nil { - return nil, err - } - - buff, code, err := ep.PostHTTP(ctx, ep.endpointProvider.GetVmValues(), jsonVMRequest) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.ResponseVmValue{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return &response.Data, nil -} - -func (ep *proxy) checkFinalState(ctx context.Context, address string) error { - if !ep.finalityCheck { - return nil - } - - targetShardID, err := ep.GetShardOfAddress(ctx, address) - if err != nil { - return err - } - - return ep.finalityProvider.CheckShardFinalization(ctx, targetShardID, uint64(ep.allowedDeltaToFinal)) -} - -// GetNetworkEconomics retrieves the network economics from the proxy -func (ep *proxy) GetNetworkEconomics(ctx context.Context) (*data.NetworkEconomics, error) { - buff, code, err := ep.GetHTTP(ctx, ep.endpointProvider.GetNetworkEconomics()) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.NetworkEconomicsResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.Economics, nil -} - -// GetDefaultTransactionArguments will prepare the transaction creation argument by querying the account's info -func (ep *proxy) GetDefaultTransactionArguments( - ctx context.Context, - address sdkCore.AddressHandler, - networkConfigs *data.NetworkConfig, -) (transaction.FrontendTransaction, string, error) { - if networkConfigs == nil { - return transaction.FrontendTransaction{}, "", ErrNilNetworkConfigs - } - if check.IfNil(address) { - return transaction.FrontendTransaction{}, "", ErrNilAddress - } - - account, err := ep.GetAccount(ctx, address) - if err != nil { - return transaction.FrontendTransaction{}, "", err - } - - return transaction.FrontendTransaction{ - Nonce: account.Nonce, - Value: "", - Receiver: "", - Sender: address.AddressAsBech32String(), - GasPrice: networkConfigs.MinGasPrice, - GasLimit: networkConfigs.MinGasLimit, - Data: nil, - Signature: "", - ChainID: networkConfigs.ChainID, - Version: networkConfigs.MinTransactionVersion, - Options: 0, - }, account.Balance, nil -} - -// GetAccount retrieves an account info from the network (nonce, balance) -func (ep *proxy) GetAccount(ctx context.Context, address sdkCore.AddressHandler) (*data.Account, error) { - err := ep.checkFinalState(ctx, address.AddressAsBech32String()) - if err != nil { - return nil, err - } - - if check.IfNil(address) { - return nil, ErrNilAddress - } - if !address.IsValid() { - return nil, ErrInvalidAddress - } - endpoint := ep.endpointProvider.GetAccount(address.AddressAsBech32String()) - - buff, code, err := ep.GetHTTP(ctx, endpoint) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.AccountResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.Account, nil -} - -// SendTransaction broadcasts a transaction to the network and returns the txhash if successful -func (ep *proxy) SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - jsonTx, err := json.Marshal(tx) - if err != nil { - return "", err - } - buff, code, err := ep.PostHTTP(ctx, ep.endpointProvider.GetSendTransaction(), jsonTx) - if err != nil { - return "", createHTTPStatusError(code, err) - } - - response := &data.SendTransactionResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return "", err - } - if response.Error != "" { - return "", errors.New(response.Error) - } - - return response.Data.TxHash, nil -} - -// SendTransactions broadcasts the provided transactions to the network and returns the txhashes if successful -func (ep *proxy) SendTransactions(ctx context.Context, txs []*transaction.FrontendTransaction) ([]string, error) { - jsonTx, err := json.Marshal(txs) - if err != nil { - return nil, err - } - buff, code, err := ep.PostHTTP(ctx, ep.endpointProvider.GetSendMultipleTransactions(), jsonTx) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.SendTransactionsResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return ep.postProcessSendMultipleTxsResult(response) -} - -func (ep *proxy) postProcessSendMultipleTxsResult(response *data.SendTransactionsResponse) ([]string, error) { - txHashes := make([]string, 0, len(response.Data.TxsHashes)) - indexes := make([]int, 0, len(response.Data.TxsHashes)) - for index := range response.Data.TxsHashes { - indexes = append(indexes, index) - } - - sort.Slice(indexes, func(i, j int) bool { - return indexes[i] < indexes[j] - }) - - for _, idx := range indexes { - txHashes = append(txHashes, response.Data.TxsHashes[idx]) - } - - return txHashes, nil -} - -// GetTransactionStatus retrieves a transaction's status from the network -func (ep *proxy) GetTransactionStatus(ctx context.Context, hash string) (string, error) { - endpoint := ep.endpointProvider.GetTransactionStatus(hash) - buff, code, err := ep.GetHTTP(ctx, endpoint) - if err != nil || code != http.StatusOK { - return "", createHTTPStatusError(code, err) - } - - response := &data.TransactionStatus{} - err = json.Unmarshal(buff, response) - if err != nil { - return "", err - } - if response.Error != "" { - return "", errors.New(response.Error) - } - - return response.Data.Status, nil -} - -// GetTransactionInfo retrieves a transaction's details from the network -func (ep *proxy) GetTransactionInfo(ctx context.Context, hash string) (*data.TransactionInfo, error) { - return ep.getTransactionInfo(ctx, hash, false) -} - -// GetTransactionInfoWithResults retrieves a transaction's details from the network with events -func (ep *proxy) GetTransactionInfoWithResults(ctx context.Context, hash string) (*data.TransactionInfo, error) { - return ep.getTransactionInfo(ctx, hash, true) -} - -func (ep *proxy) getTransactionInfo(ctx context.Context, hash string, withResults bool) (*data.TransactionInfo, error) { - endpoint := ep.endpointProvider.GetTransactionInfo(hash) - if withResults { - endpoint += withResultsQueryParam - } - - buff, code, err := ep.GetHTTP(ctx, endpoint) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.TransactionInfo{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response, nil -} - -// RequestTransactionCost retrieves how many gas a transaction will consume -func (ep *proxy) RequestTransactionCost(ctx context.Context, tx *transaction.FrontendTransaction) (*data.TxCostResponseData, error) { - jsonTx, err := json.Marshal(tx) - if err != nil { - return nil, err - } - buff, code, err := ep.PostHTTP(ctx, ep.endpointProvider.GetCostTransaction(), jsonTx) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.ResponseTxCost{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return &response.Data, nil -} - -// GetLatestHyperBlockNonce retrieves the latest hyper block (metachain) nonce from the network -func (ep *proxy) GetLatestHyperBlockNonce(ctx context.Context) (uint64, error) { - response, err := ep.GetNetworkStatus(ctx, core.MetachainShardId) - if err != nil { - return 0, err - } - - return response.Nonce, nil -} - -// GetHyperBlockByNonce retrieves a hyper block's info by nonce from the network -func (ep *proxy) GetHyperBlockByNonce(ctx context.Context, nonce uint64) (*data.HyperBlock, error) { - endpoint := ep.endpointProvider.GetHyperBlockByNonce(nonce) - - return ep.getHyperBlock(ctx, endpoint) -} - -// GetHyperBlockByHash retrieves a hyper block's info by hash from the network -func (ep *proxy) GetHyperBlockByHash(ctx context.Context, hash string) (*data.HyperBlock, error) { - endpoint := ep.endpointProvider.GetHyperBlockByHash(hash) - - return ep.getHyperBlock(ctx, endpoint) -} - -func (ep *proxy) getHyperBlock(ctx context.Context, endpoint string) (*data.HyperBlock, error) { - buff, code, err := ep.GetHTTP(ctx, endpoint) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.HyperBlockResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return &response.Data.HyperBlock, nil -} - -// GetRawBlockByHash retrieves a raw block by hash from the network -func (ep *proxy) GetRawBlockByHash(ctx context.Context, shardId uint32, hash string) ([]byte, error) { - endpoint := ep.endpointProvider.GetRawBlockByHash(shardId, hash) - - return ep.getRawBlock(ctx, endpoint) -} - -// GetRawBlockByNonce retrieves a raw block by hash from the network -func (ep *proxy) GetRawBlockByNonce(ctx context.Context, shardId uint32, nonce uint64) ([]byte, error) { - endpoint := ep.endpointProvider.GetRawBlockByNonce(shardId, nonce) - - return ep.getRawBlock(ctx, endpoint) -} - -// GetRawStartOfEpochMetaBlock retrieves a raw block by hash from the network -func (ep *proxy) GetRawStartOfEpochMetaBlock(ctx context.Context, epoch uint32) ([]byte, error) { - endpoint := ep.endpointProvider.GetRawStartOfEpochMetaBlock(epoch) - - return ep.getRawBlock(ctx, endpoint) -} - -func (ep *proxy) getRawBlock(ctx context.Context, endpoint string) ([]byte, error) { - buff, code, err := ep.GetHTTP(ctx, endpoint) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.RawBlockRespone{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.Block, nil -} - -// GetRawMiniBlockByHash retrieves a raw block by hash from the network -func (ep *proxy) GetRawMiniBlockByHash(ctx context.Context, shardId uint32, hash string, epoch uint32) ([]byte, error) { - endpoint := ep.endpointProvider.GetRawMiniBlockByHash(shardId, hash, epoch) - - return ep.getRawMiniBlock(ctx, endpoint) -} - -func (ep *proxy) getRawMiniBlock(ctx context.Context, endpoint string) ([]byte, error) { - buff, code, err := ep.GetHTTP(ctx, endpoint) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.RawMiniBlockRespone{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.MiniBlock, nil -} - -// GetNonceAtEpochStart retrieves the start of epoch nonce from hyper block (metachain) -func (ep *proxy) GetNonceAtEpochStart(ctx context.Context, shardId uint32) (uint64, error) { - response, err := ep.GetNetworkStatus(ctx, shardId) - if err != nil { - return 0, err - } - - return response.NonceAtEpochStart, nil -} - -// GetRatingsConfig retrieves the ratings configuration from the proxy -func (ep *proxy) GetRatingsConfig(ctx context.Context) (*data.RatingsConfig, error) { - buff, code, err := ep.GetHTTP(ctx, ep.endpointProvider.GetRatingsConfig()) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.RatingsConfigResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.Config, nil -} - -// GetEnableEpochsConfig retrieves the ratings configuration from the proxy -func (ep *proxy) GetEnableEpochsConfig(ctx context.Context) (*data.EnableEpochsConfig, error) { - buff, code, err := ep.GetHTTP(ctx, ep.endpointProvider.GetEnableEpochsConfig()) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.EnableEpochsConfigResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.Config, nil -} - -// GetGenesisNodesPubKeys retrieves genesis nodes configuration from proxy -func (ep *proxy) GetGenesisNodesPubKeys(ctx context.Context) (*data.GenesisNodes, error) { - buff, code, err := ep.GetHTTP(ctx, ep.endpointProvider.GetGenesisNodesConfig()) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.GenesisNodesResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.Nodes, nil -} - -// GetValidatorsInfoByEpoch retrieves the validators info by epoch -func (ep *proxy) GetValidatorsInfoByEpoch(ctx context.Context, epoch uint32) ([]*state.ShardValidatorInfo, error) { - buff, code, err := ep.GetHTTP(ctx, ep.endpointProvider.GetValidatorsInfo(epoch)) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.ValidatorsInfoResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.ValidatorsInfo, nil -} - -// GetESDTTokenData returns the address' fungible token data -func (ep *proxy) GetESDTTokenData( - ctx context.Context, - address sdkCore.AddressHandler, - tokenIdentifier string, - queryOptions api.AccountQueryOptions, // TODO: provide AccountQueryOptions on all accounts-related getters -) (*data.ESDTFungibleTokenData, error) { - if check.IfNil(address) { - return nil, ErrNilAddress - } - if !address.IsValid() { - return nil, ErrInvalidAddress - } - - endpoint := ep.endpointProvider.GetESDTTokenData(address.AddressAsBech32String(), tokenIdentifier) - endpoint = sdkCore.BuildUrlWithAccountQueryOptions(endpoint, queryOptions) - buff, code, err := ep.GetHTTP(ctx, endpoint) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.ESDTFungibleResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.TokenData, nil -} - -// GetNFTTokenData returns the address' NFT/SFT/MetaESDT token data -func (ep *proxy) GetNFTTokenData( - ctx context.Context, - address sdkCore.AddressHandler, - tokenIdentifier string, - nonce uint64, - queryOptions api.AccountQueryOptions, // TODO: provide AccountQueryOptions on all accounts-related getters -) (*data.ESDTNFTTokenData, error) { - if check.IfNil(address) { - return nil, ErrNilAddress - } - if !address.IsValid() { - return nil, ErrInvalidAddress - } - - endpoint := ep.endpointProvider.GetNFTTokenData(address.AddressAsBech32String(), tokenIdentifier, nonce) - endpoint = sdkCore.BuildUrlWithAccountQueryOptions(endpoint, queryOptions) - buff, code, err := ep.GetHTTP(ctx, endpoint) - if err != nil || code != http.StatusOK { - return nil, createHTTPStatusError(code, err) - } - - response := &data.ESDTNFTResponse{} - err = json.Unmarshal(buff, response) - if err != nil { - return nil, err - } - if response.Error != "" { - return nil, errors.New(response.Error) - } - - return response.Data.TokenData, nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (ep *proxy) IsInterfaceNil() bool { - return ep == nil -} diff --git a/mx-sdk-go-old/blockchain/proxy_test.go b/mx-sdk-go-old/blockchain/proxy_test.go deleted file mode 100644 index debd4cbc..00000000 --- a/mx-sdk-go-old/blockchain/proxy_test.go +++ /dev/null @@ -1,992 +0,0 @@ -package blockchain - -import ( - "bytes" - "context" - "encoding/json" - "errors" - "fmt" - "io/ioutil" - "net/http" - "strings" - "sync/atomic" - "testing" - "time" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/api" - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-chain-go/config" - "github.com/multiversx/mx-chain-go/state" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - sdkHttp "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core/http" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -const testHttpURL = "https://test.org" -const networkConfigEndpoint = "network/config" -const getNetworkStatusEndpoint = "network/status/%d" -const getNodeStatusEndpoint = "node/status" - -// not a real-world valid test query option but rather a test one to check all fields are properly set -var testQueryOptions = api.AccountQueryOptions{ - OnFinalBlock: true, - OnStartOfEpoch: core.OptionalUint32{ - Value: 3737, - HasValue: true, - }, - BlockNonce: core.OptionalUint64{ - Value: 3838, - HasValue: true, - }, - BlockHash: []byte("block hash"), - BlockRootHash: []byte("block root hash"), - HintEpoch: core.OptionalUint32{ - Value: 3939, - HasValue: true, - }, -} - -type testStruct struct { - Nonce int - Name string -} - -type mockHTTPClient struct { - doCalled func(req *http.Request) (*http.Response, error) -} - -func (m *mockHTTPClient) Do(req *http.Request) (*http.Response, error) { - if m.doCalled != nil { - return m.doCalled(req) - } - - return nil, errors.New("not implemented") -} - -func createMockClientRespondingBytes(responseBytes []byte) *mockHTTPClient { - return &mockHTTPClient{ - doCalled: func(req *http.Request) (*http.Response, error) { - return &http.Response{ - Body: ioutil.NopCloser(bytes.NewReader(responseBytes)), - StatusCode: http.StatusOK, - }, nil - }, - } -} - -func createMockClientRespondingBytesWithStatus(responseBytes []byte, status int) *mockHTTPClient { - return &mockHTTPClient{ - doCalled: func(req *http.Request) (*http.Response, error) { - return &http.Response{ - Body: ioutil.NopCloser(bytes.NewReader(responseBytes)), - StatusCode: status, - }, nil - }, - } -} - -func createMockClientRespondingError(err error) *mockHTTPClient { - return &mockHTTPClient{ - doCalled: func(req *http.Request) (*http.Response, error) { - return nil, err - }, - } -} - -func createMockArgsProxy(httpClient sdkHttp.Client) ArgsProxy { - return ArgsProxy{ - ProxyURL: testHttpURL, - Client: httpClient, - SameScState: false, - ShouldBeSynced: false, - FinalityCheck: false, - AllowedDeltaToFinal: 1, - CacheExpirationTime: time.Second, - EntityType: sdkCore.ObserverNode, - } -} - -func handleRequestNetworkConfigAndStatus( - req *http.Request, - numShards uint32, - currentNonce uint64, - highestNonce uint64, -) (*http.Response, bool, error) { - - handled := false - url := req.URL.String() - var response interface{} - switch url { - case fmt.Sprintf("%s/%s", testHttpURL, networkConfigEndpoint): - handled = true - response = data.NetworkConfigResponse{ - Data: struct { - Config *data.NetworkConfig `json:"config"` - }{ - Config: &data.NetworkConfig{ - NumShardsWithoutMeta: numShards, - }, - }, - } - - case fmt.Sprintf("%s/%s", testHttpURL, getNodeStatusEndpoint): - handled = true - response = data.NodeStatusResponse{ - Data: struct { - Status *data.NetworkStatus `json:"metrics"` - }{ - Status: &data.NetworkStatus{ - Nonce: currentNonce, - HighestNonce: highestNonce, - ProbableHighestNonce: currentNonce, - ShardID: 2, - }, - }, - Error: "", - Code: "", - } - case fmt.Sprintf("%s/%s", testHttpURL, fmt.Sprintf(getNetworkStatusEndpoint, 2)): - handled = true - response = data.NetworkStatusResponse{ - Data: struct { - Status *data.NetworkStatus `json:"status"` - }{ - Status: &data.NetworkStatus{ - Nonce: currentNonce, - HighestNonce: highestNonce, - ProbableHighestNonce: currentNonce, - ShardID: 2, - }, - }, - Error: "", - Code: "", - } - } - - if !handled { - return nil, handled, nil - } - - buff, _ := json.Marshal(response) - return &http.Response{ - Body: ioutil.NopCloser(bytes.NewReader(buff)), - StatusCode: http.StatusOK, - }, handled, nil -} - -func TestNewProxy(t *testing.T) { - t.Parallel() - - t.Run("invalid time cache should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsProxy(nil) - args.CacheExpirationTime = time.Second - time.Nanosecond - proxyInstance, err := NewProxy(args) - - assert.True(t, check.IfNil(proxyInstance)) - assert.True(t, errors.Is(err, ErrInvalidCacherDuration)) - }) - t.Run("invalid nonce delta should error", func(t *testing.T) { - t.Parallel() - - args := createMockArgsProxy(nil) - args.FinalityCheck = true - args.AllowedDeltaToFinal = 0 - proxyInstance, err := NewProxy(args) - - assert.True(t, check.IfNil(proxyInstance)) - assert.True(t, errors.Is(err, ErrInvalidAllowedDeltaToFinal)) - }) - t.Run("should work with finality check", func(t *testing.T) { - t.Parallel() - - args := createMockArgsProxy(nil) - args.FinalityCheck = true - proxyInstance, err := NewProxy(args) - - assert.False(t, check.IfNil(proxyInstance)) - assert.Nil(t, err) - }) - t.Run("should work without finality check", func(t *testing.T) { - t.Parallel() - - args := createMockArgsProxy(nil) - proxyInstance, err := NewProxy(args) - - assert.False(t, check.IfNil(proxyInstance)) - assert.Nil(t, err) - }) -} - -func TestGetAccount(t *testing.T) { - t.Parallel() - - numAccountQueries := uint32(0) - httpClient := &mockHTTPClient{ - doCalled: func(req *http.Request) (*http.Response, error) { - response, handled, err := handleRequestNetworkConfigAndStatus(req, 3, 9170526, 9170526) - if handled { - return response, err - } - - account := data.AccountResponse{ - Data: struct { - Account *data.Account `json:"account"` - }{ - Account: &data.Account{ - Nonce: 37, - Balance: "38", - }, - }, - } - accountBytes, _ := json.Marshal(account) - atomic.AddUint32(&numAccountQueries, 1) - return &http.Response{ - Body: ioutil.NopCloser(bytes.NewReader(accountBytes)), - StatusCode: http.StatusOK, - }, nil - }, - } - args := createMockArgsProxy(httpClient) - args.FinalityCheck = true - proxyInstance, _ := NewProxy(args) - - address, err := data.NewAddressFromBech32String("erd1qqqqqqqqqqqqqpgqfzydqmdw7m2vazsp6u5p95yxz76t2p9rd8ss0zp9ts") - if err != nil { - assert.Error(t, err) - } - expectedErr := errors.New("expected error") - - t.Run("finality checker errors should not query", func(t *testing.T) { - proxyInstance.finalityProvider = &testsCommon.FinalityProviderStub{ - CheckShardFinalizationCalled: func(ctx context.Context, targetShardID uint32, maxNoncesDelta uint64) error { - return expectedErr - }, - } - - account, errGet := proxyInstance.GetAccount(context.Background(), address) - assert.Nil(t, account) - assert.True(t, errors.Is(errGet, expectedErr)) - assert.Equal(t, uint32(0), atomic.LoadUint32(&numAccountQueries)) - }) - t.Run("finality checker returns nil should return account", func(t *testing.T) { - finalityCheckCalled := uint32(0) - proxyInstance.finalityProvider = &testsCommon.FinalityProviderStub{ - CheckShardFinalizationCalled: func(ctx context.Context, targetShardID uint32, maxNoncesDelta uint64) error { - atomic.AddUint32(&finalityCheckCalled, 1) - return nil - }, - } - - account, errGet := proxyInstance.GetAccount(context.Background(), address) - assert.NotNil(t, account) - assert.Equal(t, uint64(37), account.Nonce) - assert.Nil(t, errGet) - assert.Equal(t, uint32(1), atomic.LoadUint32(&numAccountQueries)) - assert.Equal(t, uint32(1), atomic.LoadUint32(&finalityCheckCalled)) - }) -} - -func TestProxy_GetNetworkEconomics(t *testing.T) { - t.Parallel() - - responseBytes := []byte(`{"data":{"metrics":{"erd_dev_rewards":"0","erd_epoch_for_economics_data":263,"erd_inflation":"5869888769785838708144","erd_total_fees":"51189055176110000000","erd_total_staked_value":"9963775651405816710680128","erd_total_supply":"21556417261819025351089574","erd_total_top_up_value":"1146275808171377418645274"}},"code":"successful"}`) - httpClient := createMockClientRespondingBytes(responseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - networkEconomics, err := ep.GetNetworkEconomics(context.Background()) - require.Nil(t, err) - require.Equal(t, &data.NetworkEconomics{ - DevRewards: "0", - EpochForEconomicsData: 263, - Inflation: "5869888769785838708144", - TotalFees: "51189055176110000000", - TotalStakedValue: "9963775651405816710680128", - TotalSupply: "21556417261819025351089574", - TotalTopUpValue: "1146275808171377418645274", - }, networkEconomics) -} - -func TestProxy_RequestTransactionCost(t *testing.T) { - t.Parallel() - - responseBytes := []byte(`{"data":{"txGasUnits":24273810,"returnMessage":""},"error":"","code":"successful"}`) - httpClient := createMockClientRespondingBytes(responseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tx := &transaction.FrontendTransaction{ - Nonce: 1, - Value: "50", - Receiver: "erd1rh5ws22jxm9pe7dtvhfy6j3uttuupkepferdwtmslms5fydtrh5sx3xr8r", - Sender: "erd1rh5ws22jxm9pe7dtvhfy6j3uttuupkepferdwtmslms5fydtrh5sx3xr8r", - Data: []byte("hello"), - ChainID: "1", - Version: 1, - Options: 0, - } - txCost, err := ep.RequestTransactionCost(context.Background(), tx) - require.Nil(t, err) - require.Equal(t, &data.TxCostResponseData{ - TxCost: 24273810, - RetMessage: "", - }, txCost) -} - -func TestProxy_GetTransactionInfoWithResults(t *testing.T) { - t.Parallel() - - responseBytes := []byte(`{"data":{"transaction":{"type":"normal","nonce":22100,"round":53057,"epoch":263,"value":"0","receiver":"erd1e6c9vcga5lyhwdu9nr9lya4ujz2r5w2egsfjp0lslrgv5dsccpdsmre6va","sender":"erd1e6c9vcga5lyhwdu9nr9lya4ujz2r5w2egsfjp0lslrgv5dsccpdsmre6va","gasPrice":1000000001,"gasLimit":19210000,"data":"RVNEVE5GVFRyYW5zZmVyQDU5NTk1OTQ1MzY0MzM5MkQzMDM5MzQzOTMwMzBAMDFAMDFAMDAwMDAwMDAwMDAwMDAwMDA1MDA1QzgzRTBDNDJFRENFMzk0RjQwQjI0RDI5RDI5OEIwMjQ5QzQxRjAyODk3NEA2Njc1NkU2NEA1N0M1MDZBMTlEOEVBRTE4Mjk0MDNBOEYzRjU0RTFGMDM3OUYzODE1N0ZDRjUzRDVCQ0E2RjIzN0U0QTRDRjYxQDFjMjA=","signature":"37922ccb13d46857d819cd618f1fd8e76777e14f1c16a54eeedd55c67d5883db0e3a91cd0ff0f541e2c3d7347488b4020c0ba4765c9bc02ea0ae1c3f6db1ec05","sourceShard":1,"destinationShard":1,"blockNonce":53052,"blockHash":"4a63312d1bfe48aa516185d12abff5daf6343fce1f298db51291168cf97a790c","notarizedAtSourceInMetaNonce":53053,"NotarizedAtSourceInMetaHash":"342d189e36ef5cbf9f8b3f2cb5bf2cb8e2260062c6acdf89ce5faacd99f4dbcc","notarizedAtDestinationInMetaNonce":53053,"notarizedAtDestinationInMetaHash":"342d189e36ef5cbf9f8b3f2cb5bf2cb8e2260062c6acdf89ce5faacd99f4dbcc","miniblockType":"TxBlock","miniblockHash":"0c659cce5e2653522cc0e3cf35571264522035a7aef4ffa5244d1ed3d8bc01a8","status":"success","hyperblockNonce":53053,"hyperblockHash":"342d189e36ef5cbf9f8b3f2cb5bf2cb8e2260062c6acdf89ce5faacd99f4dbcc","smartContractResults":[{"hash":"5ab14959aaeb3a20d95ec6bbefc03f251732d9368711c55c63d3811e70903f4e","nonce":0,"value":0,"receiver":"erd1qqqqqqqqqqqqqpgqtjp7p3pwmn3efaqtynff62vtqfyug8cz396qs5vnsy","sender":"erd1e6c9vcga5lyhwdu9nr9lya4ujz2r5w2egsfjp0lslrgv5dsccpdsmre6va","data":"ESDTNFTTransfer@595959453643392d303934393030@01@01@080112020001226f08011204746573741a20ceb056611da7c977378598cbf276bc90943a3959441320bff0f8d0ca3618c05b20e8072a206161616161616161616161616161616161616161616161616161616161616161320461626261321268747470733a2f2f656c726f6e642e636f6d3a0474657374@66756e64@57c506a19d8eae1829403a8f3f54e1f0379f38157fcf53d5bca6f237e4a4cf61@1c20","prevTxHash":"c7fadeaccce0673bd6ce3a1f472f7cc1beef20c0b3131cfa9866cd5075816639","originalTxHash":"c7fadeaccce0673bd6ce3a1f472f7cc1beef20c0b3131cfa9866cd5075816639","gasLimit":18250000,"gasPrice":1000000001,"callType":0},{"hash":"f337d2705d2b644f9d8f75cf270e879b6ada51c4c54009e94305adf368d1adbc","nonce":1,"value":102793170000000,"receiver":"erd1e6c9vcga5lyhwdu9nr9lya4ujz2r5w2egsfjp0lslrgv5dsccpdsmre6va","sender":"erd1qqqqqqqqqqqqqpgqtjp7p3pwmn3efaqtynff62vtqfyug8cz396qs5vnsy","data":"@6f6b","prevTxHash":"5ab14959aaeb3a20d95ec6bbefc03f251732d9368711c55c63d3811e70903f4e","originalTxHash":"c7fadeaccce0673bd6ce3a1f472f7cc1beef20c0b3131cfa9866cd5075816639","gasLimit":0,"gasPrice":1000000001,"callType":0}]}},"error":"","code":"successful"}`) - httpClient := createMockClientRespondingBytes(responseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tx, err := ep.GetTransactionInfoWithResults(context.Background(), "a40e5a6af4efe221608297a73459211756ab88b96896e6e331842807a138f343") - require.Nil(t, err) - - txBytes, _ := json.MarshalIndent(tx, "", " ") - fmt.Println(string(txBytes)) -} - -func TestProxy_ExecuteVmQuery(t *testing.T) { - t.Parallel() - - responseBytes := []byte(`{"data":{"data":{"returnData":["MC41LjU="],"returnCode":"ok","returnMessage":"","gasRemaining":18446744073685949187,"gasRefund":0,"outputAccounts":{"0000000000000000050033bb65a91ee17ab84c6f8a01846ef8644e15fb76696a":{"address":"erd1qqqqqqqqqqqqqpgqxwakt2g7u9atsnr03gqcgmhcv38pt7mkd94q6shuwt","nonce":0,"balance":null,"balanceDelta":0,"storageUpdates":{},"code":null,"codeMetaData":null,"outputTransfers":[],"callType":0}},"deletedAccounts":[],"touchedAccounts":[],"logs":[]}},"error":"","code":"successful"}`) - t.Run("no finality check", func(t *testing.T) { - httpClient := createMockClientRespondingBytes(responseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - response, err := ep.ExecuteVMQuery(context.Background(), &data.VmValueRequest{ - Address: "erd1qqqqqqqqqqqqqpgqxwakt2g7u9atsnr03gqcgmhcv38pt7mkd94q6shuwt", - FuncName: "version", - CallerAddr: "erd1qqqqqqqqqqqqqpgqxwakt2g7u9atsnr03gqcgmhcv38pt7mkd94q6shuwt", - }) - require.Nil(t, err) - require.Equal(t, "0.5.5", string(response.Data.ReturnData[0])) - }) - t.Run("with finality check, chain is stuck", func(t *testing.T) { - httpClient := &mockHTTPClient{ - doCalled: func(req *http.Request) (*http.Response, error) { - response, handled, err := handleRequestNetworkConfigAndStatus(req, 3, 9170528, 9170526) - if handled { - return response, err - } - - assert.Fail(t, "should have not reached this point in which the VM query is actually requested") - return nil, nil - }, - } - args := createMockArgsProxy(httpClient) - args.FinalityCheck = true - ep, _ := NewProxy(args) - - response, err := ep.ExecuteVMQuery(context.Background(), &data.VmValueRequest{ - Address: "erd1qqqqqqqqqqqqqpgqxwakt2g7u9atsnr03gqcgmhcv38pt7mkd94q6shuwt", - FuncName: "version", - CallerAddr: "erd1qqqqqqqqqqqqqpgqxwakt2g7u9atsnr03gqcgmhcv38pt7mkd94q6shuwt", - }) - - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "shardID 2 is stuck")) - assert.Nil(t, response) - }) - t.Run("with finality check, invalid address", func(t *testing.T) { - httpClient := &mockHTTPClient{ - doCalled: func(req *http.Request) (*http.Response, error) { - response, handled, err := handleRequestNetworkConfigAndStatus(req, 3, 9170526, 9170526) - if handled { - return response, err - } - - assert.Fail(t, "should have not reached this point in which the VM query is actually requested") - return nil, nil - }, - } - args := createMockArgsProxy(httpClient) - args.FinalityCheck = true - ep, _ := NewProxy(args) - - response, err := ep.ExecuteVMQuery(context.Background(), &data.VmValueRequest{ - Address: "invalid", - FuncName: "version", - CallerAddr: "erd1qqqqqqqqqqqqqpgqxwakt2g7u9atsnr03gqcgmhcv38pt7mkd94q6shuwt", - }) - - assert.NotNil(t, err) - assert.True(t, strings.Contains(err.Error(), "invalid bech32 string length 7")) - assert.Nil(t, response) - }) - t.Run("with finality check, should work", func(t *testing.T) { - wasHandled := false - httpClient := &mockHTTPClient{ - doCalled: func(req *http.Request) (*http.Response, error) { - response, handled, err := handleRequestNetworkConfigAndStatus(req, 3, 9170526, 9170525) - if handled { - wasHandled = true - return response, err - } - - return &http.Response{ - Body: ioutil.NopCloser(bytes.NewReader(responseBytes)), - StatusCode: http.StatusOK, - }, nil - }, - } - args := createMockArgsProxy(httpClient) - args.FinalityCheck = true - ep, _ := NewProxy(args) - - response, err := ep.ExecuteVMQuery(context.Background(), &data.VmValueRequest{ - Address: "erd1qqqqqqqqqqqqqpgqxwakt2g7u9atsnr03gqcgmhcv38pt7mkd94q6shuwt", - FuncName: "version", - CallerAddr: "erd1qqqqqqqqqqqqqpgqxwakt2g7u9atsnr03gqcgmhcv38pt7mkd94q6shuwt", - }) - - assert.True(t, wasHandled) - require.Nil(t, err) - require.Equal(t, "0.5.5", string(response.Data.ReturnData[0])) - }) -} - -func TestProxy_GetRawBlockByHash(t *testing.T) { - t.Parallel() - - expectedTs := &testStruct{ - Nonce: 1, - Name: "a test struct to be sent and received", - } - responseBytes, _ := json.Marshal(expectedTs) - rawBlockData := &data.RawBlockRespone{ - Data: struct { - Block []byte "json:\"block\"" - }{ - Block: responseBytes, - }, - Error: "", - Code: "200", - } - rawBlockDataBytes, _ := json.Marshal(rawBlockData) - - httpClient := createMockClientRespondingBytes(rawBlockDataBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - response, err := ep.GetRawBlockByHash(context.Background(), 0, "aaaa") - require.Nil(t, err) - - ts := &testStruct{} - err = json.Unmarshal(response, ts) - require.Nil(t, err) - require.Equal(t, expectedTs, ts) -} - -func TestProxy_GetRawBlockByNonce(t *testing.T) { - t.Parallel() - - expectedTs := &testStruct{ - Nonce: 10, - Name: "a test struct to be sent and received", - } - responseBytes, _ := json.Marshal(expectedTs) - rawBlockData := &data.RawBlockRespone{ - Data: struct { - Block []byte "json:\"block\"" - }{ - Block: responseBytes, - }, - } - rawBlockDataBytes, _ := json.Marshal(rawBlockData) - - httpClient := createMockClientRespondingBytes(rawBlockDataBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - response, err := ep.GetRawBlockByNonce(context.Background(), 0, 10) - require.Nil(t, err) - - ts := &testStruct{} - err = json.Unmarshal(response, ts) - require.Nil(t, err) - require.Equal(t, expectedTs, ts) -} - -func TestProxy_GetRawMiniBlockByHash(t *testing.T) { - t.Parallel() - - expectedTs := &testStruct{ - Nonce: 10, - Name: "a test struct to be sent and received", - } - responseBytes, _ := json.Marshal(expectedTs) - rawBlockData := &data.RawMiniBlockRespone{ - Data: struct { - MiniBlock []byte "json:\"miniblock\"" - }{ - MiniBlock: responseBytes, - }, - } - rawBlockDataBytes, _ := json.Marshal(rawBlockData) - - httpClient := createMockClientRespondingBytes(rawBlockDataBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - response, err := ep.GetRawMiniBlockByHash(context.Background(), 0, "aaaa", 1) - require.Nil(t, err) - - ts := &testStruct{} - err = json.Unmarshal(response, ts) - require.Nil(t, err) - require.Equal(t, expectedTs, ts) -} - -func TestProxy_GetNonceAtEpochStart(t *testing.T) { - t.Parallel() - - expectedNonce := uint64(2) - expectedNetworkStatus := &data.NetworkStatus{ - NonceAtEpochStart: expectedNonce, - ShardID: core.MetachainShardId, - } - statusResponse := &data.NodeStatusResponse{ - Data: struct { - Status *data.NetworkStatus "json:\"metrics\"" - }{ - Status: expectedNetworkStatus, - }, - } - statusResponseBytes, _ := json.Marshal(statusResponse) - - httpClient := createMockClientRespondingBytes(statusResponseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - response, err := ep.GetNonceAtEpochStart(context.Background(), core.MetachainShardId) - require.Nil(t, err) - - require.Equal(t, expectedNonce, response) -} - -func TestProxy_GetRatingsConfig(t *testing.T) { - t.Parallel() - - expectedRatingsConfig := &data.RatingsConfig{ - GeneralMaxRating: 0, - GeneralMinRating: 0, - } - ratingsResponse := &data.RatingsConfigResponse{ - Data: struct { - Config *data.RatingsConfig "json:\"config\"" - }{ - Config: expectedRatingsConfig, - }, - } - ratingsResponseBytes, _ := json.Marshal(ratingsResponse) - - httpClient := createMockClientRespondingBytes(ratingsResponseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - response, err := ep.GetRatingsConfig(context.Background()) - require.Nil(t, err) - - require.Equal(t, expectedRatingsConfig, response) -} - -func TestProxy_GetEnableEpochsConfig(t *testing.T) { - t.Parallel() - - enableEpochs := config.EnableEpochs{ - BalanceWaitingListsEnableEpoch: 1, - WaitingListFixEnableEpoch: 1, - } - - expectedEnableEpochsConfig := &data.EnableEpochsConfig{ - EnableEpochs: enableEpochs, - } - enableEpochsResponse := &data.EnableEpochsConfigResponse{ - Data: struct { - Config *data.EnableEpochsConfig "json:\"enableEpochs\"" - }{ - Config: expectedEnableEpochsConfig}, - } - enableEpochsResponseBytes, _ := json.Marshal(enableEpochsResponse) - - httpClient := createMockClientRespondingBytes(enableEpochsResponseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - response, err := ep.GetEnableEpochsConfig(context.Background()) - require.Nil(t, err) - - require.Equal(t, expectedEnableEpochsConfig, response) -} - -func TestProxy_GetGenesisNodesPubKeys(t *testing.T) { - t.Parallel() - - expectedGenesisNodes := &data.GenesisNodes{ - Eligible: map[uint32][]string{ - 0: {"pubkey1"}, - }, - } - genesisNodesResponse := &data.GenesisNodesResponse{ - Data: struct { - Nodes *data.GenesisNodes "json:\"nodes\"" - }{ - Nodes: expectedGenesisNodes}, - } - genesisNodesResponseBytes, _ := json.Marshal(genesisNodesResponse) - - httpClient := createMockClientRespondingBytes(genesisNodesResponseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - response, err := ep.GetGenesisNodesPubKeys(context.Background()) - require.Nil(t, err) - - require.Equal(t, expectedGenesisNodes, response) -} - -func TestProxy_GetValidatorsInfoByEpoch(t *testing.T) { - t.Parallel() - - expectedValidatorsInfo := []*state.ShardValidatorInfo{ - { - PublicKey: []byte("pubkey1"), - ShardId: 1, - }, - } - validatorsInfoResponse := &data.ValidatorsInfoResponse{ - Data: struct { - ValidatorsInfo []*state.ShardValidatorInfo "json:\"validators\"" - }{ - ValidatorsInfo: expectedValidatorsInfo, - }, - } - validatorsInfoResponseBytes, _ := json.Marshal(validatorsInfoResponse) - - httpClient := createMockClientRespondingBytes(validatorsInfoResponseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - response, err := ep.GetValidatorsInfoByEpoch(context.Background(), 1) - require.Nil(t, err) - - require.Equal(t, expectedValidatorsInfo, response) -} - -func TestElrondProxy_GetESDTTokenData(t *testing.T) { - t.Parallel() - - token := "TKN-001122" - expectedErr := errors.New("expected error") - validAddress := data.NewAddressFromBytes(bytes.Repeat([]byte("1"), 32)) - emptyQueryOptions := api.AccountQueryOptions{} - t.Run("nil address, should error", func(t *testing.T) { - t.Parallel() - - httpClient := createMockClientRespondingBytes(make([]byte, 0)) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetESDTTokenData(context.Background(), nil, token, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.Equal(t, ErrNilAddress, err) - }) - t.Run("invalid address, should error", func(t *testing.T) { - t.Parallel() - - httpClient := createMockClientRespondingBytes(make([]byte, 0)) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - address := data.NewAddressFromBytes([]byte("invalid")) - tokenData, err := ep.GetESDTTokenData(context.Background(), address, token, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.Equal(t, ErrInvalidAddress, err) - }) - t.Run("http client errors, should error", func(t *testing.T) { - t.Parallel() - - httpClient := createMockClientRespondingError(expectedErr) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetESDTTokenData(context.Background(), validAddress, token, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.ErrorIs(t, err, expectedErr) - }) - t.Run("invalid status, should error", func(t *testing.T) { - t.Parallel() - - httpClient := createMockClientRespondingBytesWithStatus(make([]byte, 0), http.StatusNotFound) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetESDTTokenData(context.Background(), validAddress, token, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.ErrorIs(t, err, ErrHTTPStatusCodeIsNotOK) - }) - t.Run("invalid response bytes, should error", func(t *testing.T) { - t.Parallel() - - httpClient := createMockClientRespondingBytes([]byte("invalid json")) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetESDTTokenData(context.Background(), validAddress, token, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.NotNil(t, err) - }) - t.Run("response returned error, should error", func(t *testing.T) { - t.Parallel() - - response := &data.ESDTFungibleResponse{ - Error: expectedErr.Error(), - } - responseBytes, _ := json.Marshal(response) - - httpClient := createMockClientRespondingBytes(responseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetESDTTokenData(context.Background(), validAddress, token, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.NotNil(t, err) - assert.Equal(t, expectedErr.Error(), err.Error()) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - responseTokenData := &data.ESDTFungibleTokenData{ - TokenIdentifier: "identifier", - Balance: "balance", - Properties: "properties", - } - response := &data.ESDTFungibleResponse{ - Data: struct { - TokenData *data.ESDTFungibleTokenData `json:"tokenData"` - }{ - TokenData: responseTokenData, - }, - } - responseBytes, _ := json.Marshal(response) - - httpClient := createMockClientRespondingBytes(responseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetESDTTokenData(context.Background(), validAddress, token, emptyQueryOptions) - assert.NotNil(t, tokenData) - assert.Nil(t, err) - assert.Equal(t, responseTokenData, tokenData) - assert.False(t, responseTokenData == tokenData) // pointer testing - }) - t.Run("should work with query options", func(t *testing.T) { - t.Parallel() - - responseTokenData := &data.ESDTFungibleTokenData{ - TokenIdentifier: "identifier", - Balance: "balance", - Properties: "properties", - } - response := &data.ESDTFungibleResponse{ - Data: struct { - TokenData *data.ESDTFungibleTokenData `json:"tokenData"` - }{ - TokenData: responseTokenData, - }, - } - responseBytes, _ := json.Marshal(response) - expectedSuffix := "?blockHash=626c6f636b2068617368&blockNonce=3838&blockRootHash=626c6f636b20726f6f742068617368&hintEpoch=3939&onFinalBlock=true&onStartOfEpoch=3737" - - httpClient := &mockHTTPClient{ - doCalled: func(req *http.Request) (*http.Response, error) { - assert.True(t, strings.HasSuffix(req.URL.String(), expectedSuffix)) - - return &http.Response{ - Body: ioutil.NopCloser(bytes.NewReader(responseBytes)), - StatusCode: http.StatusOK, - }, nil - }, - } - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetESDTTokenData(context.Background(), validAddress, token, testQueryOptions) - assert.NotNil(t, tokenData) - assert.Nil(t, err) - assert.Equal(t, responseTokenData, tokenData) - assert.False(t, responseTokenData == tokenData) // pointer testing - }) -} - -func TestElrondProxy_GetNFTTokenData(t *testing.T) { - t.Parallel() - - token := "TKN-001122" - nonce := uint64(37) - expectedErr := errors.New("expected error") - validAddress := data.NewAddressFromBytes(bytes.Repeat([]byte("1"), 32)) - emptyQueryOptions := api.AccountQueryOptions{} - t.Run("nil address, should error", func(t *testing.T) { - t.Parallel() - - httpClient := createMockClientRespondingBytes(make([]byte, 0)) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetNFTTokenData(context.Background(), nil, token, nonce, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.Equal(t, ErrNilAddress, err) - }) - t.Run("invalid address, should error", func(t *testing.T) { - t.Parallel() - - httpClient := createMockClientRespondingBytes(make([]byte, 0)) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - address := data.NewAddressFromBytes([]byte("invalid")) - tokenData, err := ep.GetNFTTokenData(context.Background(), address, token, nonce, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.Equal(t, ErrInvalidAddress, err) - }) - t.Run("http client errors, should error", func(t *testing.T) { - t.Parallel() - - httpClient := createMockClientRespondingError(expectedErr) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetNFTTokenData(context.Background(), validAddress, token, nonce, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.ErrorIs(t, err, expectedErr) - }) - t.Run("invalid status, should error", func(t *testing.T) { - t.Parallel() - - httpClient := createMockClientRespondingBytesWithStatus(make([]byte, 0), http.StatusNotFound) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetNFTTokenData(context.Background(), validAddress, token, nonce, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.ErrorIs(t, err, ErrHTTPStatusCodeIsNotOK) - }) - t.Run("invalid response bytes, should error", func(t *testing.T) { - t.Parallel() - - httpClient := createMockClientRespondingBytes([]byte("invalid json")) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetNFTTokenData(context.Background(), validAddress, token, nonce, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.NotNil(t, err) - }) - t.Run("response returned error, should error", func(t *testing.T) { - t.Parallel() - - response := &data.ESDTNFTResponse{ - Error: expectedErr.Error(), - } - responseBytes, _ := json.Marshal(response) - - httpClient := createMockClientRespondingBytes(responseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetNFTTokenData(context.Background(), validAddress, token, nonce, emptyQueryOptions) - assert.Nil(t, tokenData) - assert.NotNil(t, err) - assert.Equal(t, expectedErr.Error(), err.Error()) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - responseTokenData := &data.ESDTNFTTokenData{ - TokenIdentifier: "identifier", - Balance: "balance", - Properties: "properties", - Name: "name", - Nonce: nonce, - Creator: "creator", - Royalties: "royalties", - Hash: []byte("hash"), - URIs: [][]byte{[]byte("uri1"), []byte("uri2")}, - Attributes: []byte("attributes"), - } - response := &data.ESDTNFTResponse{ - Data: struct { - TokenData *data.ESDTNFTTokenData `json:"tokenData"` - }{ - TokenData: responseTokenData, - }, - } - responseBytes, _ := json.Marshal(response) - - httpClient := createMockClientRespondingBytes(responseBytes) - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetNFTTokenData(context.Background(), validAddress, token, nonce, emptyQueryOptions) - assert.NotNil(t, tokenData) - assert.Nil(t, err) - assert.Equal(t, responseTokenData, tokenData) - assert.False(t, responseTokenData == tokenData) // pointer testing - }) - t.Run("should work with query options", func(t *testing.T) { - t.Parallel() - - responseTokenData := &data.ESDTNFTTokenData{ - TokenIdentifier: "identifier", - Balance: "balance", - Properties: "properties", - Name: "name", - Nonce: nonce, - Creator: "creator", - Royalties: "royalties", - Hash: []byte("hash"), - URIs: [][]byte{[]byte("uri1"), []byte("uri2")}, - Attributes: []byte("attributes"), - } - response := &data.ESDTNFTResponse{ - Data: struct { - TokenData *data.ESDTNFTTokenData `json:"tokenData"` - }{ - TokenData: responseTokenData, - }, - } - responseBytes, _ := json.Marshal(response) - expectedSuffix := "?blockHash=626c6f636b2068617368&blockNonce=3838&blockRootHash=626c6f636b20726f6f742068617368&hintEpoch=3939&onFinalBlock=true&onStartOfEpoch=3737" - - httpClient := &mockHTTPClient{ - doCalled: func(req *http.Request) (*http.Response, error) { - assert.True(t, strings.HasSuffix(req.URL.String(), expectedSuffix)) - - return &http.Response{ - Body: ioutil.NopCloser(bytes.NewReader(responseBytes)), - StatusCode: http.StatusOK, - }, nil - }, - } - args := createMockArgsProxy(httpClient) - ep, _ := NewProxy(args) - - tokenData, err := ep.GetNFTTokenData(context.Background(), validAddress, token, nonce, testQueryOptions) - assert.NotNil(t, tokenData) - assert.Nil(t, err) - assert.Equal(t, responseTokenData, tokenData) - assert.False(t, responseTokenData == tokenData) // pointer testing - }) -} diff --git a/mx-sdk-go-old/blockchain/queryResponseError.go b/mx-sdk-go-old/blockchain/queryResponseError.go deleted file mode 100644 index 61ceeca9..00000000 --- a/mx-sdk-go-old/blockchain/queryResponseError.go +++ /dev/null @@ -1,29 +0,0 @@ -package blockchain - -import "fmt" - -// queryResponseError represents the query response error DTO struct -type queryResponseError struct { - code string - message string - function string - arguments []string - address string -} - -// NewQueryResponseError creates a new instance of queryResponseError -func NewQueryResponseError(code string, message string, function string, address string, arguments ...string) *queryResponseError { - return &queryResponseError{ - code: code, - message: message, - function: function, - arguments: arguments, - address: address, - } -} - -// Error returns the error string -func (err *queryResponseError) Error() string { - return fmt.Sprintf("got response code '%s' and message '%s' while querying function '%s' with arguments %v "+ - "and address %s", err.code, err.message, err.function, err.arguments, err.address) -} diff --git a/mx-sdk-go-old/blockchain/queryResponseError_test.go b/mx-sdk-go-old/blockchain/queryResponseError_test.go deleted file mode 100644 index 6f82585d..00000000 --- a/mx-sdk-go-old/blockchain/queryResponseError_test.go +++ /dev/null @@ -1,16 +0,0 @@ -package blockchain - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestNewQueryResponseError(t *testing.T) { - t.Parallel() - - err := NewQueryResponseError("code", "message", "function", "address", "arg1", "arg2") - expectedErrorString := "got response code 'code' and message 'message' while querying function 'function' with arguments [arg1 arg2] and address address" - - assert.Equal(t, expectedErrorString, err.Error()) -} diff --git a/mx-sdk-go-old/blockchain/shardCoordinator.go b/mx-sdk-go-old/blockchain/shardCoordinator.go deleted file mode 100644 index 767827c2..00000000 --- a/mx-sdk-go-old/blockchain/shardCoordinator.go +++ /dev/null @@ -1,40 +0,0 @@ -package blockchain - -import ( - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-go/sharding" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -type shardCoordinator struct { - coordinator sharding.Coordinator -} - -// NewShardCoordinator returns a shard coordinator instance that is able to execute sharding-related operations -func NewShardCoordinator(numOfShardsWithoutMeta uint32, currentShard uint32) (*shardCoordinator, error) { - coord, err := sharding.NewMultiShardCoordinator(numOfShardsWithoutMeta, currentShard) - if err != nil { - return nil, err - } - - return &shardCoordinator{ - coordinator: coord, - }, nil -} - -// ComputeShardId computes the shard ID of a provided address -func (sc *shardCoordinator) ComputeShardId(address sdkCore.AddressHandler) (uint32, error) { - if check.IfNil(address) { - return 0, ErrNilAddress - } - if len(address.AddressBytes()) == 0 { - return 0, ErrInvalidAddress - } - - return sc.coordinator.ComputeId(address.AddressBytes()), nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (sc *shardCoordinator) IsInterfaceNil() bool { - return sc == nil -} diff --git a/mx-sdk-go-old/blockchain/vmQueryGetter.go b/mx-sdk-go-old/blockchain/vmQueryGetter.go deleted file mode 100644 index 48ac590e..00000000 --- a/mx-sdk-go-old/blockchain/vmQueryGetter.go +++ /dev/null @@ -1,176 +0,0 @@ -package blockchain - -import ( - "context" - "fmt" - "math/big" - "strconv" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -const ( - okCodeAfterExecution = "ok" - internalError = "internal error" -) - -// ArgsVmQueryGetter is the arguments DTO used in the NewvmQueryGetter constructor -type ArgsVmQueryGetter struct { - Proxy Proxy - Log logger.Logger -} - -type vmQueryGetter struct { - proxy Proxy - log logger.Logger -} - -// NewVmQueryGetter creates a new instance of the vmQueryGetter type -func NewVmQueryGetter(args ArgsVmQueryGetter) (*vmQueryGetter, error) { - if check.IfNil(args.Proxy) { - return nil, ErrNilProxy - } - if check.IfNil(args.Log) { - return nil, core.ErrNilLogger - } - - return &vmQueryGetter{ - proxy: args.Proxy, - log: args.Log, - }, nil -} - -// ExecuteQueryReturningBytes will try to execute the provided query and return the result as slice of byte slices -func (dataGetter *vmQueryGetter) ExecuteQueryReturningBytes(ctx context.Context, request *data.VmValueRequest) ([][]byte, error) { - if request == nil { - return nil, ErrNilRequest - } - - response, err := dataGetter.proxy.ExecuteVMQuery(ctx, request) - if err != nil { - return nil, err - } - dataGetter.log.Debug("executed VMQuery", "FuncName", request.FuncName, - "Args", request.Args, "SC address", request.Address, "Caller", request.CallerAddr, - "response.ReturnCode", response.Data.ReturnCode, - "response.ReturnData", fmt.Sprintf("%+v", response.Data.ReturnData)) - if response.Data.ReturnCode != okCodeAfterExecution { - return nil, NewQueryResponseError( - response.Data.ReturnCode, - response.Data.ReturnMessage, - request.FuncName, - request.Address, - request.Args..., - ) - } - return response.Data.ReturnData, nil -} - -// ExecuteQueryReturningBool will try to execute the provided query and return the result as bool -func (dataGetter *vmQueryGetter) ExecuteQueryReturningBool(ctx context.Context, request *data.VmValueRequest) (bool, error) { - response, err := dataGetter.ExecuteQueryReturningBytes(ctx, request) - if err != nil { - return false, err - } - - if len(response) == 0 { - return false, nil - } - - return dataGetter.parseBool(response[0], request.FuncName, request.Address, request.Args...) -} - -func (dataGetter *vmQueryGetter) parseBool(buff []byte, funcName string, address string, args ...string) (bool, error) { - if len(buff) == 0 { - return false, nil - } - - result, err := strconv.ParseBool(fmt.Sprintf("%d", buff[0])) - if err != nil { - return false, NewQueryResponseError( - internalError, - fmt.Sprintf("error converting the received bytes to bool, %s", err.Error()), - funcName, - address, - args..., - ) - } - - return result, nil -} - -// ExecuteQueryReturningUint64 will try to execute the provided query and return the result as uint64 -func (dataGetter *vmQueryGetter) ExecuteQueryReturningUint64(ctx context.Context, request *data.VmValueRequest) (uint64, error) { - response, err := dataGetter.ExecuteQueryReturningBytes(ctx, request) - if err != nil { - return 0, err - } - - if len(response) == 0 { - return 0, nil - } - if len(response[0]) == 0 { - return 0, nil - } - - num, err := parseUInt64FromByteSlice(response[0]) - if err != nil { - return 0, NewQueryResponseError( - internalError, - err.Error(), - request.FuncName, - request.Address, - request.Args..., - ) - } - - return num, nil -} - -func parseUInt64FromByteSlice(bytes []byte) (uint64, error) { - num := big.NewInt(0).SetBytes(bytes) - if !num.IsUint64() { - return 0, ErrNotUint64Bytes - } - - return num.Uint64(), nil -} - -// ExecuteQueryFromBuilder will try to execute the provided query and return the result as slice of byte slices -func (dataGetter *vmQueryGetter) ExecuteQueryFromBuilder(ctx context.Context, builder builders.VMQueryBuilder) ([][]byte, error) { - vmValuesRequest, err := builder.ToVmValueRequest() - if err != nil { - return nil, err - } - - return dataGetter.ExecuteQueryReturningBytes(ctx, vmValuesRequest) -} - -// ExecuteQueryUint64FromBuilder will try to execute the provided query and return the result as uint64 -func (dataGetter *vmQueryGetter) ExecuteQueryUint64FromBuilder(ctx context.Context, builder builders.VMQueryBuilder) (uint64, error) { - vmValuesRequest, err := builder.ToVmValueRequest() - if err != nil { - return 0, err - } - - return dataGetter.ExecuteQueryReturningUint64(ctx, vmValuesRequest) -} - -// ExecuteQueryBoolFromBuilder will try to execute the provided query and return the result as bool -func (dataGetter *vmQueryGetter) ExecuteQueryBoolFromBuilder(ctx context.Context, builder builders.VMQueryBuilder) (bool, error) { - vmValuesRequest, err := builder.ToVmValueRequest() - if err != nil { - return false, err - } - - return dataGetter.ExecuteQueryReturningBool(ctx, vmValuesRequest) -} - -// IsInterfaceNil returns true if there is no value under the interface -func (dataGetter *vmQueryGetter) IsInterfaceNil() bool { - return dataGetter == nil -} diff --git a/mx-sdk-go-old/blockchain/vmQueryGetter_test.go b/mx-sdk-go-old/blockchain/vmQueryGetter_test.go deleted file mode 100644 index bc8dd0dd..00000000 --- a/mx-sdk-go-old/blockchain/vmQueryGetter_test.go +++ /dev/null @@ -1,346 +0,0 @@ -package blockchain - -import ( - "context" - "errors" - "strings" - "testing" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/vm" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" -) - -const ( - returnCode = "return code" - returnMessage = "return message" - calledFunction = "called function" -) - -var calledArgs = []string{"6172677331", "6172677332"} -var testSCAddressBech32 = "erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht" - -func createMockArgsVmQueryGetter() ArgsVmQueryGetter { - args := ArgsVmQueryGetter{ - Log: logger.GetOrCreate("test"), - Proxy: &testsCommon.ProxyStub{}, - } - - return args -} - -func createMockProxy(returningBytes [][]byte) *testsCommon.ProxyStub { - return &testsCommon.ProxyStub{ - ExecuteVMQueryCalled: func(ctx context.Context, vmRequest *data.VmValueRequest) (*data.VmValuesResponseData, error) { - return &data.VmValuesResponseData{ - Data: &vm.VMOutputApi{ - ReturnCode: okCodeAfterExecution, - ReturnData: returningBytes, - }, - }, nil - }, - } -} - -func TestNewVmQueryGetter(t *testing.T) { - t.Parallel() - - t.Run("nil proxy", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = nil - - dg, err := NewVmQueryGetter(args) - assert.Equal(t, ErrNilProxy, err) - assert.True(t, check.IfNil(dg)) - }) - t.Run("nil logger", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Log = nil - - dg, err := NewVmQueryGetter(args) - assert.Equal(t, core.ErrNilLogger, err) - assert.True(t, check.IfNil(dg)) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - dg, err := NewVmQueryGetter(args) - assert.Nil(t, err) - assert.False(t, check.IfNil(dg)) - }) -} - -func TestNewVmQueryGetter_ExecuteQueryReturningBytes(t *testing.T) { - t.Parallel() - - testSCAddress, _ := data.NewAddressFromBech32String(testSCAddressBech32) - t.Run("nil vm ", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryReturningBytes(context.Background(), nil) - assert.Nil(t, result) - assert.Equal(t, ErrNilRequest, err) - }) - t.Run("proxy errors", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - args := createMockArgsVmQueryGetter() - args.Proxy = &testsCommon.ProxyStub{ - ExecuteVMQueryCalled: func(ctx context.Context, vmRequest *data.VmValueRequest) (*data.VmValuesResponseData, error) { - return nil, expectedErr - }, - } - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryReturningBytes(context.Background(), &data.VmValueRequest{}) - assert.Nil(t, result) - assert.Equal(t, expectedErr, err) - }) - - builder := builders.NewVMQueryBuilder() - builder. - Address(testSCAddress). - Function(calledFunction). - ArgHexString(calledArgs[0]). - ArgHexString(calledArgs[1]) - t.Run("return code not ok", func(t *testing.T) { - t.Parallel() - - expectedErr := NewQueryResponseError(returnCode, returnMessage, calledFunction, testSCAddressBech32, calledArgs...) - args := createMockArgsVmQueryGetter() - args.Proxy = &testsCommon.ProxyStub{ - ExecuteVMQueryCalled: func(ctx context.Context, vmRequest *data.VmValueRequest) (*data.VmValuesResponseData, error) { - return &data.VmValuesResponseData{ - Data: &vm.VMOutputApi{ - ReturnData: nil, - ReturnCode: returnCode, - ReturnMessage: returnMessage, - GasRemaining: 0, - GasRefund: nil, - OutputAccounts: nil, - DeletedAccounts: nil, - TouchedAccounts: nil, - Logs: nil, - }, - }, nil - }, - } - - dg, _ := NewVmQueryGetter(args) - result, err := dg.ExecuteQueryFromBuilder(context.Background(), builder) - assert.Equal(t, expectedErr, err) - assert.Nil(t, result) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - retData := [][]byte{[]byte("response 1"), []byte("response 2")} - args := createMockArgsVmQueryGetter() - args.Proxy = &testsCommon.ProxyStub{ - ExecuteVMQueryCalled: func(ctx context.Context, vmRequest *data.VmValueRequest) (*data.VmValuesResponseData, error) { - return &data.VmValuesResponseData{ - Data: &vm.VMOutputApi{ - ReturnData: retData, - ReturnCode: okCodeAfterExecution, - ReturnMessage: returnMessage, - GasRemaining: 0, - GasRefund: nil, - OutputAccounts: nil, - DeletedAccounts: nil, - TouchedAccounts: nil, - Logs: nil, - }, - }, nil - }, - } - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryFromBuilder(context.Background(), builder) - assert.Nil(t, err) - assert.Equal(t, retData, result) - }) -} - -func TestNewVmQueryGetter_ExecuteQueryReturningBool(t *testing.T) { - t.Parallel() - - t.Run("nil request", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = createMockProxy(make([][]byte, 0)) - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryReturningBool(context.Background(), nil) - assert.False(t, result) - assert.Equal(t, ErrNilRequest, err) - }) - t.Run("empty response", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = createMockProxy(make([][]byte, 0)) - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryReturningBool(context.Background(), &data.VmValueRequest{}) - assert.False(t, result) - assert.Nil(t, err) - }) - t.Run("empty byte slice on first element", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = createMockProxy(make([][]byte, 0)) - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryReturningBool(context.Background(), &data.VmValueRequest{}) - assert.False(t, result) - assert.Nil(t, err) - }) - t.Run("not a bool result", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = createMockProxy([][]byte{[]byte("random bytes")}) - dg, _ := NewVmQueryGetter(args) - - expectedError := NewQueryResponseError( - internalError, - `error converting the received bytes to bool, strconv.ParseBool: parsing "114": invalid syntax`, - "", - "", - ) - - result, err := dg.ExecuteQueryReturningBool(context.Background(), &data.VmValueRequest{}) - assert.False(t, result) - assert.Equal(t, expectedError, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = createMockProxy([][]byte{{1}}) - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryBoolFromBuilder(context.Background(), builders.NewVMQueryBuilder()) - assert.True(t, result) - assert.Nil(t, err) - - dg.proxy = createMockProxy([][]byte{{0}}) - - result, err = dg.ExecuteQueryReturningBool(context.Background(), &data.VmValueRequest{}) - assert.False(t, result) - assert.Nil(t, err) - }) -} - -func TestNewVmQueryGetter_ExecuteQueryReturningUint64(t *testing.T) { - t.Parallel() - - t.Run("nil request", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = createMockProxy(make([][]byte, 0)) - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryReturningUint64(context.Background(), nil) - assert.Zero(t, result) - assert.Equal(t, ErrNilRequest, err) - }) - t.Run("empty response", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = createMockProxy(make([][]byte, 0)) - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryReturningUint64(context.Background(), &data.VmValueRequest{}) - assert.Zero(t, result) - assert.Nil(t, err) - }) - t.Run("empty byte slice on first element", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = createMockProxy([][]byte{make([]byte, 0)}) - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryUint64FromBuilder(context.Background(), builders.NewVMQueryBuilder()) - assert.Zero(t, result) - assert.Nil(t, err) - }) - t.Run("large buffer", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = createMockProxy([][]byte{[]byte("random bytes")}) - dg, _ := NewVmQueryGetter(args) - - expectedError := NewQueryResponseError( - internalError, - ErrNotUint64Bytes.Error(), - "", - "", - ) - - result, err := dg.ExecuteQueryReturningUint64(context.Background(), &data.VmValueRequest{}) - assert.Zero(t, result) - assert.Equal(t, expectedError, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgsVmQueryGetter() - args.Proxy = createMockProxy([][]byte{{1}}) - dg, _ := NewVmQueryGetter(args) - - result, err := dg.ExecuteQueryReturningUint64(context.Background(), &data.VmValueRequest{}) - assert.Equal(t, uint64(1), result) - assert.Nil(t, err) - - dg.proxy = createMockProxy([][]byte{{0xFF, 0xFF}}) - - result, err = dg.ExecuteQueryReturningUint64(context.Background(), &data.VmValueRequest{}) - assert.Equal(t, uint64(65535), result) - assert.Nil(t, err) - }) -} - -func TestNewVmQueryGetter_executeQueryWithErroredBuilder(t *testing.T) { - t.Parallel() - - builder := builders.NewVMQueryBuilder().ArgBytes(nil) - - args := createMockArgsVmQueryGetter() - dg, _ := NewVmQueryGetter(args) - - resultBytes, err := dg.ExecuteQueryFromBuilder(context.Background(), builder) - assert.Nil(t, resultBytes) - assert.True(t, errors.Is(err, builders.ErrInvalidValue)) - assert.True(t, strings.Contains(err.Error(), "builder.ArgBytes")) - - resultUint64, err := dg.ExecuteQueryUint64FromBuilder(context.Background(), builder) - assert.Zero(t, resultUint64) - assert.True(t, errors.Is(err, builders.ErrInvalidValue)) - assert.True(t, strings.Contains(err.Error(), "builder.ArgBytes")) - - resultBool, err := dg.ExecuteQueryBoolFromBuilder(context.Background(), builder) - assert.False(t, resultBool) - assert.True(t, errors.Is(err, builders.ErrInvalidValue)) - assert.True(t, strings.Contains(err.Error(), "builder.ArgBytes")) -} diff --git a/mx-sdk-go-old/builders/baseBuilder.go b/mx-sdk-go-old/builders/baseBuilder.go deleted file mode 100644 index 7d247dbb..00000000 --- a/mx-sdk-go-old/builders/baseBuilder.go +++ /dev/null @@ -1,97 +0,0 @@ -package builders - -import ( - "encoding/hex" - "fmt" - "math/big" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -type baseBuilder struct { - args []string - err error -} - -func (builder *baseBuilder) addBytes(bytes []byte) { - if len(bytes) == 0 { - bytes = []byte{0} - } - - builder.args = append(builder.args, hex.EncodeToString(bytes)) -} - -func (builder *baseBuilder) checkAddress(address core.AddressHandler) error { - if check.IfNil(address) { - return fmt.Errorf("%w in builder.checkAddress", ErrNilAddress) - } - if !address.IsValid() { - return fmt.Errorf("%w in builder.checkAddress", ErrInvalidAddress) - } - - return nil -} - -func (builder *baseBuilder) addArgHexString(hexed string) { - if builder.err != nil { - return - } - - _, err := hex.DecodeString(hexed) - if err != nil { - builder.err = fmt.Errorf("%w in builder.ArgHexString for string %s", err, hexed) - return - } - - builder.args = append(builder.args, hexed) -} - -func (builder *baseBuilder) addArgAddress(address core.AddressHandler) { - if builder.err != nil { - return - } - - err := builder.checkAddress(address) - if err != nil { - builder.err = err - return - } - - builder.addBytes(address.AddressBytes()) -} - -func (builder *baseBuilder) addArgBigInt(value *big.Int) { - if builder.err != nil { - return - } - - if value == nil { - builder.err = fmt.Errorf("%w in builder.ArgBigInt", ErrNilValue) - return - } - - builder.addBytes(value.Bytes()) -} - -func (builder *baseBuilder) addArgInt64(value int64) { - if builder.err != nil { - return - } - - b := big.NewInt(value) - - builder.addBytes(b.Bytes()) -} - -func (builder *baseBuilder) addArgBytes(bytes []byte) { - if builder.err != nil { - return - } - - if len(bytes) == 0 { - builder.err = fmt.Errorf("%w in builder.ArgBytes", ErrInvalidValue) - } - - builder.addBytes(bytes) -} diff --git a/mx-sdk-go-old/builders/baseBuilder_test.go b/mx-sdk-go-old/builders/baseBuilder_test.go deleted file mode 100644 index 5dd38744..00000000 --- a/mx-sdk-go-old/builders/baseBuilder_test.go +++ /dev/null @@ -1,26 +0,0 @@ -package builders - -import ( - "errors" - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestBaseBuilder_AnErrorWillPreventProcessingOfTheArguments(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("expected error") - b := &baseBuilder{ - err: expectedErr, - } - - b.addArgBytes(nil) - b.addArgAddress(nil) - b.addArgBigInt(nil) - b.addArgHexString("not hexed") - b.addArgInt64(0) - - assert.Equal(t, expectedErr, b.err) - assert.Equal(t, 0, len(b.args)) -} diff --git a/mx-sdk-go-old/builders/errors.go b/mx-sdk-go-old/builders/errors.go deleted file mode 100644 index 7330945e..00000000 --- a/mx-sdk-go-old/builders/errors.go +++ /dev/null @@ -1,42 +0,0 @@ -package builders - -import "errors" - -// ErrInvalidValue signals that an invalid value was provided -var ErrInvalidValue = errors.New("invalid value") - -// ErrNilValue signals that a nil value was provided -var ErrNilValue = errors.New("nil value") - -// ErrNilAddress signals that a nil address was provided -var ErrNilAddress = errors.New("nil address handler") - -// ErrInvalidAddress signals that an invalid address was provided -var ErrInvalidAddress = errors.New("invalid address handler") - -// ErrNilSigner signals that a nil transaction signer was provided -var ErrNilSigner = errors.New("nil signer") - -// ErrNilCryptoComponentsHolder signals that a nil crypto components holder was provided -var ErrNilCryptoComponentsHolder = errors.New("nil crypto components holder") - -// ErrMissingSignature signals that a transaction's signature is empty when trying to compute it's hash -var ErrMissingSignature = errors.New("missing signature when computing the transaction's hash") - -// ErrNilInnerTransaction signals that a nil inner transaction was provided -var ErrNilInnerTransaction = errors.New("nil inner transaction") - -// ErrNilRelayerAccount signals that a nil relayer account was provided -var ErrNilRelayerAccount = errors.New("nil relayer account") - -// ErrNilNetworkConfig signals that a nil network config was provided -var ErrNilNetworkConfig = errors.New("nil network config") - -// ErrNilInnerTransactionSignature signals that a nil inner transaction signature was provided -var ErrNilInnerTransactionSignature = errors.New("nil inner transaction signature") - -// ErrInvalidGasLimitNeededForInnerTransaction signals that an invalid gas limit needed for the inner transaction was provided -var ErrInvalidGasLimitNeededForInnerTransaction = errors.New("invalid gas limit needed for inner transaction") - -// ErrGasLimitForInnerTransactionV2ShouldBeZero signals that the gas limit for the inner transaction should be zero -var ErrGasLimitForInnerTransactionV2ShouldBeZero = errors.New("gas limit of the inner transaction should be 0") diff --git a/mx-sdk-go-old/builders/interface.go b/mx-sdk-go-old/builders/interface.go deleted file mode 100644 index d8fab4db..00000000 --- a/mx-sdk-go-old/builders/interface.go +++ /dev/null @@ -1,53 +0,0 @@ -package builders - -import ( - "math/big" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - crypto "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -// TxDataBuilder defines the behavior of a transaction data builder -type TxDataBuilder interface { - Function(function string) TxDataBuilder - - ArgHexString(hexed string) TxDataBuilder - ArgAddress(address core.AddressHandler) TxDataBuilder - ArgBigInt(value *big.Int) TxDataBuilder - ArgInt64(value int64) TxDataBuilder - ArgBytes(bytes []byte) TxDataBuilder - ArgBytesList(list [][]byte) TxDataBuilder - - ToDataString() (string, error) - ToDataBytes() ([]byte, error) - - IsInterfaceNil() bool -} - -// VMQueryBuilder defines the behavior of a vm query builder -type VMQueryBuilder interface { - Function(function string) VMQueryBuilder - CallerAddress(address core.AddressHandler) VMQueryBuilder - Address(address core.AddressHandler) VMQueryBuilder - - ArgHexString(hexed string) VMQueryBuilder - ArgAddress(address core.AddressHandler) VMQueryBuilder - ArgBigInt(value *big.Int) VMQueryBuilder - ArgInt64(value int64) VMQueryBuilder - ArgBytes(bytes []byte) VMQueryBuilder - - ToVmValueRequest() (*data.VmValueRequest, error) - - IsInterfaceNil() bool -} - -// Signer defines the method used by a struct used to create valid signatures -type Signer interface { - SignMessage(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) - VerifyMessage(msg []byte, publicKey crypto.PublicKey, sig []byte) error - SignTransaction(tx *transaction.FrontendTransaction, privateKey crypto.PrivateKey) ([]byte, error) - SignByteSlice(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/builders/relayedTxV1Builder.go b/mx-sdk-go-old/builders/relayedTxV1Builder.go deleted file mode 100644 index 046458b0..00000000 --- a/mx-sdk-go-old/builders/relayedTxV1Builder.go +++ /dev/null @@ -1,136 +0,0 @@ -package builders - -import ( - "encoding/hex" - "encoding/json" - "math/big" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -type relayedTxV1Builder struct { - innerTransaction *transaction.FrontendTransaction - relayerAccount *data.Account - networkConfig *data.NetworkConfig -} - -// NewRelayedTxV1Builder creates a new relayed transaction v1 builder -func NewRelayedTxV1Builder() *relayedTxV1Builder { - return &relayedTxV1Builder{ - innerTransaction: nil, - relayerAccount: nil, - networkConfig: nil, - } -} - -// SetInnerTransaction sets the inner transaction to be relayed -func (rtb *relayedTxV1Builder) SetInnerTransaction(tx *transaction.FrontendTransaction) *relayedTxV1Builder { - rtb.innerTransaction = tx - - return rtb -} - -// SetRelayerAccount sets the relayer account -func (rtb *relayedTxV1Builder) SetRelayerAccount(account *data.Account) *relayedTxV1Builder { - rtb.relayerAccount = account - - return rtb -} - -// SetNetworkConfig sets the network config -func (rtb *relayedTxV1Builder) SetNetworkConfig(config *data.NetworkConfig) *relayedTxV1Builder { - rtb.networkConfig = config - - return rtb -} - -// Build builds the relayed transaction v1 -// The returned transaction will not be signed -func (rtb *relayedTxV1Builder) Build() (*transaction.FrontendTransaction, error) { - if rtb.innerTransaction == nil { - return nil, ErrNilInnerTransaction - } - if len(rtb.innerTransaction.Signature) == 0 { - return nil, ErrNilInnerTransactionSignature - } - if rtb.relayerAccount == nil { - return nil, ErrNilRelayerAccount - } - if rtb.networkConfig == nil { - return nil, ErrNilNetworkConfig - } - - innerTxHex, err := prepareInnerTxForRelayV1(rtb.innerTransaction) - if err != nil { - return nil, err - } - - payload := []byte("relayedTx@" + innerTxHex) - gasLimit := rtb.networkConfig.MinGasLimit + rtb.networkConfig.GasPerDataByte*uint64(len(payload)) + rtb.innerTransaction.GasLimit - - innerTxValue, ok := big.NewInt(0).SetString(rtb.innerTransaction.Value, 10) - if !ok { - return nil, ErrInvalidValue - } - - relayedTx := &transaction.FrontendTransaction{ - Nonce: rtb.relayerAccount.Nonce, - Value: innerTxValue.String(), - Receiver: rtb.innerTransaction.Sender, - Sender: rtb.relayerAccount.Address, - GasPrice: rtb.innerTransaction.GasPrice, - GasLimit: gasLimit, - Data: payload, - ChainID: rtb.networkConfig.ChainID, - Version: rtb.networkConfig.MinTransactionVersion, - } - - return relayedTx, nil -} - -func prepareInnerTxForRelayV1(tx *transaction.FrontendTransaction) (string, error) { - txValue, ok := big.NewInt(0).SetString(tx.Value, 10) - if !ok { - return "", ErrInvalidValue - } - - addressConverter := core.AddressPublicKeyConverter - receiverAddress, err := addressConverter.Decode(tx.Receiver) - if err != nil { - return "", err - } - - senderAddress, err := addressConverter.Decode(tx.Sender) - if err != nil { - return "", err - } - - signatureBytes, err := hex.DecodeString(tx.Signature) - if err != nil { - return "", err - } - - // TODO: remove this hardcoded implementation. Inside mx-chain-core-go, create there a dedicated converter between FrontendTransaction <-> Transaction - coreTx := &transaction.Transaction{ - Nonce: tx.Nonce, - Value: txValue, - RcvAddr: receiverAddress, - SndAddr: senderAddress, - GasPrice: tx.GasPrice, - GasLimit: tx.GasLimit, - Data: tx.Data, - ChainID: []byte(tx.ChainID), - Version: tx.Version, - Signature: signatureBytes, - Options: tx.Options, - } - - serializedTx, err := json.Marshal(coreTx) - if err != nil { - return "", err - } - - return hex.EncodeToString(serializedTx), nil -} diff --git a/mx-sdk-go-old/builders/relayedTxV1Builder_test.go b/mx-sdk-go-old/builders/relayedTxV1Builder_test.go deleted file mode 100644 index a3da036b..00000000 --- a/mx-sdk-go-old/builders/relayedTxV1Builder_test.go +++ /dev/null @@ -1,101 +0,0 @@ -package builders - -import ( - "encoding/hex" - "encoding/json" - "testing" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-chain-crypto-go/signing" - "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" - "github.com/stretchr/testify/require" -) - -const ( - testRelayerMnemonic = "bid involve twenty cave offer life hello three walnut travel rare bike edit canyon ice brave theme furnace cotton swing wear bread fine latin" - testInnerSenderMnemonic = "acid twice post genre topic observe valid viable gesture fortune funny dawn around blood enemy page update reduce decline van bundle zebra rookie real" -) - -func TestRelayedTxV1Builder(t *testing.T) { - t.Parallel() - - netConfig := &data.NetworkConfig{ - ChainID: "T", - MinTransactionVersion: 1, - GasPerDataByte: 1500, - MinGasLimit: 50000, - MinGasPrice: 1000000000, - } - - relayerAcc, relayerPrivKey := getAccount(t, testRelayerMnemonic) - innerSenderAcc, innerSenderPrivKey := getAccount(t, testInnerSenderMnemonic) - - innerTx := &transaction.FrontendTransaction{ - Nonce: innerSenderAcc.Nonce, - Value: "100000000", - Receiver: "erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th", - Sender: innerSenderAcc.Address, - GasPrice: netConfig.MinGasPrice, - GasLimit: netConfig.MinGasLimit, - Data: nil, - ChainID: netConfig.ChainID, - Version: netConfig.MinTransactionVersion, - Options: 0, - } - - innerTxSig := signTx(t, innerSenderPrivKey, innerTx) - innerTx.Signature = hex.EncodeToString(innerTxSig) - - txJson, _ := json.Marshal(innerTx) - require.Equal(t, - `{"nonce":37,"value":"100000000","receiver":"erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th","sender":"erd1mlh7q3fcgrjeq0et65vaaxcw6m5ky8jhu296pdxpk9g32zga6uhsemxx2a","gasPrice":1000000000,"gasLimit":50000,"signature":"c315bc927bac80996e77b5c2f4b76506ce98b12bb0511583e8e20ef9e2bbbf58a07687e341023cf2a69bab5d116b116e32cb67bf697ce451bc5bed55b24c410a","chainID":"T","version":1}`, - string(txJson), - ) - - relayedV1Builder := NewRelayedTxV1Builder() - relayedV1Builder.SetInnerTransaction(innerTx) - relayedV1Builder.SetRelayerAccount(relayerAcc) - relayedV1Builder.SetNetworkConfig(netConfig) - - relayedTx, err := relayedV1Builder.Build() - require.NoError(t, err) - - relayedTxSig := signTx(t, relayerPrivKey, relayedTx) - relayedTx.Signature = hex.EncodeToString(relayedTxSig) - - txJson, _ = json.Marshal(relayedTx) - require.Equal(t, - `{"nonce":37,"value":"100000000","receiver":"erd1mlh7q3fcgrjeq0et65vaaxcw6m5ky8jhu296pdxpk9g32zga6uhsemxx2a","sender":"erd1h692scsz3um6e5qwzts4yjrewxqxwcwxzavl5n9q8sprussx8fqsu70jf5","gasPrice":1000000000,"gasLimit":1060000,"data":"cmVsYXllZFR4QDdiMjI2ZTZmNmU2MzY1MjIzYTMzMzcyYzIyNzY2MTZjNzU2NTIyM2EzMTMwMzAzMDMwMzAzMDMwMzAyYzIyNzI2NTYzNjU2OTc2NjU3MjIyM2EyMjQxNTQ2YzQ4NGM3NjM5NmY2ODZlNjM2MTZkNDMzODc3NjczOTcwNjQ1MTY4Mzg2Yjc3NzA0NzQyMzU2YTY5NDk0OTZmMzM0OTQ4NGI1OTRlNjE2NTQ1M2QyMjJjMjI3MzY1NmU2NDY1NzIyMjNhMjIzMzJiMmY2NzUyNTQ2ODQxMzU1YTQxMmY0YjM5NTU1YTMzNzA3MzRmMzE3NTZjNjk0ODZjNjY2OTY5MzY0MzMwNzc2MjQ2NTI0NjUxNmI2NDMxNzkzODNkMjIyYzIyNjc2MTczNTA3MjY5NjM2NTIyM2EzMTMwMzAzMDMwMzAzMDMwMzAzMDJjMjI2NzYxNzM0YzY5NmQ2OTc0MjIzYTM1MzAzMDMwMzAyYzIyNjM2ODYxNjk2ZTQ5NDQyMjNhMjI1NjQxM2QzZDIyMmMyMjc2NjU3MjczNjk2ZjZlMjIzYTMxMmMyMjczNjk2NzZlNjE3NDc1NzI2NTIyM2EyMjc3Nzg1NzM4NmI2ZTc1NzM2NzRhNmM3NTY0Mzc1ODQzMzk0YzY0NmM0MjczMzY1OTczNTM3NTc3NTU1MjU3NDQzNjRmNDk0ZjJiNjU0YjM3NzYzMTY5Njc2NDZmNjY2YTUxNTE0OTM4Mzg3MTYxNjI3MTMxMzA1MjYxNzg0Njc1NGQ3Mzc0NmU3NjMyNmMzODM1NDY0NzM4NTcyYjMxNTY3MzZiNzg0MjQzNjczZDNkMjI3ZA==","signature":"49ff32dcfef469d14887a9940c2943a80e1d50cecf1e611a2175e4cbc1de1b900e5e41d54d9beb5760af80a87720c9099100d5b1d5ff2b73a7e37e6a364fc401","chainID":"T","version":1}`, - string(txJson), - ) -} - -func getAccount(t *testing.T, mnemonic string) (*data.Account, []byte) { - wallet := interactors.NewWallet() - - privKey := wallet.GetPrivateKeyFromMnemonic(data.Mnemonic(mnemonic), 0, 0) - address, err := wallet.GetAddressFromPrivateKey(privKey) - require.NoError(t, err) - - account := &data.Account{ - Nonce: 37, - Address: address.AddressAsBech32String(), - } - - return account, privKey -} - -func signTx(t *testing.T, privKeyBytes []byte, tx *transaction.FrontendTransaction) []byte { - keyGenInstance := signing.NewKeyGenerator(ed25519.NewEd25519()) - privKey, err := keyGenInstance.PrivateKeyFromByteArray(privKeyBytes) - require.NoError(t, err) - signer := cryptoProvider.NewSigner() - - signature, err := signer.SignTransaction(tx, privKey) - require.NoError(t, err) - - return signature -} diff --git a/mx-sdk-go-old/builders/relayedTxV2Builder.go b/mx-sdk-go-old/builders/relayedTxV2Builder.go deleted file mode 100644 index 32e50844..00000000 --- a/mx-sdk-go-old/builders/relayedTxV2Builder.go +++ /dev/null @@ -1,117 +0,0 @@ -package builders - -import ( - "encoding/hex" - "fmt" - "math/big" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -type relayedTxV2Builder struct { - innerTransaction *transaction.FrontendTransaction - gasLimitNeededForInnerTransaction uint64 - relayerAccount *data.Account - networkConfig *data.NetworkConfig -} - -// NewRelayedTxV2Builder creates a new relayed transaction v2 builder -func NewRelayedTxV2Builder() *relayedTxV2Builder { - return &relayedTxV2Builder{ - innerTransaction: nil, - relayerAccount: nil, - networkConfig: nil, - } -} - -// SetInnerTransaction sets the inner transaction to be relayed -func (rtb *relayedTxV2Builder) SetInnerTransaction(tx *transaction.FrontendTransaction) *relayedTxV2Builder { - rtb.innerTransaction = tx - - return rtb -} - -// SetRelayerAccount sets the relayer account (that will send the wrapped transaction) -func (rtb *relayedTxV2Builder) SetRelayerAccount(account *data.Account) *relayedTxV2Builder { - rtb.relayerAccount = account - - return rtb -} - -// SetGasLimitNeededForInnerTransaction sets the gas limit needed for the inner transaction -func (rtb *relayedTxV2Builder) SetGasLimitNeededForInnerTransaction(gasLimit uint64) *relayedTxV2Builder { - rtb.gasLimitNeededForInnerTransaction = gasLimit - - return rtb -} - -// SetNetworkConfig sets the network config -func (rtb *relayedTxV2Builder) SetNetworkConfig(config *data.NetworkConfig) *relayedTxV2Builder { - rtb.networkConfig = config - - return rtb -} - -// Build builds the relayed transaction v1 -// The returned transaction will not be signed -func (rtb *relayedTxV2Builder) Build() (*transaction.FrontendTransaction, error) { - if rtb.innerTransaction == nil { - return nil, ErrNilInnerTransaction - } - if len(rtb.innerTransaction.Signature) == 0 { - return nil, ErrNilInnerTransactionSignature - } - if rtb.relayerAccount == nil { - return nil, ErrNilRelayerAccount - } - if rtb.networkConfig == nil { - return nil, ErrNilNetworkConfig - } - if rtb.gasLimitNeededForInnerTransaction == 0 { - return nil, ErrInvalidGasLimitNeededForInnerTransaction - } - if rtb.innerTransaction.GasLimit != 0 { - return nil, ErrGasLimitForInnerTransactionV2ShouldBeZero - } - - innerTxHex, err := prepareInnerTxForRelayV2(rtb.innerTransaction) - if err != nil { - return nil, err - } - - payload := []byte("relayedTxV2@" + innerTxHex) - gasLimit := rtb.networkConfig.MinGasLimit + rtb.networkConfig.GasPerDataByte*uint64(len(payload)) + rtb.gasLimitNeededForInnerTransaction - - relayedTx := &transaction.FrontendTransaction{ - Nonce: rtb.relayerAccount.Nonce, - Value: "0", - Receiver: rtb.innerTransaction.Sender, - Sender: rtb.relayerAccount.Address, - GasPrice: rtb.innerTransaction.GasPrice, - GasLimit: gasLimit, - Data: payload, - ChainID: rtb.networkConfig.ChainID, - Version: rtb.networkConfig.MinTransactionVersion, - } - - return relayedTx, nil -} - -func prepareInnerTxForRelayV2(tx *transaction.FrontendTransaction) (string, error) { - nonceBytes := big.NewInt(0).SetUint64(tx.Nonce).Bytes() - decodedReceiver, err := core.AddressPublicKeyConverter.Decode(tx.Receiver) - if err != nil { - return "", err - } - - payload := fmt.Sprintf("%s@%s@%s@%s", - hex.EncodeToString(decodedReceiver), - hex.EncodeToString(nonceBytes), - hex.EncodeToString(tx.Data), - tx.Signature, - ) - - return payload, nil -} diff --git a/mx-sdk-go-old/builders/relayedTxV2Builder_test.go b/mx-sdk-go-old/builders/relayedTxV2Builder_test.go deleted file mode 100644 index bf6811db..00000000 --- a/mx-sdk-go-old/builders/relayedTxV2Builder_test.go +++ /dev/null @@ -1,66 +0,0 @@ -package builders - -import ( - "encoding/hex" - "encoding/json" - "testing" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/stretchr/testify/require" -) - -func TestRelayedTxV2Builder(t *testing.T) { - t.Parallel() - - netConfig := &data.NetworkConfig{ - ChainID: "T", - MinTransactionVersion: 1, - GasPerDataByte: 1500, - } - - relayerAcc, relayerPrivKey := getAccount(t, testRelayerMnemonic) - innerSenderAcc, innerSenderPrivKey := getAccount(t, testInnerSenderMnemonic) - - innerTx := &transaction.FrontendTransaction{ - Nonce: innerSenderAcc.Nonce, - Value: "0", - Receiver: "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u", - Sender: innerSenderAcc.Address, - GasPrice: netConfig.MinGasPrice, - GasLimit: 0, - Data: []byte("getContractConfig"), - ChainID: netConfig.ChainID, - Version: netConfig.MinTransactionVersion, - Options: 0, - } - - innerTxSig := signTx(t, innerSenderPrivKey, innerTx) - innerTx.Signature = hex.EncodeToString(innerTxSig) - - txJson, _ := json.Marshal(innerTx) - require.Equal(t, - `{"nonce":37,"value":"0","receiver":"erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u","sender":"erd1mlh7q3fcgrjeq0et65vaaxcw6m5ky8jhu296pdxpk9g32zga6uhsemxx2a","gasPrice":0,"gasLimit":0,"data":"Z2V0Q29udHJhY3RDb25maWc=","signature":"e578eb15076d9bf42f7610c17125ef88d38422a927e80075d11790b618ec106d4dec7da0d312801e0df28f5c8885d648844f54e7dc83c3e7fd71f60998867103","chainID":"T","version":1}`, - string(txJson), - ) - - relayedV2Builder := NewRelayedTxV2Builder() - relayedV2Builder.SetInnerTransaction(innerTx) - relayedV2Builder.SetRelayerAccount(relayerAcc) - relayedV2Builder.SetNetworkConfig(netConfig) - relayedV2Builder.SetGasLimitNeededForInnerTransaction(60_000_000) - - relayedTx, err := relayedV2Builder.Build() - require.NoError(t, err) - - relayedTx.GasPrice = netConfig.MinGasPrice - - relayedTxSig := signTx(t, relayerPrivKey, relayedTx) - relayedTx.Signature = hex.EncodeToString(relayedTxSig) - - txJson, _ = json.Marshal(relayedTx) - require.Equal(t, - `{"nonce":37,"value":"0","receiver":"erd1mlh7q3fcgrjeq0et65vaaxcw6m5ky8jhu296pdxpk9g32zga6uhsemxx2a","sender":"erd1h692scsz3um6e5qwzts4yjrewxqxwcwxzavl5n9q8sprussx8fqsu70jf5","gasPrice":0,"gasLimit":60364500,"data":"cmVsYXllZFR4VjJAMDAwMDAwMDAwMDAwMDAwMDAwMDEwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAyZmZmZkAyNUA2NzY1NzQ0MzZmNmU3NDcyNjE2Mzc0NDM2ZjZlNjY2OTY3QGU1NzhlYjE1MDc2ZDliZjQyZjc2MTBjMTcxMjVlZjg4ZDM4NDIyYTkyN2U4MDA3NWQxMTc5MGI2MThlYzEwNmQ0ZGVjN2RhMGQzMTI4MDFlMGRmMjhmNWM4ODg1ZDY0ODg0NGY1NGU3ZGM4M2MzZTdmZDcxZjYwOTk4ODY3MTAz","signature":"6c4f404274d499857be292c59bfca9c29f1ea5ead9544346fadf9ab2944310775aa5c0954cc289d916c6c8cadec128614903f73b2bcd6c0266f6d651383d7207","chainID":"T","version":1}`, - string(txJson), - ) -} diff --git a/mx-sdk-go-old/builders/txBuilder.go b/mx-sdk-go-old/builders/txBuilder.go deleted file mode 100644 index 40d34bb3..00000000 --- a/mx-sdk-go-old/builders/txBuilder.go +++ /dev/null @@ -1,119 +0,0 @@ -package builders - -import ( - "encoding/hex" - "math/big" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-chain-core-go/hashing/blake2b" - "github.com/multiversx/mx-chain-core-go/marshal" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -var ( - blake2bHasher = blake2b.NewBlake2b() - nodeInternalMarshaller = &marshal.GogoProtoMarshalizer{} -) - -type txBuilder struct { - signer Signer -} - -// NewTxBuilder will create a new transaction builder able to build and correctly sign a transaction -func NewTxBuilder(signer Signer) (*txBuilder, error) { - if check.IfNil(signer) { - return nil, ErrNilSigner - } - - return &txBuilder{ - signer: signer, - }, nil -} - -// ApplySignature will apply the corresponding sender and compute and set the signature field -func (builder *txBuilder) ApplySignature( - cryptoHolder core.CryptoComponentsHolder, - tx *transaction.FrontendTransaction, -) error { - tx.Sender = cryptoHolder.GetBech32() - unsignedMessage := builder.createUnsignedTx(tx) - - signature, err := builder.signer.SignTransaction(unsignedMessage, cryptoHolder.GetPrivateKey()) - if err != nil { - return err - } - - tx.Signature = hex.EncodeToString(signature) - - return nil -} - -// ComputeTxHash will return the hash of the provided transaction. It assumes that the transaction is already signed, -// otherwise it will return an error. -func (builder *txBuilder) ComputeTxHash(tx *transaction.FrontendTransaction) ([]byte, error) { - if len(tx.Signature) == 0 { - return nil, ErrMissingSignature - } - - nodeTx, err := transactionToNodeTransaction(tx) - if err != nil { - return nil, err - } - - txBytes, err := nodeInternalMarshaller.Marshal(nodeTx) - if err != nil { - return nil, err - } - - txHash := blake2bHasher.Compute(string(txBytes)) - return txHash, nil -} - -func transactionToNodeTransaction(tx *transaction.FrontendTransaction) (*transaction.Transaction, error) { - receiverBytes, err := core.AddressPublicKeyConverter.Decode(tx.Receiver) - if err != nil { - return nil, err - } - - senderBytes, err := core.AddressPublicKeyConverter.Decode(tx.Sender) - if err != nil { - return nil, err - } - - signaturesBytes, err := hex.DecodeString(tx.Signature) - if err != nil { - return nil, err - } - - valueBI, ok := big.NewInt(0).SetString(tx.Value, 10) - if !ok { - return nil, ErrInvalidValue - } - - return &transaction.Transaction{ - Nonce: tx.Nonce, - Value: valueBI, - RcvAddr: receiverBytes, - SndAddr: senderBytes, - GasPrice: tx.GasPrice, - GasLimit: tx.GasLimit, - Data: tx.Data, - ChainID: []byte(tx.ChainID), - Version: tx.Version, - Signature: signaturesBytes, - Options: tx.Options, - }, nil -} - -func (builder *txBuilder) createUnsignedTx(tx *transaction.FrontendTransaction) *transaction.FrontendTransaction { - copiedTransaction := *tx - copiedTransaction.Signature = "" - - return &copiedTransaction -} - -// IsInterfaceNil returns true if there is no value under the interface -func (builder *txBuilder) IsInterfaceNil() bool { - return builder == nil -} diff --git a/mx-sdk-go-old/builders/txBuilder_test.go b/mx-sdk-go-old/builders/txBuilder_test.go deleted file mode 100644 index 85e224f2..00000000 --- a/mx-sdk-go-old/builders/txBuilder_test.go +++ /dev/null @@ -1,148 +0,0 @@ -package builders - -import ( - "encoding/hex" - "errors" - "math/big" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - crypto "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-chain-crypto-go/signing" - "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -var ( - suite = ed25519.NewEd25519() - keyGen = signing.NewKeyGenerator(suite) -) - -func TestNewTxBuilder(t *testing.T) { - t.Parallel() - - t.Run("nil signer should error", func(t *testing.T) { - t.Parallel() - - tb, err := NewTxBuilder(nil) - assert.True(t, check.IfNil(tb)) - assert.Equal(t, ErrNilSigner, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - tb, err := NewTxBuilder(&testsCommon.SignerStub{}) - assert.False(t, check.IfNil(tb)) - assert.Nil(t, err) - }) -} - -func TestTxBuilder_ApplySignature(t *testing.T) { - t.Parallel() - - sk, err := hex.DecodeString("6ae10fed53a84029e53e35afdbe083688eea0917a09a9431951dd42fd4da14c40d248169f4dd7c90537f05be1c49772ddbf8f7948b507ed17fb23284cf218b7d") - require.Nil(t, err) - cryptoHolder, err := cryptoProvider.NewCryptoComponentsHolder(keyGen, sk) - require.Nil(t, err) - value := big.NewInt(999) - tx := transaction.FrontendTransaction{ - Value: value.String(), - Receiver: "erd1l20m7kzfht5rhdnd4zvqr82egk7m4nvv3zk06yw82zqmrt9kf0zsf9esqq", - GasPrice: 10, - GasLimit: 100000, - Data: []byte(""), - ChainID: "integration test chain id", - Version: uint32(1), - } - - t.Run("tx signer errors when signing should error", func(t *testing.T) { - t.Parallel() - - txCopy := tx - expectedErr := errors.New("expected error") - tb, _ := NewTxBuilder(&testsCommon.SignerStub{ - SignTransactionCalled: func(tx *transaction.FrontendTransaction, privateKey crypto.PrivateKey) ([]byte, error) { - return nil, expectedErr - }, - }) - - errGenerate := tb.ApplySignature(cryptoHolder, &txCopy) - assert.Empty(t, txCopy.Signature) - assert.Equal(t, expectedErr, errGenerate) - }) - - signer := cryptoProvider.NewSigner() - tb, err := NewTxBuilder(signer) - require.Nil(t, err) - - t.Run("sign on all tx bytes should work", func(t *testing.T) { - t.Parallel() - - txCopy := tx - errGenerate := tb.ApplySignature(cryptoHolder, &txCopy) - require.Nil(t, errGenerate) - - assert.Equal(t, "erd1p5jgz605m47fq5mlqklpcjth9hdl3au53dg8a5tlkgegfnep3d7stdk09x", txCopy.Sender) - assert.Equal(t, "80e1b5476c5ea9567614d9c364e1a7380b7990b53e7b6fd8431bf8536d174c8b3e73cc354b783a03e5ae0a53b128504a6bcf32c3b9bbc06f284afe1fac179e0d", - txCopy.Signature) - }) - t.Run("sign on tx hash should work", func(t *testing.T) { - t.Parallel() - - txCopy := tx - txCopy.Version = 2 - txCopy.Options = 1 - - errGenerate := tb.ApplySignature(cryptoHolder, &txCopy) - require.Nil(t, errGenerate) - - assert.Equal(t, "erd1p5jgz605m47fq5mlqklpcjth9hdl3au53dg8a5tlkgegfnep3d7stdk09x", txCopy.Sender) - assert.Equal(t, "1761bcac651a65839b53e89f6b0738e0956cb12e8624826b98bfc577c9f8d5e36a2544a9c5445ce7d5059972b2c5f42e25f3ad9f59255465a2ba128f0764b90e", - txCopy.Signature) - }) -} - -func TestTxBuilder_ApplySignatureAndGenerateTxHash(t *testing.T) { - t.Parallel() - - sk, err := hex.DecodeString("28654d9264f55f18d810bb88617e22c117df94fa684dfe341a511a72dfbf2b68") - require.Nil(t, err) - cryptoHolder, err := cryptoProvider.NewCryptoComponentsHolder(keyGen, sk) - require.Nil(t, err) - - t.Run("fails if the signature is missing", func(t *testing.T) { - t.Parallel() - - tb, _ := NewTxBuilder(cryptoProvider.NewSigner()) - txHash, errGenerate := tb.ComputeTxHash(&transaction.FrontendTransaction{}) - assert.Nil(t, txHash) - assert.Equal(t, ErrMissingSignature, errGenerate) - }) - - t.Run("should generate tx hash", func(t *testing.T) { - t.Parallel() - - tx := &transaction.FrontendTransaction{ - Nonce: 1, - Value: "11500313000000000000", - Receiver: "erd1p72ru5zcdsvgkkcm9swtvw2zy5epylwgv8vwquptkw7ga7pfvk7qz7snzw", - GasPrice: 1000000000, - GasLimit: 60000, - Data: []byte(""), - ChainID: "T", - Version: uint32(1), - } - tb, _ := NewTxBuilder(cryptoProvider.NewSigner()) - - _ = tb.ApplySignature(cryptoHolder, tx) - assert.Equal(t, "725c6aa7def724c60f02ee481734807038fef125e453242bf4dc570fc4a4f2ff1b78e996a2ec67ef8be03f9b98b0251d419cfc72c6e6c5c9e33f879af938f008", tx.Signature) - - txHash, errGenerate := tb.ComputeTxHash(tx) - assert.Nil(t, errGenerate) - assert.Equal(t, "8bbb2b7474deb2e67fa8f9db1eccef57ec14aa93710452a5de5ff52e5a369144", hex.EncodeToString(txHash)) - }) -} diff --git a/mx-sdk-go-old/builders/txDataBuilder.go b/mx-sdk-go-old/builders/txDataBuilder.go deleted file mode 100644 index 19d0201f..00000000 --- a/mx-sdk-go-old/builders/txDataBuilder.go +++ /dev/null @@ -1,106 +0,0 @@ -package builders - -import ( - "math/big" - "strings" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -const dataSeparator = "@" - -// txDataBuilder can be used to easy construct a transaction's data field for a smart contract call -// can also be used to construct a VmValueRequest instance ready to be used on a VM query -type txDataBuilder struct { - *baseBuilder - function string -} - -// NewTxDataBuilder creates a new transaction data builder -func NewTxDataBuilder() *txDataBuilder { - return &txDataBuilder{ - baseBuilder: &baseBuilder{}, - } -} - -// Function sets the function to be called -func (builder *txDataBuilder) Function(function string) TxDataBuilder { - builder.function = function - - return builder -} - -// ArgHexString adds the provided hex string to the arguments list -func (builder *txDataBuilder) ArgHexString(hexed string) TxDataBuilder { - builder.addArgHexString(hexed) - - return builder -} - -// ArgAddress adds the provided address to the arguments list -func (builder *txDataBuilder) ArgAddress(address core.AddressHandler) TxDataBuilder { - builder.addArgAddress(address) - - return builder -} - -// ArgBigInt adds the provided value to the arguments list -func (builder *txDataBuilder) ArgBigInt(value *big.Int) TxDataBuilder { - builder.addArgBigInt(value) - - return builder -} - -// ArgInt64 adds the provided value to the arguments list -func (builder *txDataBuilder) ArgInt64(value int64) TxDataBuilder { - builder.addArgInt64(value) - - return builder -} - -// ArgBytes adds the provided bytes to the arguments list. The parameter should contain at least one byte -func (builder *txDataBuilder) ArgBytes(bytes []byte) TxDataBuilder { - builder.addArgBytes(bytes) - - return builder -} - -// ArgBytesList adds the provided list of bytes. Each argument from the list should contain at least one byte -func (builder *txDataBuilder) ArgBytesList(list [][]byte) TxDataBuilder { - for _, arg := range list { - builder.addArgBytes(arg) - } - - return builder -} - -// ToDataString returns the formatted data string ready to be used in a transaction call -func (builder *txDataBuilder) ToDataString() (string, error) { - if builder.err != nil { - return "", builder.err - } - - var parts []string - if len(builder.function) > 0 { - parts = append(parts, builder.function) - } - - parts = append(parts, builder.args...) - - return strings.Join(parts, dataSeparator), nil -} - -// ToDataBytes returns the formatted data string ready to be used in a transaction call as bytes -func (builder *txDataBuilder) ToDataBytes() ([]byte, error) { - dataField, err := builder.ToDataString() - if err != nil { - return nil, err - } - - return []byte(dataField), err -} - -// IsInterfaceNil returns true if there is no value under the interface -func (builder *txDataBuilder) IsInterfaceNil() bool { - return builder == nil -} diff --git a/mx-sdk-go-old/builders/txDataBuilder_test.go b/mx-sdk-go-old/builders/txDataBuilder_test.go deleted file mode 100644 index 34da6d76..00000000 --- a/mx-sdk-go-old/builders/txDataBuilder_test.go +++ /dev/null @@ -1,164 +0,0 @@ -package builders - -import ( - "encoding/hex" - "errors" - "math/big" - "strings" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestNewTxDataBuilder(t *testing.T) { - t.Parallel() - - builder := NewTxDataBuilder() - assert.False(t, check.IfNil(builder)) - _, err := builder.ToDataString() - assert.Nil(t, err) -} - -func TestTxDataBuilder_Function(t *testing.T) { - t.Parallel() - - function := "sc call function" - builder := NewTxDataBuilder() - builder.Function(function) - - txData, err := builder.ToDataString() - assert.Nil(t, err) - assert.Equal(t, function, txData) - - txDataBytes, err := builder.ToDataBytes() - assert.Nil(t, err) - assert.Equal(t, function, string(txDataBytes)) -} - -func TestTxDataBuilder_AllGoodArguments(t *testing.T) { - t.Parallel() - - t.Run("with function", func(t *testing.T) { - t.Parallel() - - address, errBech32 := data.NewAddressFromBech32String("erd1k2s324ww2g0yj38qn2ch2jwctdy8mnfxep94q9arncc6xecg3xaq6mjse8") - require.Nil(t, errBech32) - - builder := NewTxDataBuilder(). - Function("function"). - ArgBigInt(big.NewInt(15)). - ArgInt64(14). - ArgAddress(address). - ArgHexString("eeff00"). - ArgBytes([]byte("aa")). - ArgBigInt(big.NewInt(0)). - ArgBytesList([][]byte{[]byte("bbb"), []byte("ccc")}) - - expectedTxData := "function@" + hex.EncodeToString([]byte{15}) + - "@" + hex.EncodeToString([]byte{14}) + "@" + - hex.EncodeToString(address.AddressBytes()) + "@eeff00@" + - hex.EncodeToString([]byte("aa")) + "@00@" + - hex.EncodeToString([]byte("bbb")) + "@" + hex.EncodeToString([]byte("ccc")) - - txData, err := builder.ToDataString() - require.Nil(t, err) - require.Equal(t, expectedTxData, txData) - - txDataBytes, err := builder.ToDataBytes() - require.Nil(t, err) - - require.Equal(t, []byte(expectedTxData), txDataBytes) - }) - t.Run("without function name (deploy SC)", func(t *testing.T) { - address, errBech32 := data.NewAddressFromBech32String("erd1k2s324ww2g0yj38qn2ch2jwctdy8mnfxep94q9arncc6xecg3xaq6mjse8") - require.Nil(t, errBech32) - - builder := NewTxDataBuilder(). - ArgHexString("eeff001122"). - ArgHexString("ee"). - ArgBigInt(big.NewInt(15)). - ArgInt64(14). - ArgAddress(address). - ArgBytes([]byte("aa")). - ArgBigInt(big.NewInt(0)). - ArgBytesList([][]byte{[]byte("bbb"), []byte("ccc")}) - - expectedTxData := "eeff001122@ee@" + hex.EncodeToString([]byte{15}) + - "@" + hex.EncodeToString([]byte{14}) + "@" + - hex.EncodeToString(address.AddressBytes()) + "@" + hex.EncodeToString([]byte("aa")) + "@00@" + - hex.EncodeToString([]byte("bbb")) + "@" + hex.EncodeToString([]byte("ccc")) - - txData, err := builder.ToDataString() - require.Nil(t, err) - require.Equal(t, expectedTxData, txData) - - txDataBytes, err := builder.ToDataBytes() - require.Nil(t, err) - - require.Equal(t, []byte(expectedTxData), txDataBytes) - }) -} - -func TestTxDataBuilder_InvalidArguments(t *testing.T) { - t.Parallel() - - t.Run("invalid hex string argument", func(t *testing.T) { - builder := NewTxDataBuilder(). - Function("function"). - ArgInt64(4) - builder.ArgHexString("invalid hex string") - - txData, errString := builder.ToDataString() - txDataBytes, errBytes := builder.ToDataBytes() - assert.Equal(t, errString, errBytes) - assert.Equal(t, "", txData) - assert.Nil(t, txDataBytes) - assert.NotNil(t, errString) - assert.True(t, strings.Contains(errString.Error(), "builder.ArgHexString for string")) - }) - t.Run("nil address argument", func(t *testing.T) { - builder := NewTxDataBuilder(). - Function("function"). - ArgInt64(4) - builder.ArgAddress(nil) - - txData, errString := builder.ToDataString() - txDataBytes, errBytes := builder.ToDataBytes() - assert.Equal(t, errString, errBytes) - assert.Equal(t, "", txData) - assert.Nil(t, txDataBytes) - assert.NotNil(t, errString) - assert.True(t, errors.Is(errString, ErrNilAddress)) - }) - t.Run("nil big int argument", func(t *testing.T) { - builder := NewTxDataBuilder(). - Function("function"). - ArgInt64(4) - builder.ArgBigInt(nil) - - txData, errString := builder.ToDataString() - txDataBytes, errBytes := builder.ToDataBytes() - assert.Equal(t, errString, errBytes) - assert.Equal(t, "", txData) - assert.Nil(t, txDataBytes) - assert.NotNil(t, errString) - assert.True(t, errors.Is(errString, ErrNilValue)) - }) - t.Run("empty bytes argument", func(t *testing.T) { - builder := NewTxDataBuilder(). - Function("function"). - ArgInt64(4) - builder.ArgBytes(make([]byte, 0)) - - txData, errString := builder.ToDataString() - txDataBytes, errBytes := builder.ToDataBytes() - assert.Equal(t, errString, errBytes) - assert.Equal(t, "", txData) - assert.Nil(t, txDataBytes) - assert.NotNil(t, errString) - assert.True(t, errors.Is(errString, ErrInvalidValue)) - }) -} diff --git a/mx-sdk-go-old/builders/vmQueryBuilder.go b/mx-sdk-go-old/builders/vmQueryBuilder.go deleted file mode 100644 index 32dfac79..00000000 --- a/mx-sdk-go-old/builders/vmQueryBuilder.go +++ /dev/null @@ -1,109 +0,0 @@ -package builders - -import ( - "math/big" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -type vmQueryBuilder struct { - *baseBuilder - address string - callerAddr string - function string -} - -// NewVMQueryBuilder creates a new vm query data builder -func NewVMQueryBuilder() *vmQueryBuilder { - return &vmQueryBuilder{ - baseBuilder: &baseBuilder{}, - } -} - -// Function sets the function to be called -func (builder *vmQueryBuilder) Function(function string) VMQueryBuilder { - builder.function = function - - return builder -} - -// ArgHexString adds the provided hex string to the arguments list -func (builder *vmQueryBuilder) ArgHexString(hexed string) VMQueryBuilder { - builder.addArgHexString(hexed) - - return builder -} - -// ArgAddress adds the provided address to the arguments list -func (builder *vmQueryBuilder) ArgAddress(address core.AddressHandler) VMQueryBuilder { - builder.addArgAddress(address) - - return builder -} - -// ArgBigInt adds the provided value to the arguments list -func (builder *vmQueryBuilder) ArgBigInt(value *big.Int) VMQueryBuilder { - builder.addArgBigInt(value) - - return builder -} - -// ArgInt64 adds the provided value to the arguments list -func (builder *vmQueryBuilder) ArgInt64(value int64) VMQueryBuilder { - builder.addArgInt64(value) - - return builder -} - -// ArgBytes adds the provided bytes to the arguments list. The parameter should contain at least one byte -func (builder *vmQueryBuilder) ArgBytes(bytes []byte) VMQueryBuilder { - builder.addArgBytes(bytes) - - return builder -} - -// CallerAddress sets the caller address -func (builder *vmQueryBuilder) CallerAddress(address core.AddressHandler) VMQueryBuilder { - err := builder.checkAddress(address) - if err != nil { - builder.err = err - return builder - } - - builder.callerAddr = address.AddressAsBech32String() - - return builder -} - -// Address sets the destination address -func (builder *vmQueryBuilder) Address(address core.AddressHandler) VMQueryBuilder { - err := builder.checkAddress(address) - if err != nil { - builder.err = err - return builder - } - - builder.address = address.AddressAsBech32String() - - return builder -} - -// ToVmValueRequest returns the VmValueRequest structure to be used in a VM call -func (builder *vmQueryBuilder) ToVmValueRequest() (*data.VmValueRequest, error) { - if builder.err != nil { - return nil, builder.err - } - - return &data.VmValueRequest{ - Address: builder.address, - FuncName: builder.function, - CallerAddr: builder.callerAddr, - Args: builder.args, - }, nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (builder *vmQueryBuilder) IsInterfaceNil() bool { - return builder == nil -} diff --git a/mx-sdk-go-old/builders/vmQueryBuilder_test.go b/mx-sdk-go-old/builders/vmQueryBuilder_test.go deleted file mode 100644 index f0c229d7..00000000 --- a/mx-sdk-go-old/builders/vmQueryBuilder_test.go +++ /dev/null @@ -1,111 +0,0 @@ -package builders - -import ( - "encoding/hex" - "errors" - "math/big" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestNewVMQueryBuilder(t *testing.T) { - t.Parallel() - - builder := NewVMQueryBuilder() - assert.False(t, check.IfNil(builder)) - _, err := builder.ToVmValueRequest() - assert.Nil(t, err) -} - -func TestTxDataBuilder_Address(t *testing.T) { - t.Parallel() - - address, errBech32 := data.NewAddressFromBech32String("erd1k2s324ww2g0yj38qn2ch2jwctdy8mnfxep94q9arncc6xecg3xaq6mjse8") - require.Nil(t, errBech32) - - t.Run("nil address should contain error", func(t *testing.T) { - builder := NewVMQueryBuilder() - builder.Address(nil) - valueRequest, err := builder.ToVmValueRequest() - assert.True(t, errors.Is(err, ErrNilAddress)) - assert.Nil(t, valueRequest) - }) - t.Run("invalid address should contain error", func(t *testing.T) { - builder := NewVMQueryBuilder() - builder.Address(data.NewAddressFromBytes(make([]byte, 0))) - valueRequest, err := builder.ToVmValueRequest() - assert.True(t, errors.Is(err, ErrInvalidAddress)) - assert.Nil(t, valueRequest) - }) - t.Run("should work", func(t *testing.T) { - builder := NewVMQueryBuilder() - builder.Address(address) - valueRequest, err := builder.ToVmValueRequest() - assert.Nil(t, err) - assert.Equal(t, address.AddressAsBech32String(), valueRequest.Address) - }) -} - -func TestTxDataBuilder_CallerAddress(t *testing.T) { - t.Parallel() - - address, errBech32 := data.NewAddressFromBech32String("erd1k2s324ww2g0yj38qn2ch2jwctdy8mnfxep94q9arncc6xecg3xaq6mjse8") - require.Nil(t, errBech32) - - t.Run("nil address should contain error", func(t *testing.T) { - builder := NewVMQueryBuilder() - builder.CallerAddress(nil) - valueRequest, err := builder.ToVmValueRequest() - assert.True(t, errors.Is(err, ErrNilAddress)) - assert.Nil(t, valueRequest) - }) - t.Run("invalid address should contain error", func(t *testing.T) { - builder := NewVMQueryBuilder() - builder.CallerAddress(data.NewAddressFromBytes(make([]byte, 0))) - valueRequest, err := builder.ToVmValueRequest() - assert.True(t, errors.Is(err, ErrInvalidAddress)) - assert.Nil(t, valueRequest) - }) - t.Run("should work", func(t *testing.T) { - builder := NewVMQueryBuilder() - builder.CallerAddress(address) - valueRequest, err := builder.ToVmValueRequest() - assert.Nil(t, err) - assert.Equal(t, address.AddressAsBech32String(), valueRequest.CallerAddr) - }) -} - -func TestVmQueryBuilder_AllGoodArguments(t *testing.T) { - t.Parallel() - - address, errBech32 := data.NewAddressFromBech32String("erd1k2s324ww2g0yj38qn2ch2jwctdy8mnfxep94q9arncc6xecg3xaq6mjse8") - require.Nil(t, errBech32) - - builder := NewVMQueryBuilder(). - Function("function"). - ArgBigInt(big.NewInt(15)). - ArgInt64(14). - ArgAddress(address). - ArgHexString("eeff00"). - ArgBytes([]byte("aa")). - ArgBigInt(big.NewInt(0)) - - valueRequest, err := builder.ToVmValueRequest() - assert.Nil(t, err) - assert.Equal(t, "function", valueRequest.FuncName) - - expectedArgs := []string{ - hex.EncodeToString([]byte{15}), - hex.EncodeToString([]byte{14}), - hex.EncodeToString(address.AddressBytes()), - "eeff00", - hex.EncodeToString([]byte("aa")), - "00", - } - - require.Equal(t, expectedArgs, valueRequest.Args) -} diff --git a/mx-sdk-go-old/core/api.go b/mx-sdk-go-old/core/api.go deleted file mode 100644 index 81e661b9..00000000 --- a/mx-sdk-go-old/core/api.go +++ /dev/null @@ -1,53 +0,0 @@ -package core - -import ( - "encoding/hex" - "net/url" - "strconv" - - "github.com/multiversx/mx-chain-core-go/data/api" -) - -const ( - // UrlParameterOnFinalBlock represents the name of a URL parameter - UrlParameterOnFinalBlock = "onFinalBlock" - // UrlParameterOnStartOfEpoch represents the name of a URL parameter - UrlParameterOnStartOfEpoch = "onStartOfEpoch" - // UrlParameterBlockNonce represents the name of a URL parameter - UrlParameterBlockNonce = "blockNonce" - // UrlParameterBlockHash represents the name of an URL parameter - UrlParameterBlockHash = "blockHash" - // UrlParameterBlockRootHash represents the name of an URL parameter - UrlParameterBlockRootHash = "blockRootHash" - // UrlParameterHintEpoch represents the name of an URL parameter - UrlParameterHintEpoch = "hintEpoch" -) - -// BuildUrlWithAccountQueryOptions builds an URL with block query parameters -// TODO: move this to mx-chain-core-go & remove also from mx-chain-proxy-go common/options.go -func BuildUrlWithAccountQueryOptions(path string, options api.AccountQueryOptions) string { - u := url.URL{Path: path} - query := u.Query() - - if options.OnFinalBlock { - query.Set(UrlParameterOnFinalBlock, "true") - } - if options.OnStartOfEpoch.HasValue { - query.Set(UrlParameterOnStartOfEpoch, strconv.Itoa(int(options.OnStartOfEpoch.Value))) - } - if options.BlockNonce.HasValue { - query.Set(UrlParameterBlockNonce, strconv.FormatUint(options.BlockNonce.Value, 10)) - } - if len(options.BlockHash) > 0 { - query.Set(UrlParameterBlockHash, hex.EncodeToString(options.BlockHash)) - } - if len(options.BlockRootHash) > 0 { - query.Set(UrlParameterBlockRootHash, hex.EncodeToString(options.BlockRootHash)) - } - if options.HintEpoch.HasValue { - query.Set(UrlParameterHintEpoch, strconv.Itoa(int(options.HintEpoch.Value))) - } - - u.RawQuery = query.Encode() - return u.String() -} diff --git a/mx-sdk-go-old/core/api_test.go b/mx-sdk-go-old/core/api_test.go deleted file mode 100644 index daa6bccc..00000000 --- a/mx-sdk-go-old/core/api_test.go +++ /dev/null @@ -1,46 +0,0 @@ -package core - -import ( - "net/url" - "testing" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/data/api" - "github.com/stretchr/testify/require" -) - -func TestBuildUrlWithAccountQueryOptions_ShouldWork(t *testing.T) { - builtUrl := BuildUrlWithAccountQueryOptions("/address/erd1alice", api.AccountQueryOptions{}) - require.Equal(t, "/address/erd1alice", builtUrl) - - builtUrl = BuildUrlWithAccountQueryOptions("/address/erd1alice", api.AccountQueryOptions{ - BlockNonce: core.OptionalUint64{HasValue: true, Value: 42}, - }) - require.Equal(t, "/address/erd1alice?blockNonce=42", builtUrl) - - builtUrl = BuildUrlWithAccountQueryOptions("/address/erd1alice", api.AccountQueryOptions{ - BlockHash: []byte{0xab, 0xba}, - }) - require.Equal(t, "/address/erd1alice?blockHash=abba", builtUrl) - - // The following isn't a valid scenario in the real world, according to the validation defined in: - // https://github.com/multiversx/mx-chain-go/blob/master/api/groups/addressGroupOptions.go - // However, here, we are testing each code path. - builtUrl = BuildUrlWithAccountQueryOptions("/address/erd1alice", api.AccountQueryOptions{ - OnFinalBlock: true, - OnStartOfEpoch: core.OptionalUint32{HasValue: true, Value: 1}, - BlockNonce: core.OptionalUint64{HasValue: true, Value: 2}, - BlockHash: []byte{0xaa, 0xbb}, - BlockRootHash: []byte{0xbb, 0xaa}, - HintEpoch: core.OptionalUint32{HasValue: true, Value: 3}, - }) - parsed, err := url.Parse(builtUrl) - require.Nil(t, err) - require.Equal(t, "/address/erd1alice", parsed.Path) - require.Equal(t, "true", parsed.Query().Get("onFinalBlock")) - require.Equal(t, "1", parsed.Query().Get("onStartOfEpoch")) - require.Equal(t, "2", parsed.Query().Get("blockNonce")) - require.Equal(t, "aabb", parsed.Query().Get("blockHash")) - require.Equal(t, "bbaa", parsed.Query().Get("blockRootHash")) - require.Equal(t, "3", parsed.Query().Get("hintEpoch")) -} diff --git a/mx-sdk-go-old/core/constants.go b/mx-sdk-go-old/core/constants.go deleted file mode 100644 index 52f6209e..00000000 --- a/mx-sdk-go-old/core/constants.go +++ /dev/null @@ -1,10 +0,0 @@ -package core - -// AddressBytesLen represents the number of bytes of an address -const AddressBytesLen = 32 - -// MinAllowedDeltaToFinal is the minimum value between nonces allowed when checking finality on a shard -const MinAllowedDeltaToFinal = 1 - -// WebServerOffString represents the constant used to switch off the web server -const WebServerOffString = "off" diff --git a/mx-sdk-go-old/core/http/clientWrapper.go b/mx-sdk-go-old/core/http/clientWrapper.go deleted file mode 100644 index 51758613..00000000 --- a/mx-sdk-go-old/core/http/clientWrapper.go +++ /dev/null @@ -1,105 +0,0 @@ -package http - -import ( - "bytes" - "context" - "fmt" - "io/ioutil" - "net/http" - - "github.com/multiversx/mx-chain-core-go/core/check" -) - -const ( - httpUserAgentKey = "User-Agent" - httpUserAgent = "MultiversX/1.0.1 (GO SDK tools)" - - httpAcceptTypeKey = "Accept" - httpAcceptType = "application/json" - - httpContentTypeKey = "Content-Type" - httpContentType = "application/json" -) - -type clientWrapper struct { - url string - client Client -} - -// NewHttpClientWrapper will create a new instance of type httpClientWrapper -func NewHttpClientWrapper(client Client, url string) *clientWrapper { - providedClient := client - if check.IfNilReflect(providedClient) { - providedClient = http.DefaultClient - } - - return &clientWrapper{ - url: url, - client: providedClient, - } -} - -// GetHTTP does a GET method operation on the specified endpoint -func (wrapper *clientWrapper) GetHTTP(ctx context.Context, endpoint string) ([]byte, int, error) { - url := fmt.Sprintf("%s/%s", wrapper.url, endpoint) - request, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil) - if err != nil { - return nil, http.StatusBadRequest, err - } - - applyGetHeaderParams(request) - - response, err := wrapper.client.Do(request) - if err != nil { - return nil, http.StatusBadRequest, err - } - defer func() { - _ = response.Body.Close() - }() - - body, err := ioutil.ReadAll(response.Body) - if err != nil { - return nil, response.StatusCode, err - } - - return body, response.StatusCode, nil -} - -// PostHTTP does a POST method operation on the specified endpoint with the provided raw data bytes -func (wrapper *clientWrapper) PostHTTP(ctx context.Context, endpoint string, data []byte) ([]byte, int, error) { - url := fmt.Sprintf("%s/%s", wrapper.url, endpoint) - request, err := http.NewRequestWithContext(ctx, http.MethodPost, url, bytes.NewReader(data)) - if err != nil { - return nil, http.StatusBadRequest, err - } - - applyPostHeaderParams(request) - - response, err := wrapper.client.Do(request) - if err != nil { - return nil, http.StatusBadRequest, err - } - - defer func() { - _ = response.Body.Close() - }() - - buff, err := ioutil.ReadAll(response.Body) - - return buff, response.StatusCode, err -} - -// IsInterfaceNil returns true if there is no value under the interface -func (wrapper *clientWrapper) IsInterfaceNil() bool { - return wrapper == nil -} - -func applyGetHeaderParams(request *http.Request) { - request.Header.Set(httpAcceptTypeKey, httpAcceptType) - request.Header.Set(httpUserAgentKey, httpUserAgent) -} - -func applyPostHeaderParams(request *http.Request) { - applyGetHeaderParams(request) - request.Header.Set(httpContentTypeKey, httpContentType) -} diff --git a/mx-sdk-go-old/core/http/clientWrapper_test.go b/mx-sdk-go-old/core/http/clientWrapper_test.go deleted file mode 100644 index 152ffb92..00000000 --- a/mx-sdk-go-old/core/http/clientWrapper_test.go +++ /dev/null @@ -1,100 +0,0 @@ -package http - -import ( - "context" - "fmt" - "net/http" - "net/http/httptest" - "strings" - "testing" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestNewClientWrapper(t *testing.T) { - t.Parallel() - - httpClientWrapperInstance := NewHttpClientWrapper(nil, "") - assert.False(t, check.IfNil(httpClientWrapperInstance)) -} - -func TestClientWrapper_GetHTTP(t *testing.T) { - t.Parallel() - - response := []byte("response") - testHttpServer := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { - // simulating that the operation takes a lot of time - time.Sleep(time.Second * 2) - rw.WriteHeader(http.StatusOK) - _, _ = rw.Write(response) - - assert.Equal(t, httpAcceptType, req.Header.Get(httpAcceptTypeKey)) - assert.Equal(t, "", req.Header.Get(httpContentTypeKey)) // this is not set on a GET request - assert.Equal(t, httpUserAgent, req.Header.Get(httpUserAgentKey)) - })) - wrapper := NewHttpClientWrapper(nil, testHttpServer.URL) - - t.Run("context done", func(t *testing.T) { - t.Parallel() - - ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*100) - defer cancel() - - resp, code, err := wrapper.GetHTTP(ctx, "endpoint") - assert.Nil(t, resp) - require.NotNil(t, err) - assert.Equal(t, "*url.Error", fmt.Sprintf("%T", err)) - assert.True(t, strings.Contains(err.Error(), "context deadline exceeded")) - assert.Equal(t, http.StatusBadRequest, code) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - resp, code, err := wrapper.GetHTTP(context.Background(), "endpoint") - assert.Equal(t, response, resp) - assert.Nil(t, err) - assert.Equal(t, http.StatusOK, code) - }) -} - -func TestClientWrapper_PostHTTP(t *testing.T) { - t.Parallel() - - response := []byte("response") - testHttpServer := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { - // simulating that the operation takes a lot of time - time.Sleep(time.Second * 2) - rw.WriteHeader(http.StatusOK) - _, _ = rw.Write(response) - - assert.Equal(t, httpAcceptType, req.Header.Get(httpAcceptTypeKey)) - assert.Equal(t, httpContentType, req.Header.Get(httpContentTypeKey)) - assert.Equal(t, httpUserAgent, req.Header.Get(httpUserAgentKey)) - })) - wrapper := NewHttpClientWrapper(nil, testHttpServer.URL) - - t.Run("context done", func(t *testing.T) { - t.Parallel() - - ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*100) - defer cancel() - - resp, code, err := wrapper.PostHTTP(ctx, "endpoint", nil) - assert.Nil(t, resp) - require.NotNil(t, err) - assert.Equal(t, "*url.Error", fmt.Sprintf("%T", err)) - assert.True(t, strings.Contains(err.Error(), "context deadline exceeded")) - assert.Equal(t, http.StatusBadRequest, code) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - resp, code, err := wrapper.PostHTTP(context.Background(), "endpoint", nil) - assert.Equal(t, response, resp) - assert.Nil(t, err) - assert.Equal(t, http.StatusOK, code) - }) -} diff --git a/mx-sdk-go-old/core/http/interface.go b/mx-sdk-go-old/core/http/interface.go deleted file mode 100644 index 21bfba3e..00000000 --- a/mx-sdk-go-old/core/http/interface.go +++ /dev/null @@ -1,8 +0,0 @@ -package http - -import "net/http" - -// Client is the interface we expect to call in order to do the HTTP requests -type Client interface { - Do(req *http.Request) (*http.Response, error) -} diff --git a/mx-sdk-go-old/core/interface.go b/mx-sdk-go-old/core/interface.go deleted file mode 100644 index 76394db8..00000000 --- a/mx-sdk-go-old/core/interface.go +++ /dev/null @@ -1,21 +0,0 @@ -package core - -import crypto "github.com/multiversx/mx-chain-crypto-go" - -// AddressHandler will handle different implementations of an address -type AddressHandler interface { - AddressAsBech32String() string - AddressBytes() []byte - AddressSlice() [32]byte - IsValid() bool - IsInterfaceNil() bool -} - -// CryptoComponentsHolder is able to holder and provide all the crypto components -type CryptoComponentsHolder interface { - GetPublicKey() crypto.PublicKey - GetPrivateKey() crypto.PrivateKey - GetBech32() string - GetAddressHandler() AddressHandler - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/core/polling/errors.go b/mx-sdk-go-old/core/polling/errors.go deleted file mode 100644 index 3ddce323..00000000 --- a/mx-sdk-go-old/core/polling/errors.go +++ /dev/null @@ -1,15 +0,0 @@ -package polling - -import "errors" - -// ErrNilLogger signals that a nil logger was provided -var ErrNilLogger = errors.New("nil logger") - -// ErrInvalidValue signals that an invalid value was provided -var ErrInvalidValue = errors.New("invalid value") - -// ErrNilExecutor signals that a nil executor instance has been provided -var ErrNilExecutor = errors.New("nil executor") - -// ErrLoopAlreadyStarted signals that a loop has already been started -var ErrLoopAlreadyStarted = errors.New("loop already started") diff --git a/mx-sdk-go-old/core/polling/interface.go b/mx-sdk-go-old/core/polling/interface.go deleted file mode 100644 index 620d580a..00000000 --- a/mx-sdk-go-old/core/polling/interface.go +++ /dev/null @@ -1,10 +0,0 @@ -package polling - -import "context" - -// Executor defines the behavior of a component able to execute a certain task. This will be continuously called -// by the polling handler -type Executor interface { - Execute(ctx context.Context) error - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/core/polling/mock/executorStub.go b/mx-sdk-go-old/core/polling/mock/executorStub.go deleted file mode 100644 index 37555c8b..00000000 --- a/mx-sdk-go-old/core/polling/mock/executorStub.go +++ /dev/null @@ -1,22 +0,0 @@ -package mock - -import "context" - -// ExecutorStub - -type ExecutorStub struct { - ExecuteCalled func(ctx context.Context) error -} - -// Execute - -func (es *ExecutorStub) Execute(ctx context.Context) error { - if es.ExecuteCalled != nil { - return es.ExecuteCalled(ctx) - } - - return nil -} - -// IsInterfaceNil - -func (es *ExecutorStub) IsInterfaceNil() bool { - return es == nil -} diff --git a/mx-sdk-go-old/core/polling/pollingHandler.go b/mx-sdk-go-old/core/polling/pollingHandler.go deleted file mode 100644 index 13f204a1..00000000 --- a/mx-sdk-go-old/core/polling/pollingHandler.go +++ /dev/null @@ -1,144 +0,0 @@ -package polling - -import ( - "context" - "fmt" - "sync" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - logger "github.com/multiversx/mx-chain-logger-go" -) - -const minimumPollingInterval = time.Millisecond - -// ArgsPollingHandler is the DTO used in the polling handler constructor -type ArgsPollingHandler struct { - Log logger.Logger - Name string - PollingInterval time.Duration - PollingWhenError time.Duration - Executor Executor -} - -// pollingHandler represents the component that is able to coordinate the process of calling the -// callBackFunction function continuously until the call to Close is done. -type pollingHandler struct { - log logger.Logger - name string - pollingInterval time.Duration - pollingWhenError time.Duration - executor Executor - mutState sync.RWMutex - cancel func() -} - -// NewPollingHandler will create a new polling handler instance -func NewPollingHandler(args ArgsPollingHandler) (*pollingHandler, error) { - err := checkArgs(args) - if err != nil { - return nil, err - } - - return &pollingHandler{ - log: args.Log, - name: args.Name, - pollingInterval: args.PollingInterval, - pollingWhenError: args.PollingWhenError, - executor: args.Executor, - }, nil -} - -func checkArgs(args ArgsPollingHandler) error { - if check.IfNil(args.Log) { - return ErrNilLogger - } - if args.PollingInterval < minimumPollingInterval { - return fmt.Errorf("%w for PollingInterval", ErrInvalidValue) - } - if args.PollingWhenError < minimumPollingInterval { - return fmt.Errorf("%w for PollingWhenError", ErrInvalidValue) - } - if check.IfNil(args.Executor) { - return ErrNilExecutor - } - - return nil -} - -// StartProcessingLoop will start the processing loop -func (ph *pollingHandler) StartProcessingLoop() error { - ph.mutState.Lock() - defer ph.mutState.Unlock() - - if ph.cancel != nil { - return ErrLoopAlreadyStarted - } - - ctx, cancel := context.WithCancel(context.Background()) - ph.cancel = cancel - - go ph.processLoop(ctx) - - return nil -} - -func (ph *pollingHandler) processLoop(ctx context.Context) { - defer ph.cleanup() - - timer := time.NewTimer(ph.pollingInterval) - defer timer.Stop() - - for { - interval := ph.pollingInterval - - err := ph.executor.Execute(ctx) - if err != nil { - ph.log.Error("error in pollingHandler.processLoop", - "name", ph.name, "error", err, - "retrying after", ph.pollingWhenError) - interval = ph.pollingWhenError - } - timer.Reset(interval) - - select { - case <-timer.C: - case <-ctx.Done(): - ph.log.Debug("pollingHandler's processing loop is closing...", - "name", ph.name) - return - } - } -} - -func (ph *pollingHandler) cleanup() { - ph.mutState.Lock() - defer ph.mutState.Unlock() - - ph.cancel = nil -} - -// IsRunning returns true if the processing loop is running -func (ph *pollingHandler) IsRunning() bool { - ph.mutState.RLock() - defer ph.mutState.RUnlock() - - return ph.cancel != nil -} - -// Close will close any containing members and clean any go routines associated -func (ph *pollingHandler) Close() error { - ph.mutState.RLock() - defer ph.mutState.RUnlock() - - if ph.cancel != nil { - ph.cancel() - } - - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (ph *pollingHandler) IsInterfaceNil() bool { - return ph == nil -} diff --git a/mx-sdk-go-old/core/polling/pollingHandler_test.go b/mx-sdk-go-old/core/polling/pollingHandler_test.go deleted file mode 100644 index 64ee7868..00000000 --- a/mx-sdk-go-old/core/polling/pollingHandler_test.go +++ /dev/null @@ -1,204 +0,0 @@ -package polling - -import ( - "context" - "errors" - "strings" - "sync/atomic" - "testing" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core/polling/mock" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func createMockArgs() ArgsPollingHandler { - return ArgsPollingHandler{ - Log: logger.GetOrCreate("test"), - Name: "test", - PollingInterval: time.Millisecond, - PollingWhenError: time.Millisecond, - Executor: &mock.ExecutorStub{}, - } -} - -func TestNewPollingHandler(t *testing.T) { - t.Parallel() - - t.Run("nil logger should error", func(t *testing.T) { - args := createMockArgs() - args.Log = nil - - ph, err := NewPollingHandler(args) - assert.True(t, check.IfNil(ph)) - assert.Equal(t, ErrNilLogger, err) - }) - t.Run("invalid polling interval should error", func(t *testing.T) { - args := createMockArgs() - args.PollingInterval = minimumPollingInterval - time.Nanosecond - - ph, err := NewPollingHandler(args) - assert.True(t, check.IfNil(ph)) - assert.True(t, errors.Is(err, ErrInvalidValue)) - assert.True(t, strings.Contains(err.Error(), "PollingInterval")) - }) - t.Run("invalid polling interval when error should error", func(t *testing.T) { - args := createMockArgs() - args.PollingWhenError = minimumPollingInterval - time.Nanosecond - - ph, err := NewPollingHandler(args) - assert.True(t, check.IfNil(ph)) - assert.True(t, errors.Is(err, ErrInvalidValue)) - assert.True(t, strings.Contains(err.Error(), "PollingWhenError")) - }) - t.Run("nil executor should error", func(t *testing.T) { - args := createMockArgs() - args.Executor = nil - - ph, err := NewPollingHandler(args) - assert.True(t, check.IfNil(ph)) - assert.Equal(t, ErrNilExecutor, err) - }) - t.Run("should work", func(t *testing.T) { - args := createMockArgs() - - ph, err := NewPollingHandler(args) - assert.False(t, check.IfNil(ph)) - assert.Nil(t, err) - }) -} - -func TestPollingHandler_NotStartedShouldNotCallExecutor(t *testing.T) { - t.Parallel() - - args := createMockArgs() - args.Executor = &mock.ExecutorStub{ - ExecuteCalled: func(ctx context.Context) error { - require.Fail(t, "should have not called execute") - - return nil - }, - } - - ph, _ := NewPollingHandler(args) - assert.False(t, ph.IsRunning()) - - time.Sleep(time.Second) - - err := ph.Close() - assert.Nil(t, err) - assert.False(t, ph.IsRunning()) -} - -func TestPollingHandler_StartedShouldCallExecuteMultipleTimes(t *testing.T) { - t.Parallel() - - numCalls := uint32(0) - args := createMockArgs() - args.Executor = &mock.ExecutorStub{ - ExecuteCalled: func(ctx context.Context) error { - atomic.AddUint32(&numCalls, 1) - - return nil - }, - } - - ph, _ := NewPollingHandler(args) - assert.False(t, ph.IsRunning()) - - err := ph.StartProcessingLoop() - assert.Nil(t, err) - assert.True(t, ph.IsRunning()) - - time.Sleep(time.Millisecond * 200) - assert.True(t, atomic.LoadUint32(&numCalls) > 2) - - err = ph.Close() - assert.Nil(t, err) - time.Sleep(time.Second) - - assert.False(t, ph.IsRunning()) -} - -func TestPollingHandler_StartedShouldTerminateExecutorOnClose(t *testing.T) { - t.Parallel() - - args := createMockArgs() - args.Executor = &mock.ExecutorStub{ - ExecuteCalled: func(ctx context.Context) error { - <-ctx.Done() - - return nil - }, - } - - ph, _ := NewPollingHandler(args) - assert.False(t, ph.IsRunning()) - - err := ph.StartProcessingLoop() - assert.Nil(t, err) - assert.True(t, ph.IsRunning()) - - time.Sleep(time.Millisecond * 200) - - err = ph.Close() - assert.Nil(t, err) - time.Sleep(time.Second) - - assert.False(t, ph.IsRunning()) -} - -func TestPollingHandler_StartedShouldUseDifferentPollingTimeOnError(t *testing.T) { - t.Parallel() - - args := createMockArgs() - args.PollingInterval = time.Hour - numCalls := uint32(0) - args.Executor = &mock.ExecutorStub{ - ExecuteCalled: func(ctx context.Context) error { - atomic.AddUint32(&numCalls, 1) - - return errors.New("expected error") - }, - } - - ph, _ := NewPollingHandler(args) - assert.False(t, ph.IsRunning()) - - err := ph.StartProcessingLoop() - assert.Nil(t, err) - assert.True(t, ph.IsRunning()) - - time.Sleep(time.Millisecond * 200) - assert.True(t, atomic.LoadUint32(&numCalls) > 2) - - err = ph.Close() - assert.Nil(t, err) - time.Sleep(time.Second) - - assert.False(t, ph.IsRunning()) -} - -func TestPollingHandler_StartedMultipleTimesShouldError(t *testing.T) { - t.Parallel() - - args := createMockArgs() - - ph, _ := NewPollingHandler(args) - assert.False(t, ph.IsRunning()) - err := ph.StartProcessingLoop() - assert.Nil(t, err) - assert.True(t, ph.IsRunning()) - - err = ph.StartProcessingLoop() - assert.Equal(t, ErrLoopAlreadyStarted, err) - - err = ph.Close() - assert.Nil(t, err) - time.Sleep(time.Second) - - assert.False(t, ph.IsRunning()) -} diff --git a/mx-sdk-go-old/core/types.go b/mx-sdk-go-old/core/types.go deleted file mode 100644 index 50d41c7d..00000000 --- a/mx-sdk-go-old/core/types.go +++ /dev/null @@ -1,11 +0,0 @@ -package core - -// RestAPIEntityType defines the entity that can resolve REST API requests -type RestAPIEntityType string - -const ( - // ObserverNode the entity queried is an observer - ObserverNode RestAPIEntityType = "observer" - // Proxy the entity queried is a proxy - Proxy RestAPIEntityType = "proxy" -) diff --git a/mx-sdk-go-old/core/variables.go b/mx-sdk-go-old/core/variables.go deleted file mode 100644 index 6758ddaf..00000000 --- a/mx-sdk-go-old/core/variables.go +++ /dev/null @@ -1,11 +0,0 @@ -package core - -import ( - "github.com/multiversx/mx-chain-core-go/core/pubkeyConverter" - logger "github.com/multiversx/mx-chain-logger-go" -) - -var log = logger.GetOrCreate("mx-sdk-go/core") - -// AddressPublicKeyConverter represents the default address public key converter -var AddressPublicKeyConverter, _ = pubkeyConverter.NewBech32PubkeyConverter(AddressBytesLen, log) diff --git a/mx-sdk-go-old/data/account.go b/mx-sdk-go-old/data/account.go deleted file mode 100644 index 55fde40a..00000000 --- a/mx-sdk-go-old/data/account.go +++ /dev/null @@ -1,88 +0,0 @@ -package data - -import ( - "errors" - "math/big" -) - -var errInvalidBalance = errors.New("invalid balance") - -// AccountResponse holds the account endpoint response -type AccountResponse struct { - Data struct { - Account *Account `json:"account"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// Account holds an Account's information -type Account struct { - Address string `json:"address"` - Nonce uint64 `json:"nonce"` - Balance string `json:"balance"` - Code string `json:"code"` - CodeHash []byte `json:"codeHash"` - RootHash []byte `json:"rootHash"` - CodeMetadata []byte `json:"codeMetadata"` - Username string `json:"username"` - DeveloperReward string `json:"developerReward"` - OwnerAddress string `json:"ownerAddress"` -} - -// GetBalance computes the float representation of the balance, -// based on the provided number of decimals -func (a *Account) GetBalance(decimals int) (float64, error) { - balance, ok := big.NewFloat(0).SetString(a.Balance) - if !ok { - return 0, errInvalidBalance - } - // Compute denominated balance to 18 decimals - denomination := big.NewInt(int64(decimals)) - denominationMultiplier := big.NewInt(10) - denominationMultiplier.Exp(denominationMultiplier, denomination, nil) - floatDenomination, _ := big.NewFloat(0).SetString(denominationMultiplier.String()) - balance.Quo(balance, floatDenomination) - floatBalance, _ := balance.Float64() - - return floatBalance, nil -} - -// ESDTFungibleResponse holds the ESDT (fungible) token data endpoint response -type ESDTFungibleResponse struct { - Data struct { - TokenData *ESDTFungibleTokenData `json:"tokenData"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// ESDTFungibleTokenData holds the ESDT (fungible) token data definition -type ESDTFungibleTokenData struct { - TokenIdentifier string `json:"tokenIdentifier"` - Balance string `json:"balance"` - Properties string `json:"properties"` -} - -// ESDTNFTResponse holds the NFT token data endpoint response -type ESDTNFTResponse struct { - Data struct { - TokenData *ESDTNFTTokenData `json:"tokenData"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// ESDTNFTTokenData holds the ESDT (NDT, SFT or MetaESDT) token data definition -type ESDTNFTTokenData struct { - TokenIdentifier string `json:"tokenIdentifier"` - Balance string `json:"balance"` - Properties string `json:"properties,omitempty"` - Name string `json:"name,omitempty"` - Nonce uint64 `json:"nonce,omitempty"` - Creator string `json:"creator,omitempty"` - Royalties string `json:"royalties,omitempty"` - Hash []byte `json:"hash,omitempty"` - URIs [][]byte `json:"uris,omitempty"` - Attributes []byte `json:"attributes,omitempty"` -} diff --git a/mx-sdk-go-old/data/address.go b/mx-sdk-go-old/data/address.go deleted file mode 100644 index a679e30b..00000000 --- a/mx-sdk-go-old/data/address.go +++ /dev/null @@ -1,57 +0,0 @@ -package data - -import "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - -type address struct { - bytes []byte -} - -// NewAddressFromBytes returns a new address from provided bytes -func NewAddressFromBytes(bytes []byte) *address { - addr := &address{ - bytes: make([]byte, len(bytes)), - } - copy(addr.bytes, bytes) - - return addr -} - -// NewAddressFromBech32String returns a new address from provided bech32 string -func NewAddressFromBech32String(bech32 string) (*address, error) { - buff, err := core.AddressPublicKeyConverter.Decode(bech32) - if err != nil { - return nil, err - } - - return &address{ - bytes: buff, - }, err -} - -// AddressAsBech32String returns the address as a bech32 string -func (a *address) AddressAsBech32String() string { - return core.AddressPublicKeyConverter.Encode(a.bytes) -} - -// AddressBytes returns the raw address' bytes -func (a *address) AddressBytes() []byte { - return a.bytes -} - -// AddressSlice will convert the provided buffer to its [32]byte representation -func (a *address) AddressSlice() [32]byte { - var result [32]byte - copy(result[:], a.bytes) - - return result -} - -// IsValid returns true if the contained address is valid -func (a *address) IsValid() bool { - return len(a.bytes) == core.AddressBytesLen -} - -// IsInterfaceNil returns true if there is no value under the interface -func (a *address) IsInterfaceNil() bool { - return a == nil -} diff --git a/mx-sdk-go-old/data/enableEpochsConfig.go b/mx-sdk-go-old/data/enableEpochsConfig.go deleted file mode 100644 index cb9f5a51..00000000 --- a/mx-sdk-go-old/data/enableEpochsConfig.go +++ /dev/null @@ -1,24 +0,0 @@ -package data - -import "github.com/multiversx/mx-chain-go/config" - -// EnableEpochsConfigResponse holds the enable epochs config endpoint response -type EnableEpochsConfigResponse struct { - Data struct { - Config *EnableEpochsConfig `json:"enableEpochs"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// MaxNodesChangeConfig holds the max nodes change config -type MaxNodesChangeConfig struct { - EpochEnable uint32 `json:"erd_epoch_enable"` - MaxNumNodes uint32 `json:"erd_max_num_nodes"` - NodesToShufflePerShard uint32 `json:"erd_nodes_to_shuffle_per_shard"` -} - -// EnableEpochsConfig holds the enable epochs configuration parameters -type EnableEpochsConfig struct { - EnableEpochs config.EnableEpochs -} diff --git a/mx-sdk-go-old/data/hyperblock.go b/mx-sdk-go-old/data/hyperblock.go deleted file mode 100644 index 507db415..00000000 --- a/mx-sdk-go-old/data/hyperblock.go +++ /dev/null @@ -1,27 +0,0 @@ -package data - -// HyperBlock holds a hyper block's details -type HyperBlock struct { - Nonce uint64 `json:"nonce"` - Round uint64 `json:"round"` - Hash string `json:"hash"` - PrevBlockHash string `json:"prevBlockHash"` - Epoch uint64 `json:"epoch"` - NumTxs uint64 `json:"numTxs"` - ShardBlocks []struct { - Hash string `json:"hash"` - Nonce uint64 `json:"nonce"` - Shard uint32 `json:"shard"` - } `json:"shardBlocks"` - Timestamp uint64 `json:"timestamp"` - Transactions []TransactionOnNetwork -} - -// HyperBlockResponse holds a hyper block info response from the network -type HyperBlockResponse struct { - Data struct { - HyperBlock HyperBlock `json:"hyperblock"` - } - Error string `json:"error"` - Code string `json:"code"` -} diff --git a/mx-sdk-go-old/data/internalBlock.go b/mx-sdk-go-old/data/internalBlock.go deleted file mode 100644 index b589cd9d..00000000 --- a/mx-sdk-go-old/data/internalBlock.go +++ /dev/null @@ -1,19 +0,0 @@ -package data - -// RawBlockRespone holds the raw blocks endpoint response -type RawBlockRespone struct { - Data struct { - Block []byte `json:"block"` - } - Error string `json:"error"` - Code string `json:"code"` -} - -// RawMiniBlockRespone holds the raw miniblock endpoint respone -type RawMiniBlockRespone struct { - Data struct { - MiniBlock []byte `json:"miniblock"` - } - Error string `json:"error"` - Code string `json:"code"` -} diff --git a/mx-sdk-go-old/data/mnemonic.go b/mx-sdk-go-old/data/mnemonic.go deleted file mode 100644 index ba458dc9..00000000 --- a/mx-sdk-go-old/data/mnemonic.go +++ /dev/null @@ -1,13 +0,0 @@ -package data - -import "strings" - -const spaceChar = " " - -// Mnemonic will hold the mnemonic info -type Mnemonic string - -// ToSplitMnemonicWords splits the complete strings in words -func (m Mnemonic) ToSplitMnemonicWords() []string { - return strings.Split(string(m), spaceChar) -} diff --git a/mx-sdk-go-old/data/mnemonic_test.go b/mx-sdk-go-old/data/mnemonic_test.go deleted file mode 100644 index e2df0332..00000000 --- a/mx-sdk-go-old/data/mnemonic_test.go +++ /dev/null @@ -1,16 +0,0 @@ -package data - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestMnemonic_ToSplitMnemonicWords(t *testing.T) { - t.Parallel() - - m := Mnemonic("tag volcano eight thank tide danger coast health above argue embrace heavy") - expected := []string{"tag", "volcano", "eight", "thank", "tide", "danger", "coast", "health", "above", "argue", "embrace", "heavy"} - - assert.Equal(t, expected, m.ToSplitMnemonicWords()) -} diff --git a/mx-sdk-go-old/data/networkConfig.go b/mx-sdk-go-old/data/networkConfig.go deleted file mode 100644 index 79e18847..00000000 --- a/mx-sdk-go-old/data/networkConfig.go +++ /dev/null @@ -1,32 +0,0 @@ -package data - -// NetworkConfigResponse holds the network config endpoint response -type NetworkConfigResponse struct { - Data struct { - Config *NetworkConfig `json:"config"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// NetworkConfig holds the network configuration parameters -type NetworkConfig struct { - ChainID string `json:"erd_chain_id"` - Denomination int `json:"erd_denomination"` - GasPerDataByte uint64 `json:"erd_gas_per_data_byte"` - LatestTagSoftwareVersion string `json:"erd_latest_tag_software_version"` - MetaConsensusGroup uint32 `json:"erd_meta_consensus_group_size"` - MinGasLimit uint64 `json:"erd_min_gas_limit"` - MinGasPrice uint64 `json:"erd_min_gas_price"` - MinTransactionVersion uint32 `json:"erd_min_transaction_version"` - NumMetachainNodes uint32 `json:"erd_num_metachain_nodes"` - NumNodesInShard uint32 `json:"erd_num_nodes_in_shard"` - NumShardsWithoutMeta uint32 `json:"erd_num_shards_without_meta"` - RoundDuration int64 `json:"erd_round_duration"` - ShardConsensusGroupSize uint64 `json:"erd_shard_consensus_group_size"` - StartTime int64 `json:"erd_start_time"` - Adaptivity bool `json:"erd_adaptivity,string"` - Hysteresys float32 `json:"erd_hysteresis,string"` - RoundsPerEpoch uint32 `json:"erd_rounds_per_epoch"` - ExtraGasLimitGuardedTx uint64 `json:"erd_extra_gas_limit_guarded_tx"` -} diff --git a/mx-sdk-go-old/data/networkEconomics.go b/mx-sdk-go-old/data/networkEconomics.go deleted file mode 100644 index 22f05a10..00000000 --- a/mx-sdk-go-old/data/networkEconomics.go +++ /dev/null @@ -1,21 +0,0 @@ -package data - -// NetworkEconomicsResponse holds the network economics endpoint response -type NetworkEconomicsResponse struct { - Data struct { - Economics *NetworkEconomics `json:"metrics"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// NetworkEconomics holds the network economics details -type NetworkEconomics struct { - DevRewards string `json:"erd_dev_rewards"` - EpochForEconomicsData uint32 `json:"erd_epoch_for_economics_data"` - Inflation string `json:"erd_inflation"` - TotalFees string `json:"erd_total_fees"` - TotalStakedValue string `json:"erd_total_staked_value"` - TotalSupply string `json:"erd_total_supply"` - TotalTopUpValue string `json:"erd_total_top_up_value"` -} diff --git a/mx-sdk-go-old/data/networkStatus.go b/mx-sdk-go-old/data/networkStatus.go deleted file mode 100644 index 5e47217a..00000000 --- a/mx-sdk-go-old/data/networkStatus.go +++ /dev/null @@ -1,26 +0,0 @@ -package data - -// NetworkStatusResponse holds the network status response (for a specified shard) -type NetworkStatusResponse struct { - Data struct { - Status *NetworkStatus `json:"status"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// NetworkStatus holds the network status details of a specified shard -type NetworkStatus struct { - CurrentRound uint64 `json:"erd_current_round"` - EpochNumber uint64 `json:"erd_epoch_number"` - Nonce uint64 `json:"erd_nonce"` - NonceAtEpochStart uint64 `json:"erd_nonce_at_epoch_start"` - NoncesPassedInCurrentEpoch uint64 `json:"erd_nonces_passed_in_current_epoch"` - RoundAtEpochStart uint64 `json:"erd_round_at_epoch_start"` - RoundsPassedInCurrentEpoch uint64 `json:"erd_rounds_passed_in_current_epoch"` - RoundsPerEpoch uint64 `json:"erd_rounds_per_epoch"` - CrossCheckBlockHeight string `json:"erd_cross_check_block_height"` - HighestNonce uint64 `json:"erd_highest_final_nonce"` - ProbableHighestNonce uint64 `json:"erd_probable_highest_nonce"` - ShardID uint32 `json:"erd_shard_id"` -} diff --git a/mx-sdk-go-old/data/nodeConfig.go b/mx-sdk-go-old/data/nodeConfig.go deleted file mode 100644 index 7e29c6b8..00000000 --- a/mx-sdk-go-old/data/nodeConfig.go +++ /dev/null @@ -1,27 +0,0 @@ -package data - -import "github.com/multiversx/mx-chain-go/state" - -// GenesisNodesResponse holds the network genesis nodes endpoint reponse -type GenesisNodesResponse struct { - Data struct { - Nodes *GenesisNodes `json:"nodes"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// GenesisNodes holds the genesis nodes public keys per shard -type GenesisNodes struct { - Eligible map[uint32][]string `json:"eligible"` - Waiting map[uint32][]string `json:"waiting"` -} - -// ValidatorsInfoResponse holds the validators info endpoint reponse -type ValidatorsInfoResponse struct { - Data struct { - ValidatorsInfo []*state.ShardValidatorInfo `json:"validators"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} diff --git a/mx-sdk-go-old/data/nodeStatus.go b/mx-sdk-go-old/data/nodeStatus.go deleted file mode 100644 index aa9ef009..00000000 --- a/mx-sdk-go-old/data/nodeStatus.go +++ /dev/null @@ -1,10 +0,0 @@ -package data - -// NodeStatusResponse holds the node status response -type NodeStatusResponse struct { - Data struct { - Status *NetworkStatus `json:"metrics"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} diff --git a/mx-sdk-go-old/data/ratingsConfig.go b/mx-sdk-go-old/data/ratingsConfig.go deleted file mode 100644 index 5e25c9ca..00000000 --- a/mx-sdk-go-old/data/ratingsConfig.go +++ /dev/null @@ -1,41 +0,0 @@ -package data - -// RatingsConfigResponse holds the ratings config endpoint response -type RatingsConfigResponse struct { - Data struct { - Config *RatingsConfig `json:"config"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// SelectionChances holds the selection chances parameters -type SelectionChances struct { - ChancePercent uint32 `json:"erd_chance_percent"` - MaxThreshold uint32 `json:"erd_max_threshold"` -} - -// RatingsConfig holds the ratings configuration parameters -type RatingsConfig struct { - GeneralMaxRating uint32 `json:"erd_ratings_general_max_rating"` - GeneralMinRating uint32 `json:"erd_ratings_general_min_rating"` - GeneralSignedBlocksThreshold float32 `json:"erd_ratings_general_signed_blocks_threshold,string"` - GeneralStartRating uint32 `json:"erd_ratings_general_start_rating"` - GeneralSelectionChances []*SelectionChances `json:"erd_ratings_general_selection_chances"` - MetachainConsecutiveMissedBlocksPenalty float32 `json:"erd_ratings_metachain_consecutive_missed_blocks_penalty,string"` - MetachainHoursToMaxRatingFromStartRating uint32 `json:"erd_ratings_metachain_hours_to_max_rating_from_start_rating"` - MetachainProposerDecreaseFactor float32 `json:"erd_ratings_metachain_proposer_decrease_factor,string"` - MetachainProposerValidatorImportance float32 `json:"erd_ratings_metachain_proposer_validator_importance,string"` - MetachainValidatorDecreaseFactor float32 `json:"erd_ratings_metachain_validator_decrease_factor,string"` - PeerhonestyBadPeerThreshold float64 `json:"erd_ratings_peerhonesty_bad_peer_threshold,string"` - PeerhonestyDecayCoefficient float64 `json:"erd_ratings_peerhonesty_decay_coefficient,string"` - PeerhonestyDecayUpdateIntervalInseconds uint32 `json:"erd_ratings_peerhonesty_decay_update_interval_inseconds"` - PeerhonestyMaxScore float64 `json:"erd_ratings_peerhonesty_max_score,string"` - PeerhonestyMinScore float64 `json:"erd_ratings_peerhonesty_min_score,string"` - PeerhonestyUnitValue float64 `json:"erd_ratings_peerhonesty_unit_value,string"` - ShardchainConsecutiveMissedBlocksPenalty float32 `json:"erd_ratings_shardchain_consecutive_missed_blocks_penalty,string"` - ShardchainHoursToMaxRatingFromStartRating uint32 `json:"erd_ratings_shardchain_hours_to_max_rating_from_start_rating"` - ShardchainProposerDecreaseFactor float32 `json:"erd_ratings_shardchain_proposer_decrease_factor,string"` - ShardchainProposerValidatorImportance float32 `json:"erd_ratings_shardchain_proposer_validator_importance,string"` - ShardchainValidatorDecreaseFactor float32 `json:"erd_ratings_shardchain_validator_decrease_factor,string"` -} diff --git a/mx-sdk-go-old/data/transaction.go b/mx-sdk-go-old/data/transaction.go deleted file mode 100644 index 8fddbf76..00000000 --- a/mx-sdk-go-old/data/transaction.go +++ /dev/null @@ -1,94 +0,0 @@ -package data - -import "github.com/multiversx/mx-chain-core-go/data/transaction" - -// SendTransactionResponse holds the response received from the network when broadcasting a transaction -type SendTransactionResponse struct { - Data struct { - TxHash string `json:"txHash"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// SendTransactionsResponse holds the response received from the network when broadcasting multiple transactions -type SendTransactionsResponse struct { - Data struct { - NumOfSentTxs int `json:"numOfSentTxs"` - TxsHashes map[int]string `json:"txsHashes"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// TransactionStatus holds a transaction's status response from the network -type TransactionStatus struct { - Data struct { - Status string `json:"status"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// ProcessedTransactionStatus holds a transaction's processed status response from the network -type ProcessedTransactionStatus struct { - Data struct { - ProcessedStatus string `json:"status"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// TransactionInfo holds a transaction info response from the network -type TransactionInfo struct { - Data struct { - Transaction TransactionOnNetwork `json:"transaction"` - } `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// TransactionOnNetwork holds a transaction's info entry in a hyper block -type TransactionOnNetwork struct { - Type string `json:"type"` - ProcessingTypeOnSource string `json:"processingTypeOnSource,omitempty"` - ProcessingTypeOnDestination string `json:"processingTypeOnDestination,omitempty"` - Hash string `json:"hash"` - Nonce uint64 `json:"nonce"` - Value string `json:"value"` - Receiver string `json:"receiver"` - Sender string `json:"sender"` - GasPrice uint64 `json:"gasPrice"` - GasLimit uint64 `json:"gasLimit"` - Data []byte `json:"data"` - Signature string `json:"signature"` - SourceShard uint32 `json:"sourceShard"` - DestinationShard uint32 `json:"destinationShard"` - BlockNonce uint64 `json:"blockNonce"` - BlockHash string `json:"blockHash"` - MiniblockType string `json:"miniblockType"` - MiniblockHash string `json:"miniblockHash"` - Timestamp uint64 `json:"timestamp"` - Status string `json:"status"` - HyperBlockNonce uint64 `json:"hyperblockNonce"` - HyperBlockHash string `json:"hyperblockHash"` - NotarizedAtSourceInMetaNonce uint64 `json:"notarizedAtSourceInMetaNonce,omitempty"` - NotarizedAtSourceInMetaHash string `json:"NotarizedAtSourceInMetaHash,omitempty"` - NotarizedAtDestinationInMetaNonce uint64 `json:"notarizedAtDestinationInMetaNonce,omitempty"` - NotarizedAtDestinationInMetaHash string `json:"notarizedAtDestinationInMetaHash,omitempty"` - ScResults []*transaction.ApiSmartContractResult `json:"smartContractResults,omitempty"` - Logs *transaction.ApiLogs `json:"logs,omitempty"` -} - -// TxCostResponseData follows the format of the data field of a transaction cost request -type TxCostResponseData struct { - TxCost uint64 `json:"txGasUnits"` - RetMessage string `json:"returnMessage"` -} - -// ResponseTxCost defines a response from the node holding the transaction cost -type ResponseTxCost struct { - Data TxCostResponseData `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} diff --git a/mx-sdk-go-old/data/vmValues.go b/mx-sdk-go-old/data/vmValues.go deleted file mode 100644 index f966c2d1..00000000 --- a/mx-sdk-go-old/data/vmValues.go +++ /dev/null @@ -1,33 +0,0 @@ -package data - -import ( - "github.com/multiversx/mx-chain-core-go/data/vm" -) - -// VmValuesResponseData follows the format of the data field in an API response for a VM values query -type VmValuesResponseData struct { - Data *vm.VMOutputApi `json:"data"` -} - -// ResponseVmValue defines a wrapper over string containing returned data in hex format -type ResponseVmValue struct { - Data VmValuesResponseData `json:"data"` - Error string `json:"error"` - Code string `json:"code"` -} - -// VmValueRequest defines the request struct for values available in a VM -type VmValueRequest struct { - Address string `json:"scAddress"` - FuncName string `json:"funcName"` - CallerAddr string `json:"caller"` - CallValue string `json:"value"` - Args []string `json:"args"` -} - -// VmValueRequestWithOptionalParameters defines the request struct for values available in a VM -type VmValueRequestWithOptionalParameters struct { - *VmValueRequest - SameScState bool `json:"sameScState"` - ShouldBeSynced bool `json:"shouldBeSynced"` -} diff --git a/mx-sdk-go-old/disabled/accounts.go b/mx-sdk-go-old/disabled/accounts.go deleted file mode 100644 index 9c3566d0..00000000 --- a/mx-sdk-go-old/disabled/accounts.go +++ /dev/null @@ -1,144 +0,0 @@ -package disabled - -import ( - "context" - - "github.com/multiversx/mx-chain-go/common" - "github.com/multiversx/mx-chain-go/state" - vmcommon "github.com/multiversx/mx-chain-vm-common-go" -) - -// Accounts is a disabled implementation of the AccountAdapter interface -type Accounts struct { -} - -// SetSyncer returns nil -func (a *Accounts) SetSyncer(_ state.AccountsDBSyncer) error { - return nil -} - -// StartSnapshotIfNeeded returns nil -func (a *Accounts) StartSnapshotIfNeeded() error { - return nil -} - -// RecreateTrieFromEpoch returns nil -func (a *Accounts) RecreateTrieFromEpoch(_ common.RootHashHolder) error { - return nil -} - -// GetStackDebugFirstEntry return nil -func (a *Accounts) GetStackDebugFirstEntry() []byte { - return nil -} - -// SnapshotState does nothing -func (a *Accounts) SnapshotState(_ []byte) { -} - -// GetTrie returns nil trie and nil error -func (a *Accounts) GetTrie(_ []byte) (common.Trie, error) { - return nil, nil -} - -// Close does nothing and returns nil -func (a *Accounts) Close() error { - return nil -} - -// GetCode returns nil -func (a *Accounts) GetCode(_ []byte) []byte { - return nil -} - -// RecreateAllTries return a nil map and nil error -func (a *Accounts) RecreateAllTries(_ []byte) (map[string]common.Trie, error) { - return nil, nil -} - -// LoadAccount returns a nil account and nil error -func (a *Accounts) LoadAccount(_ []byte) (vmcommon.AccountHandler, error) { - return nil, nil -} - -// SaveAccount returns nil -func (a *Accounts) SaveAccount(_ vmcommon.AccountHandler) error { - return nil -} - -// GetAllLeaves returns nil -func (a *Accounts) GetAllLeaves(_ *common.TrieIteratorChannels, _ context.Context, _ []byte) error { - return nil -} - -// Commit returns nil byte slice and nil -func (a *Accounts) Commit() ([]byte, error) { - return nil, nil -} - -// CommitInEpoch returns nil byte slice and nil -func (a *Accounts) CommitInEpoch(uint32, uint32) ([]byte, error) { - return nil, nil -} - -// GetExistingAccount returns nil account handler and nil error -func (a *Accounts) GetExistingAccount(_ []byte) (vmcommon.AccountHandler, error) { - return nil, nil -} - -// JournalLen returns 0 -func (a *Accounts) JournalLen() int { - return 0 -} - -// RemoveAccount returns nil -func (a *Accounts) RemoveAccount(_ []byte) error { - return nil -} - -// RevertToSnapshot returns nil -func (a *Accounts) RevertToSnapshot(_ int) error { - return nil -} - -// RootHash returns nil byte slice and nil error -func (a *Accounts) RootHash() ([]byte, error) { - return nil, nil -} - -// RecreateTrie returns nil -func (a *Accounts) RecreateTrie(_ []byte) error { - return nil -} - -// PruneTrie does nothing -func (a *Accounts) PruneTrie(_ []byte, _ state.TriePruningIdentifier, _ state.PruningHandler) { -} - -// CancelPrune does nothing -func (a *Accounts) CancelPrune(_ []byte, _ state.TriePruningIdentifier) { -} - -// SetStateCheckpoint does nothing -func (a *Accounts) SetStateCheckpoint(_ []byte) { -} - -// IsPruningEnabled returns false -func (a *Accounts) IsPruningEnabled() bool { - return false -} - -// GetNumCheckpoints returns 0 -func (a *Accounts) GetNumCheckpoints() uint32 { - return 0 -} - -// GetAccountFromBytes returns a nil account and nil error -func (a *Accounts) GetAccountFromBytes(_ []byte, _ []byte) (vmcommon.AccountHandler, error) { - return nil, nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (a *Accounts) IsInterfaceNil() bool { - return a == nil -} diff --git a/mx-sdk-go-old/disabled/blockchain.go b/mx-sdk-go-old/disabled/blockchain.go deleted file mode 100644 index 57b8e6f1..00000000 --- a/mx-sdk-go-old/disabled/blockchain.go +++ /dev/null @@ -1,76 +0,0 @@ -package disabled - -import ( - "github.com/multiversx/mx-chain-core-go/data" -) - -// Blockchain is a disabled implementation of the ChainHandler interface -type Blockchain struct { -} - -// GetFinalBlockInfo return 0 and empty slices -func (b *Blockchain) GetFinalBlockInfo() (uint64, []byte, []byte) { - return 0, make([]byte, 0), make([]byte, 0) -} - -// SetFinalBlockInfo does nothing -func (b *Blockchain) SetFinalBlockInfo(_ uint64, _ []byte, _ []byte) { -} - -// GetGenesisHeader returns nil -func (b *Blockchain) GetGenesisHeader() data.HeaderHandler { - return nil -} - -// SetGenesisHeader returns nil -func (b *Blockchain) SetGenesisHeader(_ data.HeaderHandler) error { - return nil -} - -// GetGenesisHeaderHash returns nil -func (b *Blockchain) GetGenesisHeaderHash() []byte { - return nil -} - -// SetGenesisHeaderHash does nothing -func (b *Blockchain) SetGenesisHeaderHash(_ []byte) { -} - -// GetCurrentBlockHeader returns nil -func (b *Blockchain) GetCurrentBlockHeader() data.HeaderHandler { - return nil -} - -// SetCurrentBlockHeader returns nil -func (b *Blockchain) SetCurrentBlockHeader(_ data.HeaderHandler) error { - return nil -} - -// GetCurrentBlockHeaderHash returns nil -func (b *Blockchain) GetCurrentBlockHeaderHash() []byte { - return nil -} - -// SetCurrentBlockHeaderHash does nothing -func (b *Blockchain) SetCurrentBlockHeaderHash(_ []byte) { -} - -// CreateNewHeader returns nil -func (b *Blockchain) CreateNewHeader() data.HeaderHandler { - return nil -} - -// GetCurrentBlockRootHash returns nil -func (b *Blockchain) GetCurrentBlockRootHash() []byte { - return nil -} - -// SetCurrentBlockHeaderAndRootHash return nil -func (b *Blockchain) SetCurrentBlockHeaderAndRootHash(_ data.HeaderHandler, _ []byte) error { - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (b *Blockchain) IsInterfaceNil() bool { - return b == nil -} diff --git a/mx-sdk-go-old/disabled/blockchainHookCounter.go b/mx-sdk-go-old/disabled/blockchainHookCounter.go deleted file mode 100644 index 49e9596b..00000000 --- a/mx-sdk-go-old/disabled/blockchainHookCounter.go +++ /dev/null @@ -1,35 +0,0 @@ -package disabled - -import vmcommon "github.com/multiversx/mx-chain-vm-common-go" - -// BlockChainHookCounter is a disabled implementation of BlockChainHookCounter interface -type BlockChainHookCounter struct { -} - -// ProcessCrtNumberOfTrieReadsCounter returns nil -func (bhc *BlockChainHookCounter) ProcessCrtNumberOfTrieReadsCounter() error { - return nil -} - -// ProcessMaxBuiltInCounters returns nil -func (bhc *BlockChainHookCounter) ProcessMaxBuiltInCounters(_ *vmcommon.ContractCallInput) error { - return nil -} - -// ResetCounters does nothing -func (bhc *BlockChainHookCounter) ResetCounters() { -} - -// SetMaximumValues does nothing -func (bhc *BlockChainHookCounter) SetMaximumValues(_ map[string]uint64) { -} - -// GetCounterValues - -func (bhc *BlockChainHookCounter) GetCounterValues() map[string]uint64 { - return make(map[string]uint64) -} - -// IsInterfaceNil returns true if there is no value under the interface -func (bhc *BlockChainHookCounter) IsInterfaceNil() bool { - return bhc == nil -} diff --git a/mx-sdk-go-old/disabled/builtInFunctionContainer.go b/mx-sdk-go-old/disabled/builtInFunctionContainer.go deleted file mode 100644 index 707aabe8..00000000 --- a/mx-sdk-go-old/disabled/builtInFunctionContainer.go +++ /dev/null @@ -1,47 +0,0 @@ -package disabled - -import ( - "errors" - - vmcommon "github.com/multiversx/mx-chain-vm-common-go" -) - -var errNotImplemented = errors.New("not implemented") - -// BuiltInFunctionContainer is a disabled implementation of the vmcommon.BuiltInFunctionContainer interface -type BuiltInFunctionContainer struct { -} - -// Get returns nil and error -func (bifc *BuiltInFunctionContainer) Get(_ string) (vmcommon.BuiltinFunction, error) { - return nil, errNotImplemented -} - -// Add does nothing and returns nil error -func (bifc *BuiltInFunctionContainer) Add(_ string, _ vmcommon.BuiltinFunction) error { - return nil -} - -// Replace does nothing and returns nil error -func (bifc *BuiltInFunctionContainer) Replace(_ string, _ vmcommon.BuiltinFunction) error { - return nil -} - -// Remove does nothing -func (bifc *BuiltInFunctionContainer) Remove(_ string) { -} - -// Len returns 0 -func (bifc *BuiltInFunctionContainer) Len() int { - return 0 -} - -// Keys returns an empty map -func (bifc *BuiltInFunctionContainer) Keys() map[string]struct{} { - return make(map[string]struct{}) -} - -// IsInterfaceNil returns true if there is no value under the interface -func (bifc *BuiltInFunctionContainer) IsInterfaceNil() bool { - return bifc == nil -} diff --git a/mx-sdk-go-old/disabled/cache.go b/mx-sdk-go-old/disabled/cache.go deleted file mode 100644 index 41daa7b7..00000000 --- a/mx-sdk-go-old/disabled/cache.go +++ /dev/null @@ -1,19 +0,0 @@ -package disabled - -// Cache is a disabled implementation of Cacher interface -type Cache struct { -} - -// Clear does nothing -func (c *Cache) Clear() { -} - -// Put returns false -func (c *Cache) Put(_ []byte, _ interface{}, _ int) bool { - return false -} - -// Get returns false -func (c *Cache) Get(_ []byte) (interface{}, bool) { - return nil, false -} diff --git a/mx-sdk-go-old/disabled/datapool.go b/mx-sdk-go-old/disabled/datapool.go deleted file mode 100644 index 7c591aad..00000000 --- a/mx-sdk-go-old/disabled/datapool.go +++ /dev/null @@ -1,90 +0,0 @@ -package disabled - -import ( - "github.com/multiversx/mx-chain-go/dataRetriever" - "github.com/multiversx/mx-chain-go/storage" -) - -// DataPool is the disabled implementation of a PoolsHolder interface -type DataPool struct { -} - -// PeerAuthentications returns nil -func (dp *DataPool) PeerAuthentications() storage.Cacher { - return nil -} - -// Heartbeats returns nil -func (dp *DataPool) Heartbeats() storage.Cacher { - return nil -} - -// Close returns nil -func (dp *DataPool) Close() error { - return nil -} - -// TrieNodesChunks returns nil -func (dp *DataPool) TrieNodesChunks() storage.Cacher { - return nil -} - -// Transactions returns nil -func (dp *DataPool) Transactions() dataRetriever.ShardedDataCacherNotifier { - return nil -} - -// UnsignedTransactions returns nil -func (dp *DataPool) UnsignedTransactions() dataRetriever.ShardedDataCacherNotifier { - return nil -} - -// RewardTransactions returns nil -func (dp *DataPool) RewardTransactions() dataRetriever.ShardedDataCacherNotifier { - return nil -} - -// Headers returns nil -func (dp *DataPool) Headers() dataRetriever.HeadersPool { - return nil -} - -// MiniBlocks returns nil -func (dp *DataPool) MiniBlocks() storage.Cacher { - return nil -} - -// PeerChangesBlocks returns nil -func (dp *DataPool) PeerChangesBlocks() storage.Cacher { - return nil -} - -// TrieNodes returns nil -func (dp *DataPool) TrieNodes() storage.Cacher { - return nil -} - -// SmartContracts returns nil -func (dp *DataPool) SmartContracts() storage.Cacher { - return nil -} - -// CurrentBlockTxs returns nil -func (dp *DataPool) CurrentBlockTxs() dataRetriever.TransactionCacher { - return nil -} - -// CurrentEpochValidatorInfo returns nil -func (dp *DataPool) CurrentEpochValidatorInfo() dataRetriever.ValidatorInfoCacher { - return nil -} - -// ValidatorsInfo returns nil -func (dp *DataPool) ValidatorsInfo() dataRetriever.ShardedDataCacherNotifier { - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (dp *DataPool) IsInterfaceNil() bool { - return dp == nil -} diff --git a/mx-sdk-go-old/disabled/enableEpochsHandler.go b/mx-sdk-go-old/disabled/enableEpochsHandler.go deleted file mode 100644 index e40d5827..00000000 --- a/mx-sdk-go-old/disabled/enableEpochsHandler.go +++ /dev/null @@ -1,584 +0,0 @@ -package disabled - -// EnableEpochsHandler is a disabled implementation of EnableEpochsHandler interface -type EnableEpochsHandler struct { -} - -// BlockGasAndFeesReCheckEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) BlockGasAndFeesReCheckEnableEpoch() uint32 { - return 0 -} - -// StakingV2EnableEpoch returns 0 -func (eeh *EnableEpochsHandler) StakingV2EnableEpoch() uint32 { - return 0 -} - -// ScheduledMiniBlocksEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) ScheduledMiniBlocksEnableEpoch() uint32 { - return 0 -} - -// SwitchJailWaitingEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) SwitchJailWaitingEnableEpoch() uint32 { - return 0 -} - -// BalanceWaitingListsEnableEpoch returns WaitingListFixEnableEpochField -func (eeh *EnableEpochsHandler) BalanceWaitingListsEnableEpoch() uint32 { - return 0 -} - -// WaitingListFixEnableEpoch returns WaitingListFixEnableEpochField -func (eeh *EnableEpochsHandler) WaitingListFixEnableEpoch() uint32 { - return 0 -} - -// MultiESDTTransferAsyncCallBackEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) MultiESDTTransferAsyncCallBackEnableEpoch() uint32 { - return 0 -} - -// FixOOGReturnCodeEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) FixOOGReturnCodeEnableEpoch() uint32 { - return 0 -} - -// RemoveNonUpdatedStorageEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) RemoveNonUpdatedStorageEnableEpoch() uint32 { - return 0 -} - -// CreateNFTThroughExecByCallerEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) CreateNFTThroughExecByCallerEnableEpoch() uint32 { - return 0 -} - -// FixFailExecutionOnErrorEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) FixFailExecutionOnErrorEnableEpoch() uint32 { - return 0 -} - -// ManagedCryptoAPIEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) ManagedCryptoAPIEnableEpoch() uint32 { - return 0 -} - -// DisableExecByCallerEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) DisableExecByCallerEnableEpoch() uint32 { - return 0 -} - -// RefactorContextEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) RefactorContextEnableEpoch() uint32 { - return 0 -} - -// CheckExecuteReadOnlyEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) CheckExecuteReadOnlyEnableEpoch() uint32 { - return 0 -} - -// StorageAPICostOptimizationEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) StorageAPICostOptimizationEnableEpoch() uint32 { - return 0 -} - -// MiniBlockPartialExecutionEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) MiniBlockPartialExecutionEnableEpoch() uint32 { - return 0 -} - -// RefactorPeersMiniBlocksEnableEpoch returns 0 -func (eeh *EnableEpochsHandler) RefactorPeersMiniBlocksEnableEpoch() uint32 { - return 0 -} - -// IsSCDeployFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsSCDeployFlagEnabled() bool { - return false -} - -// IsBuiltInFunctionsFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsBuiltInFunctionsFlagEnabled() bool { - return false -} - -// IsRelayedTransactionsFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsRelayedTransactionsFlagEnabled() bool { - return false -} - -// IsPenalizedTooMuchGasFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsPenalizedTooMuchGasFlagEnabled() bool { - return false -} - -// ResetPenalizedTooMuchGasFlag does nothing -func (eeh *EnableEpochsHandler) ResetPenalizedTooMuchGasFlag() { -} - -// IsSwitchJailWaitingFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsSwitchJailWaitingFlagEnabled() bool { - return false -} - -// IsBelowSignedThresholdFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsBelowSignedThresholdFlagEnabled() bool { - return false -} - -// IsSwitchHysteresisForMinNodesFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsSwitchHysteresisForMinNodesFlagEnabled() bool { - return false -} - -// IsSwitchHysteresisForMinNodesFlagEnabledForCurrentEpoch returns false -func (eeh *EnableEpochsHandler) IsSwitchHysteresisForMinNodesFlagEnabledForCurrentEpoch() bool { - return false -} - -// IsTransactionSignedWithTxHashFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsTransactionSignedWithTxHashFlagEnabled() bool { - return false -} - -// IsMetaProtectionFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsMetaProtectionFlagEnabled() bool { - return false -} - -// IsAheadOfTimeGasUsageFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsAheadOfTimeGasUsageFlagEnabled() bool { - return false -} - -// IsGasPriceModifierFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsGasPriceModifierFlagEnabled() bool { - return false -} - -// IsRepairCallbackFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsRepairCallbackFlagEnabled() bool { - return false -} - -// IsBalanceWaitingListsFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsBalanceWaitingListsFlagEnabled() bool { - return false -} - -// IsReturnDataToLastTransferFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsReturnDataToLastTransferFlagEnabled() bool { - return false -} - -// IsSenderInOutTransferFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsSenderInOutTransferFlagEnabled() bool { - return false -} - -// IsStakeFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsStakeFlagEnabled() bool { - return false -} - -// IsStakingV2FlagEnabled returns false -func (eeh *EnableEpochsHandler) IsStakingV2FlagEnabled() bool { - return false -} - -// IsStakingV2OwnerFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsStakingV2OwnerFlagEnabled() bool { - return false -} - -// IsStakingV2FlagEnabledForActivationEpochCompleted returns false -func (eeh *EnableEpochsHandler) IsStakingV2FlagEnabledForActivationEpochCompleted() bool { - return false -} - -// IsDoubleKeyProtectionFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsDoubleKeyProtectionFlagEnabled() bool { - return false -} - -// IsESDTFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsESDTFlagEnabled() bool { - return false -} - -// IsESDTFlagEnabledForCurrentEpoch returns false -func (eeh *EnableEpochsHandler) IsESDTFlagEnabledForCurrentEpoch() bool { - return false -} - -// IsGovernanceFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsGovernanceFlagEnabled() bool { - return false -} - -// IsGovernanceFlagEnabledForCurrentEpoch returns false -func (eeh *EnableEpochsHandler) IsGovernanceFlagEnabledForCurrentEpoch() bool { - return false -} - -// IsDelegationManagerFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsDelegationManagerFlagEnabled() bool { - return false -} - -// IsDelegationSmartContractFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsDelegationSmartContractFlagEnabled() bool { - return false -} - -// IsDelegationSmartContractFlagEnabledForCurrentEpoch returns false -func (eeh *EnableEpochsHandler) IsDelegationSmartContractFlagEnabledForCurrentEpoch() bool { - return false -} - -// IsCorrectLastUnJailedFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsCorrectLastUnJailedFlagEnabled() bool { - return false -} - -// IsCorrectLastUnJailedFlagEnabledForCurrentEpoch returns false -func (eeh *EnableEpochsHandler) IsCorrectLastUnJailedFlagEnabledForCurrentEpoch() bool { - return false -} - -// IsRelayedTransactionsV2FlagEnabled returns false -func (eeh *EnableEpochsHandler) IsRelayedTransactionsV2FlagEnabled() bool { - return false -} - -// IsUnBondTokensV2FlagEnabled returns false -func (eeh *EnableEpochsHandler) IsUnBondTokensV2FlagEnabled() bool { - return false -} - -// IsSaveJailedAlwaysFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsSaveJailedAlwaysFlagEnabled() bool { - return false -} - -// IsReDelegateBelowMinCheckFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsReDelegateBelowMinCheckFlagEnabled() bool { - return false -} - -// IsValidatorToDelegationFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsValidatorToDelegationFlagEnabled() bool { - return false -} - -// IsWaitingListFixFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsWaitingListFixFlagEnabled() bool { - return false -} - -// IsIncrementSCRNonceInMultiTransferFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsIncrementSCRNonceInMultiTransferFlagEnabled() bool { - return false -} - -// IsESDTMultiTransferFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsESDTMultiTransferFlagEnabled() bool { - return false -} - -// IsGlobalMintBurnFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsGlobalMintBurnFlagEnabled() bool { - return false -} - -// IsESDTTransferRoleFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsESDTTransferRoleFlagEnabled() bool { - return false -} - -// IsBuiltInFunctionOnMetaFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsBuiltInFunctionOnMetaFlagEnabled() bool { - return false -} - -// IsComputeRewardCheckpointFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsComputeRewardCheckpointFlagEnabled() bool { - return false -} - -// IsSCRSizeInvariantCheckFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsSCRSizeInvariantCheckFlagEnabled() bool { - return false -} - -// IsBackwardCompSaveKeyValueFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsBackwardCompSaveKeyValueFlagEnabled() bool { - return false -} - -// IsESDTNFTCreateOnMultiShardFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsESDTNFTCreateOnMultiShardFlagEnabled() bool { - return false -} - -// IsMetaESDTSetFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsMetaESDTSetFlagEnabled() bool { - return false -} - -// IsAddTokensToDelegationFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsAddTokensToDelegationFlagEnabled() bool { - return false -} - -// IsMultiESDTTransferFixOnCallBackFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsMultiESDTTransferFixOnCallBackFlagEnabled() bool { - return false -} - -// IsOptimizeGasUsedInCrossMiniBlocksFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsOptimizeGasUsedInCrossMiniBlocksFlagEnabled() bool { - return false -} - -// IsCorrectFirstQueuedFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsCorrectFirstQueuedFlagEnabled() bool { - return false -} - -// IsDeleteDelegatorAfterClaimRewardsFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsDeleteDelegatorAfterClaimRewardsFlagEnabled() bool { - return false -} - -// IsFixOOGReturnCodeFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsFixOOGReturnCodeFlagEnabled() bool { - return false -} - -// IsRemoveNonUpdatedStorageFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsRemoveNonUpdatedStorageFlagEnabled() bool { - return false -} - -// IsOptimizeNFTStoreFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsOptimizeNFTStoreFlagEnabled() bool { - return false -} - -// IsCreateNFTThroughExecByCallerFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsCreateNFTThroughExecByCallerFlagEnabled() bool { - return false -} - -// IsStopDecreasingValidatorRatingWhenStuckFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsStopDecreasingValidatorRatingWhenStuckFlagEnabled() bool { - return false -} - -// IsFrontRunningProtectionFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsFrontRunningProtectionFlagEnabled() bool { - return false -} - -// IsPayableBySCFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsPayableBySCFlagEnabled() bool { - return false -} - -// IsCleanUpInformativeSCRsFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsCleanUpInformativeSCRsFlagEnabled() bool { - return false -} - -// IsStorageAPICostOptimizationFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsStorageAPICostOptimizationFlagEnabled() bool { - return false -} - -// IsESDTRegisterAndSetAllRolesFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsESDTRegisterAndSetAllRolesFlagEnabled() bool { - return false -} - -// IsScheduledMiniBlocksFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsScheduledMiniBlocksFlagEnabled() bool { - return false -} - -// IsCorrectJailedNotUnStakedEmptyQueueFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsCorrectJailedNotUnStakedEmptyQueueFlagEnabled() bool { - return false -} - -// IsDoNotReturnOldBlockInBlockchainHookFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsDoNotReturnOldBlockInBlockchainHookFlagEnabled() bool { - return false -} - -// IsAddFailedRelayedTxToInvalidMBsFlag returns false -func (eeh *EnableEpochsHandler) IsAddFailedRelayedTxToInvalidMBsFlag() bool { - return false -} - -// IsSCRSizeInvariantOnBuiltInResultFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsSCRSizeInvariantOnBuiltInResultFlagEnabled() bool { - return false -} - -// IsCheckCorrectTokenIDForTransferRoleFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsCheckCorrectTokenIDForTransferRoleFlagEnabled() bool { - return false -} - -// IsFailExecutionOnEveryAPIErrorFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsFailExecutionOnEveryAPIErrorFlagEnabled() bool { - return false -} - -// IsMiniBlockPartialExecutionFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsMiniBlockPartialExecutionFlagEnabled() bool { - return false -} - -// IsManagedCryptoAPIsFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsManagedCryptoAPIsFlagEnabled() bool { - return false -} - -// IsESDTMetadataContinuousCleanupFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsESDTMetadataContinuousCleanupFlagEnabled() bool { - return false -} - -// IsDisableExecByCallerFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsDisableExecByCallerFlagEnabled() bool { - return false -} - -// IsRefactorContextFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsRefactorContextFlagEnabled() bool { - return false -} - -// IsCheckFunctionArgumentFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsCheckFunctionArgumentFlagEnabled() bool { - return false -} - -// IsCheckExecuteOnReadOnlyFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsCheckExecuteOnReadOnlyFlagEnabled() bool { - return false -} - -// IsFixAsyncCallbackCheckFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsFixAsyncCallbackCheckFlagEnabled() bool { - return false -} - -// IsSaveToSystemAccountFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsSaveToSystemAccountFlagEnabled() bool { - return false -} - -// IsCheckFrozenCollectionFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsCheckFrozenCollectionFlagEnabled() bool { - return false -} - -// IsSendAlwaysFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsSendAlwaysFlagEnabled() bool { - return false -} - -// IsValueLengthCheckFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsValueLengthCheckFlagEnabled() bool { - return false -} - -// IsCheckTransferFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsCheckTransferFlagEnabled() bool { - return false -} - -// IsTransferToMetaFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsTransferToMetaFlagEnabled() bool { - return false -} - -// IsESDTNFTImprovementV1FlagEnabled returns false -func (eeh *EnableEpochsHandler) IsESDTNFTImprovementV1FlagEnabled() bool { - return false -} - -// IsSetSenderInEeiOutputTransferFlagEnabled - -func (eeh *EnableEpochsHandler) IsSetSenderInEeiOutputTransferFlagEnabled() bool { - return false -} - -// IsChangeDelegationOwnerFlagEnabled - -func (eeh *EnableEpochsHandler) IsChangeDelegationOwnerFlagEnabled() bool { - return false -} - -// IsRefactorPeersMiniBlocksFlagEnabled returns false -func (eeh *EnableEpochsHandler) IsRefactorPeersMiniBlocksFlagEnabled() bool { - return false -} - -// IsFixAsyncCallBackArgsListFlagEnabled - -func (eeh *EnableEpochsHandler) IsFixAsyncCallBackArgsListFlagEnabled() bool { - return false -} - -// IsFixOldTokenLiquidityEnabled - -func (eeh *EnableEpochsHandler) IsFixOldTokenLiquidityEnabled() bool { - return false -} - -// IsMaxBlockchainHookCountersFlagEnabled - -func (eeh *EnableEpochsHandler) IsMaxBlockchainHookCountersFlagEnabled() bool { - return false -} - -// IsRuntimeMemStoreLimitEnabled - -func (eeh *EnableEpochsHandler) IsRuntimeMemStoreLimitEnabled() bool { - return false -} - -// IsWipeSingleNFTLiquidityDecreaseEnabled - -func (eeh *EnableEpochsHandler) IsWipeSingleNFTLiquidityDecreaseEnabled() bool { - return false -} - -// IsAlwaysSaveTokenMetaDataEnabled - -func (eeh *EnableEpochsHandler) IsAlwaysSaveTokenMetaDataEnabled() bool { - return false -} - -// IsRuntimeCodeSizeFixEnabled - -func (eeh *EnableEpochsHandler) IsRuntimeCodeSizeFixEnabled() bool { - return false -} - -// IsRelayedNonceFixEnabled - -func (eeh *EnableEpochsHandler) IsRelayedNonceFixEnabled() bool { - return false -} - -// IsSetGuardianEnabled - -func (eeh *EnableEpochsHandler) IsSetGuardianEnabled() bool { - return false -} - -// IsDeterministicSortOnValidatorsInfoFixEnabled - -func (eeh *EnableEpochsHandler) IsDeterministicSortOnValidatorsInfoFixEnabled() bool { - return false -} - -// IsInterfaceNil returns true if there is no value under the interface -func (eeh *EnableEpochsHandler) IsInterfaceNil() bool { - return eeh == nil -} diff --git a/mx-sdk-go-old/disabled/epochNotifier.go b/mx-sdk-go-old/disabled/epochNotifier.go deleted file mode 100644 index 3dc0d655..00000000 --- a/mx-sdk-go-old/disabled/epochNotifier.go +++ /dev/null @@ -1,28 +0,0 @@ -package disabled - -import ( - "github.com/multiversx/mx-chain-core-go/data" - vmcommon "github.com/multiversx/mx-chain-vm-common-go" -) - -// EpochNotifier is a disabled implementation of EpochNotifier interface -type EpochNotifier struct { -} - -// RegisterNotifyHandler does nothing -func (en *EpochNotifier) RegisterNotifyHandler(_ vmcommon.EpochSubscriberHandler) { -} - -// CurrentEpoch returns 0 -func (en *EpochNotifier) CurrentEpoch() uint32 { - return 0 -} - -// CheckEpoch does nothing -func (en *EpochNotifier) CheckEpoch(_ data.HeaderHandler) { -} - -// IsInterfaceNil returns true if there is no value under the interface -func (en *EpochNotifier) IsInterfaceNil() bool { - return en == nil -} diff --git a/mx-sdk-go-old/disabled/epochStartNotifier.go b/mx-sdk-go-old/disabled/epochStartNotifier.go deleted file mode 100644 index 7701845a..00000000 --- a/mx-sdk-go-old/disabled/epochStartNotifier.go +++ /dev/null @@ -1,22 +0,0 @@ -package disabled - -import ( - "github.com/multiversx/mx-chain-go/epochStart" -) - -// EpochStartNotifier is a disabled implementation of EpochStartEventNotifier interface -type EpochStartNotifier struct { -} - -// RegisterHandler does nothing -func (esn *EpochStartNotifier) RegisterHandler(_ epochStart.ActionHandler) { -} - -// UnregisterHandler does nothing -func (esn *EpochStartNotifier) UnregisterHandler(_ epochStart.ActionHandler) { -} - -// IsInterfaceNil returns true if there is no value under the interface -func (esn *EpochStartNotifier) IsInterfaceNil() bool { - return esn == nil -} diff --git a/mx-sdk-go-old/disabled/fallbackHeaderValidator.go b/mx-sdk-go-old/disabled/fallbackHeaderValidator.go deleted file mode 100644 index 56e2dcc1..00000000 --- a/mx-sdk-go-old/disabled/fallbackHeaderValidator.go +++ /dev/null @@ -1,19 +0,0 @@ -package disabled - -import ( - "github.com/multiversx/mx-chain-core-go/data" -) - -// FallBackHeaderValidator is a disabled implementation of FallBackHeaderValidator interface -type FallBackHeaderValidator struct { -} - -// ShouldApplyFallbackValidation returns false -func (fhvs *FallBackHeaderValidator) ShouldApplyFallbackValidation(_ data.HeaderHandler) bool { - return false -} - -// IsInterfaceNil returns true if there is no value under the interface -func (fhvs *FallBackHeaderValidator) IsInterfaceNil() bool { - return fhvs == nil -} diff --git a/mx-sdk-go-old/disabled/gasScheduleNotifier.go b/mx-sdk-go-old/disabled/gasScheduleNotifier.go deleted file mode 100644 index 52545faa..00000000 --- a/mx-sdk-go-old/disabled/gasScheduleNotifier.go +++ /dev/null @@ -1,29 +0,0 @@ -package disabled - -import "github.com/multiversx/mx-chain-core-go/core" - -// GasScheduleNotifier - -type GasScheduleNotifier struct { -} - -// RegisterNotifyHandler does nothing -func (gsn *GasScheduleNotifier) RegisterNotifyHandler(_ core.GasScheduleSubscribeHandler) { -} - -// LatestGasSchedule returns an empty map -func (gsn *GasScheduleNotifier) LatestGasSchedule() map[string]map[string]uint64 { - return make(map[string]map[string]uint64) -} - -// UnRegisterAll does nothing -func (gsn *GasScheduleNotifier) UnRegisterAll() { -} - -// ChangeGasSchedule does nothing -func (gsn *GasScheduleNotifier) ChangeGasSchedule(_ map[string]map[string]uint64) { -} - -// IsInterfaceNil returns true if there is no value under the interface -func (gsn *GasScheduleNotifier) IsInterfaceNil() bool { - return gsn == nil -} diff --git a/mx-sdk-go-old/disabled/globalSettingsHandler.go b/mx-sdk-go-old/disabled/globalSettingsHandler.go deleted file mode 100644 index ca4a9cb0..00000000 --- a/mx-sdk-go-old/disabled/globalSettingsHandler.go +++ /dev/null @@ -1,20 +0,0 @@ -package disabled - -// GlobalSettingsHandler implements a disabled vmcommon.ESDTGlobalSettingsHandler -type GlobalSettingsHandler struct { -} - -// IsPaused returns false -func (handler *GlobalSettingsHandler) IsPaused(_ []byte) bool { - return false -} - -// IsLimitedTransfer returns false -func (handler *GlobalSettingsHandler) IsLimitedTransfer(_ []byte) bool { - return false -} - -// IsInterfaceNil returns true if there is no value under the interface -func (handler *GlobalSettingsHandler) IsInterfaceNil() bool { - return handler == nil -} diff --git a/mx-sdk-go-old/disabled/nodeTypeProvider.go b/mx-sdk-go-old/disabled/nodeTypeProvider.go deleted file mode 100644 index 189aa18d..00000000 --- a/mx-sdk-go-old/disabled/nodeTypeProvider.go +++ /dev/null @@ -1,23 +0,0 @@ -package disabled - -import ( - "github.com/multiversx/mx-chain-core-go/core" -) - -// NodeTypeProvider is a disabled implementation of NodeTypeProviderHandler interface -type NodeTypeProvider struct { -} - -// SetType does nothing -func (n *NodeTypeProvider) SetType(_ core.NodeType) { -} - -// GetType returns empty string -func (n *NodeTypeProvider) GetType() core.NodeType { - return "" -} - -// IsInterfaceNil returns true if there is no value under the interface -func (n *NodeTypeProvider) IsInterfaceNil() bool { - return n == nil -} diff --git a/mx-sdk-go-old/disabled/shardCoordinator.go b/mx-sdk-go-old/disabled/shardCoordinator.go deleted file mode 100644 index 8d850af2..00000000 --- a/mx-sdk-go-old/disabled/shardCoordinator.go +++ /dev/null @@ -1,35 +0,0 @@ -package disabled - -// ShardCoordinator is the disabled shard coordinator instance that satisfies the mx-chain-go.sharding.Coordinator interface -type ShardCoordinator struct { -} - -// NumberOfShards returns 0 -func (sc *ShardCoordinator) NumberOfShards() uint32 { - return 0 -} - -// ComputeId returns 0 -func (sc *ShardCoordinator) ComputeId(_ []byte) uint32 { - return 0 -} - -// SelfId returns 0 -func (sc *ShardCoordinator) SelfId() uint32 { - return 0 -} - -// SameShard returns false -func (sc *ShardCoordinator) SameShard(_, _ []byte) bool { - return false -} - -// CommunicationIdentifier returns empty string -func (sc *ShardCoordinator) CommunicationIdentifier(_ uint32) string { - return "" -} - -// IsInterfaceNil returns true if there is no value under the interface -func (sc *ShardCoordinator) IsInterfaceNil() bool { - return sc == nil -} diff --git a/mx-sdk-go-old/disabled/shuffleOutHandler.go b/mx-sdk-go-old/disabled/shuffleOutHandler.go deleted file mode 100644 index 2fef7872..00000000 --- a/mx-sdk-go-old/disabled/shuffleOutHandler.go +++ /dev/null @@ -1,24 +0,0 @@ -package disabled - -// ShuffledOutHandler is a disabled implementation of ShuffledOutHandler interface -type ShuffledOutHandler struct { -} - -// Process returns nil -func (s *ShuffledOutHandler) Process(_ uint32) error { - return nil -} - -// RegisterHandler does nothing -func (s *ShuffledOutHandler) RegisterHandler(_ func(uint32)) { -} - -// CurrentShardID return zero -func (s *ShuffledOutHandler) CurrentShardID() uint32 { - return 0 -} - -// IsInterfaceNil returns true if there is no value under the interface -func (s *ShuffledOutHandler) IsInterfaceNil() bool { - return s == nil -} diff --git a/mx-sdk-go-old/disabled/simpleESDTNFTStorageHandler.go b/mx-sdk-go-old/disabled/simpleESDTNFTStorageHandler.go deleted file mode 100644 index fa80fc5c..00000000 --- a/mx-sdk-go-old/disabled/simpleESDTNFTStorageHandler.go +++ /dev/null @@ -1,26 +0,0 @@ -package disabled - -import ( - "github.com/multiversx/mx-chain-core-go/data" - "github.com/multiversx/mx-chain-core-go/data/esdt" - vmcommon "github.com/multiversx/mx-chain-vm-common-go" -) - -// SimpleESDTNFTStorageHandler is a disabled implementation of SimpleESDTNFTStorageHandler interface -type SimpleESDTNFTStorageHandler struct { -} - -// GetESDTNFTTokenOnDestination returns nil -func (sns *SimpleESDTNFTStorageHandler) GetESDTNFTTokenOnDestination(_ vmcommon.UserAccountHandler, _ []byte, _ uint64) (*esdt.ESDigitalToken, bool, error) { - return nil, false, nil -} - -// SaveNFTMetaDataToSystemAccount returns nil -func (sns *SimpleESDTNFTStorageHandler) SaveNFTMetaDataToSystemAccount(_ data.TransactionHandler) error { - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (sns *SimpleESDTNFTStorageHandler) IsInterfaceNil() bool { - return sns == nil -} diff --git a/mx-sdk-go-old/disabled/storageService.go b/mx-sdk-go-old/disabled/storageService.go deleted file mode 100644 index feff79c0..00000000 --- a/mx-sdk-go-old/disabled/storageService.go +++ /dev/null @@ -1,63 +0,0 @@ -package disabled - -import ( - "github.com/multiversx/mx-chain-go/dataRetriever" - "github.com/multiversx/mx-chain-go/storage" -) - -// StorageService is a disabled implementation of the StorageService interface -type StorageService struct { -} - -// GetAllStorers returns an empty map -func (ss *StorageService) GetAllStorers() map[dataRetriever.UnitType]storage.Storer { - return make(map[dataRetriever.UnitType]storage.Storer) -} - -// GetStorer returns nil -func (ss *StorageService) GetStorer(_ dataRetriever.UnitType) (storage.Storer, error) { - return nil, nil -} - -// AddStorer does nothing -func (ss *StorageService) AddStorer(_ dataRetriever.UnitType, _ storage.Storer) { -} - -// Has returns nil -func (ss *StorageService) Has(_ dataRetriever.UnitType, _ []byte) error { - return nil -} - -// Get returns nil byte slice and nil error -func (ss *StorageService) Get(_ dataRetriever.UnitType, _ []byte) ([]byte, error) { - return nil, nil -} - -// Put returns nil -func (ss *StorageService) Put(_ dataRetriever.UnitType, _ []byte, _ []byte) error { - return nil -} - -// SetEpochForPutOperation does nothing -func (ss *StorageService) SetEpochForPutOperation(_ uint32) { -} - -// GetAll returns nil map and nil error -func (ss *StorageService) GetAll(_ dataRetriever.UnitType, _ [][]byte) (map[string][]byte, error) { - return nil, nil -} - -// Destroy returns nil -func (ss *StorageService) Destroy() error { - return nil -} - -// CloseAll returns nil -func (ss *StorageService) CloseAll() error { - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (ss *StorageService) IsInterfaceNil() bool { - return ss == nil -} diff --git a/mx-sdk-go-old/disabled/storer.go b/mx-sdk-go-old/disabled/storer.go deleted file mode 100644 index 1dde1c0d..00000000 --- a/mx-sdk-go-old/disabled/storer.go +++ /dev/null @@ -1,80 +0,0 @@ -package disabled - -import "github.com/multiversx/mx-chain-core-go/storage" - -// Storer is a disabled implementation of Storer interface -type Storer struct { -} - -// RemoveFromCurrentEpoch returns nil -func (s *Storer) RemoveFromCurrentEpoch(_ []byte) error { - return nil -} - -// Put returns nil -func (s *Storer) Put(_, _ []byte) error { - return nil -} - -// PutInEpoch returns nil -func (s *Storer) PutInEpoch(_, _ []byte, _ uint32) error { - return nil -} - -// Get returns nil -func (s *Storer) Get(_ []byte) ([]byte, error) { - return nil, nil -} - -// GetFromEpoch returns nil -func (s *Storer) GetFromEpoch(_ []byte, _ uint32) ([]byte, error) { - return nil, nil -} - -// GetBulkFromEpoch returns nil -func (s *Storer) GetBulkFromEpoch(_ [][]byte, _ uint32) ([]storage.KeyValuePair, error) { - return nil, nil -} - -// Has returns nil -func (s *Storer) Has(_ []byte) error { - return nil -} - -// SearchFirst returns nil -func (s *Storer) SearchFirst(_ []byte) ([]byte, error) { - return nil, nil -} - -// Remove return nil -func (s *Storer) Remove(_ []byte) error { - return nil -} - -// ClearCache does nothing -func (s *Storer) ClearCache() { -} - -// DestroyUnit returns nil -func (s *Storer) DestroyUnit() error { - return nil -} - -// GetOldestEpoch return nil -func (s *Storer) GetOldestEpoch() (uint32, error) { - return 0, nil -} - -// Close returns nil -func (s *Storer) Close() error { - return nil -} - -// RangeKeys does nothing -func (s *Storer) RangeKeys(_ func(_ []byte, _ []byte) bool) { -} - -// IsInterfaceNil returns true if there is no value under the interface -func (s *Storer) IsInterfaceNil() bool { - return s == nil -} diff --git a/mx-sdk-go-old/examples/examplesAccount/main.go b/mx-sdk-go-old/examples/examplesAccount/main.go deleted file mode 100644 index dff0c73f..00000000 --- a/mx-sdk-go-old/examples/examplesAccount/main.go +++ /dev/null @@ -1,65 +0,0 @@ -package main - -import ( - "context" - "fmt" - "time" - - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" -) - -var log = logger.GetOrCreate("mx-sdk-go/examples/examplesAccount") - -func main() { - args := blockchain.ArgsProxy{ - ProxyURL: examples.TestnetGateway, - Client: nil, - SameScState: false, - ShouldBeSynced: false, - FinalityCheck: false, - CacheExpirationTime: time.Minute, - EntityType: core.Proxy, - } - ep, err := blockchain.NewProxy(args) - if err != nil { - log.Error("error creating proxy", "error", err) - return - } - - // Retrieving network configuration parameters - networkConfig, err := ep.GetNetworkConfig(context.Background()) - if err != nil { - log.Error("error getting network config", "error", err) - return - } - - addressAsBech32 := "erd1adfmxhyczrl2t97yx92v5nywqyse0c7qh4xs0p4artg2utnu90pspgvqty" - address, err := data.NewAddressFromBech32String(addressAsBech32) - if err != nil { - log.Error("invalid address", "error", err) - return - } - - // Retrieve account info from the network (balance, nonce) - accountInfo, err := ep.GetAccount(context.Background(), address) - if err != nil { - log.Error("error retrieving account info", "error", err) - return - } - floatBalance, err := accountInfo.GetBalance(networkConfig.Denomination) - if err != nil { - log.Error("unable to compute balance", "error", err) - return - } - - log.Info("account details", - "address", addressAsBech32, - "nonce", accountInfo.Nonce, - "balance as float", fmt.Sprintf("%.6f", floatBalance), - "balance as int", accountInfo.Balance, - ) -} diff --git a/mx-sdk-go-old/examples/examplesBlock/main.go b/mx-sdk-go-old/examples/examplesBlock/main.go deleted file mode 100644 index 2854b134..00000000 --- a/mx-sdk-go-old/examples/examplesBlock/main.go +++ /dev/null @@ -1,52 +0,0 @@ -package main - -import ( - "context" - "encoding/json" - "time" - - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" -) - -var log = logger.GetOrCreate("mx-sdk-go/examples/examplesBlock") - -func main() { - args := blockchain.ArgsProxy{ - ProxyURL: examples.TestnetGateway, - Client: nil, - SameScState: false, - ShouldBeSynced: false, - FinalityCheck: false, - CacheExpirationTime: time.Minute, - EntityType: core.Proxy, - } - ep, err := blockchain.NewProxy(args) - if err != nil { - log.Error("error creating proxy", "error", err) - return - } - - // Get latest hyper block (metachain) nonce - nonce, err := ep.GetLatestHyperBlockNonce(context.Background()) - if err != nil { - log.Error("error retrieving latest block nonce", "error", err) - return - } - log.Info("latest hyper block", "nonce", nonce) - - // Get block info - block, errGet := ep.GetHyperBlockByNonce(context.Background(), nonce) - if errGet != nil { - log.Error("error retrieving hyper block", "error", err) - return - } - data, errMarshal := json.MarshalIndent(block, "", " ") - if errMarshal != nil { - log.Error("error serializing block", "error", errMarshal) - return - } - log.Info("\n" + string(data)) -} diff --git a/mx-sdk-go-old/examples/examplesFlowWalletTracker/main.go b/mx-sdk-go-old/examples/examplesFlowWalletTracker/main.go deleted file mode 100644 index 0026e982..00000000 --- a/mx-sdk-go-old/examples/examplesFlowWalletTracker/main.go +++ /dev/null @@ -1,204 +0,0 @@ -package main - -import ( - "context" - "encoding/hex" - "math/big" - "os" - "os/signal" - "strings" - "time" - - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples/examplesFlowWalletTracker/mock" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/workflows" -) - -const timeToExecuteRequest = time.Second - -var log = logger.GetOrCreate("mx-sdk-go/examples/examplesFlowWalletTracker") - -type moveBalanceHandler interface { - GenerateMoveBalanceTransactions(ctx context.Context, addresses []string) -} - -type transactionInteractor interface { - workflows.TransactionInteractor - SendTransactionsAsBunch(ctx context.Context, bunchSize int) ([]string, error) -} - -type walletTracker interface { - GetLatestTrackedAddresses() []string -} - -func main() { - _ = logger.SetLogLevel("*:DEBUG") - - log.Info("examplesFlowWalletTracker application started, press CTRL+C to stop the app...") - - err := runApp() - if err != nil { - log.Error(err.Error()) - } else { - log.Info("application gracefully closed") - } -} - -func runApp() error { - args := blockchain.ArgsProxy{ - ProxyURL: examples.TestnetGateway, - Client: nil, - SameScState: false, - ShouldBeSynced: false, - FinalityCheck: false, - CacheExpirationTime: time.Minute, - EntityType: core.Proxy, - } - ep, err := blockchain.NewProxy(args) - if err != nil { - return err - } - - tap := mock.NewTrackableAddressProviderMock() - mnt := &mock.MemoryNonceTracker{} - err = setTestParams(ep, tap, mnt) - if err != nil { - return err - } - - minimumBalance := big.NewInt(1000000000000000) // 0.001 EGLD - - argsWalletsTracker := workflows.WalletTrackerArgs{ - TrackableAddressesProvider: tap, - Proxy: ep, - NonceHandler: mnt, - CheckInterval: time.Second * 2, - MinimumBalance: minimumBalance, - } - wt, err := workflows.NewWalletTracker(argsWalletsTracker) - if err != nil { - return err - } - - txBuilder, err := builders.NewTxBuilder(cryptoProvider.NewSigner()) - if err != nil { - return err - } - - receiverAddress := "erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht" // /mx-sdk-go/interactors/testdata/test.pem - txInteractor, err := interactors.NewTransactionInteractor(ep, txBuilder) - if err != nil { - return err - } - argsMoveBalanceHandler := workflows.MoveBalanceHandlerArgs{ - Proxy: ep, - TxInteractor: txInteractor, - ReceiverAddress: receiverAddress, - TrackableAddressesProvider: tap, - MinimumBalance: minimumBalance, - } - - mbh, err := workflows.NewMoveBalanceHandler(argsMoveBalanceHandler) - if err != nil { - return err - } - - ctxNetworkConfigs, cancel := context.WithTimeout(context.Background(), timeToExecuteRequest) - // TODO: call this periodically as to avoid network config changes that can impact the transaction creation and sending - err = mbh.CacheNetworkConfigs(ctxNetworkConfigs) - cancel() - if err != nil { - return err - } - - ctxDone, cancel := context.WithCancel(context.Background()) - // generateMoveBalanceTransactionsAndSendThem function can be either periodically triggered or manually triggered (we choose automatically) - interval := time.Second * 20 - go func() { - timer := time.NewTimer(interval) - defer timer.Stop() - - for { - timer.Reset(interval) - - select { - case <-timer.C: - // send transaction batches each 20 seconds - generateMoveBalanceTransactionsAndSendThem(ctxDone, wt, txInteractor, mbh) - case <-ctxDone.Done(): - log.Debug("closing automatically send move-balance transactions go routine...") - return - } - } - }() - - log.Info("setup complete, please send tokens to the following addresses:\n\t" + strings.Join(tap.AllTrackableAddresses(), "\n\t")) - - chStop := make(chan os.Signal) - signal.Notify(chStop, os.Interrupt) - <-chStop - - _ = wt.Close() - cancel() - - time.Sleep(time.Second) - - return nil -} - -func generateMoveBalanceTransactionsAndSendThem( - ctx context.Context, - wt walletTracker, - txInteractor transactionInteractor, - mbh moveBalanceHandler, -) { - ctxSendTransactions, cancelSendTransactions := context.WithTimeout(ctx, timeToExecuteRequest) - - addresses := wt.GetLatestTrackedAddresses() - log.Debug("trying to send move balance transactions...", "num", len(addresses)) - timeToGenerateTransactions := timeToExecuteRequest * time.Duration(len(addresses)) - ctxGenerateMoveBalanceTransactions, cancelGenerateTransactions := context.WithTimeout(ctx, timeToGenerateTransactions) - defer func() { - cancelSendTransactions() - cancelGenerateTransactions() - }() - - mbh.GenerateMoveBalanceTransactions(ctxGenerateMoveBalanceTransactions, addresses) - hashes, errSend := txInteractor.SendTransactionsAsBunch(ctxSendTransactions, 100) - if errSend != nil { - log.Error(errSend.Error()) - } - if len(hashes) > 0 { - log.Debug("sent transactions", "hashes", strings.Join(hashes, " ")) - } -} - -func setTestParams( - ep workflows.ProxyHandler, - trackableAddresses *mock.TrackableAddressProviderMock, - tracker *mock.MemoryNonceTracker, -) error { - - nonce, err := ep.GetLatestHyperBlockNonce(context.Background()) - if err != nil { - return err - } - - // since this is an example, and we are using a memory tracker, we need this to be executed each time as to not request ancient blocks - tracker.ProcessedNonce(nonce) - - // add 2 trackable addresses for demo purposes - sk, _ := hex.DecodeString("45f72e8b6e8d10086bacd2fc8fa1340f82a3f5d4ef31953b463ea03c606533a6") - trackableAddresses.AddTrackableAddress("erd1j84k44nsqsme8r6e5aawutx0z2cd6cyx3wprkzdh73x2cf0kqvksa3snnq", sk) - - sk, _ = hex.DecodeString("6babe6936d8b089a1f3b464a2050376462769782239b31dca4311e379b0391f3") - trackableAddresses.AddTrackableAddress("erd1kjjl7lssufpmml2yy4x6cklvnxdd40c4ym3dpw93vrflwchydt3q749v2z", sk) - - return nil -} diff --git a/mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/memoryNonceTracker.go b/mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/memoryNonceTracker.go deleted file mode 100644 index 8b098f97..00000000 --- a/mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/memoryNonceTracker.go +++ /dev/null @@ -1,30 +0,0 @@ -package mock - -import "sync" - -// MemoryNonceTracker is a test implementation of the LastProcessedNonceHandler that will keep -// the current nonce in memory -type MemoryNonceTracker struct { - sync.RWMutex - nonce uint64 -} - -// ProcessedNonce - -func (nt *MemoryNonceTracker) ProcessedNonce(nonce uint64) { - nt.Lock() - nt.nonce = nonce - nt.Unlock() -} - -// GetLastProcessedNonce - -func (nt *MemoryNonceTracker) GetLastProcessedNonce() uint64 { - nt.RLock() - defer nt.RUnlock() - - return nt.nonce -} - -// IsInterfaceNil - -func (nt *MemoryNonceTracker) IsInterfaceNil() bool { - return nt == nil -} diff --git a/mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/trackableAddressProviderMock.go b/mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/trackableAddressProviderMock.go deleted file mode 100644 index fd9150eb..00000000 --- a/mx-sdk-go-old/examples/examplesFlowWalletTracker/mock/trackableAddressProviderMock.go +++ /dev/null @@ -1,61 +0,0 @@ -package mock - -import "sync" - -// TrackableAddressProviderMock is the mock implementation of the trackable address provider to be used -// in the example -type TrackableAddressProviderMock struct { - sync.RWMutex - trackedAddresses map[string][]byte -} - -// NewTrackableAddressProviderMock - -func NewTrackableAddressProviderMock() *TrackableAddressProviderMock { - return &TrackableAddressProviderMock{ - trackedAddresses: make(map[string][]byte), - } -} - -// AllTrackableAddresses - -func (tap *TrackableAddressProviderMock) AllTrackableAddresses() []string { - tap.Lock() - allAddresses := make([]string, 0, len(tap.trackedAddresses)) - for address := range tap.trackedAddresses { - allAddresses = append(allAddresses, address) - } - tap.Unlock() - - return allAddresses -} - -// AddTrackableAddress - -func (tap *TrackableAddressProviderMock) AddTrackableAddress(addressAsBech32 string, skBytes []byte) { - tap.Lock() - tap.trackedAddresses[addressAsBech32] = skBytes - tap.Unlock() -} - -// IsTrackableAddresses - -func (tap *TrackableAddressProviderMock) IsTrackableAddresses(addressAsBech32 string) bool { - tap.RLock() - defer tap.RUnlock() - - _, ok := tap.trackedAddresses[addressAsBech32] - - return ok -} - -// PrivateKeyOfBech32Address - -func (tap *TrackableAddressProviderMock) PrivateKeyOfBech32Address(addressAsBech32 string) []byte { - tap.RLock() - defer tap.RUnlock() - - skBytes, _ := tap.trackedAddresses[addressAsBech32] - - return skBytes -} - -// IsInterfaceNil - -func (tap *TrackableAddressProviderMock) IsInterfaceNil() bool { - return tap == nil -} diff --git a/mx-sdk-go-old/examples/examplesHeaderCheck/main.go b/mx-sdk-go-old/examples/examplesHeaderCheck/main.go deleted file mode 100644 index edbb3c41..00000000 --- a/mx-sdk-go-old/examples/examplesHeaderCheck/main.go +++ /dev/null @@ -1,74 +0,0 @@ -package main - -import ( - "context" - "time" - - "github.com/multiversx/mx-chain-go/config" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/headerCheck" -) - -var log = logger.GetOrCreate("mx-sdk-go/examples/examplesHeaderCheck") - -func main() { - args := blockchain.ArgsProxy{ - ProxyURL: examples.TestnetGateway, - Client: nil, - SameScState: false, - ShouldBeSynced: false, - FinalityCheck: false, - CacheExpirationTime: time.Minute, - EntityType: core.Proxy, - } - ep, err := blockchain.NewProxy(args) - if err != nil { - log.Error("error creating proxy", "error", err) - return - } - - enableEpochsConfig, err := ep.GetEnableEpochsConfig(context.Background()) - if err != nil { - log.Error("error getting enable epochs config from proxy", "error", err) - return - } - - // set enable epochs config based on the environment - if len(enableEpochsConfig.EnableEpochs.BLSMultiSignerEnableEpoch) == 0 { - enableEpochsConfig.EnableEpochs.BLSMultiSignerEnableEpoch = []config.MultiSignerConfig{ - { - EnableEpoch: 0, - Type: "no-KOSK", - }, - { - EnableEpoch: uint32(1000000), - Type: "KOSK", - }, - } - } - - headerVerifier, err := headerCheck.NewHeaderCheckHandler(ep, enableEpochsConfig) - if err != nil { - log.Error("error creating header check handler", "error", err) - return - } - - // set header headerHash and shard ID - headerHash := "e0b29ef07f76b75ea9608eed37c588440113724077f57cda3bac84ea0de378ab" - shardID := uint32(2) - - ok, err := headerVerifier.VerifyHeaderSignatureByHash(context.Background(), shardID, headerHash) - if err != nil { - log.Error("error verifying header signature", "error", err) - return - } - if !ok { - log.Info("header signature does not match") - return - } - - log.Info("header signature matches") -} diff --git a/mx-sdk-go-old/examples/examplesPriceAggregator/main.go b/mx-sdk-go-old/examples/examplesPriceAggregator/main.go deleted file mode 100644 index e59ad03b..00000000 --- a/mx-sdk-go-old/examples/examplesPriceAggregator/main.go +++ /dev/null @@ -1,245 +0,0 @@ -package main - -import ( - "context" - "fmt" - "os" - "os/signal" - "time" - - "github.com/multiversx/mx-chain-crypto-go/signing" - "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/fetchers" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/aggregator/mock" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/authentication" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core/polling" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -var log = logger.GetOrCreate("mx-sdk-go/examples/examplesPriceAggregator") - -const base = "ETH" -const quote = "USD" -const percentDifferenceToNotify = 1 // 0 will notify on each fetch -const decimals = 2 - -const minResultsNum = 3 -const pollInterval = time.Second * 2 -const autoSendInterval = time.Second * 10 - -const networkAddress = "https://testnet-gateway.multiversx.com" - -var ( - suite = ed25519.NewEd25519() - keyGen = signing.NewKeyGenerator(suite) -) - -func main() { - _ = logger.SetLogLevel("*:DEBUG") - - log.Info("examplesPriceAggregator will fetch the price of a defined pair from a bunch of exchanges, and will" + - " notify a printer if the price changed") - log.Info("application started, press CTRL+C to stop the app...") - - err := runApp() - if err != nil { - log.Error(err.Error()) - } else { - log.Info("application gracefully closed") - } -} - -func runApp() error { - priceFetchers, err := createPriceFetchers() - if err != nil { - return err - } - - argsPriceAggregator := aggregator.ArgsPriceAggregator{ - PriceFetchers: priceFetchers, - MinResultsNum: minResultsNum, - } - aggregatorInstance, err := aggregator.NewPriceAggregator(argsPriceAggregator) - if err != nil { - return err - } - - printNotifee := &mock.PriceNotifeeStub{ - PriceChangedCalled: func(ctx context.Context, args []*aggregator.ArgsPriceChanged) error { - for _, arg := range args { - log.Info("Notified about the price changed", - "pair", fmt.Sprintf("%s-%s", arg.Base, arg.Quote), - "denominated price", arg.DenominatedPrice, - "decimals", arg.Decimals, - "timestamp", arg.Timestamp) - } - - return nil - }, - } - - pairs := []*aggregator.ArgsPair{ - { - Base: base, - Quote: quote, - PercentDifferenceToNotify: percentDifferenceToNotify, - Decimals: decimals, - Exchanges: fetchers.ImplementedFetchers, - }, - } - argsPriceNotifier := aggregator.ArgsPriceNotifier{ - Pairs: pairs, - Aggregator: aggregatorInstance, - Notifee: printNotifee, - AutoSendInterval: autoSendInterval, - } - - priceNotifier, err := aggregator.NewPriceNotifier(argsPriceNotifier) - if err != nil { - return err - } - - addPairsToFetchers(pairs, priceFetchers) - - argsPollingHandler := polling.ArgsPollingHandler{ - Log: log, - Name: "price notifier polling handler", - PollingInterval: pollInterval, - PollingWhenError: pollInterval, - Executor: priceNotifier, - } - - pollingHandler, err := polling.NewPollingHandler(argsPollingHandler) - if err != nil { - return err - } - - defer func() { - errClose := pollingHandler.Close() - log.LogIfError(errClose) - }() - - err = pollingHandler.StartProcessingLoop() - if err != nil { - return err - } - - chStop := make(chan os.Signal) - signal.Notify(chStop, os.Interrupt) - <-chStop - - return nil -} - -func addPairsToFetchers(pairs []*aggregator.ArgsPair, priceFetchers []aggregator.PriceFetcher) { - for _, pair := range pairs { - addPairToFetchers(pair, priceFetchers) - } -} - -func addPairToFetchers(pair *aggregator.ArgsPair, priceFetchers []aggregator.PriceFetcher) { - for _, fetcher := range priceFetchers { - name := fetcher.Name() - _, ok := pair.Exchanges[name] - if !ok { - log.Info("Missing fetcher name from known exchanges for pair", - "fetcher", name, "pair base", pair.Base, "pair quote", pair.Quote) - continue - } - - fetcher.AddPair(pair.Base, pair.Quote) - } -} - -func createXExchangeMap() map[string]fetchers.XExchangeTokensPair { - return map[string]fetchers.XExchangeTokensPair{ - "ETH-USD": { - // for tests only until we have an ETH id - // the price will be dropped as it is extreme compared to real price - Base: "WEGLD-bd4d79", - Quote: "USDC-c76f1f", - }, - } -} - -func createPriceFetchers() ([]aggregator.PriceFetcher, error) { - exchanges := fetchers.ImplementedFetchers - priceFetchers := make([]aggregator.PriceFetcher, 0, len(exchanges)) - - graphqlResponseGetter, err := createGraphqlResponseGetter() - if err != nil { - return nil, err - } - - httpResponseGetter, err := aggregator.NewHttpResponseGetter() - if err != nil { - return nil, err - } - - for exchangeName := range exchanges { - priceFetcher, errFetch := fetchers.NewPriceFetcher(exchangeName, httpResponseGetter, graphqlResponseGetter, createXExchangeMap()) - if errFetch != nil { - return nil, errFetch - } - - priceFetchers = append(priceFetchers, priceFetcher) - } - - return priceFetchers, nil -} - -func createGraphqlResponseGetter() (aggregator.GraphqlGetter, error) { - authClient, err := createAuthClient() - if err != nil { - return nil, err - } - - return aggregator.NewGraphqlResponseGetter(authClient) -} - -func createAuthClient() (authentication.AuthClient, error) { - w := interactors.NewWallet() - privateKeyBytes, err := w.LoadPrivateKeyFromPemData([]byte(examples.AlicePemContents)) - if err != nil { - log.Error("unable to load alice.pem", "error", err) - return nil, err - } - - argsProxy := blockchain.ArgsProxy{ - ProxyURL: networkAddress, - SameScState: false, - ShouldBeSynced: false, - FinalityCheck: false, - AllowedDeltaToFinal: 1, - CacheExpirationTime: time.Second, - EntityType: core.Proxy, - } - - proxy, err := blockchain.NewProxy(argsProxy) - if err != nil { - return nil, err - } - - holder, _ := cryptoProvider.NewCryptoComponentsHolder(keyGen, privateKeyBytes) - args := authentication.ArgsNativeAuthClient{ - Signer: cryptoProvider.NewSigner(), - ExtraInfo: nil, - Proxy: proxy, - CryptoComponentsHolder: holder, - TokenExpiryInSeconds: 60 * 60 * 24, - Host: "oracle", - } - - authClient, err := authentication.NewNativeAuthClient(args) - if err != nil { - return nil, err - } - - return authClient, nil -} diff --git a/mx-sdk-go-old/examples/examplesTransaction/main.go b/mx-sdk-go-old/examples/examplesTransaction/main.go deleted file mode 100644 index 8b4f8332..00000000 --- a/mx-sdk-go-old/examples/examplesTransaction/main.go +++ /dev/null @@ -1,114 +0,0 @@ -package main - -import ( - "context" - "net/http" - "time" - - "github.com/multiversx/mx-chain-crypto-go/signing" - "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -var ( - suite = ed25519.NewEd25519() - keyGen = signing.NewKeyGenerator(suite) - log = logger.GetOrCreate("mx-sdk-go/examples/examplesTransaction") -) - -func main() { - _ = logger.SetLogLevel("*:DEBUG") - - args := blockchain.ArgsProxy{ - ProxyURL: examples.TestnetGateway, - Client: &http.Client{}, - SameScState: false, - ShouldBeSynced: false, - FinalityCheck: false, - CacheExpirationTime: time.Minute, - EntityType: core.Proxy, - } - ep, err := blockchain.NewProxy(args) - if err != nil { - log.Error("error creating proxy", "error", err) - return - } - - w := interactors.NewWallet() - - privateKey, err := w.LoadPrivateKeyFromPemData([]byte(examples.AlicePemContents)) - if err != nil { - log.Error("unable to load alice.pem", "error", err) - return - } - // Generate address from private key - address, err := w.GetAddressFromPrivateKey(privateKey) - if err != nil { - log.Error("unable to load the address from the private key", "error", err) - return - } - - // netConfigs can be used multiple times (for example when sending multiple transactions) as to improve the - // responsiveness of the system - netConfigs, err := ep.GetNetworkConfig(context.Background()) - if err != nil { - log.Error("unable to get the network configs", "error", err) - return - } - - tx, _, err := ep.GetDefaultTransactionArguments(context.Background(), address, netConfigs) - if err != nil { - log.Error("unable to prepare the transaction creation arguments", "error", err) - return - } - - tx.Receiver = address.AddressAsBech32String() // send to self - tx.Value = "1000000000000000000" // 1EGLD - - holder, _ := cryptoProvider.NewCryptoComponentsHolder(keyGen, privateKey) - txBuilder, err := builders.NewTxBuilder(cryptoProvider.NewSigner()) - if err != nil { - log.Error("unable to prepare the transaction creation arguments", "error", err) - return - } - - ti, err := interactors.NewTransactionInteractor(ep, txBuilder) - if err != nil { - log.Error("error creating transaction interactor", "error", err) - return - } - - err = ti.ApplySignature(holder, &tx) - if err != nil { - log.Error("error signing transaction", "error", err) - return - } - ti.AddTransaction(&tx) - - // a new transaction with the signature done on the hash of the transaction - // it's ok to reuse the arguments here, they will be copied, anyway - tx.Version = 2 - tx.Options = 1 - tx.Nonce++ // do not forget to increment the nonce, otherwise you will get 2 transactions - // with the same nonce (only one of them will get executed) - err = ti.ApplySignature(holder, &tx) - if err != nil { - log.Error("error creating transaction", "error", err) - return - } - ti.AddTransaction(&tx) - - hashes, err := ti.SendTransactionsAsBunch(context.Background(), 100) - if err != nil { - log.Error("error sending transaction", "error", err) - return - } - - log.Info("transactions sent", "hashes", hashes) -} diff --git a/mx-sdk-go-old/examples/examplesVMQuery/main.go b/mx-sdk-go-old/examples/examplesVMQuery/main.go deleted file mode 100644 index 1cace41e..00000000 --- a/mx-sdk-go-old/examples/examplesVMQuery/main.go +++ /dev/null @@ -1,47 +0,0 @@ -package main - -import ( - "context" - "time" - - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/examples" -) - -var log = logger.GetOrCreate("mx-sdk-go/examples/examplesVMQuery") - -func main() { - args := blockchain.ArgsProxy{ - ProxyURL: examples.TestnetGateway, - Client: nil, - SameScState: false, - ShouldBeSynced: false, - FinalityCheck: false, - CacheExpirationTime: time.Minute, - EntityType: core.Proxy, - } - ep, err := blockchain.NewProxy(args) - if err != nil { - log.Error("error creating proxy", "error", err) - return - } - - vmRequest := &data.VmValueRequest{ - Address: "erd1qqqqqqqqqqqqqpgqp699jngundfqw07d8jzkepucvpzush6k3wvqyc44rx", - FuncName: "version", - CallerAddr: "erd1rh5ws22jxm9pe7dtvhfy6j3uttuupkepferdwtmslms5fydtrh5sx3xr8r", - CallValue: "", - Args: nil, - } - response, err := ep.ExecuteVMQuery(context.Background(), vmRequest) - if err != nil { - log.Error("error executing vm query", "error", err) - return - } - - contractVersion := string(response.Data.ReturnData[0]) - log.Info("response", "contract version", contractVersion) -} diff --git a/mx-sdk-go-old/examples/examplesWallet/main.go b/mx-sdk-go-old/examples/examplesWallet/main.go deleted file mode 100644 index bead136c..00000000 --- a/mx-sdk-go-old/examples/examplesWallet/main.go +++ /dev/null @@ -1,50 +0,0 @@ -package main - -import ( - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -var log = logger.GetOrCreate("mx-sdk-go/examples/examplesWallet") - -func main() { - w := interactors.NewWallet() - mnemonic, err := w.GenerateMnemonic() - if err != nil { - log.Error("error generating mnemonic", "error", err) - return - } - log.Info("generated mnemonics", "mnemonics", string(mnemonic)) - - // generating the private key from the mnemonic using index 0 - index0 := uint32(0) - privateKey0 := w.GetPrivateKeyFromMnemonic(mnemonic, 0, index0) - address0, err := w.GetAddressFromPrivateKey(privateKey0) - if err != nil { - log.Error("error getting address from private key", "error", err) - return - } - - log.Info("generated private/public key", - "private key", privateKey0, - "index", index0, - "address as hex", address0.AddressBytes(), - "address as bech32", address0.AddressAsBech32String(), - ) - - // generating the private key from the same mnemonic using index 1 - index1 := uint32(1) - privateKey1 := w.GetPrivateKeyFromMnemonic(mnemonic, 0, index1) - address1, err := w.GetAddressFromPrivateKey(privateKey1) - if err != nil { - log.Error("error getting address from private key", "error", err) - return - } - - log.Info("generated private/public key", - "private key", privateKey1, - "index", index1, - "address as hex", address1.AddressBytes(), - "address as bech32", address1.AddressAsBech32String(), - ) -} diff --git a/mx-sdk-go-old/examples/keys.go b/mx-sdk-go-old/examples/keys.go deleted file mode 100644 index d4eb87de..00000000 --- a/mx-sdk-go-old/examples/keys.go +++ /dev/null @@ -1,14 +0,0 @@ -package examples - -// AlicePemContents represents the alice pem file as a const for convenient use inside examples & tests -const AlicePemContents = `-----BEGIN PRIVATE KEY for erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th----- -NDEzZjQyNTc1ZjdmMjZmYWQzMzE3YTc3ODc3MTIxMmZkYjgwMjQ1ODUwOTgxZTQ4 -YjU4YTRmMjVlMzQ0ZThmOTAxMzk0NzJlZmY2ODg2NzcxYTk4MmYzMDgzZGE1ZDQy -MWYyNGMyOTE4MWU2Mzg4ODIyOGRjODFjYTYwZDY5ZTE= ------END PRIVATE KEY for erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th-----` - -const BobPemContents = `-----BEGIN PRIVATE KEY for erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx----- -YjhjYTZmODIwM2ZiNGI1NDVhOGU4M2M1Mzg0ZGEwMzNjNDE1ZGIxNTViNTNmYjVi -OGViYTdmZjVhMDM5ZDYzOTgwNDlkNjM5ZTVhNjk4MGQxY2QyMzkyYWJjY2U0MTAy -OWNkYTc0YTE1NjM1MjNhMjAyZjA5NjQxY2MyNjE4Zjg= ------END PRIVATE KEY for erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx-----` diff --git a/mx-sdk-go-old/examples/networks.go b/mx-sdk-go-old/examples/networks.go deleted file mode 100644 index 7b8dd76d..00000000 --- a/mx-sdk-go-old/examples/networks.go +++ /dev/null @@ -1,9 +0,0 @@ -package examples - -// MainnetGateway represents the mainnet gateway address -const MainnetGateway = "https://gateway.multiversx.com" - -// TestnetGateway represents the testnet gateway address -const TestnetGateway = "https://testnet-gateway.multiversx.com" - -const TestnetAPI = "https://testnet-api.multiversx.com" diff --git a/mx-sdk-go-old/go.mod b/mx-sdk-go-old/go.mod deleted file mode 100644 index 92bd5695..00000000 --- a/mx-sdk-go-old/go.mod +++ /dev/null @@ -1,166 +0,0 @@ -module github.com/multiversx/mx-sdk-go/mx-sdk-go-old - -go 1.17 - -require ( - github.com/gin-contrib/cors v1.4.0 - github.com/gin-gonic/gin v1.9.1 - github.com/gorilla/websocket v1.5.0 - github.com/multiversx/mx-chain-core-go v1.1.37 - github.com/multiversx/mx-chain-crypto-go v1.2.6 - github.com/multiversx/mx-chain-go v1.5.12 - github.com/multiversx/mx-chain-logger-go v1.0.11 - github.com/multiversx/mx-chain-vm-common-go v1.3.42 - github.com/pborman/uuid v1.2.1 - github.com/stretchr/testify v1.8.4 - github.com/tyler-smith/go-bip39 v1.1.0 - golang.org/x/crypto v0.9.0 - golang.org/x/oauth2 v0.5.0 -) - -require ( - github.com/beevik/ntp v0.3.0 // indirect - github.com/benbjohnson/clock v1.3.5 // indirect - github.com/beorn7/perks v1.0.1 // indirect - github.com/btcsuite/btcd/btcutil v1.1.3 // indirect - github.com/bytedance/sonic v1.9.1 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect - github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect - github.com/containerd/cgroups v1.1.0 // indirect - github.com/coreos/go-systemd/v22 v22.5.0 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect - github.com/denisbrodbeck/machineid v1.0.1 // indirect - github.com/docker/go-units v0.5.0 // indirect - github.com/elastic/gosigar v0.14.2 // indirect - github.com/flynn/noise v1.0.0 // indirect - github.com/francoispqt/gojay v1.2.13 // indirect - github.com/gabriel-vasile/mimetype v1.4.2 // indirect - github.com/gin-contrib/sse v0.1.0 // indirect - github.com/go-logr/logr v1.2.4 // indirect - github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-ole/go-ole v1.2.6 // indirect - github.com/go-playground/locales v0.14.1 // indirect - github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/go-playground/validator/v10 v10.14.0 // indirect - github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect - github.com/goccy/go-json v0.10.2 // indirect - github.com/godbus/dbus/v5 v5.1.0 // indirect - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/mock v1.6.0 // indirect - github.com/golang/protobuf v1.5.3 // indirect - github.com/golang/snappy v0.0.4 // indirect - github.com/google/gopacket v1.1.19 // indirect - github.com/google/pprof v0.0.0-20230602150820-91b7bce49751 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/hashicorp/errwrap v1.1.0 // indirect - github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/golang-lru v0.6.0 // indirect - github.com/hashicorp/golang-lru/v2 v2.0.2 // indirect - github.com/herumi/bls-go-binary v1.0.0 // indirect - github.com/huin/goupnp v1.2.0 // indirect - github.com/ipfs/boxo v0.8.1 // indirect - github.com/ipfs/go-cid v0.4.1 // indirect - github.com/ipfs/go-datastore v0.6.0 // indirect - github.com/ipfs/go-log v1.0.5 // indirect - github.com/ipfs/go-log/v2 v2.5.1 // indirect - github.com/ipld/go-ipld-prime v0.20.0 // indirect - github.com/jackpal/go-nat-pmp v1.0.2 // indirect - github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect - github.com/jbenet/goprocess v0.1.4 // indirect - github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.16.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.5 // indirect - github.com/koron/go-ssdp v0.0.4 // indirect - github.com/leodido/go-urn v1.2.4 // indirect - github.com/libp2p/go-buffer-pool v0.1.0 // indirect - github.com/libp2p/go-cidranger v1.1.0 // indirect - github.com/libp2p/go-flow-metrics v0.1.0 // indirect - github.com/libp2p/go-libp2p v0.28.1 // indirect - github.com/libp2p/go-libp2p-asn-util v0.3.0 // indirect - github.com/libp2p/go-libp2p-kad-dht v0.23.0 // indirect - github.com/libp2p/go-libp2p-kbucket v0.6.3 // indirect - github.com/libp2p/go-libp2p-pubsub v0.9.3 // indirect - github.com/libp2p/go-libp2p-record v0.2.0 // indirect - github.com/libp2p/go-msgio v0.3.0 // indirect - github.com/libp2p/go-nat v0.2.0 // indirect - github.com/libp2p/go-netroute v0.2.1 // indirect - github.com/libp2p/go-reuseport v0.3.0 // indirect - github.com/libp2p/go-yamux/v4 v4.0.0 // indirect - github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect - github.com/mattn/go-isatty v0.0.19 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect - github.com/miekg/dns v1.1.54 // indirect - github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect - github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect - github.com/minio/sha256-simd v1.0.1 // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect - github.com/mr-tron/base58 v1.2.0 // indirect - github.com/multiformats/go-base32 v0.1.0 // indirect - github.com/multiformats/go-base36 v0.2.0 // indirect - github.com/multiformats/go-multiaddr v0.9.0 // indirect - github.com/multiformats/go-multiaddr-dns v0.3.1 // indirect - github.com/multiformats/go-multiaddr-fmt v0.1.0 // indirect - github.com/multiformats/go-multibase v0.2.0 // indirect - github.com/multiformats/go-multicodec v0.9.0 // indirect - github.com/multiformats/go-multihash v0.2.3 // indirect - github.com/multiformats/go-multistream v0.4.1 // indirect - github.com/multiformats/go-varint v0.0.7 // indirect - github.com/multiversx/concurrent-map v0.1.4 // indirect - github.com/multiversx/mx-chain-p2p-go v1.0.17 // indirect - github.com/multiversx/mx-chain-storage-go v1.0.7 // indirect - github.com/nxadm/tail v1.4.8 // indirect - github.com/onsi/ginkgo/v2 v2.9.7 // indirect - github.com/opencontainers/runtime-spec v1.0.2 // indirect - github.com/opentracing/opentracing-go v1.2.0 // indirect - github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect - github.com/pelletier/go-toml v1.9.3 // indirect - github.com/pelletier/go-toml/v2 v2.0.8 // indirect - github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/polydawn/refmt v0.89.0 // indirect - github.com/prometheus/client_golang v1.14.0 // indirect - github.com/prometheus/client_model v0.4.0 // indirect - github.com/prometheus/common v0.42.0 // indirect - github.com/prometheus/procfs v0.9.0 // indirect - github.com/quic-go/qpack v0.4.0 // indirect - github.com/quic-go/qtls-go1-19 v0.3.2 // indirect - github.com/quic-go/qtls-go1-20 v0.2.2 // indirect - github.com/quic-go/quic-go v0.33.0 // indirect - github.com/quic-go/webtransport-go v0.5.3 // indirect - github.com/raulk/go-watchdog v1.3.0 // indirect - github.com/shirou/gopsutil v3.21.11+incompatible // indirect - github.com/spaolacci/murmur3 v1.1.0 // indirect - github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect - github.com/tklauser/go-sysconf v0.3.4 // indirect - github.com/tklauser/numcpus v0.2.1 // indirect - github.com/twitchyliquid64/golang-asm v0.15.1 // indirect - github.com/ugorji/go/codec v1.2.11 // indirect - github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect - github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee // indirect - github.com/yusufpapurcu/wmi v1.2.2 // indirect - go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/otel v1.14.0 // indirect - go.opentelemetry.io/otel/trace v1.14.0 // indirect - go.uber.org/atomic v1.11.0 // indirect - go.uber.org/dig v1.17.0 // indirect - go.uber.org/fx v1.19.2 // indirect - go.uber.org/goleak v1.2.1 // indirect - go.uber.org/multierr v1.11.0 // indirect - go.uber.org/zap v1.24.0 // indirect - golang.org/x/arch v0.3.0 // indirect - golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect - golang.org/x/mod v0.10.0 // indirect - golang.org/x/net v0.10.0 // indirect - golang.org/x/sync v0.2.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect - golang.org/x/tools v0.9.1 // indirect - gonum.org/v1/gonum v0.11.0 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.30.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect - lukechampine.com/blake3 v1.2.1 // indirect -) diff --git a/mx-sdk-go-old/go.sum b/mx-sdk-go-old/go.sum deleted file mode 100644 index 844b640d..00000000 --- a/mx-sdk-go-old/go.sum +++ /dev/null @@ -1,2953 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.31.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.37.0/go.mod h1:TS1dMSSfndXH133OKGwekG838Om/cQT0BUHV3HcBgoo= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= -cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= -cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= -cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= -cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= -cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= -cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= -cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= -cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= -cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= -cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= -cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= -cloud.google.com/go v0.100.1/go.mod h1:fs4QogzfH5n2pBXBP9vRiU+eCny7lD2vmFZy79Iuw1U= -cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= -cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= -cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= -cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= -cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4= -cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw= -cloud.google.com/go/accesscontextmanager v1.3.0/go.mod h1:TgCBehyr5gNMz7ZaH9xubp+CE8dkrszb4oK9CWyvD4o= -cloud.google.com/go/accesscontextmanager v1.4.0/go.mod h1:/Kjh7BBu/Gh83sv+K60vN9QE5NJcd80sU33vIe2IFPE= -cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= -cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= -cloud.google.com/go/aiplatform v1.27.0/go.mod h1:Bvxqtl40l0WImSb04d0hXFU7gDOiq9jQmorivIiWcKg= -cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= -cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= -cloud.google.com/go/apigateway v1.3.0/go.mod h1:89Z8Bhpmxu6AmUxuVRg/ECRGReEdiP3vQtk4Z1J9rJk= -cloud.google.com/go/apigateway v1.4.0/go.mod h1:pHVY9MKGaH9PQ3pJ4YLzoj6U5FUDeDFBllIz7WmzJoc= -cloud.google.com/go/apigeeconnect v1.3.0/go.mod h1:G/AwXFAKo0gIXkPTVfZDd2qA1TxBXJ3MgMRBQkIi9jc= -cloud.google.com/go/apigeeconnect v1.4.0/go.mod h1:kV4NwOKqjvt2JYR0AoIWo2QGfoRtn/pkS3QlHp0Ni04= -cloud.google.com/go/appengine v1.4.0/go.mod h1:CS2NhuBuDXM9f+qscZ6V86m1MIIqPj3WC/UoEuR1Sno= -cloud.google.com/go/appengine v1.5.0/go.mod h1:TfasSozdkFI0zeoxW3PTBLiNqRmzraodCWatWI9Dmak= -cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4= -cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= -cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ= -cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= -cloud.google.com/go/artifactregistry v1.8.0/go.mod h1:w3GQXkJX8hiKN0v+at4b0qotwijQbYUqF2GWkZzAhC0= -cloud.google.com/go/artifactregistry v1.9.0/go.mod h1:2K2RqvA2CYvAeARHRkLDhMDJ3OXy26h3XW+3/Jh2uYc= -cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= -cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= -cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0= -cloud.google.com/go/asset v1.9.0/go.mod h1:83MOE6jEJBMqFKadM9NLRcs80Gdw76qGuHn8m3h8oHQ= -cloud.google.com/go/asset v1.10.0/go.mod h1:pLz7uokL80qKhzKr4xXGvBQXnzHn5evJAEAtZiIb0wY= -cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY= -cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= -cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI= -cloud.google.com/go/assuredworkloads v1.8.0/go.mod h1:AsX2cqyNCOvEQC8RMPnoc0yEarXQk6WEKkxYfL6kGIo= -cloud.google.com/go/assuredworkloads v1.9.0/go.mod h1:kFuI1P78bplYtT77Tb1hi0FMxM0vVpRC7VVoJC3ZoT0= -cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0= -cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= -cloud.google.com/go/automl v1.7.0/go.mod h1:RL9MYCCsJEOmt0Wf3z9uzG0a7adTT1fe+aObgSpkCt8= -cloud.google.com/go/automl v1.8.0/go.mod h1:xWx7G/aPEe/NP+qzYXktoBSDfjO+vnKMGgsApGJJquM= -cloud.google.com/go/baremetalsolution v0.3.0/go.mod h1:XOrocE+pvK1xFfleEnShBlNAXf+j5blPPxrhjKgnIFc= -cloud.google.com/go/baremetalsolution v0.4.0/go.mod h1:BymplhAadOO/eBa7KewQ0Ppg4A4Wplbn+PsFKRLo0uI= -cloud.google.com/go/batch v0.3.0/go.mod h1:TR18ZoAekj1GuirsUsR1ZTKN3FC/4UDnScjT8NXImFE= -cloud.google.com/go/batch v0.4.0/go.mod h1:WZkHnP43R/QCGQsZ+0JyG4i79ranE2u8xvjq/9+STPE= -cloud.google.com/go/beyondcorp v0.2.0/go.mod h1:TB7Bd+EEtcw9PCPQhCJtJGjk/7TC6ckmnSFS+xwTfm4= -cloud.google.com/go/beyondcorp v0.3.0/go.mod h1:E5U5lcrcXMsCuoDNyGrpyTm/hn7ne941Jz2vmksAxW8= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= -cloud.google.com/go/bigquery v1.43.0/go.mod h1:ZMQcXHsl+xmU1z36G2jNGZmKp9zNY5BUua5wDgmNCfw= -cloud.google.com/go/bigquery v1.44.0/go.mod h1:0Y33VqXTEsbamHJvJHdFmtqHvMIY28aK1+dFsvaChGc= -cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY= -cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= -cloud.google.com/go/billing v1.6.0/go.mod h1:WoXzguj+BeHXPbKfNWkqVtDdzORazmCjraY+vrxcyvI= -cloud.google.com/go/billing v1.7.0/go.mod h1:q457N3Hbj9lYwwRbnlD7vUpyjq6u5U1RAOArInEiD5Y= -cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM= -cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= -cloud.google.com/go/binaryauthorization v1.3.0/go.mod h1:lRZbKgjDIIQvzYQS1p99A7/U1JqvqeZg0wiI5tp6tg0= -cloud.google.com/go/binaryauthorization v1.4.0/go.mod h1:tsSPQrBd77VLplV70GUhBf/Zm3FsKmgSqgm4UmiDItk= -cloud.google.com/go/certificatemanager v1.3.0/go.mod h1:n6twGDvcUBFu9uBgt4eYvvf3sQ6My8jADcOVwHmzadg= -cloud.google.com/go/certificatemanager v1.4.0/go.mod h1:vowpercVFyqs8ABSmrdV+GiFf2H/ch3KyudYQEMM590= -cloud.google.com/go/channel v1.8.0/go.mod h1:W5SwCXDJsq/rg3tn3oG0LOxpAo6IMxNa09ngphpSlnk= -cloud.google.com/go/channel v1.9.0/go.mod h1:jcu05W0my9Vx4mt3/rEHpfxc9eKi9XwsdDL8yBMbKUk= -cloud.google.com/go/cloudbuild v1.3.0/go.mod h1:WequR4ULxlqvMsjDEEEFnOG5ZSRSgWOywXYDb1vPE6U= -cloud.google.com/go/cloudbuild v1.4.0/go.mod h1:5Qwa40LHiOXmz3386FrjrYM93rM/hdRr7b53sySrTqA= -cloud.google.com/go/clouddms v1.3.0/go.mod h1:oK6XsCDdW4Ib3jCCBugx+gVjevp2TMXFtgxvPSee3OM= -cloud.google.com/go/clouddms v1.4.0/go.mod h1:Eh7sUGCC+aKry14O1NRljhjyrr0NFC0G2cjwX0cByRk= -cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY= -cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= -cloud.google.com/go/cloudtasks v1.7.0/go.mod h1:ImsfdYWwlWNJbdgPIIGJWC+gemEGTBK/SunNQQNCAb4= -cloud.google.com/go/cloudtasks v1.8.0/go.mod h1:gQXUIwCSOI4yPVK7DgTVFiiP0ZW/eQkydWzwVMdHxrI= -cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= -cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= -cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= -cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= -cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= -cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= -cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= -cloud.google.com/go/compute v1.12.0/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= -cloud.google.com/go/compute v1.15.1/go.mod h1:bjjoF/NtFUrkD/urWfdHaKuOPDR5nWIs63rR+SXhcpA= -cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU= -cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= -cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= -cloud.google.com/go/contactcenterinsights v1.3.0/go.mod h1:Eu2oemoePuEFc/xKFPjbTuPSj0fYJcPls9TFlPNnHHY= -cloud.google.com/go/contactcenterinsights v1.4.0/go.mod h1:L2YzkGbPsv+vMQMCADxJoT9YiTTnSEd6fEvCeHTYVck= -cloud.google.com/go/container v1.6.0/go.mod h1:Xazp7GjJSeUYo688S+6J5V+n/t+G5sKBTFkKNudGRxg= -cloud.google.com/go/container v1.7.0/go.mod h1:Dp5AHtmothHGX3DwwIHPgq45Y8KmNsgN3amoYfxVkLo= -cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= -cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= -cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= -cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs= -cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= -cloud.google.com/go/datacatalog v1.7.0/go.mod h1:9mEl4AuDYWw81UGc41HonIHH7/sn52H0/tc8f8ZbZIE= -cloud.google.com/go/datacatalog v1.8.0/go.mod h1:KYuoVOv9BM8EYz/4eMFxrr4DUKhGIOXxZoKYF5wdISM= -cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM= -cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= -cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo= -cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= -cloud.google.com/go/dataform v0.5.0/go.mod h1:GFUYRe8IBa2hcomWplodVmUx/iTL0FrsauObOM3Ipr0= -cloud.google.com/go/datafusion v1.4.0/go.mod h1:1Zb6VN+W6ALo85cXnM1IKiPw+yQMKMhB9TsTSRDo/38= -cloud.google.com/go/datafusion v1.5.0/go.mod h1:Kz+l1FGHB0J+4XF2fud96WMmRiq/wj8N9u007vyXZ2w= -cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I= -cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= -cloud.google.com/go/dataplex v1.3.0/go.mod h1:hQuRtDg+fCiFgC8j0zV222HvzFQdRd+SVX8gdmFcZzA= -cloud.google.com/go/dataplex v1.4.0/go.mod h1:X51GfLXEMVJ6UN47ESVqvlsRplbLhcsAt0kZCCKsU0A= -cloud.google.com/go/dataproc v1.7.0/go.mod h1:CKAlMjII9H90RXaMpSxQ8EU6dQx6iAYNPcYPOkSbi8s= -cloud.google.com/go/dataproc v1.8.0/go.mod h1:5OW+zNAH0pMpw14JVrPONsxMQYMBqJuzORhIBfBn9uI= -cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo= -cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/datastore v1.10.0/go.mod h1:PC5UzAmDEkAmkfaknstTYbNpgE49HAgW2J1gcgUfmdM= -cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo= -cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= -cloud.google.com/go/datastream v1.4.0/go.mod h1:h9dpzScPhDTs5noEMQVWP8Wx8AFBRyS0s8KWPx/9r0g= -cloud.google.com/go/datastream v1.5.0/go.mod h1:6TZMMNPwjUqZHBKPQ1wwXpb0d5VDVPl2/XoS5yi88q4= -cloud.google.com/go/deploy v1.4.0/go.mod h1:5Xghikd4VrmMLNaF6FiRFDlHb59VM59YoDQnOUdsH/c= -cloud.google.com/go/deploy v1.5.0/go.mod h1:ffgdD0B89tToyW/U/D2eL0jN2+IEV/3EMuXHA0l4r+s= -cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4= -cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= -cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8= -cloud.google.com/go/dialogflow v1.18.0/go.mod h1:trO7Zu5YdyEuR+BhSNOqJezyFQ3aUzz0njv7sMx/iek= -cloud.google.com/go/dialogflow v1.19.0/go.mod h1:JVmlG1TwykZDtxtTXujec4tQ+D8SBFMoosgy+6Gn0s0= -cloud.google.com/go/dlp v1.6.0/go.mod h1:9eyB2xIhpU0sVwUixfBubDoRwP+GjeUoxxeueZmqvmM= -cloud.google.com/go/dlp v1.7.0/go.mod h1:68ak9vCiMBjbasxeVD17hVPxDEck+ExiHavX8kiHG+Q= -cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU= -cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= -cloud.google.com/go/documentai v1.9.0/go.mod h1:FS5485S8R00U10GhgBC0aNGrJxBP8ZVpEeJ7PQDZd6k= -cloud.google.com/go/documentai v1.10.0/go.mod h1:vod47hKQIPeCfN2QS/jULIvQTugbmdc0ZvxxfQY1bg4= -cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y= -cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= -cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= -cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= -cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU= -cloud.google.com/go/essentialcontacts v1.3.0/go.mod h1:r+OnHa5jfj90qIfZDO/VztSFqbQan7HV75p8sA+mdGI= -cloud.google.com/go/essentialcontacts v1.4.0/go.mod h1:8tRldvHYsmnBCHdFpvU+GL75oWiBKl80BiqlFh9tp+8= -cloud.google.com/go/eventarc v1.7.0/go.mod h1:6ctpF3zTnaQCxUjHUdcfgcA1A2T309+omHZth7gDfmc= -cloud.google.com/go/eventarc v1.8.0/go.mod h1:imbzxkyAU4ubfsaKYdQg04WS1NvncblHEup4kvF+4gw= -cloud.google.com/go/filestore v1.3.0/go.mod h1:+qbvHGvXU1HaKX2nD0WEPo92TP/8AQuCVEBXNY9z0+w= -cloud.google.com/go/filestore v1.4.0/go.mod h1:PaG5oDfo9r224f8OYXURtAsY+Fbyq/bLYoINEK8XQAI= -cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE= -cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= -cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= -cloud.google.com/go/functions v1.8.0/go.mod h1:RTZ4/HsQjIqIYP9a9YPbU+QFoQsAlYgrwOXJWHn1POY= -cloud.google.com/go/functions v1.9.0/go.mod h1:Y+Dz8yGguzO3PpIjhLTbnqV1CWmgQ5UwtlpzoyquQ08= -cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= -cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= -cloud.google.com/go/gaming v1.7.0/go.mod h1:LrB8U7MHdGgFG851iHAfqUdLcKBdQ55hzXy9xBJz0+w= -cloud.google.com/go/gaming v1.8.0/go.mod h1:xAqjS8b7jAVW0KFYeRUxngo9My3f33kFmua++Pi+ggM= -cloud.google.com/go/gkebackup v0.2.0/go.mod h1:XKvv/4LfG829/B8B7xRkk8zRrOEbKtEam6yNfuQNH60= -cloud.google.com/go/gkebackup v0.3.0/go.mod h1:n/E671i1aOQvUxT541aTkCwExO/bTer2HDlj4TsBRAo= -cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o= -cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= -cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0= -cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= -cloud.google.com/go/gkemulticloud v0.3.0/go.mod h1:7orzy7O0S+5kq95e4Hpn7RysVA7dPs8W/GgfUtsPbrA= -cloud.google.com/go/gkemulticloud v0.4.0/go.mod h1:E9gxVBnseLWCk24ch+P9+B2CoDFJZTyIgLKSalC7tuI= -cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= -cloud.google.com/go/gsuiteaddons v1.3.0/go.mod h1:EUNK/J1lZEZO8yPtykKxLXI6JSVN2rg9bN8SXOa0bgM= -cloud.google.com/go/gsuiteaddons v1.4.0/go.mod h1:rZK5I8hht7u7HxFQcFei0+AtfS9uSushomRlg+3ua1o= -cloud.google.com/go/iam v0.1.0/go.mod h1:vcUNEa0pEm0qRVpmWepWaFMIAI8/hjB9mO8rNCJtF6c= -cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= -cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= -cloud.google.com/go/iam v0.6.0/go.mod h1:+1AH33ueBne5MzYccyMHtEKqLE4/kJOibtffMHDMFMc= -cloud.google.com/go/iam v0.7.0/go.mod h1:H5Br8wRaDGNc8XP3keLc4unfUUZeyH3Sfl9XpQEYOeg= -cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= -cloud.google.com/go/iap v1.4.0/go.mod h1:RGFwRJdihTINIe4wZ2iCP0zF/qu18ZwyKxrhMhygBEc= -cloud.google.com/go/iap v1.5.0/go.mod h1:UH/CGgKd4KyohZL5Pt0jSKE4m3FR51qg6FKQ/z/Ix9A= -cloud.google.com/go/ids v1.1.0/go.mod h1:WIuwCaYVOzHIj2OhN9HAwvW+DBdmUAdcWlFxRl+KubM= -cloud.google.com/go/ids v1.2.0/go.mod h1:5WXvp4n25S0rA/mQWAg1YEEBBq6/s+7ml1RDCW1IrcY= -cloud.google.com/go/iot v1.3.0/go.mod h1:r7RGh2B61+B8oz0AGE+J72AhA0G7tdXItODWsaA2oLs= -cloud.google.com/go/iot v1.4.0/go.mod h1:dIDxPOn0UvNDUMD8Ger7FIaTuvMkj+aGk94RPP0iV+g= -cloud.google.com/go/kms v1.4.0/go.mod h1:fajBHndQ+6ubNw6Ss2sSd+SWvjL26RNo/dr7uxsnnOA= -cloud.google.com/go/kms v1.5.0/go.mod h1:QJS2YY0eJGBg3mnDfuaCyLauWwBJiHRboYxJ++1xJNg= -cloud.google.com/go/kms v1.6.0/go.mod h1:Jjy850yySiasBUDi6KFUwUv2n1+o7QZFyuUJg6OgjA0= -cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= -cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= -cloud.google.com/go/language v1.7.0/go.mod h1:DJ6dYN/W+SQOjF8e1hLQXMF21AkH2w9wiPzPCJa2MIE= -cloud.google.com/go/language v1.8.0/go.mod h1:qYPVHf7SPoNNiCL2Dr0FfEFNil1qi3pQEyygwpgVKB8= -cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= -cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= -cloud.google.com/go/logging v1.6.1/go.mod h1:5ZO0mHHbvm8gEmeEUHrmDlTDSu5imF6MUP9OfilNXBw= -cloud.google.com/go/longrunning v0.1.1/go.mod h1:UUFxuDWkv22EuY93jjmDMFT5GPQKeFVJBIF6QlTqdsE= -cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= -cloud.google.com/go/managedidentities v1.3.0/go.mod h1:UzlW3cBOiPrzucO5qWkNkh0w33KFtBJU281hacNvsdE= -cloud.google.com/go/managedidentities v1.4.0/go.mod h1:NWSBYbEMgqmbZsLIyKvxrYbtqOsxY1ZrGM+9RgDqInM= -cloud.google.com/go/maps v0.1.0/go.mod h1:BQM97WGyfw9FWEmQMpZ5T6cpovXXSd1cGmFma94eubI= -cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= -cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= -cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= -cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= -cloud.google.com/go/memcache v1.6.0/go.mod h1:XS5xB0eQZdHtTuTF9Hf8eJkKtR3pVRCcvJwtm68T3rA= -cloud.google.com/go/memcache v1.7.0/go.mod h1:ywMKfjWhNtkQTxrWxCkCFkoPjLHPW6A7WOTVI8xy3LY= -cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY= -cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= -cloud.google.com/go/metastore v1.7.0/go.mod h1:s45D0B4IlsINu87/AsWiEVYbLaIMeUSoxlKKDqBGFS8= -cloud.google.com/go/metastore v1.8.0/go.mod h1:zHiMc4ZUpBiM7twCIFQmJ9JMEkDSyZS9U12uf7wHqSI= -cloud.google.com/go/monitoring v1.7.0/go.mod h1:HpYse6kkGo//7p6sT0wsIC6IBDET0RhIsnmlA53dvEk= -cloud.google.com/go/monitoring v1.8.0/go.mod h1:E7PtoMJ1kQXWxPjB6mv2fhC5/15jInuulFdYYtlcvT4= -cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA= -cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= -cloud.google.com/go/networkconnectivity v1.6.0/go.mod h1:OJOoEXW+0LAxHh89nXd64uGG+FbQoeH8DtxCHVOMlaM= -cloud.google.com/go/networkconnectivity v1.7.0/go.mod h1:RMuSbkdbPwNMQjB5HBWD5MpTBnNm39iAVpC3TmsExt8= -cloud.google.com/go/networkmanagement v1.4.0/go.mod h1:Q9mdLLRn60AsOrPc8rs8iNV6OHXaGcDdsIQe1ohekq8= -cloud.google.com/go/networkmanagement v1.5.0/go.mod h1:ZnOeZ/evzUdUsnvRt792H0uYEnHQEMaz+REhhzJRcf4= -cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ= -cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= -cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY= -cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= -cloud.google.com/go/notebooks v1.4.0/go.mod h1:4QPMngcwmgb6uw7Po99B2xv5ufVoIQ7nOGDyL4P8AgA= -cloud.google.com/go/notebooks v1.5.0/go.mod h1:q8mwhnP9aR8Hpfnrc5iN5IBhrXUy8S2vuYs+kBJ/gu0= -cloud.google.com/go/optimization v1.1.0/go.mod h1:5po+wfvX5AQlPznyVEZjGJTMr4+CAkJf2XSTQOOl9l4= -cloud.google.com/go/optimization v1.2.0/go.mod h1:Lr7SOHdRDENsh+WXVmQhQTrzdu9ybg0NecjHidBq6xs= -cloud.google.com/go/orchestration v1.3.0/go.mod h1:Sj5tq/JpWiB//X/q3Ngwdl5K7B7Y0KZ7bfv0wL6fqVA= -cloud.google.com/go/orchestration v1.4.0/go.mod h1:6W5NLFWs2TlniBphAViZEVhrXRSMgUGDfW7vrWKvsBk= -cloud.google.com/go/orgpolicy v1.4.0/go.mod h1:xrSLIV4RePWmP9P3tBl8S93lTmlAxjm06NSm2UTmKvE= -cloud.google.com/go/orgpolicy v1.5.0/go.mod h1:hZEc5q3wzwXJaKrsx5+Ewg0u1LxJ51nNFlext7Tanwc= -cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs= -cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= -cloud.google.com/go/osconfig v1.9.0/go.mod h1:Yx+IeIZJ3bdWmzbQU4fxNl8xsZ4amB+dygAwFPlvnNo= -cloud.google.com/go/osconfig v1.10.0/go.mod h1:uMhCzqC5I8zfD9zDEAfvgVhDS8oIjySWh+l4WK6GnWw= -cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E= -cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= -cloud.google.com/go/oslogin v1.6.0/go.mod h1:zOJ1O3+dTU8WPlGEkFSh7qeHPPSoxrcMbbK1Nm2iX70= -cloud.google.com/go/oslogin v1.7.0/go.mod h1:e04SN0xO1UNJ1M5GP0vzVBFicIe4O53FOfcixIqTyXo= -cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0= -cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= -cloud.google.com/go/policytroubleshooter v1.3.0/go.mod h1:qy0+VwANja+kKrjlQuOzmlvscn4RNsAc0e15GGqfMxg= -cloud.google.com/go/policytroubleshooter v1.4.0/go.mod h1:DZT4BcRw3QoO8ota9xw/LKtPa8lKeCByYeKTIf/vxdE= -cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0= -cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/pubsub v1.26.0/go.mod h1:QgBH3U/jdJy/ftjPhTkyXNj543Tin1pRYcdcPRnFIRI= -cloud.google.com/go/pubsub v1.27.1/go.mod h1:hQN39ymbV9geqBnfQq6Xf63yNhUAhv9CZhzp5O6qsW0= -cloud.google.com/go/pubsublite v1.5.0/go.mod h1:xapqNQ1CuLfGi23Yda/9l4bBCKz/wC3KIJ5gKcxveZg= -cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= -cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= -cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= -cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo= -cloud.google.com/go/recaptchaenterprise/v2 v2.4.0/go.mod h1:Am3LHfOuBstrLrNCBrlI5sbwx9LBg3te2N6hGvHn2mE= -cloud.google.com/go/recaptchaenterprise/v2 v2.5.0/go.mod h1:O8LzcHXN3rz0j+LBC91jrwI3R+1ZSZEWrfL7XHgNo9U= -cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg= -cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= -cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg= -cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= -cloud.google.com/go/recommender v1.7.0/go.mod h1:XLHs/W+T8olwlGOgfQenXBTbIseGclClff6lhFVe9Bs= -cloud.google.com/go/recommender v1.8.0/go.mod h1:PkjXrTT05BFKwxaUxQmtIlrtj0kph108r02ZZQ5FE70= -cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y= -cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= -cloud.google.com/go/redis v1.9.0/go.mod h1:HMYQuajvb2D0LvMgZmLDZW8V5aOC/WxstZHiy4g8OiA= -cloud.google.com/go/redis v1.10.0/go.mod h1:ThJf3mMBQtW18JzGgh41/Wld6vnDDc/F/F35UolRZPM= -cloud.google.com/go/resourcemanager v1.3.0/go.mod h1:bAtrTjZQFJkiWTPDb1WBjzvc6/kifjj4QBYuKCCoqKA= -cloud.google.com/go/resourcemanager v1.4.0/go.mod h1:MwxuzkumyTX7/a3n37gmsT3py7LIXwrShilPh3P1tR0= -cloud.google.com/go/resourcesettings v1.3.0/go.mod h1:lzew8VfESA5DQ8gdlHwMrqZs1S9V87v3oCnKCWoOuQU= -cloud.google.com/go/resourcesettings v1.4.0/go.mod h1:ldiH9IJpcrlC3VSuCGvjR5of/ezRrOxFtpJoJo5SmXg= -cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4= -cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= -cloud.google.com/go/retail v1.10.0/go.mod h1:2gDk9HsL4HMS4oZwz6daui2/jmKvqShXKQuB2RZ+cCc= -cloud.google.com/go/retail v1.11.0/go.mod h1:MBLk1NaWPmh6iVFSz9MeKG/Psyd7TAgm6y/9L2B4x9Y= -cloud.google.com/go/run v0.2.0/go.mod h1:CNtKsTA1sDcnqqIFR3Pb5Tq0usWxJJvsWOCPldRU3Do= -cloud.google.com/go/run v0.3.0/go.mod h1:TuyY1+taHxTjrD0ZFk2iAR+xyOXEA0ztb7U3UNA0zBo= -cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s= -cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= -cloud.google.com/go/scheduler v1.6.0/go.mod h1:SgeKVM7MIwPn3BqtcBntpLyrIJftQISRrYB5ZtT+KOk= -cloud.google.com/go/scheduler v1.7.0/go.mod h1:jyCiBqWW956uBjjPMMuX09n3x37mtyPJegEWKxRsn44= -cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= -cloud.google.com/go/secretmanager v1.8.0/go.mod h1:hnVgi/bN5MYHd3Gt0SPuTPPp5ENina1/LxM+2W9U9J4= -cloud.google.com/go/secretmanager v1.9.0/go.mod h1:b71qH2l1yHmWQHt9LC80akm86mX8AL6X1MA01dW8ht4= -cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= -cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0= -cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= -cloud.google.com/go/security v1.9.0/go.mod h1:6Ta1bO8LXI89nZnmnsZGp9lVoVWXqsVbIq/t9dzI+2Q= -cloud.google.com/go/security v1.10.0/go.mod h1:QtOMZByJVlibUT2h9afNDWRZ1G96gVywH8T5GUSb9IA= -cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU= -cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= -cloud.google.com/go/securitycenter v1.15.0/go.mod h1:PeKJ0t8MoFmmXLXWm41JidyzI3PJjd8sXWaVqg43WWk= -cloud.google.com/go/securitycenter v1.16.0/go.mod h1:Q9GMaLQFUD+5ZTabrbujNWLtSLZIZF7SAR0wWECrjdk= -cloud.google.com/go/servicecontrol v1.4.0/go.mod h1:o0hUSJ1TXJAmi/7fLJAedOovnujSEvjKCAFNXPQ1RaU= -cloud.google.com/go/servicecontrol v1.5.0/go.mod h1:qM0CnXHhyqKVuiZnGKrIurvVImCs8gmqWsDoqe9sU1s= -cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= -cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= -cloud.google.com/go/servicedirectory v1.6.0/go.mod h1:pUlbnWsLH9c13yGkxCmfumWEPjsRs1RlmJ4pqiNjVL4= -cloud.google.com/go/servicedirectory v1.7.0/go.mod h1:5p/U5oyvgYGYejufvxhgwjL8UVXjkuw7q5XcG10wx1U= -cloud.google.com/go/servicemanagement v1.4.0/go.mod h1:d8t8MDbezI7Z2R1O/wu8oTggo3BI2GKYbdG4y/SJTco= -cloud.google.com/go/servicemanagement v1.5.0/go.mod h1:XGaCRe57kfqu4+lRxaFEAuqmjzF0r+gWHjWqKqBvKFo= -cloud.google.com/go/serviceusage v1.3.0/go.mod h1:Hya1cozXM4SeSKTAgGXgj97GlqUvF5JaoXacR1JTP/E= -cloud.google.com/go/serviceusage v1.4.0/go.mod h1:SB4yxXSaYVuUBYUml6qklyONXNLt83U0Rb+CXyhjEeU= -cloud.google.com/go/shell v1.3.0/go.mod h1:VZ9HmRjZBsjLGXusm7K5Q5lzzByZmJHf1d0IWHEN5X4= -cloud.google.com/go/shell v1.4.0/go.mod h1:HDxPzZf3GkDdhExzD/gs8Grqk+dmYcEjGShZgYa9URw= -cloud.google.com/go/spanner v1.41.0/go.mod h1:MLYDBJR/dY4Wt7ZaMIQ7rXOTLjYrmxLE/5ve9vFfWos= -cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= -cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= -cloud.google.com/go/speech v1.8.0/go.mod h1:9bYIl1/tjsAnMgKGHKmBZzXKEkGgtU+MpdDPTE9f7y0= -cloud.google.com/go/speech v1.9.0/go.mod h1:xQ0jTcmnRFFM2RfX/U+rk6FQNUF6DQlydUSyoooSpco= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= -cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= -cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= -cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= -cloud.google.com/go/storagetransfer v1.5.0/go.mod h1:dxNzUopWy7RQevYFHewchb29POFv3/AaBgnhqzqiK0w= -cloud.google.com/go/storagetransfer v1.6.0/go.mod h1:y77xm4CQV/ZhFZH75PLEXY0ROiS7Gh6pSKrM8dJyg6I= -cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= -cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= -cloud.google.com/go/talent v1.3.0/go.mod h1:CmcxwJ/PKfRgd1pBjQgU6W3YBwiewmUzQYH5HHmSCmM= -cloud.google.com/go/talent v1.4.0/go.mod h1:ezFtAgVuRf8jRsvyE6EwmbTK5LKciD4KVnHuDEFmOOA= -cloud.google.com/go/texttospeech v1.4.0/go.mod h1:FX8HQHA6sEpJ7rCMSfXuzBcysDAuWusNNNvN9FELDd8= -cloud.google.com/go/texttospeech v1.5.0/go.mod h1:oKPLhR4n4ZdQqWKURdwxMy0uiTS1xU161C8W57Wkea4= -cloud.google.com/go/tpu v1.3.0/go.mod h1:aJIManG0o20tfDQlRIej44FcwGGl/cD0oiRyMKG19IQ= -cloud.google.com/go/tpu v1.4.0/go.mod h1:mjZaX8p0VBgllCzF6wcU2ovUXN9TONFLd7iz227X2Xg= -cloud.google.com/go/trace v1.3.0/go.mod h1:FFUE83d9Ca57C+K8rDl/Ih8LwOzWIV1krKgxg6N0G28= -cloud.google.com/go/trace v1.4.0/go.mod h1:UG0v8UBqzusp+z63o7FK74SdFE+AXpCLdFb1rshXG+Y= -cloud.google.com/go/translate v1.3.0/go.mod h1:gzMUwRjvOqj5i69y/LYLd8RrNQk+hOmIXTi9+nb3Djs= -cloud.google.com/go/translate v1.4.0/go.mod h1:06Dn/ppvLD6WvA5Rhdp029IX2Mi3Mn7fpMRLPvXT5Wg= -cloud.google.com/go/video v1.8.0/go.mod h1:sTzKFc0bUSByE8Yoh8X0mn8bMymItVGPfTuUBUyRgxk= -cloud.google.com/go/video v1.9.0/go.mod h1:0RhNKFRF5v92f8dQt0yhaHrEuH95m068JYOvLZYnJSw= -cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= -cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= -cloud.google.com/go/videointelligence v1.8.0/go.mod h1:dIcCn4gVDdS7yte/w+koiXn5dWVplOZkE+xwG9FgK+M= -cloud.google.com/go/videointelligence v1.9.0/go.mod h1:29lVRMPDYHikk3v8EdPSaL8Ku+eMzDljjuvRs105XoU= -cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0= -cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo= -cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= -cloud.google.com/go/vision/v2 v2.4.0/go.mod h1:VtI579ll9RpVTrdKdkMzckdnwMyX2JILb+MhPqRbPsY= -cloud.google.com/go/vision/v2 v2.5.0/go.mod h1:MmaezXOOE+IWa+cS7OhRRLK2cNv1ZL98zhqFFZaaH2E= -cloud.google.com/go/vmmigration v1.2.0/go.mod h1:IRf0o7myyWFSmVR1ItrBSFLFD/rJkfDCUTO4vLlJvsE= -cloud.google.com/go/vmmigration v1.3.0/go.mod h1:oGJ6ZgGPQOFdjHuocGcLqX4lc98YQ7Ygq8YQwHh9A7g= -cloud.google.com/go/vmwareengine v0.1.0/go.mod h1:RsdNEf/8UDvKllXhMz5J40XxDrNJNN4sagiox+OI208= -cloud.google.com/go/vpcaccess v1.4.0/go.mod h1:aQHVbTWDYUR1EbTApSVvMq1EnT57ppDmQzZ3imqIk4w= -cloud.google.com/go/vpcaccess v1.5.0/go.mod h1:drmg4HLk9NkZpGfCmZ3Tz0Bwnm2+DKqViEpeEpOq0m8= -cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE= -cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= -cloud.google.com/go/webrisk v1.6.0/go.mod h1:65sW9V9rOosnc9ZY7A7jsy1zoHS5W9IAXv6dGqhMQMc= -cloud.google.com/go/webrisk v1.7.0/go.mod h1:mVMHgEYH0r337nmt1JyLthzMr6YxwN1aAIEc2fTcq7A= -cloud.google.com/go/websecurityscanner v1.3.0/go.mod h1:uImdKm2wyeXQevQJXeh8Uun/Ym1VqworNDlBXQevGMo= -cloud.google.com/go/websecurityscanner v1.4.0/go.mod h1:ebit/Fp0a+FWu5j4JOmJEV8S8CzdTkAS77oDsiSqYWQ= -cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= -cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= -cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M= -cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA= -dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0/go.mod h1:JLBrvjyP0v+ecvNYvCpyZgu5/xkfAUhi6wJj28eUfSU= -dmitri.shuralyov.com/service/change v0.0.0-20181023043359-a85b471d5412/go.mod h1:a1inKt/atXimZ4Mv927x+r7UpyzRUf4emIoiiSC2TN4= -dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D6DFvNNtx+9ybjezNCa8XF0xaYcETyp6rHWU= -filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= -gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8= -git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= -git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc= -github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= -github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= -github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/Kubuxu/go-os-helper v0.0.1/go.mod h1:N8B+I7vPCT80IcP58r50u4+gEEcsZETFUpAzWW2ep1Y= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= -github.com/Shopify/sarama v1.37.2/go.mod h1:Nxye/E+YPru//Bpaorfhc3JsSGYwCaDDj+R4bK52U5o= -github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/Shopify/toxiproxy/v2 v2.5.0/go.mod h1:yhM2epWtAmel9CB8r2+L+PCmhH6yH2pITaPAo7jxJl0= -github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= -github.com/Stebalien/go-bitfield v0.0.1/go.mod h1:GNjFpasyUVkHMsfEOk8EFLJ9syQ6SI+XWrX9Wf2XH0s= -github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= -github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= -github.com/ajstarks/deck v0.0.0-20200831202436-30c9fc6549a9/go.mod h1:JynElWSGnm/4RlzPXRlREEwqTHAN3T56Bv2ITsFT3gY= -github.com/ajstarks/deck/generate v0.0.0-20210309230005-c3f852c02e19/go.mod h1:T13YZdzov6OU0A1+RfKZiZN9ca6VeKdBdyDV+BY97Tk= -github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= -github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b/go.mod h1:1KcenG0jGWcpt8ov532z81sp/kMMUG485J2InIOyADM= -github.com/alecthomas/kingpin/v2 v2.3.1/go.mod h1:oYL5vtsvEHZGHxU7DMp32Dvx+qL+ptGn6lWaot2vCNE= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/alecthomas/units v0.0.0-20210927113745-59d0afb8317a/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= -github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= -github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= -github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= -github.com/beevik/ntp v0.3.0 h1:xzVrPrE4ziasFXgBVBZJDP0Wg/KpMwk2KHJ4Ba8GrDw= -github.com/beevik/ntp v0.3.0/go.mod h1:hIHWr+l3+/clUnF44zdK+CWW7fO8dR5cIylAQ76NRpg= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o= -github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= -github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= -github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= -github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= -github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= -github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= -github.com/btcsuite/btcd v0.0.0-20190605094302-a0d1e3e36d50/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= -github.com/btcsuite/btcd v0.0.0-20190824003749-130ea5bddde3/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= -github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= -github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94= -github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M= -github.com/btcsuite/btcd v0.22.1/go.mod h1:wqgTSL29+50LRkmOVknEdmt8ZojIzhuWvgu/iptuN7Y= -github.com/btcsuite/btcd v0.23.0 h1:V2/ZgjfDFIygAX3ZapeigkVBoVUtOJKSwrhZdlpSvaA= -github.com/btcsuite/btcd v0.23.0/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= -github.com/btcsuite/btcd/btcec/v2 v2.1.0/go.mod h1:2VzYrv4Gm4apmbVVsSq5bqf1Ec8v56E48Vt0Y/umPgA= -github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= -github.com/btcsuite/btcd/btcec/v2 v2.2.0/go.mod h1:U7MHm051Al6XmscBQ0BoNydpOTsFAn707034b5nY8zU= -github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= -github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= -github.com/btcsuite/btcd/btcutil v1.0.0/go.mod h1:Uoxwv0pqYWhD//tfTiipkxNfdhG9UrLwaeswfjfdF0A= -github.com/btcsuite/btcd/btcutil v1.1.0/go.mod h1:5OapHB7A2hBBWLm48mmw4MOHNJCcUBTwmWH/0Jn8VHE= -github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= -github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= -github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= -github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= -github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts= -github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= -github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= -github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= -github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= -github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= -github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= -github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= -github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= -github.com/bytedance/sonic v1.8.0/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= -github.com/bytedance/sonic v1.9.1 h1:6iJ6NqdoxCDr6mbY8h18oSO+cShGSMRGCEo7F2h0x8s= -github.com/bytedance/sonic v1.9.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= -github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= -github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= -github.com/cenkalti/backoff/v4 v4.2.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= -github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cheekybits/genny v1.0.0/go.mod h1:+tQajlRqAUrPI7DOSpB0XAqZYtQakVtB7wXkRAgjxjQ= -github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= -github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams= -github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY= -github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic= -github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= -github.com/cilium/ebpf v0.2.0/go.mod h1:To2CFviqOWL/M0gIMsvSMlqe7em/l1ALkX1PyjrX2Qs= -github.com/cilium/ebpf v0.4.0/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs= -github.com/cilium/ebpf v0.9.1/go.mod h1:+OhNOIXx/Fnu1IE8bJz2dzOA+VSfyTfdNUVdlQnxUFY= -github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20220314180256-7f1daf1720fc/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327/go.mod h1:ZJeTFisyysqgcCdecO57Dj79RfL0LNeGiFUqLYQRYLE= -github.com/containerd/cgroups v1.0.4/go.mod h1:nLNQtsF7Sl2HxNebu77i1R0oDlhiTG+kO4JTrUzo6IA= -github.com/containerd/cgroups v1.1.0 h1:v8rEWFl6EoqHB+swVNjVoCJE8o3jX7e8nqBGPLaDFBM= -github.com/containerd/cgroups v1.1.0/go.mod h1:6ppBcbh/NOOUU+dMKrykgaBnK9lCIBxHqJDGwsa1mIw= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/go-systemd/v22 v22.4.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= -github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3/go.mod h1:p1d6YEZWvFzEh4KLyvBcVSnrfNDDvK2zfK/4x2v/4pE= -github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/cskr/pubsub v1.0.2/go.mod h1:/8MzYXk/NJAz782G8RPkFzXTZVu63VotefPnR9TIRis= -github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davidlazar/go-crypto v0.0.0-20170701192655-dcfb0a7ac018/go.mod h1:rQYf4tfk5sSwFsnDg3qYaBxSjsD9S8+59vW0dKUgme4= -github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c h1:pFUpOrbxDR6AkioZ1ySsx5yxlDQZ8stG2b88gTPxgJU= -github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c/go.mod h1:6UhI8N9EjYm1c2odKpFpAYeR8dsBeM7PtzQhRgxRr9U= -github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= -github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= -github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= -github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= -github.com/denisbrodbeck/machineid v1.0.1 h1:geKr9qtkB876mXguW2X6TU4ZynleN6ezuMSRhl4D7AQ= -github.com/denisbrodbeck/machineid v1.0.1/go.mod h1:dJUwb7PTidGDeYyUBmXZ2GphQBbjJCrnectwCyxcUSI= -github.com/dgraph-io/badger v1.5.5-0.20190226225317-8115aed38f8f/go.mod h1:VZxzAIRPHRVNRKRo6AXrX9BJegn6il06VMTZVJYCIjQ= -github.com/dgraph-io/badger v1.6.0-rc1/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= -github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= -github.com/dgraph-io/badger v1.6.1/go.mod h1:FRmFw3uxvcpa8zG3Rxs0th+hCLIuaQg8HlNV5bjgnuU= -github.com/dgraph-io/badger v1.6.2/go.mod h1:JW2yswe3V058sS0kZ2h/AXeDSqFjxnZcRrVH//y2UQE= -github.com/dgraph-io/ristretto v0.0.2/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-farm v0.0.0-20190104051053-3adb47b1fb0f/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= -github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-resiliency v1.3.0/go.mod h1:5yPzW0MIvSe0JDsv0v+DvcjEv2FyD6iZYSs1ZI+iQho= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= -github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/elastic/go-elasticsearch/v7 v7.12.0 h1:j4tvcMrZJLp39L2NYvBb7f+lHKPqPHSL3nvB8+/DV+s= -github.com/elastic/go-elasticsearch/v7 v7.12.0/go.mod h1:OJ4wdbtDNk5g503kvlHLyErCgQwwzmDtaFC4XyOxXA4= -github.com/elastic/gosigar v0.12.0/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= -github.com/elastic/gosigar v0.14.2 h1:Dg80n8cr90OZ7x+bAax/QjoW/XqTI11RmA79ZwIm9/4= -github.com/elastic/gosigar v0.14.2/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= -github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= -github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= -github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= -github.com/envoyproxy/go-control-plane v0.10.3/go.mod h1:fJJn/j26vwOu972OllsvAgJJM//w9BV6Fxbg2LuVd34= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v0.6.7/go.mod h1:dyJXwwfPK2VSqiB9Klm1J6romD608Ba7Hij42vrOBCo= -github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0++PMirau2/yoOwVac3AbF2w= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= -github.com/flynn/noise v0.0.0-20180327030543-2492fe189ae6/go.mod h1:1i71OnUq3iUe1ma7Lr6yG6/rjvM3emb6yoL7xLFzcVQ= -github.com/flynn/noise v1.0.0 h1:DlTHqmzmvcEiKj+4RYo/imoswx/4r6iBlCMfVtrMXpQ= -github.com/flynn/noise v1.0.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= -github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= -github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= -github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= -github.com/francoispqt/gojay v1.2.13 h1:d2m3sFjloqoIUQU3TsHBgj6qg/BVGlTBeHDUmyJnXKk= -github.com/francoispqt/gojay v1.2.13/go.mod h1:ehT5mTG4ua4581f1++1WLG0vPdaA9HaiDsoyrBGkyDY= -github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= -github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= -github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= -github.com/frankban/quicktest v1.14.0/go.mod h1:NeW+ay9A/U67EYXNFA1nPE8e/tnQv/09mUdL/ijj8og= -github.com/frankban/quicktest v1.14.2/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= -github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= -github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= -github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= -github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= -github.com/gabriel-vasile/mimetype v1.4.1/go.mod h1:05Vi0w3Y9c/lNvJOdmIwvrrAhX3rYhfQQCaf9VJcv7M= -github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= -github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/cors v1.4.0 h1:oJ6gwtUl3lqV0WEIwM/LxPF1QZ5qe2lGWdY2+bz7y0g= -github.com/gin-contrib/cors v1.4.0/go.mod h1:bs9pNM0x/UsmHPBWT2xZz9ROh8xYjYkiURUfmBoMlcs= -github.com/gin-contrib/pprof v1.4.0/go.mod h1:RrehPJasUVBPK6yTUwOl8/NP6i0vbUgmxtis+Z5KE90= -github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= -github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= -github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk= -github.com/gin-gonic/gin v1.9.0/go.mod h1:W1Me9+hsUSyj3CePGrd1/QrKJMSJ1Tu/0hFEH89961k= -github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg= -github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU= -github.com/gizak/termui/v3 v3.1.0/go.mod h1:bXQEBkJpzxUAKf0+xq9MSWAvWZlE7c+aidmyFlkYTrY= -github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= -github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= -github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g= -github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks= -github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= -github.com/go-fonts/liberation v0.2.0/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= -github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmnUIzUY= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= -github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= -github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U= -github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= -github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= -github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= -github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-ole/go-ole v1.2.4/go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM= -github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= -github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= -github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= -github.com/go-pdf/fpdf v0.6.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= -github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= -github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= -github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= -github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= -github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= -github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= -github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= -github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= -github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= -github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= -github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= -github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= -github.com/go-playground/validator/v10 v10.10.0/go.mod h1:74x4gJWsvQexRdW8Pn3dXSGrTK4nAUsbPlLADvpJkos= -github.com/go-playground/validator/v10 v10.11.2/go.mod h1:NieE624vt4SCTJtD87arVLvdmjPAeV8BQlHtMnw9D7s= -github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg/+t63MyGU2n5js= -github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= -github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= -github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= -github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= -github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= -github.com/goccy/go-json v0.9.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= -github.com/goccy/go-json v0.10.0/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= -github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= -github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= -github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= -github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= -github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:tluoj9z5200jBnyusfRPU2LqT6J+DAorxEvtC7LHB+E= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= -github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= -github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= -github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gopacket v1.1.17/go.mod h1:UdDNZ1OO62aGYVnPhxT1U6aI7ukYtA/kB8vaU0diBUM= -github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8= -github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo= -github.com/google/gops v0.3.18/go.mod h1:Pfp8hWGIFdV/7rY9/O/U5WgdjYQXf/GiEK4NVuVd2ZE= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20221203041831-ce31453925ec/go.mod h1:dDKJzRmX4S37WGHujM7tX//fmj1uioxKzKxz3lo4HJo= -github.com/google/pprof v0.0.0-20230405160723-4a4c7d95572b/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk= -github.com/google/pprof v0.0.0-20230602150820-91b7bce49751 h1:hR7/MlvK23p6+lIw9SN1TigNLn9ZnF3W4SYRKq2gAHs= -github.com/google/pprof v0.0.0-20230602150820-91b7bce49751/go.mod h1:Jh3hGz2jkYak8qXPD19ryItVnUgpgeqzdkY/D0EaeuA= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= -github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= -github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= -github.com/googleapis/gax-go/v2 v2.0.3/go.mod h1:LLvjysVCY1JZeum8Z6l8qUty8fiNwE08qbEPm1M08qg= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= -github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= -github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= -github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= -github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= -github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= -github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= -github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= -github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= -github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c h1:7lF+Vz0LqiRidnzC1Oq86fpX1q/iEv2KJdrCtttYjT4= -github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= -github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= -github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= -github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= -github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.5.0/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= -github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0/go.mod h1:hgWBS7lorOAVIJEQMi4ZsPv9hVvWI6+ch50m39Pf2Ks= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU0GSB0f8Nhgmxx0VIRUvaC0w= -github.com/gxed/hashland/keccakpg v0.0.1/go.mod h1:kRzw3HkwxFU1mpmPP8v1WyQzwdGfmKFJ6tItnhQ67kU= -github.com/gxed/hashland/murmur3 v0.0.1/go.mod h1:KjXop02n4/ckmZSnY2+HKcLud/tcmvhST0bie/0lS48= -github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= -github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= -github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= -github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= -github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/golang-lru v0.6.0 h1:uL2shRDx7RTrOrTCUZEGP/wJUFiUI8QT6E7z5o8jga4= -github.com/hashicorp/golang-lru v0.6.0/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/golang-lru/v2 v2.0.1/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= -github.com/hashicorp/golang-lru/v2 v2.0.2 h1:Dwmkdr5Nc/oBiXgJS3CDHNhJtIHkuZ3DZF5twqnfBdU= -github.com/hashicorp/golang-lru/v2 v2.0.2/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/herumi/bls-go-binary v1.0.0 h1:PRPF6vPd35zyDy+tp86HwNnGdufCH2lZL0wZGxYvkRs= -github.com/herumi/bls-go-binary v1.0.0/go.mod h1:O4Vp1AfR4raRGwFeQpr9X/PQtncEicMoOe6BQt1oX0Y= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= -github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= -github.com/huin/goupnp v1.0.3/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= -github.com/huin/goupnp v1.1.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= -github.com/huin/goupnp v1.2.0 h1:uOKW26NG1hsSSbXIZ1IR7XP9Gjd1U8pnLaCMgntmkmY= -github.com/huin/goupnp v1.2.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= -github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= -github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= -github.com/ianlancetaylor/demangle v0.0.0-20220517205856-0058ec4f073c/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= -github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/ipfs/bbloom v0.0.1/go.mod h1:oqo8CVWsJFMOZqTglBG4wydCE4IQA/G2/SEofB0rjUI= -github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0= -github.com/ipfs/boxo v0.8.0/go.mod h1:RIsi4CnTyQ7AUsNn5gXljJYZlQrHBMnJp94p73liFiA= -github.com/ipfs/boxo v0.8.1 h1:3DkKBCK+3rdEB5t77WDShUXXhktYwH99mkAsgajsKrU= -github.com/ipfs/boxo v0.8.1/go.mod h1:xJ2hVb4La5WyD7GvKYE0lq2g1rmQZoCD2K4WNrV6aZI= -github.com/ipfs/go-bitfield v1.0.0/go.mod h1:N/UiujQy+K+ceU1EF5EkVd1TNqevLrCQMIcAEPrdtus= -github.com/ipfs/go-bitfield v1.1.0/go.mod h1:paqf1wjq/D2BBmzfTVFlJQ9IlFOZpg422HL0HqsGWHU= -github.com/ipfs/go-bitswap v0.1.0/go.mod h1:FFJEf18E9izuCqUtHxbWEvq+reg7o4CW5wSAE1wsxj0= -github.com/ipfs/go-bitswap v0.1.2/go.mod h1:qxSWS4NXGs7jQ6zQvoPY3+NmOfHHG47mhkiLzBpJQIs= -github.com/ipfs/go-bitswap v0.1.8/go.mod h1:TOWoxllhccevbWFUR2N7B1MTSVVge1s6XSMiCSA4MzM= -github.com/ipfs/go-bitswap v0.3.4/go.mod h1:4T7fvNv/LmOys+21tnLzGKncMeeXUYUd1nUiJ2teMvI= -github.com/ipfs/go-bitswap v0.5.1/go.mod h1:P+ckC87ri1xFLvk74NlXdP0Kj9RmWAh4+H78sC6Qopo= -github.com/ipfs/go-bitswap v0.6.0/go.mod h1:Hj3ZXdOC5wBJvENtdqsixmzzRukqd8EHLxZLZc3mzRA= -github.com/ipfs/go-bitswap v0.11.0/go.mod h1:05aE8H3XOU+LXpTedeAS0OZpcO1WFsj5niYQH9a1Tmk= -github.com/ipfs/go-block-format v0.0.1/go.mod h1:DK/YYcsSUIVAFNwo/KZCdIIbpN0ROH/baNLgayt4pFc= -github.com/ipfs/go-block-format v0.0.2/go.mod h1:AWR46JfpcObNfg3ok2JHDUfdiHRgWhJgCQF+KIgOPJY= -github.com/ipfs/go-block-format v0.0.3/go.mod h1:4LmD4ZUw0mhO+JSKdpWwrzATiEfM7WWgQ8H5l6P8MVk= -github.com/ipfs/go-block-format v0.1.1/go.mod h1:+McEIT+g52p+zz5xGAABGSOKrzmrdX97bc0USBdWPUs= -github.com/ipfs/go-block-format v0.1.2/go.mod h1:mACVcrxarQKstUU3Yf/RdwbC4DzPV6++rO2a3d+a/KE= -github.com/ipfs/go-blockservice v0.1.0/go.mod h1:hzmMScl1kXHg3M2BjTymbVPjv627N7sYcvYaKbop39M= -github.com/ipfs/go-blockservice v0.1.4/go.mod h1:OTZhFpkgY48kNzbgyvcexW9cHrpjBYIjSR0KoDOFOLU= -github.com/ipfs/go-blockservice v0.2.1/go.mod h1:k6SiwmgyYgs4M/qt+ww6amPeUH9EISLRBnvUurKJhi8= -github.com/ipfs/go-blockservice v0.3.0/go.mod h1:P5ppi8IHDC7O+pA0AlGTF09jruB2h+oP3wVVaZl8sfk= -github.com/ipfs/go-blockservice v0.5.0/go.mod h1:W6brZ5k20AehbmERplmERn8o2Ni3ZZubvAxaIUeaT6w= -github.com/ipfs/go-cid v0.0.1/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= -github.com/ipfs/go-cid v0.0.2/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= -github.com/ipfs/go-cid v0.0.3/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= -github.com/ipfs/go-cid v0.0.4/go.mod h1:4LLaPOQwmk5z9LBgQnpkivrx8BJjUyGwTXCd5Xfj6+M= -github.com/ipfs/go-cid v0.0.5/go.mod h1:plgt+Y5MnOey4vO4UlUazGqdbEXuFYitED67FexhXog= -github.com/ipfs/go-cid v0.0.6/go.mod h1:6Ux9z5e+HpkQdckYoX1PG/6xqKspzlEIR5SDmgqgC/I= -github.com/ipfs/go-cid v0.0.7/go.mod h1:6Ux9z5e+HpkQdckYoX1PG/6xqKspzlEIR5SDmgqgC/I= -github.com/ipfs/go-cid v0.1.0/go.mod h1:rH5/Xv83Rfy8Rw6xG+id3DYAMUVmem1MowoKwdXmN2o= -github.com/ipfs/go-cid v0.2.0/go.mod h1:P+HXFDF4CVhaVayiEb4wkAy7zBHxBwsJyt0Y5U6MLro= -github.com/ipfs/go-cid v0.3.0/go.mod h1:P+HXFDF4CVhaVayiEb4wkAy7zBHxBwsJyt0Y5U6MLro= -github.com/ipfs/go-cid v0.3.2/go.mod h1:gQ8pKqT/sUxGY+tIwy1RPpAojYu7jAyCp5Tz1svoupw= -github.com/ipfs/go-cid v0.4.0/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= -github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s= -github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= -github.com/ipfs/go-cidutil v0.1.0/go.mod h1:e7OEVBMIv9JaOxt9zaGEmAoSlXW9jdFZ5lP/0PwcfpA= -github.com/ipfs/go-datastore v0.0.1/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= -github.com/ipfs/go-datastore v0.0.5/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= -github.com/ipfs/go-datastore v0.1.0/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= -github.com/ipfs/go-datastore v0.1.1/go.mod h1:w38XXW9kVFNp57Zj5knbKWM2T+KOZCGDRVNdgPHtbHw= -github.com/ipfs/go-datastore v0.3.1/go.mod h1:w38XXW9kVFNp57Zj5knbKWM2T+KOZCGDRVNdgPHtbHw= -github.com/ipfs/go-datastore v0.4.0/go.mod h1:SX/xMIKoCszPqp+z9JhPYCmoOoXTvaa13XEbGtsFUhA= -github.com/ipfs/go-datastore v0.4.1/go.mod h1:SX/xMIKoCszPqp+z9JhPYCmoOoXTvaa13XEbGtsFUhA= -github.com/ipfs/go-datastore v0.4.4/go.mod h1:SX/xMIKoCszPqp+z9JhPYCmoOoXTvaa13XEbGtsFUhA= -github.com/ipfs/go-datastore v0.4.5/go.mod h1:eXTcaaiN6uOlVCLS9GjJUJtlvJfM3xk23w3fyfrmmJs= -github.com/ipfs/go-datastore v0.5.0/go.mod h1:9zhEApYMTl17C8YDp7JmU7sQZi2/wqiYh73hakZ90Bk= -github.com/ipfs/go-datastore v0.5.1/go.mod h1:9zhEApYMTl17C8YDp7JmU7sQZi2/wqiYh73hakZ90Bk= -github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk= -github.com/ipfs/go-datastore v0.6.0/go.mod h1:rt5M3nNbSO/8q1t4LNkLyUwRs8HupMeN/8O4Vn9YAT8= -github.com/ipfs/go-detect-race v0.0.1 h1:qX/xay2W3E4Q1U7d9lNs1sU9nvguX0a7319XbyQ6cOk= -github.com/ipfs/go-detect-race v0.0.1/go.mod h1:8BNT7shDZPo99Q74BpGMK+4D8Mn4j46UU0LZ723meps= -github.com/ipfs/go-ds-badger v0.0.2/go.mod h1:Y3QpeSFWQf6MopLTiZD+VT6IC1yZqaGmjvRcKeSGij8= -github.com/ipfs/go-ds-badger v0.0.5/go.mod h1:g5AuuCGmr7efyzQhLL8MzwqcauPojGPUaHzfGTzuE3s= -github.com/ipfs/go-ds-badger v0.0.7/go.mod h1:qt0/fWzZDoPW6jpQeqUjR5kBfhDNB65jd9YlmAvpQBk= -github.com/ipfs/go-ds-badger v0.2.1/go.mod h1:Tx7l3aTph3FMFrRS838dcSJh+jjA7cX9DrGVwx/NOwE= -github.com/ipfs/go-ds-badger v0.2.3/go.mod h1:pEYw0rgg3FIrywKKnL+Snr+w/LjJZVMTBRn4FS6UHUk= -github.com/ipfs/go-ds-badger v0.3.0/go.mod h1:1ke6mXNqeV8K3y5Ak2bAA0osoTfmxUdupVCGm4QUIek= -github.com/ipfs/go-ds-leveldb v0.0.1/go.mod h1:feO8V3kubwsEF22n0YRQCffeb79OOYIykR4L04tMOYc= -github.com/ipfs/go-ds-leveldb v0.1.0/go.mod h1:hqAW8y4bwX5LWcCtku2rFNX3vjDZCy5LZCg+cSZvYb8= -github.com/ipfs/go-ds-leveldb v0.4.1/go.mod h1:jpbku/YqBSsBc1qgME8BkWS4AxzF2cEu1Ii2r79Hh9s= -github.com/ipfs/go-ds-leveldb v0.4.2/go.mod h1:jpbku/YqBSsBc1qgME8BkWS4AxzF2cEu1Ii2r79Hh9s= -github.com/ipfs/go-ds-leveldb v0.5.0/go.mod h1:d3XG9RUDzQ6V4SHi8+Xgj9j1XuEk1z82lquxrVbml/Q= -github.com/ipfs/go-fetcher v1.5.0/go.mod h1:5pDZ0393oRF/fHiLmtFZtpMNBQfHOYNPtryWedVuSWE= -github.com/ipfs/go-fetcher v1.6.1/go.mod h1:27d/xMV8bodjVs9pugh/RCjjK2OZ68UgAMspMdingNo= -github.com/ipfs/go-ipfs-blockstore v0.0.1/go.mod h1:d3WClOmRQKFnJ0Jz/jj/zmksX0ma1gROTlovZKBmN08= -github.com/ipfs/go-ipfs-blockstore v0.1.0/go.mod h1:5aD0AvHPi7mZc6Ci1WCAhiBQu2IsfTduLl+422H6Rqw= -github.com/ipfs/go-ipfs-blockstore v0.1.4/go.mod h1:Jxm3XMVjh6R17WvxFEiyKBLUGr86HgIYJW/D/MwqeYQ= -github.com/ipfs/go-ipfs-blockstore v0.2.1/go.mod h1:jGesd8EtCM3/zPgx+qr0/feTXGUeRai6adgwC+Q+JvE= -github.com/ipfs/go-ipfs-blockstore v1.1.2/go.mod h1:w51tNR9y5+QXB0wkNcHt4O2aSZjTdqaEWaQdSxEyUOY= -github.com/ipfs/go-ipfs-blockstore v1.2.0/go.mod h1:eh8eTFLiINYNSNawfZOC7HOxNTxpB1PFuA5E1m/7exE= -github.com/ipfs/go-ipfs-blockstore v1.3.0/go.mod h1:KgtZyc9fq+P2xJUiCAzbRdhhqJHvsw8u2Dlqy2MyRTE= -github.com/ipfs/go-ipfs-blocksutil v0.0.1/go.mod h1:Yq4M86uIOmxmGPUHv/uI7uKqZNtLb449gwKqXjIsnRk= -github.com/ipfs/go-ipfs-chunker v0.0.1/go.mod h1:tWewYK0we3+rMbOh7pPFGDyypCtvGcBFymgY4rSDLAw= -github.com/ipfs/go-ipfs-chunker v0.0.5/go.mod h1:jhgdF8vxRHycr00k13FM8Y0E+6BoalYeobXmUyTreP8= -github.com/ipfs/go-ipfs-delay v0.0.0-20181109222059-70721b86a9a8/go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw= -github.com/ipfs/go-ipfs-delay v0.0.1/go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw= -github.com/ipfs/go-ipfs-ds-help v0.0.1/go.mod h1:gtP9xRaZXqIQRh1HRpp595KbBEdgqWFxefeVKOV8sxo= -github.com/ipfs/go-ipfs-ds-help v0.1.1/go.mod h1:SbBafGJuGsPI/QL3j9Fc5YPLeAu+SzOkI0gFwAg+mOs= -github.com/ipfs/go-ipfs-ds-help v1.1.0/go.mod h1:YR5+6EaebOhfcqVCyqemItCLthrpVNot+rsOU/5IatU= -github.com/ipfs/go-ipfs-exchange-interface v0.0.1/go.mod h1:c8MwfHjtQjPoDyiy9cFquVtVHkO9b9Ob3FG91qJnWCM= -github.com/ipfs/go-ipfs-exchange-interface v0.1.0/go.mod h1:ych7WPlyHqFvCi/uQI48zLZuAWVP5iTQPXEfVaw5WEI= -github.com/ipfs/go-ipfs-exchange-interface v0.2.0/go.mod h1:z6+RhJuDQbqKguVyslSOuVDhqF9JtTrO3eptSAiW2/Y= -github.com/ipfs/go-ipfs-exchange-offline v0.0.1/go.mod h1:WhHSFCVYX36H/anEKQboAzpUws3x7UeEGkzQc3iNkM0= -github.com/ipfs/go-ipfs-exchange-offline v0.1.1/go.mod h1:vTiBRIbzSwDD0OWm+i3xeT0mO7jG2cbJYatp3HPk5XY= -github.com/ipfs/go-ipfs-exchange-offline v0.2.0/go.mod h1:HjwBeW0dvZvfOMwDP0TSKXIHf2s+ksdP4E3MLDRtLKY= -github.com/ipfs/go-ipfs-exchange-offline v0.3.0/go.mod h1:MOdJ9DChbb5u37M1IcbrRB02e++Z7521fMxqCNRrz9s= -github.com/ipfs/go-ipfs-files v0.0.3/go.mod h1:INEFm0LL2LWXBhNJ2PMIIb2w45hpXgPjNoE7yA8Y1d4= -github.com/ipfs/go-ipfs-files v0.0.8/go.mod h1:wiN/jSG8FKyk7N0WyctKSvq3ljIa2NNTiZB55kpTdOs= -github.com/ipfs/go-ipfs-files v0.2.0/go.mod h1:vT7uaQfIsprKktzbTPLnIsd+NGw9ZbYwSq0g3N74u0M= -github.com/ipfs/go-ipfs-files v0.3.0/go.mod h1:xAUtYMwB+iu/dtf6+muHNSFQCJG2dSiStR2P6sn9tIM= -github.com/ipfs/go-ipfs-keystore v0.1.0/go.mod h1:LvLw7Qhnb0RlMOfCzK6OmyWxICip6lQ06CCmdbee75U= -github.com/ipfs/go-ipfs-posinfo v0.0.1/go.mod h1:SwyeVP+jCwiDu0C313l/8jg6ZxM0qqtlt2a0vILTc1A= -github.com/ipfs/go-ipfs-pq v0.0.1/go.mod h1:LWIqQpqfRG3fNc5XsnIhz/wQ2XXGyugQwls7BgUmUfY= -github.com/ipfs/go-ipfs-pq v0.0.2/go.mod h1:LWIqQpqfRG3fNc5XsnIhz/wQ2XXGyugQwls7BgUmUfY= -github.com/ipfs/go-ipfs-pq v0.0.3/go.mod h1:btNw5hsHBpRcSSgZtiNm/SLj5gYIZ18AKtv3kERkRb4= -github.com/ipfs/go-ipfs-redirects-file v0.1.1/go.mod h1:tAwRjCV0RjLTjH8DR/AU7VYvfQECg+lpUy2Mdzv7gyk= -github.com/ipfs/go-ipfs-routing v0.1.0/go.mod h1:hYoUkJLyAUKhF58tysKpids8RNDPO42BVMgK5dNsoqY= -github.com/ipfs/go-ipfs-routing v0.2.1/go.mod h1:xiNNiwgjmLqPS1cimvAw6EyB9rkVDbiocA4yY+wRNLM= -github.com/ipfs/go-ipfs-routing v0.3.0/go.mod h1:dKqtTFIql7e1zYsEuWLyuOU+E0WJWW8JjbTPLParDWo= -github.com/ipfs/go-ipfs-util v0.0.1/go.mod h1:spsl5z8KUnrve+73pOhSVZND1SIxPW5RyBCNzQxlJBc= -github.com/ipfs/go-ipfs-util v0.0.2 h1:59Sswnk1MFaiq+VcaknX7aYEyGyGDAA73ilhEK2POp8= -github.com/ipfs/go-ipfs-util v0.0.2/go.mod h1:CbPtkWJzjLdEcezDns2XYaehFVNXG9zrdrtMecczcsQ= -github.com/ipfs/go-ipld-cbor v0.0.2/go.mod h1:wTBtrQZA3SoFKMVkp6cn6HMRteIB1VsmHA0AQFOn7Nc= -github.com/ipfs/go-ipld-cbor v0.0.3/go.mod h1:wTBtrQZA3SoFKMVkp6cn6HMRteIB1VsmHA0AQFOn7Nc= -github.com/ipfs/go-ipld-cbor v0.0.5/go.mod h1:BkCduEx3XBCO6t2Sfo5BaHzuok7hbhdMm9Oh8B2Ftq4= -github.com/ipfs/go-ipld-cbor v0.0.6/go.mod h1:ssdxxaLJPXH7OjF5V4NSjBbcfh+evoR4ukuru0oPXMA= -github.com/ipfs/go-ipld-format v0.0.1/go.mod h1:kyJtbkDALmFHv3QR6et67i35QzO3S0dCDnkOJhcZkms= -github.com/ipfs/go-ipld-format v0.0.2/go.mod h1:4B6+FM2u9OJ9zCV+kSbgFAZlOrv1Hqbf0INGQgiKf9k= -github.com/ipfs/go-ipld-format v0.2.0/go.mod h1:3l3C1uKoadTPbeNfrDi+xMInYKlx2Cvg1BuydPSdzQs= -github.com/ipfs/go-ipld-format v0.3.0/go.mod h1:co/SdBE8h99968X0hViiw1MNlh6fvxxnHpvVLnH7jSM= -github.com/ipfs/go-ipld-format v0.3.1/go.mod h1:co/SdBE8h99968X0hViiw1MNlh6fvxxnHpvVLnH7jSM= -github.com/ipfs/go-ipld-format v0.4.0/go.mod h1:co/SdBE8h99968X0hViiw1MNlh6fvxxnHpvVLnH7jSM= -github.com/ipfs/go-ipld-legacy v0.1.0/go.mod h1:86f5P/srAmh9GcIcWQR9lfFLZPrIyyXQeVlOWeeWEuI= -github.com/ipfs/go-ipld-legacy v0.1.1/go.mod h1:8AyKFCjgRPsQFf15ZQgDB8Din4DML/fOmKZkkFkrIEg= -github.com/ipfs/go-ipns v0.2.0/go.mod h1:3cLT2rbvgPZGkHJoPO1YMJeh6LtkxopCkKFcio/wE24= -github.com/ipfs/go-ipns v0.3.0/go.mod h1:3cLT2rbvgPZGkHJoPO1YMJeh6LtkxopCkKFcio/wE24= -github.com/ipfs/go-libipfs v0.1.0/go.mod h1:qX0d9h+wu53PFtCTXxdXVBakd6ZCvGDdkZUKmdLMLx0= -github.com/ipfs/go-libipfs v0.3.0/go.mod h1:pSUHZ5qPJTAidsxe9bAeHp3KIiw2ODEW2a2kM3v+iXI= -github.com/ipfs/go-libipfs v0.4.0/go.mod h1:XsU2cP9jBhDrXoJDe0WxikB8XcVmD3k2MEZvB3dbYu8= -github.com/ipfs/go-libipfs v0.6.0/go.mod h1:UjjDIuehp2GzlNP0HEr5I9GfFT7zWgst+YfpUEIThtw= -github.com/ipfs/go-log v0.0.1/go.mod h1:kL1d2/hzSpI0thNYjiKfjanbVNU+IIGA/WnNESY9leM= -github.com/ipfs/go-log v1.0.2/go.mod h1:1MNjMxe0u6xvJZgeqbJ8vdo2TKaGwZ1a0Bpza+sr2Sk= -github.com/ipfs/go-log v1.0.3/go.mod h1:OsLySYkwIbiSUR/yBTdv1qPtcE4FW3WPWk/ewz9Ru+A= -github.com/ipfs/go-log v1.0.4/go.mod h1:oDCg2FkjogeFOhqqb+N39l2RpTNPL6F/StPkB3kPgcs= -github.com/ipfs/go-log v1.0.5 h1:2dOuUCB1Z7uoczMWgAyDck5JLb72zHzrMnGnCNNbvY8= -github.com/ipfs/go-log v1.0.5/go.mod h1:j0b8ZoR+7+R99LD9jZ6+AJsrzkPbSXbZfGakb5JPtIo= -github.com/ipfs/go-log/v2 v2.0.2/go.mod h1:O7P1lJt27vWHhOwQmcFEvlmo49ry2VY2+JfBWFaa9+0= -github.com/ipfs/go-log/v2 v2.0.3/go.mod h1:O7P1lJt27vWHhOwQmcFEvlmo49ry2VY2+JfBWFaa9+0= -github.com/ipfs/go-log/v2 v2.0.5/go.mod h1:eZs4Xt4ZUJQFM3DlanGhy7TkwwawCZcSByscwkWG+dw= -github.com/ipfs/go-log/v2 v2.1.1/go.mod h1:2v2nsGfZsvvAJz13SyFzf9ObaqwHiHxsPLEHntrv9KM= -github.com/ipfs/go-log/v2 v2.1.3/go.mod h1:/8d0SH3Su5Ooc31QlL1WysJhvyOTDCjcCZ9Axpmri6g= -github.com/ipfs/go-log/v2 v2.3.0/go.mod h1:QqGoj30OTpnKaG/LKTGTxoP2mmQtjVMEnK72gynbe/g= -github.com/ipfs/go-log/v2 v2.5.0/go.mod h1:prSpmC1Gpllc9UYWxDiZDreBYw7zp4Iqp1kOLU9U5UI= -github.com/ipfs/go-log/v2 v2.5.1 h1:1XdUzF7048prq4aBjDQQ4SL5RxftpRGdXhNRwKSAlcY= -github.com/ipfs/go-log/v2 v2.5.1/go.mod h1:prSpmC1Gpllc9UYWxDiZDreBYw7zp4Iqp1kOLU9U5UI= -github.com/ipfs/go-merkledag v0.2.3/go.mod h1:SQiXrtSts3KGNmgOzMICy5c0POOpUNQLvB3ClKnBAlk= -github.com/ipfs/go-merkledag v0.3.2/go.mod h1:fvkZNNZixVW6cKSZ/JfLlON5OlgTXNdRLz0p6QG/I2M= -github.com/ipfs/go-merkledag v0.5.1/go.mod h1:cLMZXx8J08idkp5+id62iVftUQV+HlYJ3PIhDfZsjA4= -github.com/ipfs/go-merkledag v0.6.0/go.mod h1:9HSEwRd5sV+lbykiYP+2NC/3o6MZbKNaa4hfNcH5iH0= -github.com/ipfs/go-merkledag v0.9.0/go.mod h1:bPHqkHt5OZ0p1n3iqPeDiw2jIBkjAytRjS3WSBwjq90= -github.com/ipfs/go-merkledag v0.10.0/go.mod h1:zkVav8KiYlmbzUzNM6kENzkdP5+qR7+2mCwxkQ6GIj8= -github.com/ipfs/go-metrics-interface v0.0.1/go.mod h1:6s6euYU4zowdslK0GKHmqaIZ3j/b/tL7HTWtJ4VPgWY= -github.com/ipfs/go-namesys v0.7.0/go.mod h1:KYSZBVZG3VJC34EfqqJPG7T48aWgxseoMPAPA5gLyyQ= -github.com/ipfs/go-path v0.1.1/go.mod h1:vC8q4AKOtrjJz2NnllIrmr2ZbGlF5fW2OKKyhV9ggb0= -github.com/ipfs/go-path v0.3.0/go.mod h1:NOScsVgxfC/eIw4nz6OiGwK42PjaSJ4Y/ZFPn1Xe07I= -github.com/ipfs/go-peertaskqueue v0.1.0/go.mod h1:Jmk3IyCcfl1W3jTW3YpghSwSEC6IJ3Vzz/jUmWw8Z0U= -github.com/ipfs/go-peertaskqueue v0.1.1/go.mod h1:Jmk3IyCcfl1W3jTW3YpghSwSEC6IJ3Vzz/jUmWw8Z0U= -github.com/ipfs/go-peertaskqueue v0.2.0/go.mod h1:5/eNrBEbtSKWCG+kQK8K8fGNixoYUnr+P7jivavs9lY= -github.com/ipfs/go-peertaskqueue v0.7.0/go.mod h1:M/akTIE/z1jGNXMU7kFB4TeSEFvj68ow0Rrb04donIU= -github.com/ipfs/go-peertaskqueue v0.8.0/go.mod h1:cz8hEnnARq4Du5TGqiWKgMr/BOSQ5XOgMOh1K5YYKKM= -github.com/ipfs/go-peertaskqueue v0.8.1/go.mod h1:Oxxd3eaK279FxeydSPPVGHzbwVeHjatZ2GA8XD+KbPU= -github.com/ipfs/go-unixfs v0.2.4/go.mod h1:SUdisfUjNoSDzzhGVxvCL9QO/nKdwXdr+gbMUdqcbYw= -github.com/ipfs/go-unixfs v0.3.1/go.mod h1:h4qfQYzghiIc8ZNFKiLMFWOTzrWIAtzYQ59W/pCFf1o= -github.com/ipfs/go-unixfs v0.4.3/go.mod h1:TSG7G1UuT+l4pNj91raXAPkX0BhJi3jST1FDTfQ5QyM= -github.com/ipfs/go-unixfs v0.4.4/go.mod h1:TSG7G1UuT+l4pNj91raXAPkX0BhJi3jST1FDTfQ5QyM= -github.com/ipfs/go-unixfs v0.4.5/go.mod h1:BIznJNvt/gEx/ooRMI4Us9K8+qeGO7vx1ohnbk8gjFg= -github.com/ipfs/go-unixfsnode v1.1.2/go.mod h1:5dcE2x03pyjHk4JjamXmunTMzz+VUtqvPwZjIEkfV6s= -github.com/ipfs/go-unixfsnode v1.4.0/go.mod h1:qc7YFFZ8tABc58p62HnIYbUMwj9chhUuFWmxSokfePo= -github.com/ipfs/go-unixfsnode v1.5.1/go.mod h1:ed79DaG9IEuZITJVQn4U6MZDftv6I3ygUBLPfhEbHvk= -github.com/ipfs/go-unixfsnode v1.5.2/go.mod h1:NlOebRwYx8lMCNMdhAhEspYPBD3obp7TE0LvBqHY+ks= -github.com/ipfs/go-unixfsnode v1.6.0/go.mod h1:PVfoyZkX1B34qzT3vJO4nsLUpRCyhnMuHBznRcXirlk= -github.com/ipfs/go-verifcid v0.0.1/go.mod h1:5Hrva5KBeIog4A+UpqlaIU+DEstipcJYQQZc0g37pY0= -github.com/ipfs/go-verifcid v0.0.2/go.mod h1:40cD9x1y4OWnFXbLNJYRe7MpNvWlMn3LZAG5Wb4xnPU= -github.com/ipfs/interface-go-ipfs-core v0.9.0/go.mod h1:F3EcmDy53GFkF0H3iEJpfJC320fZ/4G60eftnItrrJ0= -github.com/ipfs/interface-go-ipfs-core v0.10.0/go.mod h1:F3EcmDy53GFkF0H3iEJpfJC320fZ/4G60eftnItrrJ0= -github.com/ipld/go-car v0.5.0/go.mod h1:ppiN5GWpjOZU9PgpAZ9HbZd9ZgSpwPMr48fGRJOWmvE= -github.com/ipld/go-car/v2 v2.1.1/go.mod h1:+2Yvf0Z3wzkv7NeI69i8tuZ+ft7jyjPYIWZzeVNeFcI= -github.com/ipld/go-car/v2 v2.5.1/go.mod h1:jKjGOqoCj5zn6KjnabD6JbnCsMntqU2hLiU6baZVO3E= -github.com/ipld/go-car/v2 v2.8.0/go.mod h1:a+BnAxUqgr7wcWxW/lI6ctyEQ2v9gjBChPytwFMp2f4= -github.com/ipld/go-car/v2 v2.9.1-0.20230325062757-fff0e4397a3d/go.mod h1:SH2pi/NgfGBsV/CGBAQPxMfghIgwzbh5lQ2N+6dNRI8= -github.com/ipld/go-codec-dagpb v1.3.0/go.mod h1:ga4JTU3abYApDC3pZ00BC2RSvC3qfBb9MSJkMLSwnhA= -github.com/ipld/go-codec-dagpb v1.3.1/go.mod h1:ErNNglIi5KMur/MfFE/svtgQthzVvf+43MrzLbpcIZY= -github.com/ipld/go-codec-dagpb v1.4.1/go.mod h1:XdXTO/TUD/ra9RcK/NfmwBfr1JpFxM2uRKaB9oe4LxE= -github.com/ipld/go-codec-dagpb v1.5.0/go.mod h1:0yRIutEFD8o1DGVqw4RSHh+BUTlJA9XWldxaaWR/o4g= -github.com/ipld/go-codec-dagpb v1.6.0/go.mod h1:ANzFhfP2uMJxRBr8CE+WQWs5UsNa0pYtmKZ+agnUw9s= -github.com/ipld/go-ipld-prime v0.9.0/go.mod h1:KvBLMr4PX1gWptgkzRjVZCrLmSGcZCb/jioOQwCqZN8= -github.com/ipld/go-ipld-prime v0.9.1-0.20210324083106-dc342a9917db/go.mod h1:KvBLMr4PX1gWptgkzRjVZCrLmSGcZCb/jioOQwCqZN8= -github.com/ipld/go-ipld-prime v0.11.0/go.mod h1:+WIAkokurHmZ/KwzDOMUuoeJgaRQktHtEaLglS3ZeV8= -github.com/ipld/go-ipld-prime v0.14.0/go.mod h1:9ASQLwUFLptCov6lIYc70GRB4V7UTyLD0IJtrDJe6ZM= -github.com/ipld/go-ipld-prime v0.16.0/go.mod h1:axSCuOCBPqrH+gvXr2w9uAOulJqBPhHPT2PjoiiU1qA= -github.com/ipld/go-ipld-prime v0.18.0/go.mod h1:735yXW548CKrLwVCYXzqx90p5deRJMVVxM9eJ4Qe+qE= -github.com/ipld/go-ipld-prime v0.19.0/go.mod h1:Q9j3BaVXwaA3o5JUDNvptDDr/x8+F7FG6XJ8WI3ILg4= -github.com/ipld/go-ipld-prime v0.20.0 h1:Ud3VwE9ClxpO2LkCYP7vWPc0Fo+dYdYzgxUJZ3uRG4g= -github.com/ipld/go-ipld-prime v0.20.0/go.mod h1:PzqZ/ZR981eKbgdr3y2DJYeD/8bgMawdGVlJDE8kK+M= -github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20211210234204-ce2a1c70cd73/go.mod h1:2PJ0JgxyB08t0b2WKrcuqI3di0V+5n6RS/LTUJhkoxY= -github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20230102063945-1a409dc236dd/go.mod h1:wZ8hH8UxeryOs4kJEJaiui/s00hDSbE37OKsL47g+Sw= -github.com/jackpal/gateway v1.0.5/go.mod h1:lTpwd4ACLXmpyiCTRtfiNyVnUmqT9RivzCDQetPfnjA= -github.com/jackpal/go-nat-pmp v1.0.1/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= -github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= -github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= -github.com/jbenet/go-cienv v0.0.0-20150120210510-1bb1476777ec/go.mod h1:rGaEvXB4uRSZMmzKNLoXvTu1sfx+1kv/DojUlPrSZGs= -github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA= -github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2/go.mod h1:8GXXJV31xl8whumTzdZsTt3RnUIiPqzkyf7mxToRCMs= -github.com/jbenet/go-temp-err-catcher v0.1.0 h1:zpb3ZH6wIE8Shj2sKS+khgRvf7T7RABoLk/+KKHggpk= -github.com/jbenet/go-temp-err-catcher v0.1.0/go.mod h1:0kJRvmDZXNMIiJirNPEYfhpPwbGVtZVWC34vc5WLsDk= -github.com/jbenet/goprocess v0.0.0-20160826012719-b497e2f366b8/go.mod h1:Ly/wlsjFq/qrU3Rar62tu1gASgGw6chQbSh/XgIIXCY= -github.com/jbenet/goprocess v0.1.3/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= -github.com/jbenet/goprocess v0.1.4 h1:DRGOFReOMqqDNXwW70QkacFW0YN9QnwLV0Vqk+3oU0o= -github.com/jbenet/goprocess v0.1.4/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= -github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= -github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= -github.com/jcmturner/gofork v1.7.6/go.mod h1:1622LH6i/EZqLloHfE7IeZ0uEJwMSUyQ/nDd82IeqRo= -github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= -github.com/jcmturner/gokrb5/v8 v8.4.3/go.mod h1:dqRwJGXznQrzw6cWmyo6kH+E7jksEQG/CyVWsJEsJO0= -github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= -github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod h1:E0B/fFc00Y+Rasa88328GlI/XbtyysCtTHZS8h7IrBU= -github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= -github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= -github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= -github.com/kami-zh/go-capturer v0.0.0-20171211120116-e492ea43421d/go.mod h1:P2viExyCEfeWGU259JnaQ34Inuec4R38JCyBx2edgD0= -github.com/keybase/go-ps v0.0.0-20190827175125-91aafc93ba19/go.mod h1:hY+WOq6m2FpbvyrI93sMaypsttvaIL5nhVR92dTMUcQ= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= -github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.15.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.15.10/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/compress v1.15.12/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/compress v1.16.4/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= -github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= -github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= -github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.0.6/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c= -github.com/klauspost/cpuid/v2 v2.1.0/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= -github.com/klauspost/cpuid/v2 v2.1.1/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= -github.com/klauspost/cpuid/v2 v2.1.2/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= -github.com/klauspost/cpuid/v2 v2.2.1/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= -github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= -github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= -github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/qbZg= -github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/koron/go-ssdp v0.0.0-20180514024734-4a0ed625a78b/go.mod h1:5Ky9EC2xfoUKUor0Hjgi2BJhCSXJfMOFlmyYrVKGQMk= -github.com/koron/go-ssdp v0.0.0-20191105050749-2e1c40ed0b5d/go.mod h1:5Ky9EC2xfoUKUor0Hjgi2BJhCSXJfMOFlmyYrVKGQMk= -github.com/koron/go-ssdp v0.0.3/go.mod h1:b2MxI6yh02pKrsyNoQUsk4+YNikaGhe4894J+Q5lDvA= -github.com/koron/go-ssdp v0.0.4 h1:1IDwrghSKYM7yLf7XCzbByg2sJ/JcNOZRXS2jczTwz0= -github.com/koron/go-ssdp v0.0.4/go.mod h1:oDXq+E5IL5q0U8uSBcoAXzTzInwy5lEgC91HoKtbmZk= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= -github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.3/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= -github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= -github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= -github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= -github.com/libp2p/go-addr-util v0.0.1/go.mod h1:4ac6O7n9rIAKB1dnd+s8IbbMXkt+oBpzX4/+RACcnlQ= -github.com/libp2p/go-addr-util v0.0.2/go.mod h1:Ecd6Fb3yIuLzq4bD7VcywcVSBtefcAwnUISBM3WG15E= -github.com/libp2p/go-buffer-pool v0.0.1/go.mod h1:xtyIz9PMobb13WaxR6Zo1Pd1zXJKYg0a8KiIvDp3TzQ= -github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= -github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= -github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= -github.com/libp2p/go-cidranger v1.1.0 h1:ewPN8EZ0dd1LSnrtuwd4709PXVcITVeuwbag38yPW7c= -github.com/libp2p/go-cidranger v1.1.0/go.mod h1:KWZTfSr+r9qEo9OkI9/SIEeAtw+NNoU0dXIXt15Okic= -github.com/libp2p/go-conn-security-multistream v0.1.0/go.mod h1:aw6eD7LOsHEX7+2hJkDxw1MteijaVcI+/eP2/x3J1xc= -github.com/libp2p/go-conn-security-multistream v0.2.0/go.mod h1:hZN4MjlNetKD3Rq5Jb/P5ohUnFLNzEAR4DLSzpn2QLU= -github.com/libp2p/go-conn-security-multistream v0.2.1/go.mod h1:cR1d8gA0Hr59Fj6NhaTpFhJZrjSYuNmhpT2r25zYR70= -github.com/libp2p/go-doh-resolver v0.4.0/go.mod h1:v1/jwsFusgsWIGX/c6vCRrnJ60x7bhTiq/fs2qt0cAg= -github.com/libp2p/go-eventbus v0.1.0/go.mod h1:vROgu5cs5T7cv7POWlWxBaVLxfSegC5UGQf8A2eEmx4= -github.com/libp2p/go-eventbus v0.2.1/go.mod h1:jc2S4SoEVPP48H9Wpzm5aiGwUCBMfGhVhhBjyhhCJs8= -github.com/libp2p/go-flow-metrics v0.0.1/go.mod h1:Iv1GH0sG8DtYN3SVJ2eG221wMiNpZxBdp967ls1g+k8= -github.com/libp2p/go-flow-metrics v0.0.3/go.mod h1:HeoSNUrOJVK1jEpDqVEiUOIXqhbnS27omG0uWU5slZs= -github.com/libp2p/go-flow-metrics v0.1.0 h1:0iPhMI8PskQwzh57jB9WxIuIOQ0r+15PChFGkx3Q3WM= -github.com/libp2p/go-flow-metrics v0.1.0/go.mod h1:4Xi8MX8wj5aWNDAZttg6UPmc0ZrnFNsMtpsYUClFtro= -github.com/libp2p/go-libp2p v0.1.0/go.mod h1:6D/2OBauqLUoqcADOJpn9WbKqvaM07tDw68qHM0BxUM= -github.com/libp2p/go-libp2p v0.1.1/go.mod h1:I00BRo1UuUSdpuc8Q2mN7yDF/oTUTRAX6JWpTiK9Rp8= -github.com/libp2p/go-libp2p v0.6.1/go.mod h1:CTFnWXogryAHjXAKEbOf1OWY+VeAP3lDMZkfEI5sT54= -github.com/libp2p/go-libp2p v0.7.0/go.mod h1:hZJf8txWeCduQRDC/WSqBGMxaTHCOYHt2xSU1ivxn0k= -github.com/libp2p/go-libp2p v0.7.4/go.mod h1:oXsBlTLF1q7pxr+9w6lqzS1ILpyHsaBPniVO7zIHGMw= -github.com/libp2p/go-libp2p v0.8.1/go.mod h1:QRNH9pwdbEBpx5DTJYg+qxcVaDMAz3Ee/qDKwXujH5o= -github.com/libp2p/go-libp2p v0.13.0/go.mod h1:pM0beYdACRfHO1WcJlp65WXyG2A6NqYM+t2DTVAJxMo= -github.com/libp2p/go-libp2p v0.14.3/go.mod h1:d12V4PdKbpL0T1/gsUNN8DfgMuRPDX8bS2QxCZlwRH0= -github.com/libp2p/go-libp2p v0.22.0/go.mod h1:UDolmweypBSjQb2f7xutPnwZ/fxioLbMBxSjRksxxU4= -github.com/libp2p/go-libp2p v0.23.4/go.mod h1:s9DEa5NLR4g+LZS+md5uGU4emjMWFiqkZr6hBTY8UxI= -github.com/libp2p/go-libp2p v0.25.0/go.mod h1:vXHmFpcfl+xIGN4qW58Bw3a0/SKGAesr5/T4IuJHE3o= -github.com/libp2p/go-libp2p v0.25.1/go.mod h1:xnK9/1d9+jeQCVvi/f1g12KqtVi/jP/SijtKV1hML3g= -github.com/libp2p/go-libp2p v0.26.3/go.mod h1:x75BN32YbwuY0Awm2Uix4d4KOz+/4piInkp4Wr3yOo8= -github.com/libp2p/go-libp2p v0.27.6/go.mod h1:oMfQGTb9CHnrOuSM6yMmyK2lXz3qIhnkn2+oK3B1Y2g= -github.com/libp2p/go-libp2p v0.28.1 h1:YurK+ZAI6cKfASLJBVFkpVBdl3wGhFi6fusOt725ii8= -github.com/libp2p/go-libp2p v0.28.1/go.mod h1:s3Xabc9LSwOcnv9UD4nORnXKTsWkPMkIMB/JIGXVnzk= -github.com/libp2p/go-libp2p-asn-util v0.2.0/go.mod h1:WoaWxbHKBymSN41hWSq/lGKJEca7TNm58+gGJi2WsLI= -github.com/libp2p/go-libp2p-asn-util v0.3.0 h1:gMDcMyYiZKkocGXDQ5nsUQyquC9+H+iLEQHwOCZ7s8s= -github.com/libp2p/go-libp2p-asn-util v0.3.0/go.mod h1:B1mcOrKUE35Xq/ASTmQ4tN3LNzVVaMNmq2NACuqyB9w= -github.com/libp2p/go-libp2p-autonat v0.1.0/go.mod h1:1tLf2yXxiE/oKGtDwPYWTSYG3PtvYlJmg7NeVtPRqH8= -github.com/libp2p/go-libp2p-autonat v0.1.1/go.mod h1:OXqkeGOY2xJVWKAGV2inNF5aKN/djNA3fdpCWloIudE= -github.com/libp2p/go-libp2p-autonat v0.2.0/go.mod h1:DX+9teU4pEEoZUqR1PiMlqliONQdNbfzE1C718tcViI= -github.com/libp2p/go-libp2p-autonat v0.2.1/go.mod h1:MWtAhV5Ko1l6QBsHQNSuM6b1sRkXrpk0/LqCr+vCVxI= -github.com/libp2p/go-libp2p-autonat v0.2.2/go.mod h1:HsM62HkqZmHR2k1xgX34WuWDzk/nBwNHoeyyT4IWV6A= -github.com/libp2p/go-libp2p-autonat v0.4.0/go.mod h1:YxaJlpr81FhdOv3W3BTconZPfhaYivRdf53g+S2wobk= -github.com/libp2p/go-libp2p-autonat v0.4.2/go.mod h1:YxaJlpr81FhdOv3W3BTconZPfhaYivRdf53g+S2wobk= -github.com/libp2p/go-libp2p-blankhost v0.1.1/go.mod h1:pf2fvdLJPsC1FsVrNP3DUUvMzUts2dsLLBEpo1vW1ro= -github.com/libp2p/go-libp2p-blankhost v0.1.4/go.mod h1:oJF0saYsAXQCSfDq254GMNmLNz6ZTHTOvtF4ZydUvwU= -github.com/libp2p/go-libp2p-blankhost v0.2.0/go.mod h1:eduNKXGTioTuQAUcZ5epXi9vMl+t4d8ugUBRQ4SqaNQ= -github.com/libp2p/go-libp2p-circuit v0.1.0/go.mod h1:Ahq4cY3V9VJcHcn1SBXjr78AbFkZeIRmfunbA7pmFh8= -github.com/libp2p/go-libp2p-circuit v0.1.4/go.mod h1:CY67BrEjKNDhdTk8UgBX1Y/H5c3xkAcs3gnksxY7osU= -github.com/libp2p/go-libp2p-circuit v0.2.1/go.mod h1:BXPwYDN5A8z4OEY9sOfr2DUQMLQvKt/6oku45YUmjIo= -github.com/libp2p/go-libp2p-circuit v0.4.0/go.mod h1:t/ktoFIUzM6uLQ+o1G6NuBl2ANhBKN9Bc8jRIk31MoA= -github.com/libp2p/go-libp2p-core v0.0.1/go.mod h1:g/VxnTZ/1ygHxH3dKok7Vno1VfpvGcGip57wjTU4fco= -github.com/libp2p/go-libp2p-core v0.0.2/go.mod h1:9dAcntw/n46XycV4RnlBq3BpgrmyUi9LuoTNdPrbUco= -github.com/libp2p/go-libp2p-core v0.0.3/go.mod h1:j+YQMNz9WNSkNezXOsahp9kwZBKBvxLpKD316QWSJXE= -github.com/libp2p/go-libp2p-core v0.0.4/go.mod h1:jyuCQP356gzfCFtRKyvAbNkyeuxb7OlyhWZ3nls5d2I= -github.com/libp2p/go-libp2p-core v0.2.0/go.mod h1:X0eyB0Gy93v0DZtSYbEM7RnMChm9Uv3j7yRXjO77xSI= -github.com/libp2p/go-libp2p-core v0.2.2/go.mod h1:8fcwTbsG2B+lTgRJ1ICZtiM5GWCWZVoVrLaDRvIRng0= -github.com/libp2p/go-libp2p-core v0.2.4/go.mod h1:STh4fdfa5vDYr0/SzYYeqnt+E6KfEV5VxfIrm0bcI0g= -github.com/libp2p/go-libp2p-core v0.3.0/go.mod h1:ACp3DmS3/N64c2jDzcV429ukDpicbL6+TrrxANBjPGw= -github.com/libp2p/go-libp2p-core v0.3.1/go.mod h1:thvWy0hvaSBhnVBaW37BvzgVV68OUhgJJLAa6almrII= -github.com/libp2p/go-libp2p-core v0.4.0/go.mod h1:49XGI+kc38oGVwqSBhDEwytaAxgZasHhFfQKibzTls0= -github.com/libp2p/go-libp2p-core v0.5.0/go.mod h1:49XGI+kc38oGVwqSBhDEwytaAxgZasHhFfQKibzTls0= -github.com/libp2p/go-libp2p-core v0.5.1/go.mod h1:uN7L2D4EvPCvzSH5SrhR72UWbnSGpt5/a35Sm4upn4Y= -github.com/libp2p/go-libp2p-core v0.5.4/go.mod h1:uN7L2D4EvPCvzSH5SrhR72UWbnSGpt5/a35Sm4upn4Y= -github.com/libp2p/go-libp2p-core v0.5.5/go.mod h1:vj3awlOr9+GMZJFH9s4mpt9RHHgGqeHCopzbYKZdRjM= -github.com/libp2p/go-libp2p-core v0.5.6/go.mod h1:txwbVEhHEXikXn9gfC7/UDDw7rkxuX0bJvM49Ykaswo= -github.com/libp2p/go-libp2p-core v0.5.7/go.mod h1:txwbVEhHEXikXn9gfC7/UDDw7rkxuX0bJvM49Ykaswo= -github.com/libp2p/go-libp2p-core v0.6.0/go.mod h1:txwbVEhHEXikXn9gfC7/UDDw7rkxuX0bJvM49Ykaswo= -github.com/libp2p/go-libp2p-core v0.7.0/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= -github.com/libp2p/go-libp2p-core v0.8.0/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= -github.com/libp2p/go-libp2p-core v0.8.1/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= -github.com/libp2p/go-libp2p-core v0.8.2/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= -github.com/libp2p/go-libp2p-core v0.8.5/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= -github.com/libp2p/go-libp2p-core v0.19.0/go.mod h1:AkA+FUKQfYt1FLNef5fOPlo/naAWjKy/RCjkcPjqzYg= -github.com/libp2p/go-libp2p-crypto v0.1.0/go.mod h1:sPUokVISZiy+nNuTTH/TY+leRSxnFj/2GLjtOTW90hI= -github.com/libp2p/go-libp2p-discovery v0.1.0/go.mod h1:4F/x+aldVHjHDHuX85x1zWoFTGElt8HnoDzwkFZm29g= -github.com/libp2p/go-libp2p-discovery v0.2.0/go.mod h1:s4VGaxYMbw4+4+tsoQTqh7wfxg97AEdo4GYBt6BadWg= -github.com/libp2p/go-libp2p-discovery v0.3.0/go.mod h1:o03drFnz9BVAZdzC/QUQ+NeQOu38Fu7LJGEOK2gQltw= -github.com/libp2p/go-libp2p-discovery v0.5.0/go.mod h1:+srtPIU9gDaBNu//UHvcdliKBIcr4SfDcm0/PfPJLug= -github.com/libp2p/go-libp2p-kad-dht v0.19.0/go.mod h1:qPIXdiZsLczhV4/+4EO1jE8ae0YCW4ZOogc4WVIyTEU= -github.com/libp2p/go-libp2p-kad-dht v0.21.0/go.mod h1:Bhm9diAFmc6qcWAr084bHNL159srVZRKADdp96Qqd1I= -github.com/libp2p/go-libp2p-kad-dht v0.21.1/go.mod h1:Oy8wvbdjpB70eS5AaFaI68tOtrdo3KylTvXDjikxqFo= -github.com/libp2p/go-libp2p-kad-dht v0.23.0 h1:sxE6LxLopp79eLeV695n7+c77V/Vn4AMF28AdM/XFqM= -github.com/libp2p/go-libp2p-kad-dht v0.23.0/go.mod h1:oO5N308VT2msnQI6qi5M61wzPmJYg7Tr9e16m5n7uDU= -github.com/libp2p/go-libp2p-kbucket v0.3.1/go.mod h1:oyjT5O7tS9CQurok++ERgc46YLwEpuGoFq9ubvoUOio= -github.com/libp2p/go-libp2p-kbucket v0.5.0/go.mod h1:zGzGCpQd78b5BNTDGHNDLaTt9aDK/A02xeZp9QeFC4U= -github.com/libp2p/go-libp2p-kbucket v0.6.3 h1:p507271wWzpy2f1XxPzCQG9NiN6R6lHL9GiSErbQQo0= -github.com/libp2p/go-libp2p-kbucket v0.6.3/go.mod h1:RCseT7AH6eJWxxk2ol03xtP9pEHetYSPXOaJnOiD8i0= -github.com/libp2p/go-libp2p-loggables v0.1.0/go.mod h1:EyumB2Y6PrYjr55Q3/tiJ/o3xoDasoRYM7nOzEpoa90= -github.com/libp2p/go-libp2p-mplex v0.2.0/go.mod h1:Ejl9IyjvXJ0T9iqUTE1jpYATQ9NM3g+OtR+EMMODbKo= -github.com/libp2p/go-libp2p-mplex v0.2.1/go.mod h1:SC99Rxs8Vuzrf/6WhmH41kNn13TiYdAWNYHrwImKLnE= -github.com/libp2p/go-libp2p-mplex v0.2.2/go.mod h1:74S9eum0tVQdAfFiKxAyKzNdSuLqw5oadDq7+L/FELo= -github.com/libp2p/go-libp2p-mplex v0.2.3/go.mod h1:CK3p2+9qH9x+7ER/gWWDYJ3QW5ZxWDkm+dVvjfuG3ek= -github.com/libp2p/go-libp2p-mplex v0.4.0/go.mod h1:yCyWJE2sc6TBTnFpjvLuEJgTSw/u+MamvzILKdX7asw= -github.com/libp2p/go-libp2p-mplex v0.4.1/go.mod h1:cmy+3GfqfM1PceHTLL7zQzAAYaryDu6iPSC+CIb094g= -github.com/libp2p/go-libp2p-nat v0.0.4/go.mod h1:N9Js/zVtAXqaeT99cXgTV9e75KpnWCvVOiGzlcHmBbY= -github.com/libp2p/go-libp2p-nat v0.0.5/go.mod h1:1qubaE5bTZMJE+E/uu2URroMbzdubFz1ChgiN79yKPE= -github.com/libp2p/go-libp2p-nat v0.0.6/go.mod h1:iV59LVhB3IkFvS6S6sauVTSOrNEANnINbI/fkaLimiw= -github.com/libp2p/go-libp2p-netutil v0.1.0/go.mod h1:3Qv/aDqtMLTUyQeundkKsA+YCThNdbQD54k3TqjpbFU= -github.com/libp2p/go-libp2p-noise v0.1.1/go.mod h1:QDFLdKX7nluB7DEnlVPbz7xlLHdwHFA9HiohJRr3vwM= -github.com/libp2p/go-libp2p-noise v0.2.0/go.mod h1:IEbYhBBzGyvdLBoxxULL/SGbJARhUeqlO8lVSREYu2Q= -github.com/libp2p/go-libp2p-peer v0.2.0/go.mod h1:RCffaCvUyW2CJmG2gAWVqwePwW7JMgxjsHm7+J5kjWY= -github.com/libp2p/go-libp2p-peerstore v0.1.0/go.mod h1:2CeHkQsr8svp4fZ+Oi9ykN1HBb6u0MOvdJ7YIsmcwtY= -github.com/libp2p/go-libp2p-peerstore v0.1.3/go.mod h1:BJ9sHlm59/80oSkpWgr1MyY1ciXAXV397W6h1GH/uKI= -github.com/libp2p/go-libp2p-peerstore v0.1.4/go.mod h1:+4BDbDiiKf4PzpANZDAT+knVdLxvqh7hXOujessqdzs= -github.com/libp2p/go-libp2p-peerstore v0.2.0/go.mod h1:N2l3eVIeAitSg3Pi2ipSrJYnqhVnMNQZo9nkSCuAbnQ= -github.com/libp2p/go-libp2p-peerstore v0.2.1/go.mod h1:NQxhNjWxf1d4w6PihR8btWIRjwRLBr4TYKfNgrUkOPA= -github.com/libp2p/go-libp2p-peerstore v0.2.2/go.mod h1:NQxhNjWxf1d4w6PihR8btWIRjwRLBr4TYKfNgrUkOPA= -github.com/libp2p/go-libp2p-peerstore v0.2.6/go.mod h1:ss/TWTgHZTMpsU/oKVVPQCGuDHItOpf2W8RxAi50P2s= -github.com/libp2p/go-libp2p-peerstore v0.2.7/go.mod h1:ss/TWTgHZTMpsU/oKVVPQCGuDHItOpf2W8RxAi50P2s= -github.com/libp2p/go-libp2p-pnet v0.2.0/go.mod h1:Qqvq6JH/oMZGwqs3N1Fqhv8NVhrdYcO0BW4wssv21LA= -github.com/libp2p/go-libp2p-pubsub v0.9.3 h1:ihcz9oIBMaCK9kcx+yHWm3mLAFBMAUsM4ux42aikDxo= -github.com/libp2p/go-libp2p-pubsub v0.9.3/go.mod h1:RYA7aM9jIic5VV47WXu4GkcRxRhrdElWf8xtyli+Dzc= -github.com/libp2p/go-libp2p-quic-transport v0.10.0/go.mod h1:RfJbZ8IqXIhxBRm5hqUEJqjiiY8xmEuq3HUDS993MkA= -github.com/libp2p/go-libp2p-record v0.1.0/go.mod h1:ujNc8iuE5dlKWVy6wuL6dd58t0n7xI4hAIl8pE6wu5Q= -github.com/libp2p/go-libp2p-record v0.2.0 h1:oiNUOCWno2BFuxt3my4i1frNrt7PerzB3queqa1NkQ0= -github.com/libp2p/go-libp2p-record v0.2.0/go.mod h1:I+3zMkvvg5m2OcSdoL0KPljyJyvNDFGKX7QdlpYUcwk= -github.com/libp2p/go-libp2p-routing-helpers v0.4.0/go.mod h1:dYEAgkVhqho3/YKxfOEGdFMIcWfAFNlZX8iAIihYA2E= -github.com/libp2p/go-libp2p-secio v0.1.0/go.mod h1:tMJo2w7h3+wN4pgU2LSYeiKPrfqBgkOsdiKK77hE7c8= -github.com/libp2p/go-libp2p-secio v0.2.0/go.mod h1:2JdZepB8J5V9mBp79BmwsaPQhRPNN2NrnB2lKQcdy6g= -github.com/libp2p/go-libp2p-secio v0.2.1/go.mod h1:cWtZpILJqkqrSkiYcDBh5lA3wbT2Q+hz3rJQq3iftD8= -github.com/libp2p/go-libp2p-secio v0.2.2/go.mod h1:wP3bS+m5AUnFA+OFO7Er03uO1mncHG0uVwGrwvjYlNY= -github.com/libp2p/go-libp2p-swarm v0.1.0/go.mod h1:wQVsCdjsuZoc730CgOvh5ox6K8evllckjebkdiY5ta4= -github.com/libp2p/go-libp2p-swarm v0.2.2/go.mod h1:fvmtQ0T1nErXym1/aa1uJEyN7JzaTNyBcHImCxRpPKU= -github.com/libp2p/go-libp2p-swarm v0.2.3/go.mod h1:P2VO/EpxRyDxtChXz/VPVXyTnszHvokHKRhfkEgFKNM= -github.com/libp2p/go-libp2p-swarm v0.2.8/go.mod h1:JQKMGSth4SMqonruY0a8yjlPVIkb0mdNSwckW7OYziM= -github.com/libp2p/go-libp2p-swarm v0.3.0/go.mod h1:hdv95GWCTmzkgeJpP+GK/9D9puJegb7H57B5hWQR5Kk= -github.com/libp2p/go-libp2p-swarm v0.4.0/go.mod h1:XVFcO52VoLoo0eitSxNQWYq4D6sydGOweTOAjJNraCw= -github.com/libp2p/go-libp2p-swarm v0.5.0/go.mod h1:sU9i6BoHE0Ve5SKz3y9WfKrh8dUat6JknzUehFx8xW4= -github.com/libp2p/go-libp2p-testing v0.0.2/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= -github.com/libp2p/go-libp2p-testing v0.0.3/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= -github.com/libp2p/go-libp2p-testing v0.0.4/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= -github.com/libp2p/go-libp2p-testing v0.1.0/go.mod h1:xaZWMJrPUM5GlDBxCeGUi7kI4eqnjVyavGroI2nxEM0= -github.com/libp2p/go-libp2p-testing v0.1.1/go.mod h1:xaZWMJrPUM5GlDBxCeGUi7kI4eqnjVyavGroI2nxEM0= -github.com/libp2p/go-libp2p-testing v0.1.2-0.20200422005655-8775583591d8/go.mod h1:Qy8sAncLKpwXtS2dSnDOP8ktexIAHKu+J+pnZOFZLTc= -github.com/libp2p/go-libp2p-testing v0.3.0/go.mod h1:efZkql4UZ7OVsEfaxNHZPzIehtsBXMrXnCfJIgDti5g= -github.com/libp2p/go-libp2p-testing v0.4.0/go.mod h1:Q+PFXYoiYFN5CAEG2w3gLPEzotlKsNSbKQ/lImlOWF0= -github.com/libp2p/go-libp2p-testing v0.11.0/go.mod h1:qG4sF27dfKFoK9KlVzK2y52LQKhp0VEmLjV5aDqr1Hg= -github.com/libp2p/go-libp2p-testing v0.12.0 h1:EPvBb4kKMWO29qP4mZGyhVzUyR25dvfUIK5WDu6iPUA= -github.com/libp2p/go-libp2p-testing v0.12.0/go.mod h1:KcGDRXyN7sQCllucn1cOOS+Dmm7ujhfEyXQL5lvkcPg= -github.com/libp2p/go-libp2p-tls v0.1.3/go.mod h1:wZfuewxOndz5RTnCAxFliGjvYSDA40sKitV4c50uI1M= -github.com/libp2p/go-libp2p-transport-upgrader v0.1.1/go.mod h1:IEtA6or8JUbsV07qPW4r01GnTenLW4oi3lOPbUMGJJA= -github.com/libp2p/go-libp2p-transport-upgrader v0.2.0/go.mod h1:mQcrHj4asu6ArfSoMuyojOdjx73Q47cYD7s5+gZOlns= -github.com/libp2p/go-libp2p-transport-upgrader v0.3.0/go.mod h1:i+SKzbRnvXdVbU3D1dwydnTmKRPXiAR/fyvi1dXuL4o= -github.com/libp2p/go-libp2p-transport-upgrader v0.4.0/go.mod h1:J4ko0ObtZSmgn5BX5AmegP+dK3CSnU2lMCKsSq/EY0s= -github.com/libp2p/go-libp2p-transport-upgrader v0.4.2/go.mod h1:NR8ne1VwfreD5VIWIU62Agt/J18ekORFU/j1i2y8zvk= -github.com/libp2p/go-libp2p-xor v0.1.0/go.mod h1:LSTM5yRnjGZbWNTA/hRwq2gGFrvRIbQJscoIL/u6InY= -github.com/libp2p/go-libp2p-yamux v0.2.0/go.mod h1:Db2gU+XfLpm6E4rG5uGCFX6uXA8MEXOxFcRoXUODaK8= -github.com/libp2p/go-libp2p-yamux v0.2.1/go.mod h1:1FBXiHDk1VyRM1C0aez2bCfHQ4vMZKkAQzZbkSQt5fI= -github.com/libp2p/go-libp2p-yamux v0.2.2/go.mod h1:lIohaR0pT6mOt0AZ0L2dFze9hds9Req3OfS+B+dv4qw= -github.com/libp2p/go-libp2p-yamux v0.2.5/go.mod h1:Zpgj6arbyQrmZ3wxSZxfBmbdnWtbZ48OpsfmQVTErwA= -github.com/libp2p/go-libp2p-yamux v0.2.7/go.mod h1:X28ENrBMU/nm4I3Nx4sZ4dgjZ6VhLEn0XhIoZ5viCwU= -github.com/libp2p/go-libp2p-yamux v0.2.8/go.mod h1:/t6tDqeuZf0INZMTgd0WxIRbtK2EzI2h7HbFm9eAKI4= -github.com/libp2p/go-libp2p-yamux v0.4.0/go.mod h1:+DWDjtFMzoAwYLVkNZftoucn7PelNoy5nm3tZ3/Zw30= -github.com/libp2p/go-libp2p-yamux v0.5.0/go.mod h1:AyR8k5EzyM2QN9Bbdg6X1SkVVuqLwTGf0L4DFq9g6po= -github.com/libp2p/go-libp2p-yamux v0.5.1/go.mod h1:dowuvDu8CRWmr0iqySMiSxK+W0iL5cMVO9S94Y6gkv4= -github.com/libp2p/go-libp2p-yamux v0.5.4/go.mod h1:tfrXbyaTqqSU654GTvK3ocnSZL3BuHoeTSqhcel1wsE= -github.com/libp2p/go-maddr-filter v0.0.4/go.mod h1:6eT12kSQMA9x2pvFQa+xesMKUBlj9VImZbj3B9FBH/Q= -github.com/libp2p/go-maddr-filter v0.0.5/go.mod h1:Jk+36PMfIqCJhAnaASRH83bdAvfDRp/w6ENFaC9bG+M= -github.com/libp2p/go-maddr-filter v0.1.0/go.mod h1:VzZhTXkMucEGGEOSKddrwGiOv0tUhgnKqNEmIAz/bPU= -github.com/libp2p/go-mplex v0.0.3/go.mod h1:pK5yMLmOoBR1pNCqDlA2GQrdAVTMkqFalaTWe7l4Yd0= -github.com/libp2p/go-mplex v0.1.0/go.mod h1:SXgmdki2kwCUlCCbfGLEgHjC4pFqhTp0ZoV6aiKgxDU= -github.com/libp2p/go-mplex v0.1.1/go.mod h1:Xgz2RDCi3co0LeZfgjm4OgUF15+sVR8SRcu3SFXI1lk= -github.com/libp2p/go-mplex v0.1.2/go.mod h1:Xgz2RDCi3co0LeZfgjm4OgUF15+sVR8SRcu3SFXI1lk= -github.com/libp2p/go-mplex v0.2.0/go.mod h1:0Oy/A9PQlwBytDRp4wSkFnzHYDKcpLot35JQ6msjvYQ= -github.com/libp2p/go-mplex v0.3.0/go.mod h1:0Oy/A9PQlwBytDRp4wSkFnzHYDKcpLot35JQ6msjvYQ= -github.com/libp2p/go-mplex v0.7.0/go.mod h1:rW8ThnRcYWft/Jb2jeORBmPd6xuG3dGxWN/W168L9EU= -github.com/libp2p/go-msgio v0.0.2/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= -github.com/libp2p/go-msgio v0.0.3/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= -github.com/libp2p/go-msgio v0.0.4/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= -github.com/libp2p/go-msgio v0.0.6/go.mod h1:4ecVB6d9f4BDSL5fqvPiC4A3KivjWn+Venn/1ALLMWA= -github.com/libp2p/go-msgio v0.2.0/go.mod h1:dBVM1gW3Jk9XqHkU4eKdGvVHdLa51hoGfll6jMJMSlY= -github.com/libp2p/go-msgio v0.3.0 h1:mf3Z8B1xcFN314sWX+2vOTShIE0Mmn2TXn3YCUQGNj0= -github.com/libp2p/go-msgio v0.3.0/go.mod h1:nyRM819GmVaF9LX3l03RMh10QdOroF++NBbxAb0mmDM= -github.com/libp2p/go-nat v0.0.3/go.mod h1:88nUEt0k0JD45Bk93NIwDqjlhiOwOoV36GchpcVc1yI= -github.com/libp2p/go-nat v0.0.4/go.mod h1:Nmw50VAvKuk38jUBcmNh6p9lUJLoODbJRvYAa/+KSDo= -github.com/libp2p/go-nat v0.0.5/go.mod h1:B7NxsVNPZmRLvMOwiEO1scOSyjA56zxYAGv1yQgRkEU= -github.com/libp2p/go-nat v0.1.0/go.mod h1:X7teVkwRHNInVNWQiO/tAiAVRwSr5zoRz4YSTC3uRBM= -github.com/libp2p/go-nat v0.2.0 h1:Tyz+bUFAYqGyJ/ppPPymMGbIgNRH+WqC5QrT5fKrrGk= -github.com/libp2p/go-nat v0.2.0/go.mod h1:3MJr+GRpRkyT65EpVPBstXLvOlAPzUVlG6Pwg9ohLJk= -github.com/libp2p/go-netroute v0.1.2/go.mod h1:jZLDV+1PE8y5XxBySEBgbuVAXbhtuHSdmLPL2n9MKbk= -github.com/libp2p/go-netroute v0.1.3/go.mod h1:jZLDV+1PE8y5XxBySEBgbuVAXbhtuHSdmLPL2n9MKbk= -github.com/libp2p/go-netroute v0.1.5/go.mod h1:V1SR3AaECRkEQCoFFzYwVYWvYIEtlxx89+O3qcpCl4A= -github.com/libp2p/go-netroute v0.1.6/go.mod h1:AqhkMh0VuWmfgtxKPp3Oc1LdU5QSWS7wl0QLhSZqXxQ= -github.com/libp2p/go-netroute v0.2.0/go.mod h1:Vio7LTzZ+6hoT4CMZi5/6CpY3Snzh2vgZhWgxMNwlQI= -github.com/libp2p/go-netroute v0.2.1 h1:V8kVrpD8GK0Riv15/7VN6RbUQ3URNZVosw7H2v9tksU= -github.com/libp2p/go-netroute v0.2.1/go.mod h1:hraioZr0fhBjG0ZRXJJ6Zj2IVEVNx6tDTFQfSmcq7mQ= -github.com/libp2p/go-openssl v0.0.2/go.mod h1:v8Zw2ijCSWBQi8Pq5GAixw6DbFfa9u6VIYDXnvOXkc0= -github.com/libp2p/go-openssl v0.0.3/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= -github.com/libp2p/go-openssl v0.0.4/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= -github.com/libp2p/go-openssl v0.0.5/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= -github.com/libp2p/go-openssl v0.0.7/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= -github.com/libp2p/go-openssl v0.1.0/go.mod h1:OiOxwPpL3n4xlenjx2h7AwSGaFSC/KZvf6gNdOBQMtc= -github.com/libp2p/go-reuseport v0.0.1/go.mod h1:jn6RmB1ufnQwl0Q1f+YxAj8isJgDCQzaaxIFYDhcYEA= -github.com/libp2p/go-reuseport v0.0.2/go.mod h1:SPD+5RwGC7rcnzngoYC86GjPzjSywuQyMVAheVBD9nQ= -github.com/libp2p/go-reuseport v0.2.0/go.mod h1:bvVho6eLMm6Bz5hmU0LYN3ixd3nPPvtIlaURZZgOY4k= -github.com/libp2p/go-reuseport v0.3.0 h1:iiZslO5byUYZEg9iCwJGf5h+sf1Agmqx2V2FDjPyvUw= -github.com/libp2p/go-reuseport v0.3.0/go.mod h1:laea40AimhtfEqysZ71UpYj4S+R9VpH8PgqLo7L+SwI= -github.com/libp2p/go-reuseport-transport v0.0.2/go.mod h1:YkbSDrvjUVDL6b8XqriyA20obEtsW9BLkuOUyQAOCbs= -github.com/libp2p/go-reuseport-transport v0.0.3/go.mod h1:Spv+MPft1exxARzP2Sruj2Wb5JSyHNncjf1Oi2dEbzM= -github.com/libp2p/go-reuseport-transport v0.0.4/go.mod h1:trPa7r/7TJK/d+0hdBLOCGvpQQVOU74OXbNCIMkufGw= -github.com/libp2p/go-sockaddr v0.0.2/go.mod h1:syPvOmNs24S3dFVGJA1/mrqdeijPxLV2Le3BRLKd68k= -github.com/libp2p/go-sockaddr v0.1.0/go.mod h1:syPvOmNs24S3dFVGJA1/mrqdeijPxLV2Le3BRLKd68k= -github.com/libp2p/go-sockaddr v0.1.1/go.mod h1:syPvOmNs24S3dFVGJA1/mrqdeijPxLV2Le3BRLKd68k= -github.com/libp2p/go-stream-muxer v0.0.1/go.mod h1:bAo8x7YkSpadMTbtTaxGVHWUQsR/l5MEaHbKaliuT14= -github.com/libp2p/go-stream-muxer-multistream v0.2.0/go.mod h1:j9eyPol/LLRqT+GPLSxvimPhNph4sfYfMoDPd7HkzIc= -github.com/libp2p/go-stream-muxer-multistream v0.3.0/go.mod h1:yDh8abSIzmZtqtOt64gFJUXEryejzNb0lisTt+fAMJA= -github.com/libp2p/go-tcp-transport v0.1.0/go.mod h1:oJ8I5VXryj493DEJ7OsBieu8fcg2nHGctwtInJVpipc= -github.com/libp2p/go-tcp-transport v0.1.1/go.mod h1:3HzGvLbx6etZjnFlERyakbaYPdfjg2pWP97dFZworkY= -github.com/libp2p/go-tcp-transport v0.2.0/go.mod h1:vX2U0CnWimU4h0SGSEsg++AzvBcroCGYw28kh94oLe0= -github.com/libp2p/go-tcp-transport v0.2.1/go.mod h1:zskiJ70MEfWz2MKxvFB/Pv+tPIB1PpPUrHIWQ8aFw7M= -github.com/libp2p/go-tcp-transport v0.2.3/go.mod h1:9dvr03yqrPyYGIEN6Dy5UvdJZjyPFvl1S/igQ5QD1SU= -github.com/libp2p/go-testutil v0.1.0/go.mod h1:81b2n5HypcVyrCg/MJx4Wgfp/VHojytjVe/gLzZ2Ehc= -github.com/libp2p/go-ws-transport v0.1.0/go.mod h1:rjw1MG1LU9YDC6gzmwObkPd/Sqwhw7yT74kj3raBFuo= -github.com/libp2p/go-ws-transport v0.2.0/go.mod h1:9BHJz/4Q5A9ludYWKoGCFC5gUElzlHoKzu0yY9p/klM= -github.com/libp2p/go-ws-transport v0.3.0/go.mod h1:bpgTJmRZAvVHrgHybCVyqoBmyLQ1fiZuEaBYusP5zsk= -github.com/libp2p/go-ws-transport v0.4.0/go.mod h1:EcIEKqf/7GDjth6ksuS/6p7R49V4CBY6/E7R/iyhYUA= -github.com/libp2p/go-yamux v1.2.2/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= -github.com/libp2p/go-yamux v1.2.3/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= -github.com/libp2p/go-yamux v1.3.0/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= -github.com/libp2p/go-yamux v1.3.3/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= -github.com/libp2p/go-yamux v1.3.5/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= -github.com/libp2p/go-yamux v1.3.7/go.mod h1:fr7aVgmdNGJK+N1g+b6DW6VxzbRCjCOejR/hkmpooHE= -github.com/libp2p/go-yamux v1.4.0/go.mod h1:fr7aVgmdNGJK+N1g+b6DW6VxzbRCjCOejR/hkmpooHE= -github.com/libp2p/go-yamux v1.4.1 h1:P1Fe9vF4th5JOxxgQvfbOHkrGqIZniTLf+ddhZp8YTI= -github.com/libp2p/go-yamux v1.4.1/go.mod h1:fr7aVgmdNGJK+N1g+b6DW6VxzbRCjCOejR/hkmpooHE= -github.com/libp2p/go-yamux/v2 v2.0.0/go.mod h1:NVWira5+sVUIU6tu1JWvaRn1dRnG+cawOJiflsAM+7U= -github.com/libp2p/go-yamux/v2 v2.2.0/go.mod h1:3So6P6TV6r75R9jiBpiIKgU/66lOarCZjqROGxzPpPQ= -github.com/libp2p/go-yamux/v3 v3.1.2/go.mod h1:jeLEQgLXqE2YqX1ilAClIfCMDY+0uXQUKmmb/qp0gT4= -github.com/libp2p/go-yamux/v4 v4.0.0 h1:+Y80dV2Yx/kv7Y7JKu0LECyVdMXm1VUoko+VQ9rBfZQ= -github.com/libp2p/go-yamux/v4 v4.0.0/go.mod h1:NWjl8ZTLOGlozrXSOZ/HlfG++39iKNnM5wwmtQP1YB4= -github.com/libp2p/zeroconf/v2 v2.2.0/go.mod h1:fuJqLnUwZTshS3U/bMRJ3+ow/v9oid1n0DmyYyNO1Xs= -github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= -github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/lucas-clemente/quic-go v0.19.3/go.mod h1:ADXpNbTQjq1hIzCpB+y/k5iz4n4z4IwqoLb94Kh5Hu8= -github.com/lucas-clemente/quic-go v0.28.1/go.mod h1:oGz5DKK41cJt5+773+BSO9BXDsREY4HLf7+0odGAPO0= -github.com/lucas-clemente/quic-go v0.29.1/go.mod h1:CTcNfLYJS2UuRNB+zcNlgvkjBhxX6Hm3WUxxAQx2mgE= -github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= -github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= -github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= -github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/marten-seemann/qpack v0.2.1/go.mod h1:F7Gl5L1jIgN1D11ucXefiuJS9UMVP2opoCp2jDKb7wc= -github.com/marten-seemann/qtls v0.10.0/go.mod h1:UvMd1oaYDACI99/oZUYLzMCkBXQVT0aGm99sJhbT8hs= -github.com/marten-seemann/qtls-go1-15 v0.1.1/go.mod h1:GyFwywLKkRt+6mfU99csTEY1joMZz5vmB1WNZH3P81I= -github.com/marten-seemann/qtls-go1-16 v0.1.5/go.mod h1:gNpI2Ol+lRS3WwSOtIUUtRwZEQMXjYK+dQSBFbethAk= -github.com/marten-seemann/qtls-go1-17 v0.1.2/go.mod h1:C2ekUKcDdz9SDWxec1N/MvcXBpaX9l3Nx67XaR84L5s= -github.com/marten-seemann/qtls-go1-18 v0.1.2/go.mod h1:mJttiymBAByA49mhlNZZGrH5u1uXYZJ+RW28Py7f4m4= -github.com/marten-seemann/qtls-go1-19 v0.1.0-beta.1/go.mod h1:5HTDWtVudo/WFsHKRNuOhWlbdjrfs5JHrYb0wIJqGpI= -github.com/marten-seemann/qtls-go1-19 v0.1.0/go.mod h1:5HTDWtVudo/WFsHKRNuOhWlbdjrfs5JHrYb0wIJqGpI= -github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd h1:br0buuQ854V8u83wA0rVZ8ttrq5CpaPZdvrK0LP2lOk= -github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd/go.mod h1:QuCEs1Nt24+FYQEqAAncTDPJIuGs+LxK1MCiFL25pMU= -github.com/marten-seemann/webtransport-go v0.1.1/go.mod h1:kBEh5+RSvOA4troP1vyOVBWK4MIMzDICXVrvCPrYcrM= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= -github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-pointer v0.0.1/go.mod h1:2zXcozF6qYGgmsG+SeTZz3oAbFLdD3OWqnUbNvJZAlc= -github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= -github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= -github.com/microcosm-cc/bluemonday v1.0.1/go.mod h1:hsXNsILzKxV+sX77C5b8FSuKF00vh2OMYv+xgHpAMF4= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.12/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.28/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= -github.com/miekg/dns v1.1.31/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= -github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= -github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= -github.com/miekg/dns v1.1.50/go.mod h1:e3IlAVfNqAllflbibAZEWOXOQ+Ynzk/dDozDxY7XnME= -github.com/miekg/dns v1.1.53/go.mod h1:uInx36IzPl7FYnDcMeVWxj9byh7DutNykX4G9Sj60FY= -github.com/miekg/dns v1.1.54 h1:5jon9mWcb0sFJGpnI99tOMhCPyJ+RPVz5b63MQG0VWI= -github.com/miekg/dns v1.1.54/go.mod h1:uInx36IzPl7FYnDcMeVWxj9byh7DutNykX4G9Sj60FY= -github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c h1:bzE/A84HN25pxAuk9Eej1Kz9OUelF97nAc82bDquQI8= -github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c/go.mod h1:0SQS9kMwD2VsyFEB++InYyBJroV/FRmBgcydeSUcJms= -github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b h1:z78hV3sbSMAUoyUMM0I83AUIT6Hu17AWfgjzIbtrYFc= -github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b/go.mod h1:lxPUiZwKoFL8DUUmalo2yJJUCxbPKtm8OKfqr2/FTNU= -github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc h1:PTfri+PuQmWDqERdnNMiD9ZejrlswWrCpBEZgWOiTrc= -github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc/go.mod h1:cGKTAVKx4SxOuR/czcZ/E2RSJ3sfHs8FpHhQ5CWMf9s= -github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ= -github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= -github.com/minio/sha256-simd v0.0.0-20190328051042-05b4dd3047e5/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= -github.com/minio/sha256-simd v0.1.0/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= -github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= -github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= -github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM= -github.com/minio/sha256-simd v1.0.1 h1:6kaan5IFmwTNynnKKpDHe6FWHohJOHhCPchzK49dzMM= -github.com/minio/sha256-simd v1.0.1/go.mod h1:Pz6AKMiUdngCLpeTL/RJY1M9rUuPMYujV5xJjtbRSN8= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= -github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/mr-tron/base58 v1.1.0/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= -github.com/mr-tron/base58 v1.1.1/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= -github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= -github.com/mr-tron/base58 v1.1.3/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= -github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= -github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= -github.com/multiformats/go-base32 v0.0.3/go.mod h1:pLiuGC8y0QR3Ue4Zug5UzK9LjgbkL8NSQj0zQ5Nz/AA= -github.com/multiformats/go-base32 v0.0.4/go.mod h1:jNLFzjPZtp3aIARHbJRZIaPuspdH0J6q39uUM5pnABM= -github.com/multiformats/go-base32 v0.1.0 h1:pVx9xoSPqEIQG8o+UbAe7DNi51oej1NtK+aGkbLYxPE= -github.com/multiformats/go-base32 v0.1.0/go.mod h1:Kj3tFY6zNr+ABYMqeUNeGvkIC/UYgtWibDcT0rExnbI= -github.com/multiformats/go-base36 v0.1.0/go.mod h1:kFGE83c6s80PklsHO9sRn2NCoffoRdUUOENyW/Vv6sM= -github.com/multiformats/go-base36 v0.2.0 h1:lFsAbNOGeKtuKozrtBsAkSVhv1p9D0/qedU9rQyccr0= -github.com/multiformats/go-base36 v0.2.0/go.mod h1:qvnKE++v+2MWCfePClUEjE78Z7P2a1UV0xHgWc0hkp4= -github.com/multiformats/go-multiaddr v0.0.1/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= -github.com/multiformats/go-multiaddr v0.0.2/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= -github.com/multiformats/go-multiaddr v0.0.4/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= -github.com/multiformats/go-multiaddr v0.1.0/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= -github.com/multiformats/go-multiaddr v0.1.1/go.mod h1:aMKBKNEYmzmDmxfX88/vz+J5IU55txyt0p4aiWVohjo= -github.com/multiformats/go-multiaddr v0.2.0/go.mod h1:0nO36NvPpyV4QzvTLi/lafl2y95ncPj0vFwVF6k6wJ4= -github.com/multiformats/go-multiaddr v0.2.1/go.mod h1:s/Apk6IyxfvMjDafnhJgJ3/46z7tZ04iMk5wP4QMGGE= -github.com/multiformats/go-multiaddr v0.2.2/go.mod h1:NtfXiOtHvghW9KojvtySjH5y0u0xW5UouOmQQrn6a3Y= -github.com/multiformats/go-multiaddr v0.3.0/go.mod h1:dF9kph9wfJ+3VLAaeBqo9Of8x4fJxp6ggJGteB8HQTI= -github.com/multiformats/go-multiaddr v0.3.1/go.mod h1:uPbspcUPd5AfaP6ql3ujFY+QWzmBD8uLLL4bXW0XfGc= -github.com/multiformats/go-multiaddr v0.3.3/go.mod h1:lCKNGP1EQ1eZ35Za2wlqnabm9xQkib3fyB+nZXHLag0= -github.com/multiformats/go-multiaddr v0.4.1/go.mod h1:3afI9HfVW8csiF8UZqtpYRiDyew8pRX7qLIGHu9FLuM= -github.com/multiformats/go-multiaddr v0.6.0/go.mod h1:F4IpaKZuPP360tOMn2Tpyu0At8w23aRyVqeK0DbFeGM= -github.com/multiformats/go-multiaddr v0.7.0/go.mod h1:Fs50eBDWvZu+l3/9S6xAE7ZYj6yhxlvaVZjakWN7xRs= -github.com/multiformats/go-multiaddr v0.8.0/go.mod h1:Fs50eBDWvZu+l3/9S6xAE7ZYj6yhxlvaVZjakWN7xRs= -github.com/multiformats/go-multiaddr v0.9.0 h1:3h4V1LHIk5w4hJHekMKWALPXErDfz/sggzwC/NcqbDQ= -github.com/multiformats/go-multiaddr v0.9.0/go.mod h1:mI67Lb1EeTOYb8GQfL/7wpIZwc46ElrvzhYnoJOmTT0= -github.com/multiformats/go-multiaddr-dns v0.0.1/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= -github.com/multiformats/go-multiaddr-dns v0.0.2/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= -github.com/multiformats/go-multiaddr-dns v0.2.0/go.mod h1:TJ5pr5bBO7Y1B18djPuRsVkduhQH2YqYSbxWJzYGdK0= -github.com/multiformats/go-multiaddr-dns v0.3.0/go.mod h1:mNzQ4eTGDg0ll1N9jKPOUogZPoJ30W8a7zk66FQPpdQ= -github.com/multiformats/go-multiaddr-dns v0.3.1 h1:QgQgR+LQVt3NPTjbrLLpsaT2ufAA2y0Mkk+QRVJbW3A= -github.com/multiformats/go-multiaddr-dns v0.3.1/go.mod h1:G/245BRQ6FJGmryJCrOuTdB37AMA5AMOVuO6NY3JwTk= -github.com/multiformats/go-multiaddr-fmt v0.0.1/go.mod h1:aBYjqL4T/7j4Qx+R73XSv/8JsgnRFlf0w2KGLCmXl3Q= -github.com/multiformats/go-multiaddr-fmt v0.1.0 h1:WLEFClPycPkp4fnIzoFoV9FVd49/eQsuaL3/CWe167E= -github.com/multiformats/go-multiaddr-fmt v0.1.0/go.mod h1:hGtDIW4PU4BqJ50gW2quDuPVjyWNZxToGUh/HwTZYJo= -github.com/multiformats/go-multiaddr-net v0.0.1/go.mod h1:nw6HSxNmCIQH27XPGBuX+d1tnvM7ihcFwHMSstNAVUU= -github.com/multiformats/go-multiaddr-net v0.1.0/go.mod h1:5JNbcfBOP4dnhoZOv10JJVkJO0pCCEf8mTnipAo2UZQ= -github.com/multiformats/go-multiaddr-net v0.1.1/go.mod h1:5JNbcfBOP4dnhoZOv10JJVkJO0pCCEf8mTnipAo2UZQ= -github.com/multiformats/go-multiaddr-net v0.1.2/go.mod h1:QsWt3XK/3hwvNxZJp92iMQKME1qHfpYmyIjFVsSOY6Y= -github.com/multiformats/go-multiaddr-net v0.1.3/go.mod h1:ilNnaM9HbmVFqsb/qcNysjCu4PVONlrBZpHIrw/qQuA= -github.com/multiformats/go-multiaddr-net v0.1.4/go.mod h1:ilNnaM9HbmVFqsb/qcNysjCu4PVONlrBZpHIrw/qQuA= -github.com/multiformats/go-multiaddr-net v0.1.5/go.mod h1:ilNnaM9HbmVFqsb/qcNysjCu4PVONlrBZpHIrw/qQuA= -github.com/multiformats/go-multiaddr-net v0.2.0/go.mod h1:gGdH3UXny6U3cKKYCvpXI5rnK7YaOIEOPVDI9tsJbEA= -github.com/multiformats/go-multibase v0.0.1/go.mod h1:bja2MqRZ3ggyXtZSEDKpl0uO/gviWFaSteVbWT51qgs= -github.com/multiformats/go-multibase v0.0.3/go.mod h1:5+1R4eQrT3PkYZ24C3W2Ue2tPwIdYQD509ZjSb5y9Oc= -github.com/multiformats/go-multibase v0.1.1/go.mod h1:ZEjHE+IsUrgp5mhlEAYjMtZwK1k4haNkcaPg9aoe1a8= -github.com/multiformats/go-multibase v0.2.0 h1:isdYCVLvksgWlMW9OZRYJEa9pZETFivncJHmHnnd87g= -github.com/multiformats/go-multibase v0.2.0/go.mod h1:bFBZX4lKCA/2lyOFSAoKH5SS6oPyjtnzK/XTFDPkNuk= -github.com/multiformats/go-multicodec v0.3.0/go.mod h1:qGGaQmioCDh+TeFOnxrbU0DaIPw8yFgAZgFG0V7p1qQ= -github.com/multiformats/go-multicodec v0.3.1-0.20210902112759-1539a079fd61/go.mod h1:1Hj/eHRaVWSXiSNNfcEPcwZleTmdNP81xlxDLnWU9GQ= -github.com/multiformats/go-multicodec v0.3.1-0.20211210143421-a526f306ed2c/go.mod h1:1Hj/eHRaVWSXiSNNfcEPcwZleTmdNP81xlxDLnWU9GQ= -github.com/multiformats/go-multicodec v0.4.1/go.mod h1:1Hj/eHRaVWSXiSNNfcEPcwZleTmdNP81xlxDLnWU9GQ= -github.com/multiformats/go-multicodec v0.5.0/go.mod h1:DiY2HFaEp5EhEXb/iYzVAunmyX/aSFMxq2KMKfWEues= -github.com/multiformats/go-multicodec v0.6.0/go.mod h1:GUC8upxSBE4oG+q3kWZRw/+6yC1BqO550bjhWsJbZlw= -github.com/multiformats/go-multicodec v0.7.0/go.mod h1:GUC8upxSBE4oG+q3kWZRw/+6yC1BqO550bjhWsJbZlw= -github.com/multiformats/go-multicodec v0.8.0/go.mod h1:GUC8upxSBE4oG+q3kWZRw/+6yC1BqO550bjhWsJbZlw= -github.com/multiformats/go-multicodec v0.8.1/go.mod h1:L3QTQvMIaVBkXOXXtVmYE+LI16i14xuaojr/H7Ai54k= -github.com/multiformats/go-multicodec v0.9.0 h1:pb/dlPnzee/Sxv/j4PmkDRxCOi3hXTz3IbPKOXWJkmg= -github.com/multiformats/go-multicodec v0.9.0/go.mod h1:L3QTQvMIaVBkXOXXtVmYE+LI16i14xuaojr/H7Ai54k= -github.com/multiformats/go-multihash v0.0.1/go.mod h1:w/5tugSrLEbWqlcgJabL3oHFKTwfvkofsjW2Qa1ct4U= -github.com/multiformats/go-multihash v0.0.5/go.mod h1:lt/HCbqlQwlPBz7lv0sQCdtfcMtlJvakRUn/0Ual8po= -github.com/multiformats/go-multihash v0.0.8/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= -github.com/multiformats/go-multihash v0.0.10/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= -github.com/multiformats/go-multihash v0.0.13/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= -github.com/multiformats/go-multihash v0.0.14/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= -github.com/multiformats/go-multihash v0.0.15/go.mod h1:D6aZrWNLFTV/ynMpKsNtB40mJzmCl4jb1alC0OvHiHg= -github.com/multiformats/go-multihash v0.1.0/go.mod h1:RJlXsxt6vHGaia+S8We0ErjhojtKzPP2AH4+kYM7k84= -github.com/multiformats/go-multihash v0.2.0/go.mod h1:WxoMcYG85AZVQUyRyo9s4wULvW5qrI9vb2Lt6evduFc= -github.com/multiformats/go-multihash v0.2.1/go.mod h1:WxoMcYG85AZVQUyRyo9s4wULvW5qrI9vb2Lt6evduFc= -github.com/multiformats/go-multihash v0.2.2/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM= -github.com/multiformats/go-multihash v0.2.3 h1:7Lyc8XfX/IY2jWb/gI7JP+o7JEq9hOa7BFvVU9RSh+U= -github.com/multiformats/go-multihash v0.2.3/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM= -github.com/multiformats/go-multistream v0.1.0/go.mod h1:fJTiDfXJVmItycydCnNx4+wSzZ5NwG2FEVAI30fiovg= -github.com/multiformats/go-multistream v0.1.1/go.mod h1:KmHZ40hzVxiaiwlj3MEbYgK9JFk2/9UktWZAF54Du38= -github.com/multiformats/go-multistream v0.2.0/go.mod h1:5GZPQZbkWOLOn3J2y4Y99vVW7vOfsAflxARk3x14o6k= -github.com/multiformats/go-multistream v0.2.1/go.mod h1:5GZPQZbkWOLOn3J2y4Y99vVW7vOfsAflxARk3x14o6k= -github.com/multiformats/go-multistream v0.2.2/go.mod h1:UIcnm7Zuo8HKG+HkWgfQsGL+/MIEhyTqbODbIUwSXKs= -github.com/multiformats/go-multistream v0.3.3/go.mod h1:ODRoqamLUsETKS9BNcII4gcRsJBU5VAwRIv7O39cEXg= -github.com/multiformats/go-multistream v0.4.0/go.mod h1:BS6ZSYcA4NwYEaIMeCtpJydp2Dc+fNRA6uJMSu/m8+4= -github.com/multiformats/go-multistream v0.4.1 h1:rFy0Iiyn3YT0asivDUIR05leAdwZq3de4741sbiSdfo= -github.com/multiformats/go-multistream v0.4.1/go.mod h1:Mz5eykRVAjJWckE2U78c6xqdtyNUEhKSM0Lwar2p77Q= -github.com/multiformats/go-varint v0.0.1/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= -github.com/multiformats/go-varint v0.0.2/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= -github.com/multiformats/go-varint v0.0.5/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= -github.com/multiformats/go-varint v0.0.6/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= -github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/nEGOHFS8= -github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU= -github.com/multiversx/concurrent-map v0.1.4 h1:hdnbM8VE4b0KYJaGY5yJS2aNIW9TFFsUYwbO0993uPI= -github.com/multiversx/concurrent-map v0.1.4/go.mod h1:8cWFRJDOrWHOTNSqgYCUvwT7c7eFQ4U2vKMOp4A/9+o= -github.com/multiversx/mx-chain-core-go v1.1.30/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= -github.com/multiversx/mx-chain-core-go v1.1.37 h1:2EYoUWjr+8zUYEt3TBMnQ+0UUZwDb71HA+KBwqDUpVQ= -github.com/multiversx/mx-chain-core-go v1.1.37/go.mod h1:8gGEQv6BWuuJwhd25qqhCOZbBSv9mk+hLeKvinSaSMk= -github.com/multiversx/mx-chain-crypto-go v1.2.5/go.mod h1:teqhNyWEqfMPgNn8sgWXlgtJ1a36jGCnhs/tRpXW6r4= -github.com/multiversx/mx-chain-crypto-go v1.2.6 h1:yxsjAQGh62los+iYmORMfh3w9qen0xbYlmwU0juNSeg= -github.com/multiversx/mx-chain-crypto-go v1.2.6/go.mod h1:rOj0Rr19HTOYt9YTeym7RKxlHt91NXln3LVKjHKVmA0= -github.com/multiversx/mx-chain-es-indexer-go v1.3.20 h1:/82eDBsjlEm6dNgW44WQOBqKByRAWr3n6OWjYpi43vE= -github.com/multiversx/mx-chain-es-indexer-go v1.3.20/go.mod h1:B8ahv6M93qHallA9fN+yknQFzdrDhHDgVlCy/0PVcG0= -github.com/multiversx/mx-chain-go v1.5.12 h1:DIgq+Gwu8lzpaSmusX12F9N9m6P7XA4ZsoBbtF5qhVs= -github.com/multiversx/mx-chain-go v1.5.12/go.mod h1:wD4sqoF8rkX+8qTrUMHL/xWr24r2Em9nGtwlExW78A0= -github.com/multiversx/mx-chain-logger-go v1.0.11 h1:DFsHa+sc5fKwhDR50I8uBM99RTDTEW68ESyr5ALRDwE= -github.com/multiversx/mx-chain-logger-go v1.0.11/go.mod h1:1srDkP0DQucWQ+rYfaq0BX2qLnULsUdRPADpYUTM6dA= -github.com/multiversx/mx-chain-p2p-go v1.0.17 h1:ijAwm/J4TqcDJvbWpGW9cQDNzfeaN/KfJYEVaTvM5c0= -github.com/multiversx/mx-chain-p2p-go v1.0.17/go.mod h1:Z7zPjv7adFUembS0XgxfecvvJTJOaGy09jT5JGqFyf0= -github.com/multiversx/mx-chain-storage-go v1.0.7 h1:UqLo/OLTD3IHiE/TB/SEdNRV1GG2f1R6vIP5ehHwCNw= -github.com/multiversx/mx-chain-storage-go v1.0.7/go.mod h1:gtKoV32Cg2Uy8deHzF8Ud0qAl0zv92FvWgPSYIP0Zmg= -github.com/multiversx/mx-chain-vm-common-go v1.3.40/go.mod h1:r+aILrY07ue89PH+D+B+Pp0viO1U3kN98t1pXneSgkE= -github.com/multiversx/mx-chain-vm-common-go v1.3.41/go.mod h1:r+aILrY07ue89PH+D+B+Pp0viO1U3kN98t1pXneSgkE= -github.com/multiversx/mx-chain-vm-common-go v1.3.42 h1:avhgUwi6f+wpHqaBk76j6islLzUlSRBXwisKoZnUXpk= -github.com/multiversx/mx-chain-vm-common-go v1.3.42/go.mod h1:r+aILrY07ue89PH+D+B+Pp0viO1U3kN98t1pXneSgkE= -github.com/multiversx/mx-chain-vm-v1_2-go v1.2.54 h1:c+S0xhfOMtwWEJHMqoPf8plF3sLnz3euPj4Rd/wN2UQ= -github.com/multiversx/mx-chain-vm-v1_2-go v1.2.54/go.mod h1:iuM50SqgelbKYNEm9s4BZcWczIgyCJIGFKajGUCDVm0= -github.com/multiversx/mx-chain-vm-v1_3-go v1.3.55 h1:hmo/QQ/qY+WgsMQeBODIX+tEnM/XIf7izNs9+WbKg4Y= -github.com/multiversx/mx-chain-vm-v1_3-go v1.3.55/go.mod h1:mgr3T06eLGFyDIk0BfLguNicejnDsRn1hi0ClURViEw= -github.com/multiversx/mx-chain-vm-v1_4-go v1.4.81 h1:PoUugtvMIZOvsDB2FrQa54XDnRz4nFtBvPkn0PsvF3I= -github.com/multiversx/mx-chain-vm-v1_4-go v1.4.81/go.mod h1:MIGlcQOBQIa1ujklUl949Bw7jseyvYDB1nmuCyXw/YQ= -github.com/multiversx/mx-components-big-int v0.1.1 h1:695mYPKYOrmGEGgRH4/pZruDoe3CPP1LHrBxKfvj5l4= -github.com/multiversx/mx-components-big-int v0.1.1/go.mod h1:0QrcFdfeLgJ/am10HGBeH0G0DNF+0Qx1E4DS/iozQls= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= -github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= -github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= -github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= -github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo= -github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nsf/termbox-go v0.0.0-20190121233118-02980233997d/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= -github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= -github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= -github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.2/go.mod h1:CObGmKUOKaSC0RjmoAK7tKyn4Azo5P2IWuoMnvwxz1E= -github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= -github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= -github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= -github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU= -github.com/onsi/ginkgo/v2 v2.1.6/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk= -github.com/onsi/ginkgo/v2 v2.2.0/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk= -github.com/onsi/ginkgo/v2 v2.3.0/go.mod h1:Eew0uilEqZmIEZr8JrvYlvOM7Rr6xzTmMV8AyFNU9d0= -github.com/onsi/ginkgo/v2 v2.4.0/go.mod h1:iHkDK1fKGcBoEHT5W7YBq4RFWaQulw+caOMkAt4OrFo= -github.com/onsi/ginkgo/v2 v2.5.0/go.mod h1:Luc4sArBICYCS8THh8v3i3i5CuSZO+RaQRaJoeNwomw= -github.com/onsi/ginkgo/v2 v2.5.1/go.mod h1:63DOGlLAH8+REH8jUGdL3YpCpu7JODesutUjdENfUAc= -github.com/onsi/ginkgo/v2 v2.7.0/go.mod h1:yjiuMwPokqY1XauOgju45q3sJt6VzQ/Fict1LFVcsAo= -github.com/onsi/ginkgo/v2 v2.8.1/go.mod h1:N1/NbDngAFcSLdyZ+/aYTYGSlq9qMCS/cNKGJjy+csc= -github.com/onsi/ginkgo/v2 v2.9.0/go.mod h1:4xkjoL/tZv4SMWeww56BU5kAt19mVB47gTWxmrTcxyk= -github.com/onsi/ginkgo/v2 v2.9.1/go.mod h1:FEcmzVcCHl+4o9bQZVab+4dC9+j+91t2FHSzmGAPfuo= -github.com/onsi/ginkgo/v2 v2.9.2/go.mod h1:WHcJJG2dIlcCqVfBAwUCrJxSPFb6v4azBwgxeMeDuts= -github.com/onsi/ginkgo/v2 v2.9.5/go.mod h1:tvAoo1QUJwNEU2ITftXTpR7R1RbCzoZUOs3RonqW57k= -github.com/onsi/ginkgo/v2 v2.9.7 h1:06xGQy5www2oN160RtEZoTvnP2sPhEfePYmCDc2szss= -github.com/onsi/ginkgo/v2 v2.9.7/go.mod h1:cxrmXWykAwTwhQsJOPfdIDiJ+l2RYq7U8hFU+M/1uw0= -github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.9.0/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.13.0/go.mod h1:lRk9szgn8TxENtWd0Tp4c3wjlRfMTMH27I+3Je41yGY= -github.com/onsi/gomega v1.16.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= -github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= -github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= -github.com/onsi/gomega v1.20.1/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= -github.com/onsi/gomega v1.21.1/go.mod h1:iYAIXgPSaDHak0LCMA+AWBpIKBr8WZicMxnE8luStNc= -github.com/onsi/gomega v1.22.1/go.mod h1:x6n7VNe4hw0vkyYUM4mjIXx3JbLiPaBPNgB7PRQ1tuM= -github.com/onsi/gomega v1.24.0/go.mod h1:Z/NWtiqwBrwUt4/2loMmHL63EDLnYHmVbuBpDr2vQAg= -github.com/onsi/gomega v1.24.1/go.mod h1:3AOiACssS3/MajrniINInwbfOOtfZvplPzuRSmvt1jM= -github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= -github.com/onsi/gomega v1.27.1/go.mod h1:aHX5xOykVYzWOV4WqQy0sy8BQptgukenXpCXfadcIAw= -github.com/onsi/gomega v1.27.3/go.mod h1:5vG284IBtfDAmDyrK+eGyZmUgUlmi+Wngqo557cZ6Gw= -github.com/onsi/gomega v1.27.4/go.mod h1:riYq/GJKh8hhoM01HN6Vmuy93AarCXCBGpvFDK3q3fQ= -github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg= -github.com/onsi/gomega v1.27.7 h1:fVih9JD6ogIiHUN6ePK7HJidyEDpWGVB5mzM7cWNXoU= -github.com/onsi/gomega v1.27.7/go.mod h1:1p8OOlwo2iUUDsHnOrjE5UKYJ+e3W8eQ3qSlRahPmr4= -github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= -github.com/opencontainers/runtime-spec v1.0.2 h1:UfAcuLBJB9Coz72x1hgl8O5RVzTdNiaglX6v2DM6FI0= -github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= -github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= -github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= -github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= -github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= -github.com/openzipkin/zipkin-go v0.1.1/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8= -github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= -github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/openzipkin/zipkin-go v0.4.1/go.mod h1:qY0VqDSN1pOBN94dBc6w2GJlWLiovAyg7Qt6/I9HecM= -github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 h1:onHthvaw9LFnH4t2DcNVpwGmV9E1BkGknEliJkfwQj0= -github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58/go.mod h1:DXv8WO4yhMYhSNPKjeNKa5WY9YCIEBRbNzFFPJbWO6Y= -github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= -github.com/pborman/uuid v1.2.1 h1:+ZZIw58t/ozdjRaXh/3awHfmWRbzYxJoAdNJxe/3pvw= -github.com/pborman/uuid v1.2.1/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.9.3 h1:zeC5b1GviRUyKYd6OJPvBU/mcVDVoL1OhT17FCt5dSQ= -github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.0.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= -github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= -github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= -github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= -github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= -github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9/go.mod h1:x3N5drFsm2uilKKuuYo6LdyD8vZAW55sH/9w+pbo1sw= -github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY= -github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= -github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= -github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= -github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4/v4 v4.1.17/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= -github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/polydawn/refmt v0.0.0-20190221155625-df39d6c2d992/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= -github.com/polydawn/refmt v0.0.0-20190408063855-01bf1e26dd14/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= -github.com/polydawn/refmt v0.0.0-20190807091052-3d65705ee9f1/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= -github.com/polydawn/refmt v0.0.0-20201211092308-30ac6d18308e/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= -github.com/polydawn/refmt v0.89.0 h1:ADJTApkvkeBZsN0tBTx8QjpD9JkmxbKp0cxfr9qszm4= -github.com/polydawn/refmt v0.89.0/go.mod h1:/zvteZs/GwLtCgZ4BL6CBsk9IKIlexP43ObX9AxTqTw= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.10.0/go.mod h1:WJM3cc3yu7XKBKa/I8WeZm+V3eltZnBwfENSU7mdogU= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= -github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= -github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= -github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY= -github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= -github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.18.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= -github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= -github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= -github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= -github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= -github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= -github.com/quic-go/qpack v0.4.0 h1:Cr9BXA1sQS2SmDUWjSofMPNKmvF6IiIfDRmgU0w1ZCo= -github.com/quic-go/qpack v0.4.0/go.mod h1:UZVnYIfi5GRk+zI9UMaCPsmZ2xKJP7XBUvVyT1Knj9A= -github.com/quic-go/qtls-go1-18 v0.2.0/go.mod h1:moGulGHK7o6O8lSPSZNoOwcLvJKJ85vVNc7oJFD65bc= -github.com/quic-go/qtls-go1-19 v0.2.0/go.mod h1:ySOI96ew8lnoKPtSqx2BlI5wCpUVPT05RMAlajtnyOI= -github.com/quic-go/qtls-go1-19 v0.2.1/go.mod h1:ySOI96ew8lnoKPtSqx2BlI5wCpUVPT05RMAlajtnyOI= -github.com/quic-go/qtls-go1-19 v0.3.2 h1:tFxjCFcTQzK+oMxG6Zcvp4Dq8dx4yD3dDiIiyc86Z5U= -github.com/quic-go/qtls-go1-19 v0.3.2/go.mod h1:ySOI96ew8lnoKPtSqx2BlI5wCpUVPT05RMAlajtnyOI= -github.com/quic-go/qtls-go1-20 v0.1.0/go.mod h1:JKtK6mjbAVcUTN/9jZpvLbGxvdWIKS8uT7EiStoU1SM= -github.com/quic-go/qtls-go1-20 v0.1.1/go.mod h1:JKtK6mjbAVcUTN/9jZpvLbGxvdWIKS8uT7EiStoU1SM= -github.com/quic-go/qtls-go1-20 v0.2.2 h1:WLOPx6OY/hxtTxKV1Zrq20FtXtDEkeY00CGQm8GEa3E= -github.com/quic-go/qtls-go1-20 v0.2.2/go.mod h1:JKtK6mjbAVcUTN/9jZpvLbGxvdWIKS8uT7EiStoU1SM= -github.com/quic-go/quic-go v0.32.0/go.mod h1:/fCsKANhQIeD5l76c2JFU+07gVE3KaA0FP+0zMWwfwo= -github.com/quic-go/quic-go v0.33.0 h1:ItNoTDN/Fm/zBlq769lLJc8ECe9gYaW40veHCCco7y0= -github.com/quic-go/quic-go v0.33.0/go.mod h1:YMuhaAV9/jIu0XclDXwZPAsP/2Kgr5yMYhe9oxhhOFA= -github.com/quic-go/webtransport-go v0.5.1/go.mod h1:OhmmgJIzTTqXK5xvtuX0oBpLV2GkLWNDA+UeTGJXErU= -github.com/quic-go/webtransport-go v0.5.2/go.mod h1:OhmmgJIzTTqXK5xvtuX0oBpLV2GkLWNDA+UeTGJXErU= -github.com/quic-go/webtransport-go v0.5.3 h1:5XMlzemqB4qmOlgIus5zB45AcZ2kCgCy2EptUrfOPWU= -github.com/quic-go/webtransport-go v0.5.3/go.mod h1:OhmmgJIzTTqXK5xvtuX0oBpLV2GkLWNDA+UeTGJXErU= -github.com/rabbitmq/amqp091-go v1.5.0/go.mod h1:JsV0ofX5f1nwOGafb8L5rBItt9GyhfQfcJj+oyz0dGg= -github.com/raulk/go-watchdog v1.3.0 h1:oUmdlHxdkXRJlwfG0O9omj8ukerm8MEQavSiDTEtBsk= -github.com/raulk/go-watchdog v1.3.0/go.mod h1:fIvOnLbF0b0ZwkB9YU4mOW9Did//4vPZtDqv66NfsMU= -github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= -github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.21.0/go.mod h1:ZPhntP/xmq1nnND05hhpAh2QMhSsA4UN3MGZ6O2J3hM= -github.com/rs/zerolog v1.28.0/go.mod h1:NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w= -github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/samber/lo v1.36.0/go.mod h1:HLeWcJRRyLKp3+/XBJvOrerCQn9mhdKMHyd7IRlgeQ8= -github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/shirou/gopsutil v3.21.11+incompatible h1:+1+c1VGhc88SSonWP6foOcLhvnKlUeu/erjjvaPEYiI= -github.com/shirou/gopsutil v3.21.11+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/shirou/gopsutil/v3 v3.21.2/go.mod h1:ghfMypLDrFSWN2c9cDYFLHyynQ+QUht0cv/18ZqVczw= -github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod h1:XhFIlyj5a1fBNx5aJTbKoIq0mNaPvOagO+HjB3EtxrY= -github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod h1:5u70Mqkb5O5cxEA8nxTsgrgLehJeAw6Oc4Ab1c/P1HM= -github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470/go.mod h1:2dOwnU2uBioM+SGy2aZoq1f/Sd1l9OkAeAUvjSyvgU0= -github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= -github.com/shurcooL/gofontwoff v0.0.0-20180329035133-29b52fc0a18d/go.mod h1:05UtEgK5zq39gLST6uB0cf3NEHjETfB4Fgr3Gx5R9Vw= -github.com/shurcooL/gopherjslib v0.0.0-20160914041154-feb6d3990c2c/go.mod h1:8d3azKNyqcHP1GaQE/c6dDgjkgSx2BZ4IoEi4F1reUI= -github.com/shurcooL/highlight_diff v0.0.0-20170515013008-09bb4053de1b/go.mod h1:ZpfEhSmds4ytuByIcDnOLkTHGUI6KNqRNPDLHDk+mUU= -github.com/shurcooL/highlight_go v0.0.0-20181028180052-98c3abbbae20/go.mod h1:UDKB5a1T23gOMUJrI+uSuH0VRDStOiUVSjBTRDVBVag= -github.com/shurcooL/home v0.0.0-20181020052607-80b7ffcb30f9/go.mod h1:+rgNQw2P9ARFAs37qieuu7ohDNQ3gds9msbT2yn85sg= -github.com/shurcooL/htmlg v0.0.0-20170918183704-d01228ac9e50/go.mod h1:zPn1wHpTIePGnXSHpsVPWEktKXHr6+SS6x/IKRb7cpw= -github.com/shurcooL/httperror v0.0.0-20170206035902-86b7830d14cc/go.mod h1:aYMfkZ6DWSJPJ6c4Wwz3QtW22G7mf/PEgaB9k/ik5+Y= -github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= -github.com/shurcooL/httpgzip v0.0.0-20180522190206-b1c53ac65af9/go.mod h1:919LwcH0M7/W4fcZ0/jy0qGght1GIhqyS/EgWGH2j5Q= -github.com/shurcooL/issues v0.0.0-20181008053335-6292fdc1e191/go.mod h1:e2qWDig5bLteJ4fwvDAc2NHzqFEthkqn7aOZAOpj+PQ= -github.com/shurcooL/issuesapp v0.0.0-20180602232740-048589ce2241/go.mod h1:NPpHK2TI7iSaM0buivtFUc9offApnI0Alt/K8hcHy0I= -github.com/shurcooL/notifications v0.0.0-20181007000457-627ab5aea122/go.mod h1:b5uSkrEVM1jQUspwbixRBhaIjIzL2xazXp6kntxYle0= -github.com/shurcooL/octicon v0.0.0-20181028054416-fa4f57f9efb2/go.mod h1:eWdoE5JD4R5UVWDucdOPg1g2fqQRq78IQa9zlOV1vpQ= -github.com/shurcooL/reactions v0.0.0-20181006231557-f2e0b4ca5b82/go.mod h1:TCR1lToEk4d2s07G3XGfz2QrgHXg4RJBvjrOozvoWfk= -github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537/go.mod h1:QJTqeLYEDaXHZDBsXlPCDqdhQuJkuw4NOtaxYe3xii4= -github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133/go.mod h1:hKmq5kWdCj2z2KEozexVbfEZIWiTjhE0+UjmZgPqehw= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/assertions v1.0.0/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUrLW/7eUrw0BU5VaoM= -github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= -github.com/smartystreets/assertions v1.13.0 h1:Dx1kYM01xsSqKPno3aqLnrwac2LetPvN23diwyr69Qs= -github.com/smartystreets/assertions v1.13.0/go.mod h1:wDmR7qL282YbGsPy6H/yAsesrxfxaaSlJazyFLYVFx8= -github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa/go.mod h1:2RVY1rIf+2J2o/IM9+vPq9RzmHDSseB7FoXiSNIUsoU= -github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hgR6gDIPg= -github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM= -github.com/smola/gocompat v0.2.0/go.mod h1:1B0MlxbmoZNo3h8guHp8HztB3BSYR5itql9qtVc0ypY= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= -github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE= -github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA= -github.com/spacemonkeygo/openssl v0.0.0-20181017203307-c2dcc5cca94a/go.mod h1:7AyxJNCJ7SBZ1MfVQCWD6Uqo2oubI2Eq2y2eqf+A5r0= -github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572/go.mod h1:w0SWMsp6j9O/dk4/ZpIhL+3CkG8ofA2vuv7k+ltqUMc= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= -github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= -github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= -github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/src-d/envconfig v1.0.0/go.mod h1:Q9YQZ7BKITldTBnoxsE5gOeB5y66RyPXeue/R4aaNBc= -github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= -github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= -github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= -github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA= -github.com/thoas/go-funk v0.9.1/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q= -github.com/tidwall/gjson v1.14.0 h1:6aeJ0bzojgWLa82gDQHcx3S0Lr/O51I9bJ5nv6JFx5w= -github.com/tidwall/gjson v1.14.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= -github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= -github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= -github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= -github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -github.com/tj/assert v0.0.3/go.mod h1:Ne6X72Q+TB1AteidzQncjw9PabbMp4PBMZ1k+vd1Pvk= -github.com/tklauser/go-sysconf v0.3.4 h1:HT8SVixZd3IzLdfs/xlpq0jeSfTX57g1v6wB1EuzV7M= -github.com/tklauser/go-sysconf v0.3.4/go.mod h1:Cl2c8ZRWfHD5IrfHo9VN+FX9kCFjIOyVklgXycLB6ek= -github.com/tklauser/numcpus v0.2.1 h1:ct88eFm+Q7m2ZfXJdan1xYoXKlmwsfP+k88q05KvlZc= -github.com/tklauser/numcpus v0.2.1/go.mod h1:9aU+wOc6WjUIZEwWMP62PL/41d65P+iks1gBkr4QyP8= -github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= -github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= -github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8= -github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U= -github.com/ucarion/urlpath v0.0.0-20200424170820-7ccc79b76bbb/go.mod h1:ikPs9bRWicNw3S7XpJ8sK/smGwU9WcSVU3dy9qahYBM= -github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= -github.com/ugorji/go v1.2.7 h1:qYhyWUUd6WbiM+C6JZAUkIJt/1WrjzNHY9+KCIjVqTo= -github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= -github.com/ugorji/go/codec v1.2.9/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= -github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= -github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.5/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.9/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.10/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli/v2 v2.11.0/go.mod h1:f8iq5LtQ/bLxafbdBSLPPNsgaW0l/2fYYEHhAyPlwvo= -github.com/viant/assertly v0.4.8/go.mod h1:aGifi++jvCrUaklKEKT0BU95igDNaqkvz+49uaYMPRU= -github.com/viant/toolbox v0.24.0/go.mod h1:OxMCG57V0PXuIP2HNQrtJf2CjqdmbrOx5EkMILuUhzM= -github.com/wangjia184/sortedset v0.0.0-20160527075905-f5d03557ba30/go.mod h1:YkocrP2K2tcw938x9gCOmT5G5eCD6jsTz0SZuyAqwIE= -github.com/warpfork/go-testmark v0.3.0/go.mod h1:jhEf8FVxd+F17juRubpmut64NEG6I2rgkUhlcqqXwE0= -github.com/warpfork/go-testmark v0.10.0/go.mod h1:jhEf8FVxd+F17juRubpmut64NEG6I2rgkUhlcqqXwE0= -github.com/warpfork/go-testmark v0.11.0/go.mod h1:jhEf8FVxd+F17juRubpmut64NEG6I2rgkUhlcqqXwE0= -github.com/warpfork/go-wish v0.0.0-20180510122957-5ad1f5abf436/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= -github.com/warpfork/go-wish v0.0.0-20190328234359-8b3e70f8e830/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= -github.com/warpfork/go-wish v0.0.0-20200122115046-b9ea61034e4a/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= -github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0 h1:GDDkbFiaK8jsSDJfjId/PEGEShv6ugrt4kYsC5UIDaQ= -github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= -github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc/go.mod h1:r45hJU7yEoA81k6MWNhpMj/kms0n14dkzkxYHoB96UM= -github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11/go.mod h1:Wlo/SzPmxVp6vXpGt/zaXhHH0fn4IxgqZc82aKg6bpQ= -github.com/whyrusleeping/cbor-gen v0.0.0-20200123233031-1cdf64d27158/go.mod h1:Xj/M2wWU+QdTdRbu/L/1dIZY8/Wb2K9pAhtroQuxJJI= -github.com/whyrusleeping/cbor-gen v0.0.0-20221220214510-0333c149dec0/go.mod h1:fgkXqYy7bV2cFeIEOkVTZS/WjXARfBqSH6Q2qHL33hQ= -github.com/whyrusleeping/cbor-gen v0.0.0-20230126041949-52956bd4c9aa/go.mod h1:fgkXqYy7bV2cFeIEOkVTZS/WjXARfBqSH6Q2qHL33hQ= -github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f/go.mod h1:p9UJB6dDgdPgMJZs7UjUOdulKyRr9fqkS+6JKAInPy8= -github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 h1:EKhdznlJHPMoKr0XTrX+IlJs1LH3lyx2nfr1dOlZ79k= -github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1/go.mod h1:8UvriyWtv5Q5EOgjHaSseUEdkQfvwFv1I/In/O2M9gc= -github.com/whyrusleeping/go-logging v0.0.0-20170515211332-0457bb6b88fc/go.mod h1:bopw91TMyo8J3tvftk8xmU2kPmlrt4nScJQZU2hE5EM= -github.com/whyrusleeping/go-logging v0.0.1/go.mod h1:lDPYj54zutzG1XYfHAhcc7oNXEburHQBn+Iqd4yS4vE= -github.com/whyrusleeping/go-notifier v0.0.0-20170827234753-097c5d47330f/go.mod h1:cZNvX9cFybI01GriPRMXDtczuvUhgbcYr9iCGaNlRv8= -github.com/whyrusleeping/mafmt v1.2.8/go.mod h1:faQJFPbLSxzD9xpA02ttW/tS9vZykNvXwGvqIpk20FA= -github.com/whyrusleeping/mdns v0.0.0-20180901202407-ef14215e6b30/go.mod h1:j4l84WPFclQPj320J9gp0XwNKBb3U0zt5CBqjPp22G4= -github.com/whyrusleeping/mdns v0.0.0-20190826153040-b9b60ed33aa9/go.mod h1:j4l84WPFclQPj320J9gp0XwNKBb3U0zt5CBqjPp22G4= -github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7/go.mod h1:X2c0RVCI1eSUFI8eLcY3c0423ykwiUdxLJtkDvruhjI= -github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee h1:lYbXeSvJi5zk5GLKVuid9TVjS9a0OmLIDKTfoZBL6Ow= -github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee/go.mod h1:m2aV4LZI4Aez7dP5PMyVKEHhUyEJ/RjmPEDOpDvudHg= -github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE= -github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= -github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= -github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= -github.com/xhit/go-str2duration v1.2.0/go.mod h1:3cPSlfZlUHVlneIVfePFWcJZsuwf+P1v2SRTV4cUmp4= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xlab/treeprint v1.0.0/go.mod h1:IoImgRak9i3zJyuxOKUP1v4UZd1tMoKkq/Cimt1uhCg= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg= -github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA= -go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= -go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.1/go.mod h1:Ap50jQcDJrx6rB6VgeeFPtuPIf3wMRvRfrfYDO6+BmA= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= -go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/otel v0.20.0/go.mod h1:Y3ugLH2oa81t5QO+Lty+zXf8zC9L26ax4Nzoxm/dooo= -go.opentelemetry.io/otel v1.7.0/go.mod h1:5BdUoMIz5WEs0vt0CUEMtSSaTSHBBVwrhnz7+nrD5xk= -go.opentelemetry.io/otel v1.13.0/go.mod h1:FH3RtdZCzRkJYFTCsAKDy9l/XYjMdNv6QrkFFB8DvVg= -go.opentelemetry.io/otel v1.14.0 h1:/79Huy8wbf5DnIPhemGB+zEPVwnN6fuQybr/SRXa6hM= -go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= -go.opentelemetry.io/otel/exporters/jaeger v1.14.0/go.mod h1:4Ay9kk5vELRrbg5z4cpP9EtmQRFap2Wb0woPG4lujZA= -go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.14.0/go.mod h1:UFG7EBMRdXyFstOwH028U0sVf+AvukSGhF0g8+dmNG8= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.14.0/go.mod h1:HrbCVv40OOLTABmOn1ZWty6CHXkU8DK/Urc43tHug70= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.14.0/go.mod h1:5w41DY6S9gZrbjuq6Y+753e96WfPha5IcsOSZTtullM= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.14.0/go.mod h1:+N7zNjIJv4K+DeX67XXET0P+eIciESgaFDBqh+ZJFS4= -go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.14.0/go.mod h1:oCslUcizYdpKYyS9e8srZEqM6BB8fq41VJBjLAE6z1w= -go.opentelemetry.io/otel/exporters/zipkin v1.14.0/go.mod h1:RcjvOAcvhzcufQP8aHmzRw1gE9g/VEZufDdo2w+s4sk= -go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= -go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= -go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= -go.opentelemetry.io/otel/sdk v1.14.0/go.mod h1:bwIC5TjrNG6QDCHNWvW4HLHtUQ4I+VQDsnjhvyZCALM= -go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16gUEi0Nf1iBdgw= -go.opentelemetry.io/otel/trace v1.7.0/go.mod h1:fzLSB9nqR2eXzxPXb2JW9IKE+ScyXA48yyE4TNvoHqU= -go.opentelemetry.io/otel/trace v1.13.0/go.mod h1:muCvmmO9KKpvuXSf3KKAXXB2ygNYHQ+ZfI5X08d3tds= -go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M= -go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.opentelemetry.io/proto/otlp v0.15.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= -go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= -go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/dig v1.15.0/go.mod h1:pKHs0wMynzL6brANhB2hLMro+zalv1osARTviTcqHLM= -go.uber.org/dig v1.16.1/go.mod h1:557JTAUZT5bUK0SvCwikmLPPtdQhfvLYtO5tJgQSbnk= -go.uber.org/dig v1.17.0 h1:5Chju+tUvcC+N7N6EV08BJz41UZuO3BmHcN4A287ZLI= -go.uber.org/dig v1.17.0/go.mod h1:rTxpf7l5I0eBTlE6/9RL+lDybC7WFwY2QH55ZSjy1mU= -go.uber.org/fx v1.18.2/go.mod h1:g0V1KMQ66zIRk8bLu3Ea5Jt2w/cHlOIp4wdRsgh0JaY= -go.uber.org/fx v1.19.2 h1:SyFgYQFr1Wl0AYstE8vyYIzP4bFz2URrScjwC4cwUvY= -go.uber.org/fx v1.19.2/go.mod h1:43G1VcqSzbIv77y00p1DRAsyZS8WdzuYdhZXmEUkMyQ= -go.uber.org/goleak v1.0.0/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= -go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= -go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= -go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ= -go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= -go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.14.1/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= -go.uber.org/zap v1.15.0/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= -go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= -go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= -go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= -go.uber.org/zap v1.22.0/go.mod h1:H4siCOZOrAolnUPJEkfaSjDqyP+BDS0DdDWzwcgt3+U= -go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY= -go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= -go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= -go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE= -golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= -golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k= -golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= -golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw= -golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190225124518-7f87c0fbb88b/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190618222545-ea8f1a30c443/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200423211502-4bdfaf469ed5/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200602180216-279210d13fed/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= -golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= -golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20221010152910-d6f0a8c073c2/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= -golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.4.0/go.mod h1:3quD/ATkf6oY+rnes5c3ExXTbLc8mueNue5/DoinL80= -golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU= -golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= -golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= -golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3/go.mod h1:NOZ3BPKG0ec/BKJQgnvsSFpcKLM5xXVWnvZS97DWHgE= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20210615023648-acb5c1269671/go.mod h1:DVyR6MI7P4kEQgvZJSj1fQGrWIi2RzIrfYWycwheUAc= -golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE= -golang.org/x/exp v0.0.0-20220426173459-3bcf042a4bf5/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE= -golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod h1:Kr81I6Kryrl9sr8s2FK3vxD90NdsKWRuOIl2O4CvYbA= -golang.org/x/exp v0.0.0-20220916125017-b168a2c6b86b/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= -golang.org/x/exp v0.0.0-20221205204356-47842c84f3db/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= -golang.org/x/exp v0.0.0-20230129154200-a960b3787bd2/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= -golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= -golang.org/x/exp v0.0.0-20230321023759-10a507213a29 h1:ooxPy7fPvB4kwsA2h+iBNHkAbp/4JxTSwCmvdjEYmug= -golang.org/x/exp v0.0.0-20230321023759-10a507213a29/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= -golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/image v0.0.0-20200430140353-33d19683fad8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/image v0.0.0-20200618115811-c13761719519/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/image v0.0.0-20201208152932-35266b937fa6/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/image v0.0.0-20210216034530-4410531fe030/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/image v0.0.0-20210607152325-775e3b0c77b9/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= -golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= -golang.org/x/image v0.0.0-20211028202545-6944b10bf410/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= -golang.org/x/image v0.0.0-20220302094943-723b81ca9867/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= -golang.org/x/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.6.0-dev.0.20211013180041-c96bc1413d57/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= -golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= -golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= -golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181029044818-c44066c5c816/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181106065722-10aee1819953/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190227160552-c95aed5357e7/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190313220215-9f648a60d977/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190611141213-3f473d35a33a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210423184538-5f58ad60dda6/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220725212005-46097bf591d3/go.mod h1:AaygXjzTFtRAg2ttMY5RMuhpJ3cNnI0XpyFJD1iQRSM= -golang.org/x/net v0.0.0-20220812174116-3211cb980234/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20220920183852-bf014ff85ad5/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20220923203811-8be639271d50/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20220927171203-f486391704dc/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20221004154528-8021a29435af/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= -golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= -golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= -golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= -golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= -golang.org/x/oauth2 v0.0.0-20221006150949-b44042a4b9c1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= -golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= -golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec= -golang.org/x/oauth2 v0.5.0 h1:HuArIo48skDwlrvM3sEdHXElYslAMsf3KwRkkW4MC4s= -golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I= -golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod h1:JLpeXjPJfIyPr5TlbXLkXWLhP8nz10XfvxElABhCtcw= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220923202941-7f9b1623fab7/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= -golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180810173357-98c5dad5d1a0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190219092855-153ac476189d/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190228124157-a34e9553db1e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190302025703-b6889370fb10/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190405154228-4b34438f7a67/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190524122548-abf6ff778158/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190526052359-791d8a0f4d09/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210217105451-b926d437f341/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210304124612-50617c2ba197/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210309074719-68d13333faf2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210317225723-c4fcb01b228e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210426080607-c94f62235c83/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210903071746-97244b99971b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220405210540-1e041c57c461/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220429233432-b5fbb4746d32/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.0.0-20220526004731-065cf7ba2467/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= -golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030000716-a0a13e073c7b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181130052023-1c3d964395ce/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.8-0.20211029000441-d6a9af8af023/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= -golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= -golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= -golang.org/x/tools v0.9.1 h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo= -golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= -gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= -gonum.org/v1/gonum v0.9.3/go.mod h1:TZumC3NeyVQskjXqmyWt4S3bINhy7B4eYwW69EbyX+0= -gonum.org/v1/gonum v0.11.0 h1:f1IJhK4Km5tBJmaiJXtk/PkL4cdVX6J+tGiM187uT5E= -gonum.org/v1/gonum v0.11.0/go.mod h1:fSG4YDCxxUZQJ7rKsQrj0gMOg00Il0Z96/qMA4bVQhA= -gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= -gonum.org/v1/plot v0.9.0/go.mod h1:3Pcqqmp6RHvJI72kgb8fThyUnav364FOsdDo2aGW5lY= -gonum.org/v1/plot v0.10.1/go.mod h1:VZW5OlhkL1mysU9vaqNHnsy86inf6Ot+jB3r+BczCEo= -google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= -google.golang.org/api v0.0.0-20181030000543-1d582fd0359e/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= -google.golang.org/api v0.1.0/go.mod h1:UGEZY7KEX120AnNLIHFMKIo4obdJhkp2tPbaPlQx13Y= -google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= -google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= -google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= -google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= -google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= -google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= -google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= -google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= -google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= -google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= -google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= -google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= -google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= -google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= -google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= -google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= -google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= -google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= -google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= -google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= -google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= -google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= -google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= -google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= -google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= -google.golang.org/api v0.99.0/go.mod h1:1YOf74vkVndF7pG6hIHuINsM7eWwpVTAfNMNiL91A08= -google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= -google.golang.org/api v0.102.0/go.mod h1:3VFl6/fzoA+qNuS1N1/VfXY4LjoXN/wzeIp7TweWwGo= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898/go.mod h1:7Ep/1NZk928CDR8SjdVbjWNpdIf6nzjE3BTgJDr2Atg= -google.golang.org/genproto v0.0.0-20190306203927-b5d61aea6440/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= -google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= -google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= -google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= -google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= -google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= -google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= -google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= -google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= -google.golang.org/genproto v0.0.0-20220329172620-7be39ac1afc7/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= -google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= -google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= -google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= -google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= -google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= -google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= -google.golang.org/genproto v0.0.0-20220914142337-ca0e39ece12f/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= -google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= -google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= -google.golang.org/genproto v0.0.0-20220919141832-68c03719ef51/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= -google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw= -google.golang.org/genproto v0.0.0-20220926165614-551eb538f295/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= -google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= -google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= -google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= -google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= -google.golang.org/genproto v0.0.0-20221024153911-1573dae28c9c/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= -google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= -google.golang.org/genproto v0.0.0-20221114212237-e4508ebdbee1/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= -google.golang.org/genproto v0.0.0-20221117204609-8f9c96812029/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= -google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= -google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= -google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= -google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio= -google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.28.1/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= -google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= -google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= -google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww= -google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= -google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= -gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= -gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= -gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -gopkg.in/src-d/go-cli.v0 v0.0.0-20181105080154-d492247bbc0d/go.mod h1:z+K8VcOYVYcSwSjGebuDL6176A1XskgbtNl64NSg+n8= -gopkg.in/src-d/go-log.v1 v1.0.1/go.mod h1:GN34hKP0g305ysm2/hctJ0Y8nWP3zxXXJ8GFabTyABE= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJdjuHRquDANNeA4x7B8WQ9o= -honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= -lukechampine.com/blake3 v1.1.6/go.mod h1:tkKEOtDkNtklkXtLNEOGNq5tcV90tJiA1vAA12R78LA= -lukechampine.com/blake3 v1.1.7/go.mod h1:tkKEOtDkNtklkXtLNEOGNq5tcV90tJiA1vAA12R78LA= -lukechampine.com/blake3 v1.2.1 h1:YuqqRuaqsGV71BV/nm9xlI0MKUv4QC54jQnBChWbGnI= -lukechampine.com/blake3 v1.2.1/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k= -nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/goversion v1.2.0/go.mod h1:Eih9y/uIBS3ulggl7KNJ09xGSLcuNaLgmvvqa07sgfo= -rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= -sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod h1:kuch7UrkMzY0X+p9CRK03kfuPQ2zzQcaEFbx8wA8rck= -sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= diff --git a/mx-sdk-go-old/headerCheck/errors.go b/mx-sdk-go-old/headerCheck/errors.go deleted file mode 100644 index 623ca723..00000000 --- a/mx-sdk-go-old/headerCheck/errors.go +++ /dev/null @@ -1,18 +0,0 @@ -package headerCheck - -import "errors" - -// ErrNilProxy signals that a nil proxy was provided -var ErrNilProxy = errors.New("nil proxy") - -// ErrNilNodesCoordinator signals that a nil nodes coordinator was provided -var ErrNilNodesCoordinator = errors.New("nil nodes coordinator") - -// ErrNilHeaderSigVerifier signals that a nil header sig verifier was provided -var ErrNilHeaderSigVerifier = errors.New("nil header signature verifier") - -// ErrNilRawHeaderHandler signals that a nil raw header handler was provided -var ErrNilRawHeaderHandler = errors.New("nil raw header handler") - -// ErrNilMarshaller signals that a nil marshaller was provided -var ErrNilMarshaller = errors.New("nil marshaller") diff --git a/mx-sdk-go-old/headerCheck/export_test.go b/mx-sdk-go-old/headerCheck/export_test.go deleted file mode 100644 index eb1cd263..00000000 --- a/mx-sdk-go-old/headerCheck/export_test.go +++ /dev/null @@ -1,15 +0,0 @@ -package headerCheck - -import ( - "context" - - coreData "github.com/multiversx/mx-chain-core-go/data" -) - -func (hch *headerVerifier) FetchHeaderByHashAndShard(ctx context.Context, shardId uint32, hash string) (coreData.HeaderHandler, error) { - return hch.fetchHeaderByHashAndShard(ctx, shardId, hash) -} - -func (hch *headerVerifier) UpdateNodesConfigPerEpoch(ctx context.Context, epoch uint32) error { - return hch.updateNodesConfigPerEpoch(ctx, epoch) -} diff --git a/mx-sdk-go-old/headerCheck/factory/coreComponents.go b/mx-sdk-go-old/headerCheck/factory/coreComponents.go deleted file mode 100644 index 53dceb16..00000000 --- a/mx-sdk-go-old/headerCheck/factory/coreComponents.go +++ /dev/null @@ -1,144 +0,0 @@ -package factory - -import ( - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/pubkeyConverter" - "github.com/multiversx/mx-chain-core-go/hashing" - hasherFactory "github.com/multiversx/mx-chain-core-go/hashing/factory" - "github.com/multiversx/mx-chain-core-go/marshal" - marshalizerFactory "github.com/multiversx/mx-chain-core-go/marshal/factory" - "github.com/multiversx/mx-chain-go/common" - "github.com/multiversx/mx-chain-go/common/enablers" - "github.com/multiversx/mx-chain-go/config" - "github.com/multiversx/mx-chain-go/process/rating" - "github.com/multiversx/mx-chain-go/sharding/nodesCoordinator" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/disabled" -) - -const ( - marshalizerType = "gogo protobuf" - hasherType = "blake2b" - validatorHexPubKeyLength = 96 -) - -type coreComponents struct { - Marshaller marshal.Marshalizer - Hasher hashing.Hasher - Rater nodesCoordinator.ChanceComputer - PubKeyConverter core.PubkeyConverter - EnableEpochsHandler common.EnableEpochsHandler -} - -// CreateCoreComponents creates core components needed for header verification -func CreateCoreComponents( - ratingsConfig *data.RatingsConfig, - networkConfig *data.NetworkConfig, - enableEpochsConfig *data.EnableEpochsConfig, -) (*coreComponents, error) { - marshalizer, err := marshalizerFactory.NewMarshalizer(marshalizerType) - if err != nil { - return nil, err - } - - hasher, err := hasherFactory.NewHasher(hasherType) - if err != nil { - return nil, err - } - - rater, err := createRater(ratingsConfig, networkConfig) - if err != nil { - return nil, err - } - - converter, err := pubkeyConverter.NewHexPubkeyConverter(validatorHexPubKeyLength) - if err != nil { - return nil, err - } - - enableEpochsHandler, err := enablers.NewEnableEpochsHandler(enableEpochsConfig.EnableEpochs, &disabled.EpochNotifier{}) - if err != nil { - return nil, err - } - - return &coreComponents{ - Marshaller: marshalizer, - Hasher: hasher, - Rater: rater, - PubKeyConverter: converter, - EnableEpochsHandler: enableEpochsHandler, - }, nil -} - -func createRater(rc *data.RatingsConfig, nc *data.NetworkConfig) (nodesCoordinator.ChanceComputer, error) { - ratingsConfig := createRatingsConfig(rc) - - ratingDataArgs := rating.RatingsDataArg{ - Config: ratingsConfig, - ShardConsensusSize: uint32(nc.ShardConsensusGroupSize), - MetaConsensusSize: nc.MetaConsensusGroup, - ShardMinNodes: nc.NumNodesInShard, - MetaMinNodes: nc.NumMetachainNodes, - RoundDurationMiliseconds: uint64(nc.RoundDuration), - } - - ratingsData, err := rating.NewRatingsData(ratingDataArgs) - if err != nil { - return nil, err - } - - rater, err := rating.NewBlockSigningRater(ratingsData) - if err != nil { - return nil, err - } - - return rater, nil -} - -func createRatingsConfig(rd *data.RatingsConfig) config.RatingsConfig { - selectionChances := make([]*config.SelectionChance, len(rd.GeneralSelectionChances)) - for i, v := range rd.GeneralSelectionChances { - selectionChance := &config.SelectionChance{ - MaxThreshold: v.MaxThreshold, - ChancePercent: v.ChancePercent, - } - selectionChances[i] = selectionChance - } - - general := config.General{ - StartRating: rd.GeneralStartRating, - MaxRating: rd.GeneralMaxRating, - MinRating: rd.GeneralMinRating, - SignedBlocksThreshold: rd.GeneralSignedBlocksThreshold, - SelectionChances: selectionChances, - } - - shardChain := config.ShardChain{ - RatingSteps: config.RatingSteps{ - HoursToMaxRatingFromStartRating: rd.ShardchainHoursToMaxRatingFromStartRating, - ProposerValidatorImportance: rd.ShardchainProposerValidatorImportance, - ProposerDecreaseFactor: rd.ShardchainProposerDecreaseFactor, - ValidatorDecreaseFactor: rd.ShardchainValidatorDecreaseFactor, - ConsecutiveMissedBlocksPenalty: rd.ShardchainConsecutiveMissedBlocksPenalty, - }, - } - - metaChain := config.MetaChain{ - RatingSteps: config.RatingSteps{ - HoursToMaxRatingFromStartRating: rd.MetachainHoursToMaxRatingFromStartRating, - ProposerValidatorImportance: rd.MetachainProposerValidatorImportance, - ProposerDecreaseFactor: rd.MetachainProposerDecreaseFactor, - ValidatorDecreaseFactor: rd.MetachainValidatorDecreaseFactor, - ConsecutiveMissedBlocksPenalty: rd.MetachainConsecutiveMissedBlocksPenalty, - }, - } - - ratingsConfig := config.RatingsConfig{ - General: general, - ShardChain: shardChain, - MetaChain: metaChain, - PeerHonesty: config.PeerHonestyConfig{}, - } - - return ratingsConfig -} diff --git a/mx-sdk-go-old/headerCheck/factory/cryptoComponents.go b/mx-sdk-go-old/headerCheck/factory/cryptoComponents.go deleted file mode 100644 index 5821a457..00000000 --- a/mx-sdk-go-old/headerCheck/factory/cryptoComponents.go +++ /dev/null @@ -1,48 +0,0 @@ -package factory - -import ( - "github.com/multiversx/mx-chain-core-go/hashing/blake2b" - crypto "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-chain-crypto-go/signing" - disabledSig "github.com/multiversx/mx-chain-crypto-go/signing/disabled/singlesig" - "github.com/multiversx/mx-chain-crypto-go/signing/mcl" - mclMultiSig "github.com/multiversx/mx-chain-crypto-go/signing/mcl/multisig" - "github.com/multiversx/mx-chain-crypto-go/signing/multisig" -) - -type cryptoComponents struct { - KeyGen crypto.KeyGenerator - MultiSig crypto.MultiSigner - SingleSig crypto.SingleSigner - PublicKey crypto.PublicKey -} - -// CreateCryptoComponents creates crypto components needed for header verification -func CreateCryptoComponents() (*cryptoComponents, error) { - blockSignKeyGen := signing.NewKeyGenerator(mcl.NewSuiteBLS12()) - - interceptSingleSigner := &disabledSig.DisabledSingleSig{} - - multisigHasher, err := blake2b.NewBlake2bWithSize(mclMultiSig.HasherOutputSize) - if err != nil { - return nil, err - } - - // dummy key - _, publicKey := blockSignKeyGen.GeneratePair() - - multiSigner, err := multisig.NewBLSMultisig( - &mclMultiSig.BlsMultiSigner{Hasher: multisigHasher}, - blockSignKeyGen, - ) - if err != nil { - return nil, err - } - - return &cryptoComponents{ - KeyGen: blockSignKeyGen, - SingleSig: interceptSingleSigner, - MultiSig: multiSigner, - PublicKey: publicKey, - }, nil -} diff --git a/mx-sdk-go-old/headerCheck/factory/nodesCoordinator.go b/mx-sdk-go-old/headerCheck/factory/nodesCoordinator.go deleted file mode 100644 index 01a5c1a8..00000000 --- a/mx-sdk-go-old/headerCheck/factory/nodesCoordinator.go +++ /dev/null @@ -1,137 +0,0 @@ -package factory - -import ( - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/data/endProcess" - crypto "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-chain-go/common" - "github.com/multiversx/mx-chain-go/config" - "github.com/multiversx/mx-chain-go/dataRetriever/dataPool" - "github.com/multiversx/mx-chain-go/sharding/nodesCoordinator" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/disabled" -) - -const ( - defaultSelectionChances = uint32(1) -) - -// CreateNodesCoordinator creates nodes coordinator which will be used for header verification -func CreateNodesCoordinator( - coreComp *coreComponents, - networkConfig *data.NetworkConfig, - enableEpochsConfig *data.EnableEpochsConfig, - publicKey crypto.PublicKey, - genesisNodesConfig *data.GenesisNodes, -) (nodesCoordinator.EpochsConfigUpdateHandler, error) { - eligibleValidators, err := generateGenesisNodes(coreComp.PubKeyConverter, genesisNodesConfig.Eligible) - if err != nil { - return nil, err - } - - waitingValidators, err := generateGenesisNodes(coreComp.PubKeyConverter, genesisNodesConfig.Waiting) - if err != nil { - return nil, err - } - - argsNodesShuffler := createArgsNodesShuffler(enableEpochsConfig, networkConfig, coreComp.EnableEpochsHandler) - nodeShuffler, err := nodesCoordinator.NewHashValidatorsShuffler(argsNodesShuffler) - if err != nil { - return nil, err - } - - publicKeyBytes, err := publicKey.ToByteArray() - if err != nil { - return nil, err - } - - initialEpoch := uint32(0) - arguments := nodesCoordinator.ArgNodesCoordinator{ - ShardConsensusGroupSize: int(networkConfig.ShardConsensusGroupSize), - MetaConsensusGroupSize: int(networkConfig.MetaConsensusGroup), - Marshalizer: coreComp.Marshaller, - Hasher: coreComp.Hasher, - Shuffler: nodeShuffler, - EpochStartNotifier: &disabled.EpochStartNotifier{}, - BootStorer: &disabled.Storer{}, - ShardIDAsObserver: 0, - NbShards: networkConfig.NumShardsWithoutMeta, - EligibleNodes: eligibleValidators, - WaitingNodes: waitingValidators, - SelfPublicKey: publicKeyBytes, - Epoch: initialEpoch, - StartEpoch: 0, - ConsensusGroupCache: &disabled.Cache{}, - ShuffledOutHandler: &disabled.ShuffledOutHandler{}, - ChanStopNode: make(chan endProcess.ArgEndProcess), - NodeTypeProvider: &disabled.NodeTypeProvider{}, - IsFullArchive: false, - EnableEpochsHandler: coreComp.EnableEpochsHandler, - ValidatorInfoCacher: dataPool.NewCurrentEpochValidatorInfoPool(), - } - - baseNodesCoordinator, err := nodesCoordinator.NewIndexHashedNodesCoordinator(arguments) - if err != nil { - return nil, err - } - - nd, err := nodesCoordinator.NewIndexHashedNodesCoordinatorWithRater(baseNodesCoordinator, coreComp.Rater) - if err != nil { - return nil, err - } - - return nd, nil -} - -func generateGenesisNodes(converter core.PubkeyConverter, nodesConfig map[uint32][]string) (map[uint32][]nodesCoordinator.Validator, error) { - validatorsMap := make(map[uint32][]nodesCoordinator.Validator) - - for shardID, nodesPubKeys := range nodesConfig { - validators := make([]nodesCoordinator.Validator, 0, len(nodesPubKeys)) - for i, pubKey := range nodesPubKeys { - pubKeyBytes, err := converter.Decode(pubKey) - if err != nil { - return nil, err - } - - validator, err := nodesCoordinator.NewValidator(pubKeyBytes, defaultSelectionChances, uint32(i)) - if err != nil { - return nil, err - } - - validators = append(validators, validator) - } - validatorsMap[shardID] = validators - } - - return validatorsMap, nil -} - -func createArgsNodesShuffler( - eec *data.EnableEpochsConfig, - networkConfig *data.NetworkConfig, - enableEpochsHandler common.EnableEpochsHandler, -) *nodesCoordinator.NodesShufflerArgs { - maxNodesChangeConfigs := make([]config.MaxNodesChangeConfig, 0) - for _, conf := range eec.EnableEpochs.MaxNodesChangeEnableEpoch { - maxNodesChangeConfig := config.MaxNodesChangeConfig{ - EpochEnable: conf.EpochEnable, - MaxNumNodes: conf.MaxNumNodes, - NodesToShufflePerShard: conf.NodesToShufflePerShard, - } - - maxNodesChangeConfigs = append(maxNodesChangeConfigs, maxNodesChangeConfig) - } - - argsNodesShuffler := &nodesCoordinator.NodesShufflerArgs{ - NodesShard: networkConfig.NumNodesInShard, - NodesMeta: networkConfig.NumMetachainNodes, - Hysteresis: networkConfig.Hysteresys, - Adaptivity: networkConfig.Adaptivity, - ShuffleBetweenShards: true, - MaxNodesEnableConfig: maxNodesChangeConfigs, - EnableEpochsHandler: enableEpochsHandler, - } - - return argsNodesShuffler -} diff --git a/mx-sdk-go-old/headerCheck/headerCheck.go b/mx-sdk-go-old/headerCheck/headerCheck.go deleted file mode 100644 index 80d2266e..00000000 --- a/mx-sdk-go-old/headerCheck/headerCheck.go +++ /dev/null @@ -1,122 +0,0 @@ -package headerCheck - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - coreData "github.com/multiversx/mx-chain-core-go/data" - "github.com/multiversx/mx-chain-go/sharding/nodesCoordinator" - logger "github.com/multiversx/mx-chain-logger-go" -) - -var log = logger.GetOrCreate("mx-sdk-go/headerCheck") - -// ArgsHeaderVerifier holds all dependencies required by headerVerifier in -// order to create a new instance -type ArgsHeaderVerifier struct { - HeaderHandler RawHeaderHandler - HeaderSigVerifier HeaderSigVerifierHandler - NodesCoordinator nodesCoordinator.EpochsConfigUpdateHandler -} - -type headerVerifier struct { - rawHeaderHandler RawHeaderHandler - headerSigVerifier HeaderSigVerifierHandler - nodesCoordinator nodesCoordinator.EpochsConfigUpdateHandler -} - -// NewHeaderVerifier creates new instance of headerVerifier -func NewHeaderVerifier(args ArgsHeaderVerifier) (*headerVerifier, error) { - err := checkArguments(args) - if err != nil { - return nil, err - } - - return &headerVerifier{ - rawHeaderHandler: args.HeaderHandler, - headerSigVerifier: args.HeaderSigVerifier, - nodesCoordinator: args.NodesCoordinator, - }, nil -} - -func checkArguments(arguments ArgsHeaderVerifier) error { - if check.IfNil(arguments.HeaderHandler) { - return ErrNilRawHeaderHandler - } - if check.IfNil(arguments.NodesCoordinator) { - return ErrNilNodesCoordinator - } - if check.IfNil(arguments.HeaderSigVerifier) { - return ErrNilHeaderSigVerifier - } - - return nil -} - -// VerifyHeaderSignatureByHash verifies whether a header signature matches by providing -// the hash and shard where the header belongs to -func (hch *headerVerifier) VerifyHeaderSignatureByHash(ctx context.Context, shardId uint32, hash string) (bool, error) { - header, err := hch.fetchHeaderByHashAndShard(ctx, shardId, hash) - if err != nil { - return false, err - } - - headerEpoch := header.GetEpoch() - log.Debug("fetched header in", "epoch", headerEpoch) - - if !hch.nodesCoordinator.IsEpochInConfig(headerEpoch) { - log.Info("nodes config is set for epoch", "epoch", headerEpoch) - errUpdate := hch.updateNodesConfigPerEpoch(ctx, headerEpoch) - if errUpdate != nil { - return false, errUpdate - } - } - - err = hch.headerSigVerifier.VerifySignature(header) - if err != nil { - return false, err - } - - return true, nil -} - -func (hch *headerVerifier) fetchHeaderByHashAndShard(ctx context.Context, shardId uint32, hash string) (coreData.HeaderHandler, error) { - var err error - var header coreData.HeaderHandler - - if shardId == core.MetachainShardId { - header, err = hch.rawHeaderHandler.GetMetaBlockByHash(ctx, hash) - if err != nil { - return nil, err - } - } else { - header, err = hch.rawHeaderHandler.GetShardBlockByHash(ctx, shardId, hash) - if err != nil { - return nil, err - } - } - - return header, nil -} - -func (hch *headerVerifier) updateNodesConfigPerEpoch(ctx context.Context, epoch uint32) error { - log.Debug("epoch", epoch, "not in cache") - - validatorInfo, randomness, err := hch.rawHeaderHandler.GetValidatorsInfoPerEpoch(ctx, epoch) - if err != nil { - return err - } - - err = hch.nodesCoordinator.SetNodesConfigFromValidatorsInfo(epoch, randomness, validatorInfo) - if err != nil { - return err - } - - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (hch *headerVerifier) IsInterfaceNil() bool { - return hch == nil -} diff --git a/mx-sdk-go-old/headerCheck/headerCheckFactory.go b/mx-sdk-go-old/headerCheck/headerCheckFactory.go deleted file mode 100644 index abb650ba..00000000 --- a/mx-sdk-go-old/headerCheck/headerCheckFactory.go +++ /dev/null @@ -1,103 +0,0 @@ -package headerCheck - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-go/factory/crypto" - "github.com/multiversx/mx-chain-go/process/headerCheck" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/disabled" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/headerCheck/factory" -) - -// NewHeaderCheckHandler will create all components needed for header -// verification and returns the header verifier component. It behaves like a -// main factory for header verification components -func NewHeaderCheckHandler( - proxy Proxy, - enableEpochsConfig *data.EnableEpochsConfig, -) (HeaderVerifier, error) { - if check.IfNil(proxy) { - return nil, ErrNilProxy - } - - networkConfig, err := proxy.GetNetworkConfig(context.Background()) - if err != nil { - return nil, err - } - - ratingsConfig, err := proxy.GetRatingsConfig(context.Background()) - if err != nil { - return nil, err - } - - coreComp, err := factory.CreateCoreComponents(ratingsConfig, networkConfig, enableEpochsConfig) - if err != nil { - return nil, err - } - - cryptoComp, err := factory.CreateCryptoComponents() - if err != nil { - return nil, err - } - - args := crypto.MultiSigArgs{ - MultiSigHasherType: "blake2b", - BlSignKeyGen: cryptoComp.KeyGen, - ConsensusType: "bls", - ImportModeNoSigCheck: false, - } - - multiSignerContainer, err := crypto.NewMultiSignerContainer(args, enableEpochsConfig.EnableEpochs.BLSMultiSignerEnableEpoch) - if err != nil { - return nil, err - } - - genesisNodesConfig, err := proxy.GetGenesisNodesPubKeys(context.Background()) - if err != nil { - return nil, err - } - - nodesCoordinator, err := factory.CreateNodesCoordinator( - coreComp, - networkConfig, - enableEpochsConfig, - cryptoComp.PublicKey, - genesisNodesConfig, - ) - if err != nil { - return nil, err - } - - headerSigArgs := &headerCheck.ArgsHeaderSigVerifier{ - Marshalizer: coreComp.Marshaller, - Hasher: coreComp.Hasher, - NodesCoordinator: nodesCoordinator, - MultiSigContainer: multiSignerContainer, - SingleSigVerifier: cryptoComp.SingleSig, - KeyGen: cryptoComp.KeyGen, - FallbackHeaderValidator: &disabled.FallBackHeaderValidator{}, - } - headerSigVerifier, err := headerCheck.NewHeaderSigVerifier(headerSigArgs) - if err != nil { - return nil, err - } - - rawHeaderHandlerInstance, err := NewRawHeaderHandler(proxy, coreComp.Marshaller) - if err != nil { - return nil, err - } - - headerVerifierArgs := ArgsHeaderVerifier{ - HeaderHandler: rawHeaderHandlerInstance, - HeaderSigVerifier: headerSigVerifier, - NodesCoordinator: nodesCoordinator, - } - headerVerifierInstance, err := NewHeaderVerifier(headerVerifierArgs) - if err != nil { - return nil, err - } - - return headerVerifierInstance, nil -} diff --git a/mx-sdk-go-old/headerCheck/headerCheck_test.go b/mx-sdk-go-old/headerCheck/headerCheck_test.go deleted file mode 100644 index 7fc2c10b..00000000 --- a/mx-sdk-go-old/headerCheck/headerCheck_test.go +++ /dev/null @@ -1,195 +0,0 @@ -package headerCheck_test - -import ( - "context" - "errors" - "testing" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data" - "github.com/multiversx/mx-chain-core-go/data/block" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/headerCheck" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func createMockArgHeaderVerifier() headerCheck.ArgsHeaderVerifier { - return headerCheck.ArgsHeaderVerifier{ - HeaderHandler: &testsCommon.RawHeaderHandlerStub{}, - HeaderSigVerifier: &testsCommon.HeaderSigVerifierStub{}, - NodesCoordinator: &testsCommon.NodesCoordinatorStub{}, - } -} - -func TestNewHeaderVerifier(t *testing.T) { - t.Parallel() - - t.Run("nil raw header handler", func(t *testing.T) { - t.Parallel() - - args := createMockArgHeaderVerifier() - args.HeaderHandler = nil - hv, err := headerCheck.NewHeaderVerifier(args) - - assert.True(t, check.IfNil(hv)) - assert.True(t, errors.Is(err, headerCheck.ErrNilRawHeaderHandler)) - }) - t.Run("nil header sig verifier", func(t *testing.T) { - t.Parallel() - - args := createMockArgHeaderVerifier() - args.HeaderSigVerifier = nil - hv, err := headerCheck.NewHeaderVerifier(args) - - assert.True(t, check.IfNil(hv)) - assert.True(t, errors.Is(err, headerCheck.ErrNilHeaderSigVerifier)) - }) - t.Run("nil nodes coordinator", func(t *testing.T) { - t.Parallel() - - args := createMockArgHeaderVerifier() - args.NodesCoordinator = nil - hv, err := headerCheck.NewHeaderVerifier(args) - - assert.True(t, check.IfNil(hv)) - assert.True(t, errors.Is(err, headerCheck.ErrNilNodesCoordinator)) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgHeaderVerifier() - hv, err := headerCheck.NewHeaderVerifier(args) - - assert.False(t, check.IfNil(hv)) - assert.Nil(t, err) - }) -} - -func TestNewHeaderVerifier_VerifyHeaderSignatureByHash_ShouldFail(t *testing.T) { - t.Parallel() - - rawHeaderHandler := &testsCommon.RawHeaderHandlerStub{ - GetShardBlockByHashCalled: func(shardID uint32, hash string) (data.HeaderHandler, error) { - return &block.Header{Epoch: 1}, nil - }, - } - - expectedErr := errors.New("signature verifier error") - headerSigVerifier := &testsCommon.HeaderSigVerifierStub{ - VerifySignatureCalled: func(_ data.HeaderHandler) error { - return expectedErr - }, - } - args := createMockArgHeaderVerifier() - args.HeaderSigVerifier = headerSigVerifier - args.HeaderHandler = rawHeaderHandler - hv, err := headerCheck.NewHeaderVerifier(args) - require.Nil(t, err) - - status, err := hv.VerifyHeaderSignatureByHash(context.Background(), 0, "aaaa") - assert.False(t, status) - assert.True(t, errors.Is(expectedErr, err)) -} - -func TestNewHeaderVerifier_VerifyHeaderSignatureByHash_ShouldWork(t *testing.T) { - t.Parallel() - - rawHeaderHandler := &testsCommon.RawHeaderHandlerStub{ - GetShardBlockByHashCalled: func(shardID uint32, hash string) (data.HeaderHandler, error) { - return &block.Header{Epoch: 1}, nil - }, - } - - headerSigVerifier := &testsCommon.HeaderSigVerifierStub{ - VerifySignatureCalled: func(_ data.HeaderHandler) error { - return nil - }, - } - - args := createMockArgHeaderVerifier() - args.HeaderHandler = rawHeaderHandler - args.HeaderSigVerifier = headerSigVerifier - hv, err := headerCheck.NewHeaderVerifier(args) - require.Nil(t, err) - - status, err := hv.VerifyHeaderSignatureByHash(context.Background(), 0, "aaaa") - assert.Nil(t, err) - assert.True(t, status) -} - -func TestNewHeaderVerifier_FetchHeaderByHashAndShard_ShouldFail(t *testing.T) { - t.Parallel() - - t.Run("fail to get meta block", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("fail to fetch meta block") - rawHeaderHandler := &testsCommon.RawHeaderHandlerStub{ - GetMetaBlockByHashCalled: func(_ string) (data.MetaHeaderHandler, error) { - return nil, expectedErr - }, - } - args := createMockArgHeaderVerifier() - args.HeaderHandler = rawHeaderHandler - hv, _ := headerCheck.NewHeaderVerifier(args) - - header, err := hv.FetchHeaderByHashAndShard(context.Background(), core.MetachainShardId, "aaaa") - assert.Nil(t, header) - assert.True(t, errors.Is(expectedErr, err)) - }) - t.Run("fail to get shard block", func(t *testing.T) { - t.Parallel() - - expectedErr := errors.New("fail to fetch shard block") - rawHeaderHandler := &testsCommon.RawHeaderHandlerStub{ - GetShardBlockByHashCalled: func(_ uint32, _ string) (data.HeaderHandler, error) { - return nil, expectedErr - }, - } - args := createMockArgHeaderVerifier() - args.HeaderHandler = rawHeaderHandler - hv, _ := headerCheck.NewHeaderVerifier(args) - - header, err := hv.FetchHeaderByHashAndShard(context.Background(), 0, "aaaa") - assert.Nil(t, header) - assert.True(t, errors.Is(expectedErr, err)) - }) -} - -func TestNewHeaderVerifier_FetchHeaderByHashAndShard_ShouldWork(t *testing.T) { - t.Parallel() - - expectedMetaBlock := &block.MetaBlock{ - Nonce: 1, - Epoch: 1, - } - - expectedShardBlock := &block.Header{ - Nonce: 2, - Epoch: 2, - } - - rawHeaderHandler := &testsCommon.RawHeaderHandlerStub{ - GetMetaBlockByHashCalled: func(_ string) (data.MetaHeaderHandler, error) { - return expectedMetaBlock, nil - }, - GetShardBlockByHashCalled: func(_ uint32, _ string) (data.HeaderHandler, error) { - return expectedShardBlock, nil - }, - } - args := createMockArgHeaderVerifier() - args.HeaderHandler = rawHeaderHandler - - hv, err := headerCheck.NewHeaderVerifier(args) - require.Nil(t, err) - - shardBlock, err := hv.FetchHeaderByHashAndShard(context.Background(), 0, "aaaa") - assert.Nil(t, err) - assert.Equal(t, expectedShardBlock, shardBlock) - - metaBlock, err := hv.FetchHeaderByHashAndShard(context.Background(), core.MetachainShardId, "aaaa") - assert.Nil(t, err) - assert.Equal(t, expectedMetaBlock, metaBlock) -} diff --git a/mx-sdk-go-old/headerCheck/interface.go b/mx-sdk-go-old/headerCheck/interface.go deleted file mode 100644 index c916b75f..00000000 --- a/mx-sdk-go-old/headerCheck/interface.go +++ /dev/null @@ -1,44 +0,0 @@ -package headerCheck - -import ( - "context" - - coreData "github.com/multiversx/mx-chain-core-go/data" - "github.com/multiversx/mx-chain-go/state" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -// Proxy holds the behaviour needed for header verifier in order to interact with proxy -type Proxy interface { - GetNetworkConfig(ctx context.Context) (*data.NetworkConfig, error) - GetRatingsConfig(ctx context.Context) (*data.RatingsConfig, error) - GetEnableEpochsConfig(ctx context.Context) (*data.EnableEpochsConfig, error) - GetNonceAtEpochStart(ctx context.Context, shardId uint32) (uint64, error) - GetRawMiniBlockByHash(ctx context.Context, shardId uint32, hash string, epoch uint32) ([]byte, error) - GetRawBlockByNonce(ctx context.Context, shardId uint32, nonce uint64) ([]byte, error) - GetRawBlockByHash(ctx context.Context, shardId uint32, hash string) ([]byte, error) - GetRawStartOfEpochMetaBlock(ctx context.Context, epoch uint32) ([]byte, error) - GetGenesisNodesPubKeys(ctx context.Context) (*data.GenesisNodes, error) - GetValidatorsInfoByEpoch(ctx context.Context, epoch uint32) ([]*state.ShardValidatorInfo, error) - IsInterfaceNil() bool -} - -// RawHeaderHandler holds the behaviour needed to handler raw header data from proxy -type RawHeaderHandler interface { - GetMetaBlockByHash(ctx context.Context, hash string) (coreData.MetaHeaderHandler, error) - GetShardBlockByHash(ctx context.Context, shardId uint32, hash string) (coreData.HeaderHandler, error) - GetValidatorsInfoPerEpoch(ctx context.Context, epoch uint32) ([]*state.ShardValidatorInfo, []byte, error) - IsInterfaceNil() bool -} - -// HeaderVerifier defines the functions needed for verifying headers -type HeaderVerifier interface { - VerifyHeaderSignatureByHash(ctx context.Context, shardId uint32, hash string) (bool, error) - IsInterfaceNil() bool -} - -// HeaderSigVerifierHandler defines the functions needed to verify headers signature -type HeaderSigVerifierHandler interface { - VerifySignature(header coreData.HeaderHandler) error - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/headerCheck/rawHeaderHandler.go b/mx-sdk-go-old/headerCheck/rawHeaderHandler.go deleted file mode 100644 index 13638b39..00000000 --- a/mx-sdk-go-old/headerCheck/rawHeaderHandler.go +++ /dev/null @@ -1,105 +0,0 @@ -package headerCheck - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data" - "github.com/multiversx/mx-chain-core-go/data/block" - "github.com/multiversx/mx-chain-core-go/marshal" - "github.com/multiversx/mx-chain-go/process" - "github.com/multiversx/mx-chain-go/state" -) - -type rawHeaderHandler struct { - proxy Proxy - marshaller marshal.Marshalizer -} - -// NewRawHeaderHandler will create a new rawHeaderHandler instance -func NewRawHeaderHandler(proxy Proxy, marshaller marshal.Marshalizer) (*rawHeaderHandler, error) { - if check.IfNil(proxy) { - return nil, ErrNilProxy - } - if check.IfNil(marshaller) { - return nil, ErrNilMarshaller - } - - return &rawHeaderHandler{ - proxy: proxy, - marshaller: marshaller, - }, nil -} - -// GetMetaBlockByHash will return the MetaBlock based on the raw marshalized -// data from proxy -func (rh *rawHeaderHandler) GetMetaBlockByHash(ctx context.Context, hash string) (data.MetaHeaderHandler, error) { - metaBlockBytes, err := rh.proxy.GetRawBlockByHash(ctx, core.MetachainShardId, hash) - if err != nil { - return nil, err - } - - blockHeader := &block.MetaBlock{} - err = rh.marshaller.Unmarshal(blockHeader, metaBlockBytes) - if err != nil { - return nil, err - } - - return blockHeader, nil -} - -// GetShardBlockByHash will return the Header based on the raw marshalized data -// from proxy -func (rh *rawHeaderHandler) GetShardBlockByHash(ctx context.Context, shardId uint32, hash string) (data.HeaderHandler, error) { - headerBytes, err := rh.proxy.GetRawBlockByHash(ctx, shardId, hash) - if err != nil { - return nil, err - } - - blockHeader, err := process.UnmarshalShardHeader(rh.marshaller, headerBytes) - if err != nil { - return nil, err - } - - return blockHeader, nil -} - -// GetStartOfEpochMetaBlock will return the start of epoch metablock based on -// the raw marshalized data from proxy -func (rh *rawHeaderHandler) GetStartOfEpochMetaBlock(ctx context.Context, epoch uint32) (data.MetaHeaderHandler, error) { - metaBlockBytes, err := rh.proxy.GetRawStartOfEpochMetaBlock(ctx, epoch) - if err != nil { - return nil, err - } - - blockHeader := &block.MetaBlock{} - err = rh.marshaller.Unmarshal(blockHeader, metaBlockBytes) - if err != nil { - return nil, err - } - - return blockHeader, nil -} - -// GetValidatorsInfoPerEpoch will return validators info based on start of -// epoch metablock for a specific epoch -func (rh *rawHeaderHandler) GetValidatorsInfoPerEpoch(ctx context.Context, epoch uint32) ([]*state.ShardValidatorInfo, []byte, error) { - metaBlock, err := rh.GetStartOfEpochMetaBlock(ctx, epoch) - if err != nil { - return nil, nil, err - } - randomness := metaBlock.GetPrevRandSeed() - - validatorsInfoPerEpoch, err := rh.proxy.GetValidatorsInfoByEpoch(ctx, epoch) - if err != nil { - return nil, nil, err - } - - return validatorsInfoPerEpoch, randomness, nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (rh *rawHeaderHandler) IsInterfaceNil() bool { - return rh == nil -} diff --git a/mx-sdk-go-old/headerCheck/rawHeaderHandler_test.go b/mx-sdk-go-old/headerCheck/rawHeaderHandler_test.go deleted file mode 100644 index 025ba923..00000000 --- a/mx-sdk-go-old/headerCheck/rawHeaderHandler_test.go +++ /dev/null @@ -1,212 +0,0 @@ -package headerCheck_test - -import ( - "context" - "encoding/json" - "errors" - "testing" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/block" - "github.com/multiversx/mx-chain-go/state" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/headerCheck" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestNewRawHeaderHandler(t *testing.T) { - t.Parallel() - - t.Run("nil marshaller", func(t *testing.T) { - t.Parallel() - - rh, err := headerCheck.NewRawHeaderHandler(&testsCommon.ProxyStub{}, nil) - - assert.True(t, check.IfNil(rh)) - assert.True(t, errors.Is(err, headerCheck.ErrNilMarshaller)) - }) - t.Run("nil proxy", func(t *testing.T) { - t.Parallel() - - rh, err := headerCheck.NewRawHeaderHandler(nil, &testsCommon.MarshalizerStub{}) - - assert.True(t, check.IfNil(rh)) - assert.True(t, errors.Is(err, headerCheck.ErrNilProxy)) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - rh, err := headerCheck.NewRawHeaderHandler(&testsCommon.ProxyStub{}, &testsCommon.MarshalizerStub{}) - - assert.False(t, check.IfNil(rh)) - assert.Nil(t, err) - }) -} - -func TestGetMetaBlockByHash_ShouldFail(t *testing.T) { - t.Parallel() - - t.Run("proxy error", func(t *testing.T) { - expectedErr := errors.New("proxy err") - proxy := &testsCommon.ProxyStub{ - GetRawBlockByHashCalled: func(shardId uint32, hash string) ([]byte, error) { - return nil, expectedErr - }, - } - - rh, err := headerCheck.NewRawHeaderHandler(proxy, &testsCommon.MarshalizerMock{}) - require.Nil(t, err) - - _, err = rh.GetMetaBlockByHash(context.Background(), "dummy") - assert.NotNil(t, err) - assert.Equal(t, expectedErr, err) - }) - t.Run("marshaller error", func(t *testing.T) { - expectedErr := errors.New("unmarshall err") - marshaller := &testsCommon.MarshalizerStub{ - UnmarshalCalled: func(_ interface{}, _ []byte) error { - return expectedErr - }, - } - - rh, err := headerCheck.NewRawHeaderHandler(&testsCommon.ProxyStub{}, marshaller) - require.Nil(t, err) - - _, err = rh.GetMetaBlockByHash(context.Background(), "dummy") - assert.NotNil(t, err) - assert.Equal(t, expectedErr, err) - }) -} - -func TestGetMetaBlockByHash_ShouldWork(t *testing.T) { - t.Parallel() - - header := &block.MetaBlock{ - Nonce: 1, - Epoch: 1, - } - headerBytes, _ := json.Marshal(header) - - proxy := &testsCommon.ProxyStub{ - GetRawBlockByHashCalled: func(shardId uint32, hash string) ([]byte, error) { - return headerBytes, nil - }, - } - - rh, err := headerCheck.NewRawHeaderHandler(proxy, &testsCommon.MarshalizerMock{}) - require.Nil(t, err) - - metaBlock, err := rh.GetMetaBlockByHash(context.Background(), "dummy") - require.Nil(t, err) - - assert.Equal(t, metaBlock, header) -} - -func TestGetShardBlockByHash_ShouldFail(t *testing.T) { - t.Parallel() - - t.Run("proxy error", func(t *testing.T) { - expectedErr := errors.New("proxy err") - proxy := &testsCommon.ProxyStub{ - GetRawBlockByHashCalled: func(shardId uint32, hash string) ([]byte, error) { - return nil, expectedErr - }, - } - - rh, err := headerCheck.NewRawHeaderHandler(proxy, &testsCommon.MarshalizerMock{}) - require.Nil(t, err) - - _, err = rh.GetShardBlockByHash(context.Background(), 1, "dummy") - assert.NotNil(t, err) - assert.Equal(t, expectedErr, err) - }) - t.Run("marshaller error", func(t *testing.T) { - expectedErr := errors.New("unmarshall err") - marshaller := &testsCommon.MarshalizerStub{ - UnmarshalCalled: func(_ interface{}, _ []byte) error { - return expectedErr - }, - } - - rh, err := headerCheck.NewRawHeaderHandler(&testsCommon.ProxyStub{}, marshaller) - require.Nil(t, err) - - _, err = rh.GetShardBlockByHash(context.Background(), 1, "dummy") - assert.NotNil(t, err) - assert.Equal(t, expectedErr, err) - }) -} - -func TestGetShardBlockByHash_ShouldWork(t *testing.T) { - t.Parallel() - - header := &block.Header{ - Nonce: 1, - Epoch: 1, - } - headerBytes, _ := json.Marshal(header) - - proxy := &testsCommon.ProxyStub{ - GetRawBlockByHashCalled: func(shardId uint32, hash string) ([]byte, error) { - return headerBytes, nil - }, - } - - rh, err := headerCheck.NewRawHeaderHandler(proxy, &testsCommon.MarshalizerMock{}) - require.Nil(t, err) - - metaBlock, err := rh.GetShardBlockByHash(context.Background(), 1, "dummy") - require.Nil(t, err) - - assert.Equal(t, metaBlock, header) -} - -func TestGetValidatorsInfoPerEpoch_ShouldWork(t *testing.T) { - t.Parallel() - - miniBlockHeaders := []block.MiniBlockHeader{ - { - Hash: []byte("hash1"), - SenderShardID: 0, - ReceiverShardID: 1, - Type: block.PeerBlock, - }, - } - - expectedRandomness := []byte("prev rand seed") - - expEpoch := uint32(1) - metaBlock := &block.MetaBlock{ - Nonce: 1, - Epoch: expEpoch, - PrevRandSeed: expectedRandomness, - MiniBlockHeaders: miniBlockHeaders, - } - metaBlockBytes, _ := json.Marshal(metaBlock) - - vid := &state.ShardValidatorInfo{ - PublicKey: []byte("public key 1"), - ShardId: 0, - } - - expectedValidatorsInfo := []*state.ShardValidatorInfo{vid} - - proxy := &testsCommon.ProxyStub{ - GetRawStartOfEpochMetaBlockCalled: func(epoch uint32) ([]byte, error) { - return metaBlockBytes, nil - }, - GetValidatorsInfoByEpochCalled: func(ctx context.Context, epoch uint32) ([]*state.ShardValidatorInfo, error) { - assert.Equal(t, expEpoch, epoch) - return expectedValidatorsInfo, nil - }, - } - - rh, err := headerCheck.NewRawHeaderHandler(proxy, &testsCommon.MarshalizerMock{}) - require.Nil(t, err) - - validatorInfo, randomness, err := rh.GetValidatorsInfoPerEpoch(context.Background(), 1) - assert.Nil(t, err) - assert.Equal(t, expectedRandomness, randomness) - assert.Equal(t, expectedValidatorsInfo, validatorInfo) -} diff --git a/mx-sdk-go-old/interactors/errors.go b/mx-sdk-go-old/interactors/errors.go deleted file mode 100644 index e58275ed..00000000 --- a/mx-sdk-go-old/interactors/errors.go +++ /dev/null @@ -1,36 +0,0 @@ -package interactors - -import "errors" - -// ErrNilProxy signals that a nil proxy was provided -var ErrNilProxy = errors.New("nil proxy") - -// ErrNilTxBuilder signals that a nil transaction builder was provided -var ErrNilTxBuilder = errors.New("nil tx builder") - -// ErrInvalidValue signals that an invalid value was provided -var ErrInvalidValue = errors.New("invalid value") - -// ErrWrongPassword signals that a wrong password was provided -var ErrWrongPassword = errors.New("wrong password") - -// ErrDifferentAccountRecovered signals that a different account was recovered -var ErrDifferentAccountRecovered = errors.New("different account recovered") - -// ErrInvalidPemFile signals that an invalid pem file was provided -var ErrInvalidPemFile = errors.New("invalid .PEM file") - -// ErrNilAddress signals that the provided address is nil -var ErrNilAddress = errors.New("nil address") - -// ErrNilTransaction signals that provided transaction is nil -var ErrNilTransaction = errors.New("nil transaction") - -// ErrTxAlreadySent signals that a transaction was already sent -var ErrTxAlreadySent = errors.New("transaction already sent") - -// ErrGapNonce signals that a gap nonce between the lowest nonce of the transactions from the cache and the blockchain nonce has been detected -var ErrGapNonce = errors.New("gap nonce detected") - -// ErrNilAddressNonceHandlerCreator signals that a nil AddressNonceHandlerCreator was provided -var ErrNilAddressNonceHandlerCreator = errors.New("nil AddressNonceHandlerCreator") diff --git a/mx-sdk-go-old/interactors/interface.go b/mx-sdk-go-old/interactors/interface.go deleted file mode 100644 index 65338a51..00000000 --- a/mx-sdk-go-old/interactors/interface.go +++ /dev/null @@ -1,57 +0,0 @@ -package interactors - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -// Proxy holds the primitive functions that the multiversx proxy engine supports & implements -// dependency inversion: blockchain package is considered inner business logic, this package is considered "plugin" -type Proxy interface { - GetNetworkConfig(ctx context.Context) (*data.NetworkConfig, error) - GetAccount(ctx context.Context, address core.AddressHandler) (*data.Account, error) - SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) - SendTransactions(ctx context.Context, txs []*transaction.FrontendTransaction) ([]string, error) - IsInterfaceNil() bool -} - -// TxBuilder defines the component able to build & sign a transaction -type TxBuilder interface { - ApplySignature(cryptoHolder core.CryptoComponentsHolder, tx *transaction.FrontendTransaction) error - IsInterfaceNil() bool -} - -// AddressNonceHandler defines the component able to handler address nonces -type AddressNonceHandler interface { - ApplyNonceAndGasPrice(ctx context.Context, tx *transaction.FrontendTransaction) error - ReSendTransactionsIfRequired(ctx context.Context) error - SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) - DropTransactions() - IsInterfaceNil() bool -} - -// TransactionNonceHandlerV1 defines the component able to manage transaction nonces -type TransactionNonceHandlerV1 interface { - GetNonce(ctx context.Context, address core.AddressHandler) (uint64, error) - SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) - ForceNonceReFetch(address core.AddressHandler) error - Close() error - IsInterfaceNil() bool -} - -// TransactionNonceHandlerV2 defines the component able to apply nonce for a given frontend transaction -type TransactionNonceHandlerV2 interface { - ApplyNonceAndGasPrice(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error - SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) - Close() error - IsInterfaceNil() bool -} - -// AddressNonceHandlerCreator defines the component able to create AddressNonceHandler instances -type AddressNonceHandlerCreator interface { - Create(proxy Proxy, address core.AddressHandler) (AddressNonceHandler, error) - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV1/addressNonceHandler.go b/mx-sdk-go-old/interactors/nonceHandlerV1/addressNonceHandler.go deleted file mode 100644 index bfc237d6..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV1/addressNonceHandler.go +++ /dev/null @@ -1,133 +0,0 @@ -package nonceHandlerV1 - -import ( - "bytes" - "context" - "sync" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -// addressNonceHandler is the handler used for one address. It is able to handle the current -// nonce as max(current_stored_nonce, account_nonce). After each call of the getNonce function -// the current_stored_nonce is incremented. This will prevent "nonce too low in transaction" -// errors on the node interceptor. To prevent the "nonce too high in transaction" error, -// a retrial mechanism is implemented. This struct is able to store all sent transactions, -// having a function that sweeps the map in order to resend a transaction or remove them -// because they were executed. This struct is concurrent safe. -type addressNonceHandler struct { - mut sync.RWMutex - address sdkCore.AddressHandler - proxy interactors.Proxy - computedNonceWasSet bool - computedNonce uint64 - transactions map[uint64]*transaction.FrontendTransaction -} - -func newAddressNonceHandler(proxy interactors.Proxy, address sdkCore.AddressHandler) *addressNonceHandler { - return &addressNonceHandler{ - address: address, - proxy: proxy, - transactions: make(map[uint64]*transaction.FrontendTransaction), - } -} - -func (anh *addressNonceHandler) getNonceUpdatingCurrent(ctx context.Context) (uint64, error) { - account, err := anh.proxy.GetAccount(ctx, anh.address) - if err != nil { - return 0, err - } - - anh.mut.Lock() - defer anh.mut.Unlock() - - if !anh.computedNonceWasSet { - anh.computedNonce = account.Nonce - anh.computedNonceWasSet = true - - return anh.computedNonce, nil - } - - anh.computedNonce++ - - return core.MaxUint64(anh.computedNonce, account.Nonce), nil -} - -func (anh *addressNonceHandler) reSendTransactionsIfRequired(ctx context.Context) error { - account, err := anh.proxy.GetAccount(ctx, anh.address) - if err != nil { - return err - } - - anh.mut.Lock() - if account.Nonce == anh.computedNonce { - anh.transactions = make(map[uint64]*transaction.FrontendTransaction) - anh.mut.Unlock() - - return nil - } - - resendableTxs := make([]*transaction.FrontendTransaction, 0, len(anh.transactions)) - for txNonce, tx := range anh.transactions { - if txNonce <= account.Nonce { - delete(anh.transactions, txNonce) - continue - } - - resendableTxs = append(resendableTxs, tx) - } - anh.mut.Unlock() - - if len(resendableTxs) == 0 { - return nil - } - - hashes, err := anh.proxy.SendTransactions(ctx, resendableTxs) - if err != nil { - return err - } - - log.Debug("resent transactions", "address", anh.address.AddressAsBech32String(), "total txs", len(resendableTxs), "received hashes", len(hashes)) - - return nil -} - -func (anh *addressNonceHandler) sendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - anh.mut.Lock() - anh.transactions[tx.Nonce] = tx - anh.mut.Unlock() - - return anh.proxy.SendTransaction(ctx, tx) -} - -func (anh *addressNonceHandler) isTxAlreadySent(tx *transaction.FrontendTransaction) bool { - anh.mut.RLock() - defer anh.mut.RUnlock() - for _, oldTx := range anh.transactions { - isTheSameReceiverDataValue := oldTx.Receiver == tx.Receiver && - bytes.Equal(oldTx.Data, tx.Data) && - oldTx.Value == tx.Value - if isTheSameReceiverDataValue { - return true - } - } - return false -} - -func (anh *addressNonceHandler) decrementComputedNonce() { - anh.mut.Lock() - defer anh.mut.Unlock() - if anh.computedNonce > 0 { - anh.computedNonce-- - } -} - -func (anh *addressNonceHandler) markReFetchNonce() { - anh.mut.Lock() - defer anh.mut.Unlock() - - anh.computedNonceWasSet = false -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler.go b/mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler.go deleted file mode 100644 index 8e8430c7..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler.go +++ /dev/null @@ -1,172 +0,0 @@ -package nonceHandlerV1 - -import ( - "context" - "fmt" - "sync" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -const minimumIntervalToResend = time.Second - -var log = logger.GetOrCreate("mx-sdk-go/interactors/nonceHandlerV1") - -// nonceTransactionsHandlerV1 is the handler used for an unlimited number of addresses. -// It basically contains a map of addressNonceHandler, creating new entries on the first -// access of a provided address. This struct delegates all the operations on the right -// instance of addressNonceHandler. It also starts a go routine that will periodically -// try to resend "stuck transactions" and to clean the inner state. The recommended resend -// interval is 1 minute. The Close method should be called whenever the current instance of -// nonceTransactionsHandlerV1 should be terminated and collected by the GC. -// This struct is concurrent safe. -type nonceTransactionsHandlerV1 struct { - proxy interactors.Proxy - mutHandlers sync.Mutex - handlers map[string]*addressNonceHandler - checkForDuplicates bool - cancelFunc func() - intervalToResend time.Duration -} - -// NewNonceTransactionHandlerV1 will create a new instance of the nonceTransactionsHandlerV1. It requires a Proxy implementation -// and an interval at which the transactions sent are rechecked and eventually, resent. -// checkForDuplicates set as true will prevent sending a transaction with the same receiver, value and data. -func NewNonceTransactionHandlerV1(proxy interactors.Proxy, intervalToResend time.Duration, checkForDuplicates bool) (*nonceTransactionsHandlerV1, error) { - if check.IfNil(proxy) { - return nil, interactors.ErrNilProxy - } - if intervalToResend < minimumIntervalToResend { - return nil, fmt.Errorf("%w for intervalToResend in NewNonceTransactionHandlerV1", interactors.ErrInvalidValue) - } - - nth := &nonceTransactionsHandlerV1{ - proxy: proxy, - handlers: make(map[string]*addressNonceHandler), - intervalToResend: intervalToResend, - checkForDuplicates: checkForDuplicates, - } - - ctx, cancelFunc := context.WithCancel(context.Background()) - nth.cancelFunc = cancelFunc - go nth.resendTransactionsLoop(ctx, intervalToResend) - - return nth, nil -} - -// GetNonce will return the nonce for the provided address -func (nth *nonceTransactionsHandlerV1) GetNonce(ctx context.Context, address core.AddressHandler) (uint64, error) { - if check.IfNil(address) { - return 0, interactors.ErrNilAddress - } - - anh := nth.getOrCreateAddressNonceHandler(address) - - return anh.getNonceUpdatingCurrent(ctx) -} - -func (nth *nonceTransactionsHandlerV1) getOrCreateAddressNonceHandler(address core.AddressHandler) *addressNonceHandler { - nth.mutHandlers.Lock() - addressAsString := string(address.AddressBytes()) - anh, found := nth.handlers[addressAsString] - if !found { - anh = newAddressNonceHandler(nth.proxy, address) - nth.handlers[addressAsString] = anh - } - nth.mutHandlers.Unlock() - - return anh -} - -// SendTransaction will store and send the provided transaction -func (nth *nonceTransactionsHandlerV1) SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - if tx == nil { - return "", interactors.ErrNilTransaction - } - - addrAsBech32 := tx.Sender - addressHandler, err := data.NewAddressFromBech32String(addrAsBech32) - if err != nil { - return "", fmt.Errorf("%w while creating address handler for string %s", err, addrAsBech32) - } - - anh := nth.getOrCreateAddressNonceHandler(addressHandler) - if nth.checkForDuplicates && anh.isTxAlreadySent(tx) { - // TODO: add gas comparation logic EN-11887 - anh.decrementComputedNonce() - return "", interactors.ErrTxAlreadySent - } - sentHash, err := anh.sendTransaction(ctx, tx) - if err != nil { - return "", fmt.Errorf("%w while sending transaction for address %s", err, addrAsBech32) - } - - return sentHash, nil -} - -func (nth *nonceTransactionsHandlerV1) resendTransactionsLoop(ctx context.Context, intervalToResend time.Duration) { - timer := time.NewTimer(intervalToResend) - defer timer.Stop() - - for { - timer.Reset(intervalToResend) - - select { - case <-timer.C: - nth.resendTransactions(ctx) - case <-ctx.Done(): - log.Debug("finishing nonceTransactionsHandlerV1.resendTransactionsLoop...") - return - } - } -} - -func (nth *nonceTransactionsHandlerV1) resendTransactions(ctx context.Context) { - nth.mutHandlers.Lock() - defer nth.mutHandlers.Unlock() - - for _, anh := range nth.handlers { - select { - case <-ctx.Done(): - log.Debug("finishing nonceTransactionsHandlerV1.resendTransactions...") - return - default: - } - - resendCtx, cancel := context.WithTimeout(ctx, nth.intervalToResend) - err := anh.reSendTransactionsIfRequired(resendCtx) - log.LogIfError(err) - cancel() - } -} - -// ForceNonceReFetch will mark the addressNonceHandler to re-fetch its nonce from the blockchain account. -// This should be only used in a fallback plan, when some transactions are completely lost (or due to a bug, not even sent in first time) -func (nth *nonceTransactionsHandlerV1) ForceNonceReFetch(address core.AddressHandler) error { - if check.IfNil(address) { - return interactors.ErrNilAddress - } - - anh := nth.getOrCreateAddressNonceHandler(address) - anh.markReFetchNonce() - - return nil -} - -// Close finishes the transactions resend go routine -func (nth *nonceTransactionsHandlerV1) Close() error { - nth.cancelFunc() - - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (nth *nonceTransactionsHandlerV1) IsInterfaceNil() bool { - return nth == nil -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler_test.go b/mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler_test.go deleted file mode 100644 index 785d2300..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV1/nonceTransactionsHandler_test.go +++ /dev/null @@ -1,471 +0,0 @@ -package nonceHandlerV1 - -import ( - "context" - "errors" - "strings" - "sync" - "sync/atomic" - "testing" - "time" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestNewNonceTransactionHandlerV1(t *testing.T) { - t.Parallel() - - nth, err := NewNonceTransactionHandlerV1(nil, time.Minute, false) - require.Nil(t, nth) - assert.Equal(t, interactors.ErrNilProxy, err) - - nth, err = NewNonceTransactionHandlerV1(&testsCommon.ProxyStub{}, time.Second-time.Nanosecond, false) - require.Nil(t, nth) - assert.True(t, errors.Is(err, interactors.ErrInvalidValue)) - assert.True(t, strings.Contains(err.Error(), "for intervalToResend in NewNonceTransactionHandlerV1")) - - nth, err = NewNonceTransactionHandlerV1(&testsCommon.ProxyStub{}, time.Minute, false) - require.NotNil(t, nth) - require.Nil(t, err) - - require.Nil(t, nth.Close()) -} - -func TestNonceTransactionsHandlerV1_GetNonce(t *testing.T) { - t.Parallel() - - testAddress, _ := data.NewAddressFromBech32String("erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht") - currentNonce := uint64(664) - - numCalls := 0 - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - numCalls++ - - return &data.Account{ - Nonce: currentNonce, - }, nil - }, - } - - nth, _ := NewNonceTransactionHandlerV1(proxy, time.Minute, false) - nonce, err := nth.GetNonce(context.Background(), nil) - assert.Equal(t, interactors.ErrNilAddress, err) - assert.Equal(t, uint64(0), nonce) - - nonce, err = nth.GetNonce(context.Background(), testAddress) - assert.Nil(t, err) - assert.Equal(t, currentNonce, nonce) - - nonce, err = nth.GetNonce(context.Background(), testAddress) - assert.Nil(t, err) - assert.Equal(t, currentNonce+1, nonce) - - assert.Equal(t, 2, numCalls) - - require.Nil(t, nth.Close()) -} - -func TestNonceTransactionsHandlerV1_SendMultipleTransactionsResendingEliminatingOne(t *testing.T) { - t.Parallel() - - testAddress, _ := data.NewAddressFromBech32String("erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht") - currentNonce := uint64(664) - - mutSentTransactions := sync.Mutex{} - numCalls := 0 - sentTransactions := make(map[int][]*transaction.FrontendTransaction) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionsCalled: func(txs []*transaction.FrontendTransaction) ([]string, error) { - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - sentTransactions[numCalls] = txs - numCalls++ - hashes := make([]string, len(txs)) - - return hashes, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - sentTransactions[numCalls] = []*transaction.FrontendTransaction{tx} - numCalls++ - - return "", nil - }, - } - - numTxs := 5 - nth, _ := NewNonceTransactionHandlerV1(proxy, time.Second*2, false) - txs := createMockTransactions(testAddress, numTxs, atomic.LoadUint64(¤tNonce)) - for i := 0; i < numTxs; i++ { - _, err := nth.SendTransaction(context.TODO(), txs[i]) - require.Nil(t, err) - } - - time.Sleep(time.Second * 3) - _ = nth.Close() - - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - numSentTransaction := 5 - numSentTransactions := 1 - assert.Equal(t, numSentTransaction+numSentTransactions, len(sentTransactions)) - for i := 0; i < numSentTransaction; i++ { - assert.Equal(t, 1, len(sentTransactions[i])) - } - assert.Equal(t, numTxs-1, len(sentTransactions[numSentTransaction])) // resend -} - -func TestNonceTransactionsHandlerV1_SendMultipleTransactionsResendingEliminatingAll(t *testing.T) { - t.Parallel() - - testAddress, _ := data.NewAddressFromBech32String("erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht") - currentNonce := uint64(664) - - mutSentTransactions := sync.Mutex{} - numCalls := 0 - sentTransactions := make(map[int][]*transaction.FrontendTransaction) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - sentTransactions[numCalls] = []*transaction.FrontendTransaction{tx} - numCalls++ - - return "", nil - }, - } - - numTxs := 5 - nth, _ := NewNonceTransactionHandlerV1(proxy, time.Second*2, false) - txs := createMockTransactions(testAddress, numTxs, atomic.LoadUint64(¤tNonce)) - for i := 0; i < numTxs; i++ { - _, err := nth.SendTransaction(context.Background(), txs[i]) - require.Nil(t, err) - } - - atomic.AddUint64(¤tNonce, uint64(numTxs)) - time.Sleep(time.Second * 3) - _ = nth.Close() - - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - //no resend operation was made because all transactions were executed (nonce was incremented) - assert.Equal(t, 5, len(sentTransactions)) - assert.Equal(t, 1, len(sentTransactions[0])) -} - -func TestNonceTransactionsHandlerV1_SendTransactionResendingEliminatingAll(t *testing.T) { - t.Parallel() - - testAddress, _ := data.NewAddressFromBech32String("erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht") - currentNonce := uint64(664) - - mutSentTransactions := sync.Mutex{} - numCalls := 0 - sentTransactions := make(map[int][]*transaction.FrontendTransaction) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - sentTransactions[numCalls] = []*transaction.FrontendTransaction{tx} - numCalls++ - - return "", nil - }, - } - - numTxs := 1 - nth, _ := NewNonceTransactionHandlerV1(proxy, time.Second*2, false) - txs := createMockTransactions(testAddress, numTxs, atomic.LoadUint64(¤tNonce)) - - hash, err := nth.SendTransaction(context.Background(), txs[0]) - require.Nil(t, err) - require.Equal(t, "", hash) - - atomic.AddUint64(¤tNonce, uint64(numTxs)) - time.Sleep(time.Second * 3) - _ = nth.Close() - - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - //no resend operation was made because all transactions were executed (nonce was incremented) - assert.Equal(t, 1, len(sentTransactions)) - assert.Equal(t, numTxs, len(sentTransactions[0])) -} - -func TestNonceTransactionsHandlerV1_SendTransactionErrors(t *testing.T) { - t.Parallel() - - testAddress, _ := data.NewAddressFromBech32String("erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht") - currentNonce := uint64(664) - - var errSent error - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - return "", errSent - }, - } - - numTxs := 1 - nth, _ := NewNonceTransactionHandlerV1(proxy, time.Second*2, false) - txs := createMockTransactions(testAddress, numTxs, atomic.LoadUint64(¤tNonce)) - - hash, err := nth.SendTransaction(context.Background(), nil) - require.Equal(t, interactors.ErrNilTransaction, err) - require.Equal(t, "", hash) - - errSent = errors.New("expected error") - - hash, err = nth.SendTransaction(context.Background(), txs[0]) - require.True(t, errors.Is(err, errSent)) - require.Equal(t, "", hash) -} - -func createMockTransactions(addr core.AddressHandler, numTxs int, startNonce uint64) []*transaction.FrontendTransaction { - txs := make([]*transaction.FrontendTransaction, 0, numTxs) - for i := 0; i < numTxs; i++ { - tx := &transaction.FrontendTransaction{ - Nonce: startNonce, - Value: "1", - Receiver: addr.AddressAsBech32String(), - Sender: addr.AddressAsBech32String(), - GasPrice: 100000, - GasLimit: 50000, - Data: nil, - Signature: "sig", - ChainID: "3", - Version: 1, - } - - txs = append(txs, tx) - startNonce++ - } - - return txs -} - -func TestNonceTransactionsHandlerV1_SendTransactionsWithGetNonce(t *testing.T) { - t.Parallel() - - testAddress, _ := data.NewAddressFromBech32String("erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht") - currentNonce := uint64(664) - - mutSentTransactions := sync.Mutex{} - numCalls := 0 - sentTransactions := make(map[int][]*transaction.FrontendTransaction) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - sentTransactions[numCalls] = []*transaction.FrontendTransaction{tx} - numCalls++ - - return "", nil - }, - } - - numTxs := 5 - nth, _ := NewNonceTransactionHandlerV1(proxy, time.Second*2, false) - txs := createMockTransactionsWithGetNonce(t, testAddress, 5, nth) - for i := 0; i < numTxs; i++ { - _, err := nth.SendTransaction(context.Background(), txs[i]) - require.Nil(t, err) - } - - atomic.AddUint64(¤tNonce, uint64(numTxs)) - time.Sleep(time.Second * 3) - _ = nth.Close() - - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - //no resend operation was made because all transactions were executed (nonce was incremented) - assert.Equal(t, numTxs, len(sentTransactions)) - assert.Equal(t, 1, len(sentTransactions[0])) -} - -func TestNonceTransactionsHandlerV1_SendDuplicateTransactions(t *testing.T) { - testAddress, _ := data.NewAddressFromBech32String("erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht") - currentNonce := uint64(664) - - numCalls := 0 - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - require.LessOrEqual(t, numCalls, 1) - currentNonce++ - return "", nil - }, - } - - nth, _ := NewNonceTransactionHandlerV1(proxy, time.Second*60, true) - - nonce, err := nth.GetNonce(context.Background(), testAddress) - require.Nil(t, err) - tx := &transaction.FrontendTransaction{ - Nonce: nonce, - Value: "1", - Receiver: testAddress.AddressAsBech32String(), - Sender: testAddress.AddressAsBech32String(), - GasPrice: 100000, - GasLimit: 50000, - Data: nil, - Signature: "sig", - ChainID: "3", - Version: 1, - } - _, err = nth.SendTransaction(context.Background(), tx) - require.Nil(t, err) - acc := nth.getOrCreateAddressNonceHandler(testAddress) - t.Run("after sending first tx, nonce shall increase", func(t *testing.T) { - require.Equal(t, acc.computedNonce+1, currentNonce) - }) - t.Run("sending the same tx, NonceTransactionHandler shall return ErrTxAlreadySent "+ - "and computedNonce shall not increase", func(t *testing.T) { - nonce, err = nth.GetNonce(context.Background(), testAddress) - _, err = nth.SendTransaction(context.Background(), tx) - require.Equal(t, err, interactors.ErrTxAlreadySent) - require.Equal(t, nonce, currentNonce) - require.Equal(t, acc.computedNonce+1, currentNonce) - }) - -} - -func createMockTransactionsWithGetNonce( - tb testing.TB, - addr core.AddressHandler, - numTxs int, - nth interactors.TransactionNonceHandlerV1, -) []*transaction.FrontendTransaction { - txs := make([]*transaction.FrontendTransaction, 0, numTxs) - for i := 0; i < numTxs; i++ { - nonce, err := nth.GetNonce(context.Background(), addr) - require.Nil(tb, err) - - tx := &transaction.FrontendTransaction{ - Nonce: nonce, - Value: "1", - Receiver: addr.AddressAsBech32String(), - Sender: addr.AddressAsBech32String(), - GasPrice: 100000, - GasLimit: 50000, - Data: nil, - Signature: "sig", - ChainID: "3", - Version: 1, - } - - txs = append(txs, tx) - } - - return txs -} - -func TestNonceTransactionsHandlerV1_ForceNonceReFetch(t *testing.T) { - t.Parallel() - - testAddress, _ := data.NewAddressFromBech32String("erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht") - currentNonce := uint64(664) - - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - } - - nth, _ := NewNonceTransactionHandlerV1(proxy, time.Minute, false) - _, _ = nth.GetNonce(context.Background(), testAddress) - _, _ = nth.GetNonce(context.Background(), testAddress) - newNonce, err := nth.GetNonce(context.Background(), testAddress) - require.Nil(t, err) - assert.Equal(t, atomic.LoadUint64(¤tNonce)+2, newNonce) - - err = nth.ForceNonceReFetch(nil) - assert.Equal(t, err, interactors.ErrNilAddress, err) - - err = nth.ForceNonceReFetch(testAddress) - assert.Nil(t, err) - - newNonce, err = nth.GetNonce(context.Background(), testAddress) - assert.Equal(t, nil, err) - assert.Equal(t, atomic.LoadUint64(¤tNonce), newNonce) -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler.go b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler.go deleted file mode 100644 index 6855ccbe..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler.go +++ /dev/null @@ -1,204 +0,0 @@ -package nonceHandlerV2 - -import ( - "bytes" - "context" - "sync" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -//TODO EN-13182: create a baseAddressNonceHandler component that can remove the duplicate code as much as possible from the -// addressNonceHandler and singleTransactionAddressNonceHandler - -// addressNonceHandler is the handler used for one address. It is able to handle the current -// nonce as max(current_stored_nonce, account_nonce). After each call of the getNonce function -// the current_stored_nonce is incremented. This will prevent "nonce too low in transaction" -// errors on the node interceptor. To prevent the "nonce too high in transaction" error, -// a retrial mechanism is implemented. This struct is able to store all sent transactions, -// having a function that sweeps the map in order to resend a transaction or remove them -// because they were executed. This struct is concurrent safe. -type addressNonceHandler struct { - mut sync.RWMutex - address sdkCore.AddressHandler - proxy interactors.Proxy - computedNonceWasSet bool - computedNonce uint64 - lowestNonce uint64 - gasPrice uint64 - nonceUntilGasIncreased uint64 - transactions map[uint64]*transaction.FrontendTransaction -} - -// NewAddressNonceHandler returns a new instance of a addressNonceHandler -func NewAddressNonceHandler(proxy interactors.Proxy, address sdkCore.AddressHandler) (interactors.AddressNonceHandler, error) { - if check.IfNil(proxy) { - return nil, interactors.ErrNilProxy - } - if check.IfNil(address) { - return nil, interactors.ErrNilAddress - } - return &addressNonceHandler{ - address: address, - proxy: proxy, - transactions: make(map[uint64]*transaction.FrontendTransaction), - }, nil -} - -// ApplyNonceAndGasPrice will apply the computed nonce to the given FrontendTransaction -func (anh *addressNonceHandler) ApplyNonceAndGasPrice(ctx context.Context, tx *transaction.FrontendTransaction) error { - oldTx, alreadyExists := anh.isTxAlreadySent(tx) - if alreadyExists { - err := anh.handleTxAlreadyExists(oldTx, tx) - if err != nil { - return err - } - } - - nonce, err := anh.getNonceUpdatingCurrent(ctx) - tx.Nonce = nonce - if err != nil { - return err - } - - anh.fetchGasPriceIfRequired(ctx, nonce) - tx.GasPrice = core.MaxUint64(anh.gasPrice, tx.GasPrice) - return nil -} - -func (anh *addressNonceHandler) handleTxAlreadyExists(oldTx *transaction.FrontendTransaction, tx *transaction.FrontendTransaction) error { - if oldTx.GasPrice < tx.GasPrice { - return nil - } - - if oldTx.GasPrice == tx.GasPrice && oldTx.GasPrice < anh.gasPrice { - return nil - } - - return interactors.ErrTxAlreadySent -} - -func (anh *addressNonceHandler) fetchGasPriceIfRequired(ctx context.Context, nonce uint64) { - if nonce == anh.nonceUntilGasIncreased+1 || anh.gasPrice == 0 { - networkConfig, err := anh.proxy.GetNetworkConfig(ctx) - - anh.mut.Lock() - defer anh.mut.Unlock() - if err != nil { - log.Error("%w: while fetching network config", err) - anh.gasPrice = 0 - return - } - anh.gasPrice = networkConfig.MinGasPrice - } -} - -func (anh *addressNonceHandler) getNonceUpdatingCurrent(ctx context.Context) (uint64, error) { - account, err := anh.proxy.GetAccount(ctx, anh.address) - if err != nil { - return 0, err - } - - if anh.lowestNonce > account.Nonce { - return account.Nonce, interactors.ErrGapNonce - } - - anh.mut.Lock() - defer anh.mut.Unlock() - - if !anh.computedNonceWasSet { - anh.computedNonce = account.Nonce - anh.computedNonceWasSet = true - - return anh.computedNonce, nil - } - - anh.computedNonce++ - - return core.MaxUint64(anh.computedNonce, account.Nonce), nil -} - -// ReSendTransactionsIfRequired will resend the cached transactions that still have a nonce greater that the one fetched from the blockchain -func (anh *addressNonceHandler) ReSendTransactionsIfRequired(ctx context.Context) error { - account, err := anh.proxy.GetAccount(ctx, anh.address) - if err != nil { - return err - } - - anh.mut.Lock() - if account.Nonce == anh.computedNonce { - anh.lowestNonce = anh.computedNonce - anh.transactions = make(map[uint64]*transaction.FrontendTransaction) - anh.mut.Unlock() - - return nil - } - - resendableTxs := make([]*transaction.FrontendTransaction, 0, len(anh.transactions)) - minNonce := anh.computedNonce - for txNonce, tx := range anh.transactions { - if txNonce <= account.Nonce { - delete(anh.transactions, txNonce) - continue - } - minNonce = core.MinUint64(txNonce, minNonce) - resendableTxs = append(resendableTxs, tx) - } - anh.lowestNonce = minNonce - anh.mut.Unlock() - - if len(resendableTxs) == 0 { - return nil - } - - hashes, err := anh.proxy.SendTransactions(ctx, resendableTxs) - if err != nil { - return err - } - - log.Debug("resent transactions", "address", anh.address.AddressAsBech32String(), "total txs", len(resendableTxs), "received hashes", len(hashes)) - - return nil -} - -// SendTransaction will save and propagate a transaction to the network -func (anh *addressNonceHandler) SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - anh.mut.Lock() - anh.transactions[tx.Nonce] = tx - anh.mut.Unlock() - - return anh.proxy.SendTransaction(ctx, tx) -} - -// DropTransactions will delete the cached transactions and will try to replace the current transactions from the pool using more gas price -func (anh *addressNonceHandler) DropTransactions() { - anh.mut.Lock() - anh.transactions = make(map[uint64]*transaction.FrontendTransaction) - anh.computedNonceWasSet = false - anh.gasPrice++ - anh.nonceUntilGasIncreased = anh.computedNonce - anh.mut.Unlock() -} - -func (anh *addressNonceHandler) isTxAlreadySent(tx *transaction.FrontendTransaction) (*transaction.FrontendTransaction, bool) { - anh.mut.RLock() - defer anh.mut.RUnlock() - for _, oldTx := range anh.transactions { - isTheSameReceiverDataValue := oldTx.Receiver == tx.Receiver && - bytes.Equal(oldTx.Data, tx.Data) && - oldTx.Value == tx.Value - if isTheSameReceiverDataValue { - return oldTx, true - } - } - return nil, false -} - -// IsInterfaceNil returns true if there is no value under the interface -func (anh *addressNonceHandler) IsInterfaceNil() bool { - return anh == nil -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator.go b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator.go deleted file mode 100644 index 3dad10dd..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator.go +++ /dev/null @@ -1,19 +0,0 @@ -package nonceHandlerV2 - -import ( - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -// AddressNonceHandlerCreator is used to create addressNonceHandler instances -type AddressNonceHandlerCreator struct{} - -// Create will create -func (anhc *AddressNonceHandlerCreator) Create(proxy interactors.Proxy, address core.AddressHandler) (interactors.AddressNonceHandler, error) { - return NewAddressNonceHandler(proxy, address) -} - -// IsInterfaceNil returns true if there is no value under the interface -func (anhc *AddressNonceHandlerCreator) IsInterfaceNil() bool { - return anhc == nil -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator_test.go deleted file mode 100644 index 8e4bdeec..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandlerCreator_test.go +++ /dev/null @@ -1,27 +0,0 @@ -package nonceHandlerV2 - -import ( - "crypto/rand" - "fmt" - "testing" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/require" -) - -func TestAddressNonceHandlerCreator_Create(t *testing.T) { - t.Parallel() - - creator := AddressNonceHandlerCreator{} - require.False(t, creator.IsInterfaceNil()) - pubkey := make([]byte, 32) - _, _ = rand.Read(pubkey) - addressHandler := data.NewAddressFromBytes(pubkey) - - create, err := creator.Create(&testsCommon.ProxyStub{}, addressHandler) - require.Nil(t, err) - require.NotNil(t, create) - require.Equal(t, "*nonceHandlerV2.addressNonceHandler", fmt.Sprintf("%T", create)) - -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler_test.go deleted file mode 100644 index 3ccba867..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/addressNonceHandler_test.go +++ /dev/null @@ -1,364 +0,0 @@ -package nonceHandlerV2 - -import ( - "context" - "crypto/rand" - "errors" - "testing" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -var testAddress, _ = data.NewAddressFromBech32String("erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht") -var expectedErr = errors.New("expected error") - -func TestAddressNonceHandler_NewAddressNonceHandlerWithPrivateAccess(t *testing.T) { - t.Parallel() - - t.Run("nil proxy", func(t *testing.T) { - t.Parallel() - - anh, err := NewAddressNonceHandlerWithPrivateAccess(nil, nil) - assert.Nil(t, anh) - assert.Equal(t, interactors.ErrNilProxy, err) - }) - t.Run("nil addressHandler", func(t *testing.T) { - t.Parallel() - - anh, err := NewAddressNonceHandlerWithPrivateAccess(&testsCommon.ProxyStub{}, nil) - assert.Nil(t, anh) - assert.Equal(t, interactors.ErrNilAddress, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - pubkey := make([]byte, 32) - _, _ = rand.Read(pubkey) - addressHandler := data.NewAddressFromBytes(pubkey) - - _, err := NewAddressNonceHandlerWithPrivateAccess(&testsCommon.ProxyStub{}, addressHandler) - assert.Nil(t, err) - }) -} - -func TestAddressNonceHandler_ApplyNonceAndGasPrice(t *testing.T) { - t.Parallel() - t.Run("tx already sent; oldTx.GasPrice == txArgs.GasPrice == anh.gasPrice", func(t *testing.T) { - t.Parallel() - - tx := createDefaultTx() - - anh, err := NewAddressNonceHandlerWithPrivateAccess(&testsCommon.ProxyStub{}, testAddress) - require.Nil(t, err) - - _, err = anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - - anh.gasPrice = tx.GasPrice - err = anh.ApplyNonceAndGasPrice(context.Background(), &tx) - require.Equal(t, interactors.ErrTxAlreadySent, err) - }) - t.Run("tx already sent; oldTx.GasPrice < txArgs.GasPrice", func(t *testing.T) { - t.Parallel() - - tx := createDefaultTx() - initialGasPrice := tx.GasPrice - tx.GasPrice-- - - anh, err := NewAddressNonceHandlerWithPrivateAccess(&testsCommon.ProxyStub{}, testAddress) - require.Nil(t, err) - - _, err = anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - - anh.gasPrice = initialGasPrice - err = anh.ApplyNonceAndGasPrice(context.Background(), &tx) - require.Nil(t, err) - }) - t.Run("oldTx.GasPrice == txArgs.GasPrice && oldTx.GasPrice < anh.gasPrice", func(t *testing.T) { - t.Parallel() - - tx := createDefaultTx() - anh, err := NewAddressNonceHandlerWithPrivateAccess(&testsCommon.ProxyStub{}, testAddress) - require.Nil(t, err) - - _, err = anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - - anh.gasPrice = tx.GasPrice + 1 - err = anh.ApplyNonceAndGasPrice(context.Background(), &tx) - require.Nil(t, err) - }) -} - -func TestAddressNonceHandler_getNonceUpdatingCurrent(t *testing.T) { - t.Parallel() - - t.Run("proxy returns error shall return error", func(t *testing.T) { - t.Parallel() - - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return nil, expectedErr - }, - } - - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - nonce, err := anh.getNonceUpdatingCurrent(context.Background()) - require.Equal(t, expectedErr, err) - require.Equal(t, uint64(0), nonce) - }) - t.Run("gap nonce detected", func(t *testing.T) { - t.Parallel() - - blockchainNonce := uint64(100) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce}, nil - }, - } - - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - anh.lowestNonce = blockchainNonce + 1 - - nonce, err := anh.getNonceUpdatingCurrent(context.Background()) - require.Equal(t, interactors.ErrGapNonce, err) - require.Equal(t, nonce, blockchainNonce) - }) - t.Run("when computedNonce already set, getNonceUpdatingCurrent shall increase it", func(t *testing.T) { - t.Parallel() - - blockchainNonce := uint64(100) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce}, nil - }, - } - - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - anh.computedNonceWasSet = true - computedNonce := uint64(105) - anh.computedNonce = computedNonce - - nonce, err := anh.getNonceUpdatingCurrent(context.Background()) - require.Nil(t, err) - require.Equal(t, nonce, computedNonce+1) - }) - t.Run("getNonceUpdatingCurrent returns error should error", func(t *testing.T) { - t.Parallel() - - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return nil, expectedErr - }, - } - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - tx := createDefaultTx() - - err := anh.ApplyNonceAndGasPrice(context.Background(), &tx) - require.Equal(t, expectedErr, err) - }) -} - -func TestAddressNonceHandler_DropTransactions(t *testing.T) { - t.Parallel() - - tx := createDefaultTx() - - blockchainNonce := uint64(100) - minGasPrice := uint64(10) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce}, nil - }, - GetNetworkConfigCalled: func() (*data.NetworkConfig, error) { - return &data.NetworkConfig{MinGasPrice: minGasPrice}, nil - }, - } - - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - - err := anh.ApplyNonceAndGasPrice(context.Background(), &tx) - require.Nil(t, err) - - _, err = anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - - require.True(t, anh.computedNonceWasSet) - require.Equal(t, blockchainNonce, anh.computedNonce) - require.Equal(t, uint64(0), anh.nonceUntilGasIncreased) - require.Equal(t, minGasPrice, anh.gasPrice) - require.Equal(t, 1, len(anh.transactions)) - - anh.DropTransactions() - - require.False(t, anh.computedNonceWasSet) - require.Equal(t, blockchainNonce, anh.nonceUntilGasIncreased) - require.Equal(t, minGasPrice+1, anh.gasPrice) - require.Equal(t, 0, len(anh.transactions)) -} - -func TestAddressNonceHandler_ReSendTransactionsIfRequired(t *testing.T) { - t.Parallel() - - t.Run("proxy returns error shall error", func(t *testing.T) { - t.Parallel() - - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return nil, expectedErr - }, - } - - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - err := anh.ReSendTransactionsIfRequired(context.Background()) - require.Equal(t, expectedErr, err) - }) - t.Run("proxy returns error shall error", func(t *testing.T) { - t.Parallel() - - blockchainNonce := uint64(100) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce - 1}, nil - }, - SendTransactionsCalled: func(txs []*transaction.FrontendTransaction) ([]string, error) { - return make([]string, 0), expectedErr - }, - } - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - tx := createDefaultTx() - tx.Nonce = blockchainNonce - _, err := anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - require.Equal(t, 1, len(anh.transactions)) - - anh.computedNonce = blockchainNonce - - err = anh.ReSendTransactionsIfRequired(context.Background()) - require.Equal(t, 1, len(anh.transactions)) - require.Equal(t, expectedErr, err) - }) - t.Run("account.Nonce == anh.computedNonce", func(t *testing.T) { - t.Parallel() - - blockchainNonce := uint64(100) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce}, nil - }, - } - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - tx := createDefaultTx() - _, err := anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - require.Equal(t, 1, len(anh.transactions)) - - anh.computedNonce = blockchainNonce - anh.lowestNonce = 80 - err = anh.ReSendTransactionsIfRequired(context.Background()) - require.Equal(t, anh.computedNonce, anh.lowestNonce) - require.Equal(t, 0, len(anh.transactions)) - require.Nil(t, err) - }) - t.Run("len(anh.transactions) == 0", func(t *testing.T) { - t.Parallel() - - anh, _ := NewAddressNonceHandlerWithPrivateAccess(&testsCommon.ProxyStub{}, testAddress) - tx := createDefaultTx() - _, err := anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - require.Equal(t, 1, len(anh.transactions)) - - anh.computedNonce = 100 - anh.lowestNonce = 80 - err = anh.ReSendTransactionsIfRequired(context.Background()) - require.Equal(t, anh.computedNonce, anh.lowestNonce) - require.Equal(t, 0, len(anh.transactions)) - require.Nil(t, err) - }) - t.Run("lowestNonce should be recalculated each time", func(t *testing.T) { - t.Parallel() - - blockchainNonce := uint64(100) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce - 1}, nil - }, - } - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - tx := createDefaultTx() - tx.Nonce = blockchainNonce + 1 - _, err := anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - require.Equal(t, 1, len(anh.transactions)) - - anh.computedNonce = blockchainNonce + 2 - anh.lowestNonce = blockchainNonce - err = anh.ReSendTransactionsIfRequired(context.Background()) - require.Equal(t, blockchainNonce+1, anh.lowestNonce) - require.Equal(t, 1, len(anh.transactions)) - require.Nil(t, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - blockchainNonce := uint64(100) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce - 1}, nil - }, - SendTransactionsCalled: func(txs []*transaction.FrontendTransaction) ([]string, error) { - return make([]string, 0), nil - }, - } - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - tx := createDefaultTx() - tx.Nonce = blockchainNonce - _, err := anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - require.Equal(t, 1, len(anh.transactions)) - - anh.computedNonce = blockchainNonce - - err = anh.ReSendTransactionsIfRequired(context.Background()) - require.Equal(t, 1, len(anh.transactions)) - require.Nil(t, err) - }) -} - -func TestAddressNonceHandler_fetchGasPriceIfRequired(t *testing.T) { - t.Parallel() - - // proxy returns error should set invalid gasPrice(0) - proxy := &testsCommon.ProxyStub{ - GetNetworkConfigCalled: func() (*data.NetworkConfig, error) { - return nil, expectedErr - }, - } - anh, _ := NewAddressNonceHandlerWithPrivateAccess(proxy, testAddress) - anh.gasPrice = 100000 - anh.nonceUntilGasIncreased = 100 - - anh.fetchGasPriceIfRequired(context.Background(), 101) - require.Equal(t, uint64(0), anh.gasPrice) -} - -func createDefaultTx() transaction.FrontendTransaction { - return transaction.FrontendTransaction{ - Value: "1", - Receiver: testAddress.AddressAsBech32String(), - Sender: testAddress.AddressAsBech32String(), - GasPrice: 100000, - GasLimit: 50000, - Data: nil, - ChainID: "3", - Version: 1, - } -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/export_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/export_test.go deleted file mode 100644 index ec06ac7d..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/export_test.go +++ /dev/null @@ -1,23 +0,0 @@ -package nonceHandlerV2 - -import ( - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -// NewAddressNonceHandlerWithPrivateAccess - -func NewAddressNonceHandlerWithPrivateAccess(proxy interactors.Proxy, address sdkCore.AddressHandler) (*addressNonceHandler, error) { - if check.IfNil(proxy) { - return nil, interactors.ErrNilProxy - } - if check.IfNil(address) { - return nil, interactors.ErrNilAddress - } - return &addressNonceHandler{ - address: address, - proxy: proxy, - transactions: make(map[uint64]*transaction.FrontendTransaction), - }, nil -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler.go b/mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler.go deleted file mode 100644 index a43e9729..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler.go +++ /dev/null @@ -1,215 +0,0 @@ -package nonceHandlerV2 - -import ( - "context" - "fmt" - "sync" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - logger "github.com/multiversx/mx-chain-logger-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -const minimumIntervalToResend = time.Second - -var log = logger.GetOrCreate("mx-sdk-go/interactors/nonceHandlerV2") - -// ArgsNonceTransactionsHandlerV2 is the argument DTO for a nonce transactions handler component -type ArgsNonceTransactionsHandlerV2 struct { - Proxy interactors.Proxy - IntervalToResend time.Duration - Creator interactors.AddressNonceHandlerCreator -} - -// nonceTransactionsHandlerV2 is the handler used for an unlimited number of addresses. -// It basically contains a map of addressNonceHandler, creating new entries on the first -// access of a provided address. This struct delegates all the operations on the right -// instance of addressNonceHandler. It also starts a go routine that will periodically -// try to resend "stuck transactions" and to clean the inner state. The recommended resend -// interval is 1 minute. The Close method should be called whenever the current instance of -// nonceTransactionsHandlerV2 should be terminated and collected by the GC. -// This struct is concurrent safe. -type nonceTransactionsHandlerV2 struct { - proxy interactors.Proxy - mutHandlers sync.RWMutex - creator interactors.AddressNonceHandlerCreator - handlers map[string]interactors.AddressNonceHandler - cancelFunc func() - intervalToResend time.Duration -} - -// NewNonceTransactionHandlerV2 will create a new instance of the nonceTransactionsHandlerV2. It requires a Proxy implementation -// and an interval at which the transactions sent are rechecked and eventually, resent. -func NewNonceTransactionHandlerV2(args ArgsNonceTransactionsHandlerV2) (*nonceTransactionsHandlerV2, error) { - if check.IfNil(args.Proxy) { - return nil, interactors.ErrNilProxy - } - if args.IntervalToResend < minimumIntervalToResend { - return nil, fmt.Errorf("%w for intervalToResend in NewNonceTransactionHandlerV2", interactors.ErrInvalidValue) - } - if check.IfNil(args.Creator) { - return nil, interactors.ErrNilAddressNonceHandlerCreator - } - - nth := &nonceTransactionsHandlerV2{ - proxy: args.Proxy, - handlers: make(map[string]interactors.AddressNonceHandler), - intervalToResend: args.IntervalToResend, - creator: args.Creator, - } - - ctx, cancelFunc := context.WithCancel(context.Background()) - nth.cancelFunc = cancelFunc - go nth.resendTransactionsLoop(ctx) - - return nth, nil -} - -// ApplyNonceAndGasPrice will apply the nonce to the given frontend transaction -func (nth *nonceTransactionsHandlerV2) ApplyNonceAndGasPrice(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error { - if check.IfNil(address) { - return interactors.ErrNilAddress - } - if tx == nil { - return interactors.ErrNilTransaction - } - - anh, err := nth.getOrCreateAddressNonceHandler(address) - if err != nil { - return err - } - - return anh.ApplyNonceAndGasPrice(ctx, tx) -} - -func (nth *nonceTransactionsHandlerV2) getOrCreateAddressNonceHandler(address core.AddressHandler) (interactors.AddressNonceHandler, error) { - anh := nth.getAddressNonceHandler(address) - if !check.IfNil(anh) { - return anh, nil - } - - return nth.createAddressNonceHandler(address) -} - -func (nth *nonceTransactionsHandlerV2) getAddressNonceHandler(address core.AddressHandler) interactors.AddressNonceHandler { - nth.mutHandlers.RLock() - defer nth.mutHandlers.RUnlock() - - anh, found := nth.handlers[string(address.AddressBytes())] - if found { - return anh - } - return nil -} - -func (nth *nonceTransactionsHandlerV2) createAddressNonceHandler(address core.AddressHandler) (interactors.AddressNonceHandler, error) { - nth.mutHandlers.Lock() - defer nth.mutHandlers.Unlock() - - addressAsString := string(address.AddressBytes()) - anh, found := nth.handlers[addressAsString] - if found { - return anh, nil - } - anh, err := nth.creator.Create(nth.proxy, address) - if err != nil { - return nil, err - } - nth.handlers[addressAsString] = anh - - return anh, nil -} - -// SendTransaction will store and send the provided transaction -func (nth *nonceTransactionsHandlerV2) SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - if tx == nil { - return "", interactors.ErrNilTransaction - } - - addrAsBech32 := tx.Sender - address, err := data.NewAddressFromBech32String(addrAsBech32) - if err != nil { - return "", fmt.Errorf("%w while creating address handler for string %s", err, addrAsBech32) - } - - anh, err := nth.getOrCreateAddressNonceHandler(address) - if err != nil { - return "", err - } - - sentHash, err := anh.SendTransaction(ctx, tx) - if err != nil { - return "", fmt.Errorf("%w while sending transaction for address %s", err, addrAsBech32) - } - - return sentHash, nil -} - -func (nth *nonceTransactionsHandlerV2) resendTransactionsLoop(ctx context.Context) { - timer := time.NewTimer(nth.intervalToResend) - defer timer.Stop() - - for { - timer.Reset(nth.intervalToResend) - - select { - case <-timer.C: - nth.resendTransactions(ctx) - case <-ctx.Done(): - log.Debug("finishing nonceTransactionsHandlerV2.resendTransactionsLoop...") - return - } - } -} - -func (nth *nonceTransactionsHandlerV2) resendTransactions(ctx context.Context) { - nth.mutHandlers.Lock() - defer nth.mutHandlers.Unlock() - - for _, anh := range nth.handlers { - select { - case <-ctx.Done(): - log.Debug("finishing nonceTransactionsHandlerV2.resendTransactions...") - return - default: - } - - resendCtx, cancel := context.WithTimeout(ctx, nth.intervalToResend) - err := anh.ReSendTransactionsIfRequired(resendCtx) - log.LogIfError(err) - cancel() - } -} - -// DropTransactions will clean the addressNonceHandler cached transactions. A little gas increase will be applied to the next transactions -// in order to also replace the transactions from the txPool. -// This should be only used in a fallback plan, when some transactions are completely lost (or due to a bug, not even sent in first time) -func (nth *nonceTransactionsHandlerV2) DropTransactions(address core.AddressHandler) error { - if check.IfNil(address) { - return interactors.ErrNilAddress - } - - anh, err := nth.getOrCreateAddressNonceHandler(address) - if err != nil { - return err - } - anh.DropTransactions() - - return nil -} - -// Close finishes the transactions resend go routine -func (nth *nonceTransactionsHandlerV2) Close() error { - nth.cancelFunc() - - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (nth *nonceTransactionsHandlerV2) IsInterfaceNil() bool { - return nth == nil -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler_test.go deleted file mode 100644 index 2dbb798d..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/nonceTransactionsHandler_test.go +++ /dev/null @@ -1,499 +0,0 @@ -package nonceHandlerV2 - -import ( - "context" - "errors" - "sync" - "sync/atomic" - "testing" - "time" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - testsInteractors "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon/interactors" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestNewNonceTransactionHandlerV2(t *testing.T) { - t.Parallel() - - t.Run("nil proxy", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNonceTransactionsHandlerV2() - args.Proxy = nil - nth, err := NewNonceTransactionHandlerV2(args) - require.Nil(t, nth) - assert.Equal(t, interactors.ErrNilProxy, err) - }) - t.Run("nil AddressNonceHandlerCreator", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNonceTransactionsHandlerV2() - args.Creator = nil - nth, err := NewNonceTransactionHandlerV2(args) - require.Nil(t, nth) - assert.Equal(t, interactors.ErrNilAddressNonceHandlerCreator, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - args := createMockArgsNonceTransactionsHandlerV2() - nth, err := NewNonceTransactionHandlerV2(args) - require.NotNil(t, nth) - require.Nil(t, err) - - require.Nil(t, nth.Close()) - }) -} - -func TestNonceTransactionsHandlerV2_GetNonce(t *testing.T) { - t.Parallel() - - currentNonce := uint64(664) - numCalls := 0 - - args := createMockArgsNonceTransactionsHandlerV2() - args.Proxy = &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - numCalls++ - - return &data.Account{ - Nonce: currentNonce, - }, nil - }, - } - - nth, _ := NewNonceTransactionHandlerV2(args) - err := nth.ApplyNonceAndGasPrice(context.Background(), nil, nil) - assert.Equal(t, interactors.ErrNilAddress, err) - - tx := transaction.FrontendTransaction{} - err = nth.ApplyNonceAndGasPrice(context.Background(), testAddress, &tx) - assert.Nil(t, err) - assert.Equal(t, currentNonce, tx.Nonce) - - err = nth.ApplyNonceAndGasPrice(context.Background(), testAddress, &tx) - assert.Nil(t, err) - assert.Equal(t, currentNonce+1, tx.Nonce) - - assert.Equal(t, 2, numCalls) - - require.Nil(t, nth.Close()) -} - -func TestNonceTransactionsHandlerV2_SendMultipleTransactionsResendingEliminatingOne(t *testing.T) { - t.Parallel() - - currentNonce := uint64(664) - - mutSentTransactions := sync.Mutex{} - numCalls := 0 - sentTransactions := make(map[int][]*transaction.FrontendTransaction) - - args := createMockArgsNonceTransactionsHandlerV2() - args.Proxy = &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionsCalled: func(txs []*transaction.FrontendTransaction) ([]string, error) { - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - sentTransactions[numCalls] = txs - numCalls++ - hashes := make([]string, len(txs)) - - return hashes, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - sentTransactions[numCalls] = []*transaction.FrontendTransaction{tx} - numCalls++ - - return "", nil - }, - } - nth, _ := NewNonceTransactionHandlerV2(args) - - numTxs := 5 - txs := createMockTransactions(testAddress, numTxs, atomic.LoadUint64(¤tNonce)) - for i := 0; i < numTxs; i++ { - _, err := nth.SendTransaction(context.TODO(), txs[i]) - require.Nil(t, err) - } - - time.Sleep(time.Second * 3) - _ = nth.Close() - - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - numSentTransaction := 5 - numSentTransactions := 1 - assert.Equal(t, numSentTransaction+numSentTransactions, len(sentTransactions)) - for i := 0; i < numSentTransaction; i++ { - assert.Equal(t, 1, len(sentTransactions[i])) - } - assert.Equal(t, numTxs-1, len(sentTransactions[numSentTransaction])) // resend -} - -func TestNonceTransactionsHandlerV2_SendMultipleTransactionsResendingEliminatingAll(t *testing.T) { - t.Parallel() - - currentNonce := uint64(664) - - mutSentTransactions := sync.Mutex{} - numCalls := 0 - sentTransactions := make(map[int][]*transaction.FrontendTransaction) - - args := createMockArgsNonceTransactionsHandlerV2() - args.Proxy = &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - sentTransactions[numCalls] = []*transaction.FrontendTransaction{tx} - numCalls++ - - return "", nil - }, - } - numTxs := 5 - nth, _ := NewNonceTransactionHandlerV2(args) - txs := createMockTransactions(testAddress, numTxs, atomic.LoadUint64(¤tNonce)) - for i := 0; i < numTxs; i++ { - _, err := nth.SendTransaction(context.Background(), txs[i]) - require.Nil(t, err) - } - - atomic.AddUint64(¤tNonce, uint64(numTxs)) - time.Sleep(time.Second * 3) - _ = nth.Close() - - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - //no resend operation was made because all transactions were executed (nonce was incremented) - assert.Equal(t, 5, len(sentTransactions)) - assert.Equal(t, 1, len(sentTransactions[0])) -} - -func TestNonceTransactionsHandlerV2_SendTransactionResendingEliminatingAll(t *testing.T) { - t.Parallel() - - currentNonce := uint64(664) - - mutSentTransactions := sync.Mutex{} - numCalls := 0 - sentTransactions := make(map[int][]*transaction.FrontendTransaction) - - args := createMockArgsNonceTransactionsHandlerV2() - args.Proxy = &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - sentTransactions[numCalls] = []*transaction.FrontendTransaction{tx} - numCalls++ - - return "", nil - }, - } - - numTxs := 1 - nth, _ := NewNonceTransactionHandlerV2(args) - txs := createMockTransactions(testAddress, numTxs, atomic.LoadUint64(¤tNonce)) - - hash, err := nth.SendTransaction(context.Background(), txs[0]) - require.Nil(t, err) - require.Equal(t, "", hash) - - atomic.AddUint64(¤tNonce, uint64(numTxs)) - time.Sleep(time.Second * 3) - _ = nth.Close() - - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - //no resend operation was made because all transactions were executed (nonce was incremented) - assert.Equal(t, 1, len(sentTransactions)) - assert.Equal(t, numTxs, len(sentTransactions[0])) -} - -func TestNonceTransactionsHandlerV2_SendTransactionErrors(t *testing.T) { - t.Parallel() - - currentNonce := uint64(664) - - var errSent error - - args := createMockArgsNonceTransactionsHandlerV2() - args.Proxy = &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - return "", errSent - }, - } - - numTxs := 1 - nth, _ := NewNonceTransactionHandlerV2(args) - txs := createMockTransactions(testAddress, numTxs, atomic.LoadUint64(¤tNonce)) - - hash, err := nth.SendTransaction(context.Background(), nil) - require.Equal(t, interactors.ErrNilTransaction, err) - require.Equal(t, "", hash) - - errSent = errors.New("expected error") - - hash, err = nth.SendTransaction(context.Background(), txs[0]) - require.True(t, errors.Is(err, errSent)) - require.Equal(t, "", hash) -} - -func createMockTransactions(addr core.AddressHandler, numTxs int, startNonce uint64) []*transaction.FrontendTransaction { - txs := make([]*transaction.FrontendTransaction, 0, numTxs) - for i := 0; i < numTxs; i++ { - tx := &transaction.FrontendTransaction{ - Nonce: startNonce, - Value: "1", - Receiver: addr.AddressAsBech32String(), - Sender: addr.AddressAsBech32String(), - GasPrice: 100000, - GasLimit: 50000, - Data: nil, - Signature: "sig", - ChainID: "3", - Version: 1, - } - - txs = append(txs, tx) - startNonce++ - } - - return txs -} - -func TestNonceTransactionsHandlerV2_SendTransactionsWithGetNonce(t *testing.T) { - t.Parallel() - - currentNonce := uint64(664) - - mutSentTransactions := sync.Mutex{} - numCalls := 0 - sentTransactions := make(map[int][]*transaction.FrontendTransaction) - - args := createMockArgsNonceTransactionsHandlerV2() - args.Proxy = &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - sentTransactions[numCalls] = []*transaction.FrontendTransaction{tx} - numCalls++ - - return "", nil - }, - } - - numTxs := 5 - nth, _ := NewNonceTransactionHandlerV2(args) - txs := createMockTransactionsWithGetNonce(t, testAddress, 5, nth) - for i := 0; i < numTxs; i++ { - _, err := nth.SendTransaction(context.Background(), txs[i]) - require.Nil(t, err) - } - - atomic.AddUint64(¤tNonce, uint64(numTxs)) - time.Sleep(time.Second * 3) - _ = nth.Close() - - mutSentTransactions.Lock() - defer mutSentTransactions.Unlock() - - //no resend operation was made because all transactions were executed (nonce was incremented) - assert.Equal(t, numTxs, len(sentTransactions)) - assert.Equal(t, 1, len(sentTransactions[0])) -} - -func TestNonceTransactionsHandlerV2_SendDuplicateTransactions(t *testing.T) { - currentNonce := uint64(664) - - numCalls := 0 - - args := createMockArgsNonceTransactionsHandlerV2() - args.Proxy = &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - require.LessOrEqual(t, numCalls, 1) - currentNonce++ - return "", nil - }, - } - nth, _ := NewNonceTransactionHandlerV2(args) - - tx := &transaction.FrontendTransaction{ - Value: "1", - Receiver: testAddress.AddressAsBech32String(), - Sender: testAddress.AddressAsBech32String(), - GasPrice: 100000, - GasLimit: 50000, - Data: nil, - ChainID: "3", - Version: 1, - } - err := nth.ApplyNonceAndGasPrice(context.Background(), testAddress, tx) - require.Nil(t, err) - - _, err = nth.SendTransaction(context.Background(), tx) - require.Nil(t, err) - acc, _ := nth.getOrCreateAddressNonceHandler(testAddress) - accWithPrivateAccess, ok := acc.(*addressNonceHandler) - require.True(t, ok) - - // after sending first tx, nonce shall increase - require.Equal(t, accWithPrivateAccess.computedNonce+1, currentNonce) - - // trying to apply nonce for the same tx, NonceTransactionHandler shall return ErrTxAlreadySent - // and computedNonce shall not increase - tx.Nonce = 0 - err = nth.ApplyNonceAndGasPrice(context.Background(), testAddress, tx) - require.Equal(t, err, interactors.ErrTxAlreadySent) - require.Equal(t, tx.Nonce, uint64(0)) - require.Equal(t, accWithPrivateAccess.computedNonce+1, currentNonce) -} - -func createMockTransactionsWithGetNonce( - tb testing.TB, - addr core.AddressHandler, - numTxs int, - nth *nonceTransactionsHandlerV2, -) []*transaction.FrontendTransaction { - txs := make([]*transaction.FrontendTransaction, 0, numTxs) - for i := 0; i < numTxs; i++ { - tx := &transaction.FrontendTransaction{} - err := nth.ApplyNonceAndGasPrice(context.Background(), addr, tx) - require.Nil(tb, err) - - tx.Value = "1" - tx.Receiver = addr.AddressAsBech32String() - tx.Sender = addr.AddressAsBech32String() - tx.GasLimit = 50000 - tx.Data = nil - tx.Signature = "sig" - tx.ChainID = "3" - tx.Version = 1 - - txs = append(txs, tx) - } - - return txs -} - -func TestNonceTransactionsHandlerV2_ForceNonceReFetch(t *testing.T) { - t.Parallel() - - currentNonce := uint64(664) - - args := createMockArgsNonceTransactionsHandlerV2() - args.Proxy = &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - if address.AddressAsBech32String() != testAddress.AddressAsBech32String() { - return nil, errors.New("unexpected address") - } - - return &data.Account{ - Nonce: atomic.LoadUint64(¤tNonce), - }, nil - }, - } - - nth, _ := NewNonceTransactionHandlerV2(args) - tx := &transaction.FrontendTransaction{} - _ = nth.ApplyNonceAndGasPrice(context.Background(), testAddress, tx) - _ = nth.ApplyNonceAndGasPrice(context.Background(), testAddress, tx) - err := nth.ApplyNonceAndGasPrice(context.Background(), testAddress, tx) - require.Nil(t, err) - assert.Equal(t, atomic.LoadUint64(¤tNonce)+2, tx.Nonce) - - err = nth.DropTransactions(nil) - assert.Equal(t, interactors.ErrNilAddress, err) - - err = nth.DropTransactions(testAddress) - assert.Nil(t, err) - - err = nth.ApplyNonceAndGasPrice(context.Background(), testAddress, tx) - assert.Equal(t, nil, err) - assert.Equal(t, atomic.LoadUint64(¤tNonce), tx.Nonce) -} - -func createMockArgsNonceTransactionsHandlerV2() ArgsNonceTransactionsHandlerV2 { - return ArgsNonceTransactionsHandlerV2{ - Proxy: &testsCommon.ProxyStub{}, - IntervalToResend: time.Second * 2, - Creator: &testsInteractors.AddressNonceHandlerCreatorStub{ - CreateCalled: func(proxy interactors.Proxy, address core.AddressHandler) (interactors.AddressNonceHandler, error) { - return NewAddressNonceHandler(proxy, address) - }, - }, - } -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler.go b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler.go deleted file mode 100644 index f5a9b234..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler.go +++ /dev/null @@ -1,120 +0,0 @@ -package nonceHandlerV2 - -import ( - "context" - "sync" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -type singleTransactionAddressNonceHandler struct { - mut sync.RWMutex - address sdkCore.AddressHandler - transaction *transaction.FrontendTransaction - gasPrice uint64 - nonceUntilGasIncreased uint64 - proxy interactors.Proxy -} - -// NewSingleTransactionAddressNonceHandler returns a new instance of a singleTransactionAddressNonceHandler -func NewSingleTransactionAddressNonceHandler(proxy interactors.Proxy, address sdkCore.AddressHandler) (*singleTransactionAddressNonceHandler, error) { - if check.IfNil(proxy) { - return nil, interactors.ErrNilProxy - } - if check.IfNil(address) { - return nil, interactors.ErrNilAddress - } - return &singleTransactionAddressNonceHandler{ - address: address, - proxy: proxy, - }, nil -} - -// ApplyNonceAndGasPrice will apply the computed nonce to the given FrontendTransaction -func (anh *singleTransactionAddressNonceHandler) ApplyNonceAndGasPrice(ctx context.Context, tx *transaction.FrontendTransaction) error { - nonce, err := anh.getNonce(ctx) - if err != nil { - return err - } - tx.Nonce = nonce - - anh.fetchGasPriceIfRequired(ctx, nonce) - tx.GasPrice = core.MaxUint64(anh.gasPrice, tx.GasPrice) - return nil -} - -func (anh *singleTransactionAddressNonceHandler) fetchGasPriceIfRequired(ctx context.Context, nonce uint64) { - if nonce == anh.nonceUntilGasIncreased+1 || anh.gasPrice == 0 { - networkConfig, err := anh.proxy.GetNetworkConfig(ctx) - - anh.mut.Lock() - defer anh.mut.Unlock() - if err != nil { - log.Error("%w: while fetching network config", err) - anh.gasPrice = 0 - return - } - anh.gasPrice = networkConfig.MinGasPrice - } -} - -func (anh *singleTransactionAddressNonceHandler) getNonce(ctx context.Context) (uint64, error) { - account, err := anh.proxy.GetAccount(ctx, anh.address) - if err != nil { - return 0, err - } - - return account.Nonce, nil -} - -// ReSendTransactionsIfRequired will resend the cached transaction if it still has a nonce greater than the one fetched from the blockchain -func (anh *singleTransactionAddressNonceHandler) ReSendTransactionsIfRequired(ctx context.Context) error { - if anh.transaction == nil { - return nil - } - nonce, err := anh.getNonce(ctx) - if err != nil { - return err - } - - if anh.transaction.Nonce != nonce { - anh.transaction = nil - return nil - } - - hash, err := anh.proxy.SendTransaction(ctx, anh.transaction) - if err != nil { - return err - } - - log.Debug("resent transaction", "address", anh.address.AddressAsBech32String(), "hash", hash) - - return nil -} - -// SendTransaction will save and propagate a transaction to the network -func (anh *singleTransactionAddressNonceHandler) SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - anh.mut.Lock() - anh.transaction = tx - anh.mut.Unlock() - - return anh.proxy.SendTransaction(ctx, tx) -} - -// DropTransactions will delete the cached transaction and will try to replace the current transaction from the pool using more gas price -func (anh *singleTransactionAddressNonceHandler) DropTransactions() { - anh.mut.Lock() - defer anh.mut.Unlock() - anh.gasPrice++ - anh.nonceUntilGasIncreased = anh.transaction.Nonce - anh.transaction = nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (anh *singleTransactionAddressNonceHandler) IsInterfaceNil() bool { - return anh == nil -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go deleted file mode 100644 index 9f02e57a..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator.go +++ /dev/null @@ -1,19 +0,0 @@ -package nonceHandlerV2 - -import ( - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -// SingleTransactionAddressNonceHandlerCreator is used to create singleTransactionAddressNonceHandler instances -type SingleTransactionAddressNonceHandlerCreator struct{} - -// Create will create -func (anhc *SingleTransactionAddressNonceHandlerCreator) Create(proxy interactors.Proxy, address core.AddressHandler) (interactors.AddressNonceHandler, error) { - return NewSingleTransactionAddressNonceHandler(proxy, address) -} - -// IsInterfaceNil returns true if there is no value under the interface -func (anhc *SingleTransactionAddressNonceHandlerCreator) IsInterfaceNil() bool { - return anhc == nil -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go deleted file mode 100644 index c8cd3b63..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandlerCreator_test.go +++ /dev/null @@ -1,27 +0,0 @@ -package nonceHandlerV2 - -import ( - "crypto/rand" - "fmt" - "testing" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/require" -) - -func TestSingleTransactionAddressNonceHandlerCreator_Create(t *testing.T) { - t.Parallel() - - creator := SingleTransactionAddressNonceHandlerCreator{} - require.False(t, creator.IsInterfaceNil()) - pubkey := make([]byte, 32) - _, _ = rand.Read(pubkey) - addressHandler := data.NewAddressFromBytes(pubkey) - - create, err := creator.Create(&testsCommon.ProxyStub{}, addressHandler) - require.Nil(t, err) - require.NotNil(t, create) - require.Equal(t, "*nonceHandlerV2.singleTransactionAddressNonceHandler", fmt.Sprintf("%T", create)) - -} diff --git a/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go b/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go deleted file mode 100644 index 426c9426..00000000 --- a/mx-sdk-go-old/interactors/nonceHandlerV2/singleTransactionAddressNonceHandler_test.go +++ /dev/null @@ -1,244 +0,0 @@ -package nonceHandlerV2 - -import ( - "context" - "crypto/rand" - "testing" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestSingleTransactionAddressNonceHandler_NewSingleTransactionAddressNonceHandler(t *testing.T) { - t.Parallel() - - t.Run("nil proxy", func(t *testing.T) { - t.Parallel() - - anh, err := NewSingleTransactionAddressNonceHandler(nil, nil) - assert.Nil(t, anh) - assert.Equal(t, interactors.ErrNilProxy, err) - }) - t.Run("nil addressHandler", func(t *testing.T) { - t.Parallel() - - anh, err := NewSingleTransactionAddressNonceHandler(&testsCommon.ProxyStub{}, nil) - assert.Nil(t, anh) - assert.Equal(t, interactors.ErrNilAddress, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - pubkey := make([]byte, 32) - _, _ = rand.Read(pubkey) - addressHandler := data.NewAddressFromBytes(pubkey) - - _, err := NewSingleTransactionAddressNonceHandler(&testsCommon.ProxyStub{}, addressHandler) - assert.Nil(t, err) - }) -} - -func TestSingleTransactionAddressNonceHandler_ApplyNonceAndGasPrice(t *testing.T) { - t.Parallel() - - t.Run("proxy returns error should error", func(t *testing.T) { - t.Parallel() - - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return nil, expectedErr - }, - } - - anh, _ := NewSingleTransactionAddressNonceHandler(proxy, testAddress) - - tx := createDefaultTx() - - err := anh.ApplyNonceAndGasPrice(context.Background(), &tx) - require.Equal(t, expectedErr, err) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - blockchainNonce := uint64(100) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce}, nil - }, - } - - anh, _ := NewSingleTransactionAddressNonceHandler(proxy, testAddress) - - tx := createDefaultTx() - - err := anh.ApplyNonceAndGasPrice(context.Background(), &tx) - require.Nil(t, err) - require.Equal(t, blockchainNonce, tx.Nonce) - }) -} - -func TestSingleTransactionAddressNonceHandler_fetchGasPriceIfRequired(t *testing.T) { - t.Parallel() - - //proxy returns error should set invalid gasPrice(0) - proxy := &testsCommon.ProxyStub{ - GetNetworkConfigCalled: func() (*data.NetworkConfig, error) { - return nil, expectedErr - }, - } - anh, _ := NewSingleTransactionAddressNonceHandler(proxy, testAddress) - anh.gasPrice = 100000 - anh.nonceUntilGasIncreased = 100 - - anh.fetchGasPriceIfRequired(context.Background(), 101) - require.Equal(t, uint64(0), anh.gasPrice) -} - -func TestSingleTransactionAddressNonceHandler_DropTransactions(t *testing.T) { - t.Parallel() - - tx := createDefaultTx() - - blockchainNonce := uint64(100) - minGasPrice := uint64(10) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce}, nil - }, - GetNetworkConfigCalled: func() (*data.NetworkConfig, error) { - return &data.NetworkConfig{MinGasPrice: minGasPrice}, nil - }, - } - - anh, _ := NewSingleTransactionAddressNonceHandler(proxy, testAddress) - - err := anh.ApplyNonceAndGasPrice(context.Background(), &tx) - require.Nil(t, err) - - _, err = anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - - require.Equal(t, uint64(0), anh.nonceUntilGasIncreased) - require.Equal(t, minGasPrice, anh.gasPrice) - require.NotNil(t, anh.transaction) - - anh.DropTransactions() - - require.Equal(t, blockchainNonce, anh.nonceUntilGasIncreased) - require.Equal(t, minGasPrice+1, anh.gasPrice) - require.Nil(t, anh.transaction) -} - -func TestSingleTransactionAddressNonceHandler_SendTransaction(t *testing.T) { - t.Parallel() - - // proxy returns error should error - proxy := &testsCommon.ProxyStub{ - SendTransactionCalled: func(tx *transaction.FrontendTransaction) (string, error) { - return "", expectedErr - }, - } - - anh, _ := NewSingleTransactionAddressNonceHandler(proxy, testAddress) - - tx := createDefaultTx() - - _, err := anh.SendTransaction(context.Background(), &tx) - require.Equal(t, expectedErr, err) -} - -func TestSingleTransactionAddressNonceHandler_ReSendTransactionsIfRequired(t *testing.T) { - t.Parallel() - - t.Run("no transaction to resend shall exit early with no error", func(t *testing.T) { - t.Parallel() - - anh, _ := NewSingleTransactionAddressNonceHandler(&testsCommon.ProxyStub{}, testAddress) - err := anh.ReSendTransactionsIfRequired(context.Background()) - require.Nil(t, err) - }) - t.Run("proxy returns error shall error", func(t *testing.T) { - t.Parallel() - - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return nil, expectedErr - }, - } - - anh, _ := NewSingleTransactionAddressNonceHandler(proxy, testAddress) - tx := createDefaultTx() - - _, err := anh.SendTransaction(context.Background(), &tx) - require.Nil(t, err) - - err = anh.ReSendTransactionsIfRequired(context.Background()) - require.Equal(t, expectedErr, err) - }) - t.Run("proxy returns error shall error", func(t *testing.T) { - t.Parallel() - - blockchainNonce := uint64(100) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce}, nil - }, - SendTransactionCalled: func(txs *transaction.FrontendTransaction) (string, error) { - return "", expectedErr - }, - } - anh, _ := NewSingleTransactionAddressNonceHandler(proxy, testAddress) - tx := createDefaultTx() - tx.Nonce = blockchainNonce - anh.transaction = &tx - - err := anh.ReSendTransactionsIfRequired(context.Background()) - require.Equal(t, expectedErr, err) - }) - t.Run("anh.transaction.Nonce != account.Nonce", func(t *testing.T) { - t.Parallel() - - blockchainNonce := uint64(100) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce + 1}, nil - }, - SendTransactionCalled: func(txs *transaction.FrontendTransaction) (string, error) { - return "", expectedErr - }, - } - anh, _ := NewSingleTransactionAddressNonceHandler(proxy, testAddress) - tx := createDefaultTx() - tx.Nonce = blockchainNonce - anh.transaction = &tx - - err := anh.ReSendTransactionsIfRequired(context.Background()) - require.Nil(t, err) - require.Nil(t, anh.transaction) - }) - t.Run("should work", func(t *testing.T) { - t.Parallel() - - blockchainNonce := uint64(100) - proxy := &testsCommon.ProxyStub{ - GetAccountCalled: func(address core.AddressHandler) (*data.Account, error) { - return &data.Account{Nonce: blockchainNonce}, nil - }, - SendTransactionCalled: func(txs *transaction.FrontendTransaction) (string, error) { - return "hash", nil - }, - } - anh, _ := NewSingleTransactionAddressNonceHandler(proxy, testAddress) - tx := createDefaultTx() - tx.Nonce = blockchainNonce - anh.transaction = &tx - - err := anh.ReSendTransactionsIfRequired(context.Background()) - require.Nil(t, err) - }) -} diff --git a/mx-sdk-go-old/interactors/testdata/test.json b/mx-sdk-go-old/interactors/testdata/test.json deleted file mode 100644 index c0e66ad6..00000000 --- a/mx-sdk-go-old/interactors/testdata/test.json +++ /dev/null @@ -1 +0,0 @@ -{"version":4,"id":"9eb50c67-240f-4d45-b1ad-405e89134f92","address":"be8aa862028f37acd00e12e152487971806761c61759fa4ca03c023e42063a41","bech32":"erd1h692scsz3um6e5qwzts4yjrewxqxwcwxzavl5n9q8sprussx8fqsu70jf5","crypto":{"ciphertext":"ab46f2c20377216a7fa03018300109e39e107948b5e634415137e3bd96b7ad88d61a8461990303cb1b5fc7b7409f16cf0ee1f15d3712558c0c77174056befdc3","cipherparams":{"iv":"527d89d0dacbb55863c4c8f6e3c36154"},"cipher":"aes-128-ctr","kdf":"scrypt","kdfparams":{"dklen":32,"salt":"6641b6c9fab1bbdc15954b905f6678af1f493ab77ccbfa1d8d1ab176d39e7f6c","n":4096,"r":8,"p":1},"mac":"c21a03ce46ece3ab94bc64851a1861e64f27f309ad502aa80361db44cc267dd8"}} \ No newline at end of file diff --git a/mx-sdk-go-old/interactors/testdata/test.pem b/mx-sdk-go-old/interactors/testdata/test.pem deleted file mode 100644 index 543f455b..00000000 --- a/mx-sdk-go-old/interactors/testdata/test.pem +++ /dev/null @@ -1,5 +0,0 @@ ------BEGIN PRIVATE KEY for erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht----- -MzQ5ZGY5NTgwZTIwNWRlNDQwOGI4ODk5NzY5MzAxMTVlZWQwNmVmODlkOTdiNGZj -OWMwNDQwYTQ2MzAxYTlhYjEwNTY4OGU3OWVlMzllMDYwYWYzZTNkZTVmYjhkYzBl -MjdhOWFlNDYwYWU1NDQ3NGNiM2UzODNiOWE0MDE5NTc= ------END PRIVATE KEY for erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht----- \ No newline at end of file diff --git a/mx-sdk-go-old/interactors/testdata/testWithKind.json b/mx-sdk-go-old/interactors/testdata/testWithKind.json deleted file mode 100644 index 1a76fde3..00000000 --- a/mx-sdk-go-old/interactors/testdata/testWithKind.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "version": 4, - "id": "5b448dbc-5c72-4d83-8038-938b1f8dff19", - "kind": "mnemonic", - "crypto": { - "ciphertext": "6d70fbdceba874f56f15af4b1d060223799288cfc5d276d9ebb91732f5a38c3c59f83896fa7e7eb6a04c05475a6fe4d154de9b9441864c507abd0eb6987dac521b64c0c82783a3cd1e09270cd6cb5ae493f9af694b891253ac1f1ffded68b5ef39c972307e3c33a8354337540908acc795d4df72298dda1ca28ac920983e6a39a01e2bc988bd0b21f864c6de8b5356d11e4b77bc6f75ef", - "cipherparams": { - "iv": "2da5620906634972d9a623bc249d63d4" - }, - "cipher": "aes-128-ctr", - "kdf": "scrypt", - "kdfparams": { - "dklen": 32, - "salt": "aa9e0ba6b188703071a582c10e5331f2756279feb0e2768f1ba0fd38ec77f035", - "n": 4096, - "r": 8, - "p": 1 - }, - "mac": "5bc1b20b6d903b8ef3273eedf028112d65eaf85a5ef4215917c1209ec2df715a" - } -} diff --git a/mx-sdk-go-old/interactors/transaction.go b/mx-sdk-go-old/interactors/transaction.go deleted file mode 100644 index ae38efcb..00000000 --- a/mx-sdk-go-old/interactors/transaction.go +++ /dev/null @@ -1,112 +0,0 @@ -package interactors - -import ( - "context" - "sync" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - logger "github.com/multiversx/mx-chain-logger-go" -) - -var log = logger.GetOrCreate("mx-sdk-go/interactors") - -const defaultTimeBetweenBunches = time.Second - -type transactionInteractor struct { - Proxy - TxBuilder - mutTxAccumulator sync.RWMutex - mutTimeBetweenBunches sync.RWMutex - timeBetweenBunches time.Duration - txAccumulator []*transaction.FrontendTransaction -} - -// NewTransactionInteractor will create an interactor that extends the proxy functionality with some transaction-oriented functionality -func NewTransactionInteractor(proxy Proxy, txBuilder TxBuilder) (*transactionInteractor, error) { - if check.IfNil(proxy) { - return nil, ErrNilProxy - } - if check.IfNil(txBuilder) { - return nil, ErrNilTxBuilder - } - - return &transactionInteractor{ - Proxy: proxy, - TxBuilder: txBuilder, - timeBetweenBunches: defaultTimeBetweenBunches, - }, nil -} - -// SetTimeBetweenBunches sets the time between bunch sends -func (ti *transactionInteractor) SetTimeBetweenBunches(timeBetweenBunches time.Duration) { - ti.mutTimeBetweenBunches.Lock() - ti.timeBetweenBunches = timeBetweenBunches - ti.mutTimeBetweenBunches.Unlock() -} - -// AddTransaction will add the provided transaction in the transaction accumulator -func (ti *transactionInteractor) AddTransaction(tx *transaction.FrontendTransaction) { - if tx == nil { - return - } - - ti.mutTxAccumulator.Lock() - ti.txAccumulator = append(ti.txAccumulator, tx) - ti.mutTxAccumulator.Unlock() -} - -// PopAccumulatedTransactions will return the whole accumulated contents emptying the accumulator -func (ti *transactionInteractor) PopAccumulatedTransactions() []*transaction.FrontendTransaction { - ti.mutTxAccumulator.Lock() - result := make([]*transaction.FrontendTransaction, len(ti.txAccumulator)) - copy(result, ti.txAccumulator) - ti.txAccumulator = make([]*transaction.FrontendTransaction, 0) - ti.mutTxAccumulator.Unlock() - - return result -} - -// SendTransactionsAsBunch will send all stored transactions as bunches -func (ti *transactionInteractor) SendTransactionsAsBunch(ctx context.Context, bunchSize int) ([]string, error) { - if bunchSize <= 0 { - return nil, ErrInvalidValue - } - - ti.mutTimeBetweenBunches.RLock() - timeBetweenBunches := ti.timeBetweenBunches - ti.mutTimeBetweenBunches.RUnlock() - - transactions := ti.PopAccumulatedTransactions() - allHashes := make([]string, 0) - for bunchIndex := 0; len(transactions) > 0; bunchIndex++ { - var bunch []*transaction.FrontendTransaction - - log.Debug("sending bunch", "index", bunchIndex) - - if len(transactions) > bunchSize { - bunch = transactions[0:bunchSize] - transactions = transactions[bunchSize:] - } else { - bunch = transactions - transactions = make([]*transaction.FrontendTransaction, 0) - } - - hashes, err := ti.Proxy.SendTransactions(ctx, bunch) - if err != nil { - return nil, err - } - - allHashes = append(allHashes, hashes...) - - time.Sleep(timeBetweenBunches) - } - - return allHashes, nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (ti *transactionInteractor) IsInterfaceNil() bool { - return ti == nil -} diff --git a/mx-sdk-go-old/interactors/transaction_test.go b/mx-sdk-go-old/interactors/transaction_test.go deleted file mode 100644 index 8350a42b..00000000 --- a/mx-sdk-go-old/interactors/transaction_test.go +++ /dev/null @@ -1,171 +0,0 @@ -package interactors - -import ( - "context" - "math/big" - "testing" - "time" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/builders" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/testsCommon" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestTransactionInteractor_SendTransactionsAsBunch_OneTransaction(t *testing.T) { - t.Parallel() - - proxy := &testsCommon.ProxyStub{ - SendTransactionsCalled: func(tx []*transaction.FrontendTransaction) ([]string, error) { - var msgs []string - for i := 0; i < len(tx); i++ { - msgs = append(msgs, "SUCCESS") - } - return msgs, nil - }, - } - - holder := &testsCommon.CryptoComponentsHolderStub{ - GetBech32Called: func() string { - return "erd1l20m7kzfht5rhdnd4zvqr82egk7m4nvv3zk06yw82zqmrt9kf0zsf9esqq" - }, - } - - txBuilder, _ := builders.NewTxBuilder(&testsCommon.SignerStub{}) - - ti, err := NewTransactionInteractor(proxy, txBuilder) - assert.Nil(t, err, "Error on transaction interactor constructor") - - value := big.NewInt(999) - tx := &transaction.FrontendTransaction{ - Value: value.String(), - Receiver: "erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa", - Sender: holder.GetBech32(), - GasPrice: 10, - GasLimit: 100000, - Data: []byte(""), - Signature: "394c6f1375f6511dd281465fb9dd7caf013b6512a8f8ac278bbe2151cbded89da28bd539bc1c1c7884835742712c826900c092edb24ac02de9015f0f494f6c0a", - ChainID: "integration test chain id", - Version: uint32(1), - } - - err = ti.ApplySignature(holder, tx) - require.Nil(t, err) - ti.AddTransaction(tx) - - msg, err := ti.SendTransactionsAsBunch(context.Background(), 1) - assert.Nil(t, err) - assert.NotNil(t, msg) -} - -func TestTransactionInteractor_SendTransactionsAsBunch_MultipleTransactions(t *testing.T) { - t.Parallel() - - proxy := &testsCommon.ProxyStub{ - SendTransactionsCalled: func(tx []*transaction.FrontendTransaction) ([]string, error) { - var msgs []string - for i := 0; i < len(tx); i++ { - msgs = append(msgs, "SUCCESS") - } - return msgs, nil - }, - } - - holder := &testsCommon.CryptoComponentsHolderStub{ - GetBech32Called: func() string { - return "erd1l20m7kzfht5rhdnd4zvqr82egk7m4nvv3zk06yw82zqmrt9kf0zsf9esqq" - }, - } - - txBuilder, _ := builders.NewTxBuilder(&testsCommon.SignerStub{}) - - ti, err := NewTransactionInteractor(proxy, txBuilder) - assert.Nil(t, err, "Error on transaction interactor constructor") - - value := big.NewInt(999) - nonce := uint64(0) - ti.SetTimeBetweenBunches(time.Millisecond) - for nonce < 10000 { - tx := &transaction.FrontendTransaction{ - Nonce: nonce, - Value: value.String(), - Receiver: "erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa", - Sender: "erd1l20m7kzfht5rhdnd4zvqr82egk7m4nvv3zk06yw82zqmrt9kf0zsf9esqq", - GasPrice: 10, - GasLimit: 100000, - Data: []byte(""), - Signature: "394c6f1375f6511dd281465fb9dd7caf013b6512a8f8ac278bbe2151cbded89da28bd539bc1c1c7884835742712c826900c092edb24ac02de9015f0f494f6c0a", - ChainID: "integration test chain id", - Version: uint32(1), - } - - errGenerate := ti.ApplySignature(holder, tx) - require.Nil(t, errGenerate) - ti.AddTransaction(tx) - nonce++ - } - - msg, err := ti.SendTransactionsAsBunch(context.Background(), 1000) - assert.Nil(t, err) - assert.NotNil(t, msg) -} - -func TestTransactionInteractor_SendTransactionsAsBunch(t *testing.T) { - t.Parallel() - - sendCalled := 0 - proxy := &testsCommon.ProxyStub{ - SendTransactionsCalled: func(txs []*transaction.FrontendTransaction) ([]string, error) { - sendCalled++ - - return make([]string, len(txs)), nil - }, - } - txBuilder, _ := builders.NewTxBuilder(&testsCommon.SignerStub{}) - ti, _ := NewTransactionInteractor(proxy, txBuilder) - ti.SetTimeBetweenBunches(time.Millisecond) - - ti.AddTransaction(&transaction.FrontendTransaction{}) - hashes, err := ti.SendTransactionsAsBunch(context.Background(), 0) - assert.Nil(t, hashes) - assert.Equal(t, ErrInvalidValue, err) - - hashes, err = ti.SendTransactionsAsBunch(context.Background(), 1) - assert.Equal(t, 1, len(hashes)) - assert.Equal(t, 1, sendCalled) - assert.Nil(t, err) - - sendCalled = 0 - hashes, err = ti.SendTransactionsAsBunch(context.Background(), 2) - assert.Equal(t, 0, len(hashes)) - assert.Equal(t, 0, sendCalled) - assert.Nil(t, err) - - sendCalled = 0 - ti.AddTransaction(&transaction.FrontendTransaction{}) - hashes, err = ti.SendTransactionsAsBunch(context.Background(), 2) - assert.Equal(t, 1, len(hashes)) - assert.Equal(t, 1, sendCalled) - assert.Nil(t, err) - - sendCalled = 0 - numTxs := 2 - for i := 0; i < numTxs; i++ { - ti.AddTransaction(&transaction.FrontendTransaction{}) - } - hashes, err = ti.SendTransactionsAsBunch(context.Background(), 2) - assert.Equal(t, numTxs, len(hashes)) - assert.Equal(t, 1, sendCalled) - assert.Nil(t, err) - - sendCalled = 0 - numTxs = 101 - for i := 0; i < numTxs; i++ { - ti.AddTransaction(&transaction.FrontendTransaction{}) - } - hashes, err = ti.SendTransactionsAsBunch(context.Background(), 2) - assert.Equal(t, numTxs, len(hashes)) - assert.Equal(t, 51, sendCalled) - assert.Nil(t, err) -} diff --git a/mx-sdk-go-old/interactors/wallet.go b/mx-sdk-go-old/interactors/wallet.go deleted file mode 100644 index 115353f6..00000000 --- a/mx-sdk-go-old/interactors/wallet.go +++ /dev/null @@ -1,374 +0,0 @@ -package interactors - -import ( - "bytes" - "crypto/aes" - "crypto/cipher" - "crypto/hmac" - "crypto/rand" - "crypto/sha256" - "crypto/sha512" - "encoding/binary" - "encoding/hex" - "encoding/json" - "encoding/pem" - "io" - "io/ioutil" - "os" - - "github.com/multiversx/mx-chain-crypto-go/signing" - "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/pborman/uuid" - "github.com/tyler-smith/go-bip39" - "golang.org/x/crypto/scrypt" -) - -const ( - mnemonicBitSize = 256 - egldCoinType = uint32(508) - hardened = uint32(0x80000000) - keystoreVersion = 4 - keyHeaderKDF = "scrypt" - scryptN = 4096 - scryptR = 8 - scryptP = 1 - scryptDKLen = 32 - addressLen = 32 - mnemonicKind = "mnemonic" -) - -type bip32Path []uint32 - -type bip32 struct { - Key []byte - ChainCode []byte -} - -var suite = ed25519.NewEd25519() -var keyGenerator = signing.NewKeyGenerator(suite) - -type encryptedKeyJSONV4 struct { - Address string `json:"address"` - Bech32 string `json:"bech32"` - Kind string `json:"kind"` - Crypto struct { - Cipher string `json:"cipher"` - CipherText string `json:"ciphertext"` - CipherParams struct { - IV string `json:"iv"` - } `json:"cipherparams"` - KDF string `json:"kdf"` - KDFParams struct { - DkLen int `json:"dklen"` - Salt string `json:"salt"` - N int `json:"n"` - R int `json:"r"` - P int `json:"p"` - } `json:"kdfparams"` - MAC string `json:"mac"` - } `json:"crypto"` - Id string `json:"id"` - Version int `json:"version"` -} - -type wallet struct { -} - -// NewWallet creates a new wallet instance -func NewWallet() *wallet { - return &wallet{} -} - -// GenerateMnemonic will generate a new mnemonic value using the bip39 implementation -func (w *wallet) GenerateMnemonic() (data.Mnemonic, error) { - entropy, err := bip39.NewEntropy(mnemonicBitSize) - if err != nil { - return "", err - } - - mnemonicString, err := bip39.NewMnemonic(entropy) - if err != nil { - return "", err - } - - return data.Mnemonic(mnemonicString), nil -} - -// GetPrivateKeyFromMnemonic generates a private key based on mnemonic, account and address index -func (w *wallet) GetPrivateKeyFromMnemonic(mnemonic data.Mnemonic, account, addressIndex uint32) []byte { - seed := w.CreateSeedFromMnemonic(mnemonic) - privateKey := w.GetPrivateKeyFromSeed(seed, account, addressIndex) - return privateKey -} - -// GetPrivateKeyFromSeed generates a private key based on seed, account and address index -func (w *wallet) GetPrivateKeyFromSeed(seed []byte, account, addressIndex uint32) []byte { - var egldPath = bip32Path{ - 44 | hardened, - egldCoinType | hardened, - hardened, // account - hardened, - hardened, // addressIndex - } - - egldPath[2] = account | hardened - egldPath[4] = addressIndex | hardened - keyData := derivePrivateKey(seed, egldPath) - - return keyData.Key -} - -// CreateSeedFromMnemonic creates a seed for a given mnemonic -func (w *wallet) CreateSeedFromMnemonic(mnemonic data.Mnemonic) []byte { - seed := bip39.NewSeed(string(mnemonic), "") - return seed -} - -func derivePrivateKey(seed []byte, path bip32Path) *bip32 { - b := &bip32{} - digest := hmac.New(sha512.New, []byte("ed25519 seed")) - digest.Write(seed) - intermediary := digest.Sum(nil) - serializedKeyLen := 32 - serializedChildIndexLen := 4 - hardenedChildPadding := byte(0x00) - b.Key = intermediary[:serializedKeyLen] - b.ChainCode = intermediary[serializedKeyLen:] - for _, childIdx := range path { - buff := make([]byte, 1+serializedKeyLen+4) - buff[0] = hardenedChildPadding - copy(buff[1:1+serializedKeyLen], b.Key) - binary.BigEndian.PutUint32(buff[1+serializedKeyLen:1+serializedKeyLen+serializedChildIndexLen], childIdx) - digest = hmac.New(sha512.New, b.ChainCode) - digest.Write(buff) - intermediary = digest.Sum(nil) - b.Key = intermediary[:serializedKeyLen] - b.ChainCode = intermediary[serializedKeyLen:] - } - - return b -} - -// GetAddressFromPrivateKey generates the bech32 address from a private key -func (w *wallet) GetAddressFromPrivateKey(privateKeyBytes []byte) (core.AddressHandler, error) { - privateKey, err := keyGenerator.PrivateKeyFromByteArray(privateKeyBytes) - if err != nil { - return nil, err - } - publicKey := privateKey.GeneratePublic() - publicKeyBytes, err := publicKey.ToByteArray() - if err != nil { - return nil, err - } - - return data.NewAddressFromBytes(publicKeyBytes), nil -} - -// LoadPrivateKeyFromJsonFile loads a password encrypted private key from a .json file -func (w *wallet) LoadPrivateKeyFromJsonFile(filename string, password string) ([]byte, error) { - buff, err := ioutil.ReadFile(filename) - if err != nil { - return nil, err - } - - key := &encryptedKeyJSONV4{} - err = json.Unmarshal(buff, key) - if err != nil { - return nil, err - } - - mac, err := hex.DecodeString(key.Crypto.MAC) - if err != nil { - return nil, err - } - - iv, err := hex.DecodeString(key.Crypto.CipherParams.IV) - if err != nil { - return nil, err - } - - cipherText, err := hex.DecodeString(key.Crypto.CipherText) - if err != nil { - return nil, err - } - - salt, err := hex.DecodeString(key.Crypto.KDFParams.Salt) - if err != nil { - return nil, err - } - - derivedKey, err := scrypt.Key([]byte(password), salt, - key.Crypto.KDFParams.N, - key.Crypto.KDFParams.R, - key.Crypto.KDFParams.P, - key.Crypto.KDFParams.DkLen) - if err != nil { - return nil, err - } - - hash := hmac.New(sha256.New, derivedKey[16:32]) - _, err = hash.Write(cipherText) - if err != nil { - return nil, err - } - - sha := hash.Sum(nil) - if !bytes.Equal(sha, mac) { - return nil, ErrWrongPassword - } - - aesBlock, err := aes.NewCipher(derivedKey[:16]) - if err != nil { - return nil, err - } - - stream := cipher.NewCTR(aesBlock, iv) - decryptedData := make([]byte, len(cipherText)) - stream.XORKeyStream(decryptedData, cipherText) - - if key.Kind != mnemonicKind { // wallets with the old JSON format - return w.secretKeyAfterChecks(key, decryptedData) - } else { - return w.secretKeyFromMnemonic(decryptedData), nil - } -} - -func (w *wallet) secretKeyAfterChecks(key *encryptedKeyJSONV4, secretKey []byte) ([]byte, error) { - if len(secretKey) > 32 { - secretKey = secretKey[:32] - } - address, errGetAddr := w.GetAddressFromPrivateKey(secretKey) - if errGetAddr != nil { - return nil, errGetAddr - } - - isSameAccount := hex.EncodeToString(address.AddressBytes()) == key.Address && - address.AddressAsBech32String() == key.Bech32 - if !isSameAccount { - return nil, ErrDifferentAccountRecovered - } - - return secretKey, nil -} - -func (w *wallet) secretKeyFromMnemonic(mnemonic []byte) []byte { - return w.GetPrivateKeyFromMnemonic(data.Mnemonic(mnemonic), 0, 0) -} - -// SavePrivateKeyToJsonFile saves a password encrypted private key to a .json file -func (w *wallet) SavePrivateKeyToJsonFile(privateKey []byte, password string, filename string) error { - salt := make([]byte, 32) - _, err := io.ReadFull(rand.Reader, salt) - if err != nil { - return err - } - - derivedKey, err := scrypt.Key([]byte(password), salt, scryptN, scryptR, scryptP, scryptDKLen) - if err != nil { - return err - } - - encryptKey := derivedKey[:16] - iv := make([]byte, aes.BlockSize) // 16 - _, err = io.ReadFull(rand.Reader, iv) - if err != nil { - return err - } - - aesBlock, err := aes.NewCipher(encryptKey) - if err != nil { - return err - } - - stream := cipher.NewCTR(aesBlock, iv) - cipherText := make([]byte, len(privateKey)) - stream.XORKeyStream(cipherText, privateKey) - - hash := hmac.New(sha256.New, derivedKey[16:32]) - _, err = hash.Write(cipherText) - if err != nil { - return err - } - - mac := hash.Sum(nil) - - address, err := w.GetAddressFromPrivateKey(privateKey) - if err != nil { - return err - } - - keystoreJson := &encryptedKeyJSONV4{ - Bech32: address.AddressAsBech32String(), - Address: hex.EncodeToString(address.AddressBytes()), - Version: keystoreVersion, - Id: uuid.New(), - } - keystoreJson.Crypto.CipherParams.IV = hex.EncodeToString(iv) - keystoreJson.Crypto.Cipher = "aes-128-ctr" - keystoreJson.Crypto.CipherText = hex.EncodeToString(cipherText) - keystoreJson.Crypto.KDF = keyHeaderKDF - keystoreJson.Crypto.MAC = hex.EncodeToString(mac) - keystoreJson.Crypto.KDFParams.N = scryptN - keystoreJson.Crypto.KDFParams.R = scryptR - keystoreJson.Crypto.KDFParams.P = scryptP - keystoreJson.Crypto.KDFParams.DkLen = scryptDKLen - keystoreJson.Crypto.KDFParams.Salt = hex.EncodeToString(salt) - - buff, err := json.Marshal(keystoreJson) - if err != nil { - return err - } - - return ioutil.WriteFile(filename, buff, 0644) -} - -// LoadPrivateKeyFromPemFile loads a private key from a .pem file -func (w *wallet) LoadPrivateKeyFromPemFile(filename string) ([]byte, error) { - buff, err := ioutil.ReadFile(filename) - if err != nil { - return nil, err - } - - return w.LoadPrivateKeyFromPemData(buff) -} - -// LoadPrivateKeyFromPemData returns the private key from decoded pem data -func (w *wallet) LoadPrivateKeyFromPemData(buff []byte) ([]byte, error) { - blk, _ := pem.Decode(buff) - if blk == nil { - return nil, ErrInvalidPemFile - } - - privKey := blk.Bytes - if len(privKey) > addressLen*2 { - privKey = privKey[:addressLen*2] - } - - return hex.DecodeString(string(privKey)) -} - -// SavePrivateKeyToPemFile saves the private key in a .pem file -func (w *wallet) SavePrivateKeyToPemFile(privateKey []byte, filename string) error { - address, err := w.GetAddressFromPrivateKey(privateKey) - if err != nil { - return err - } - if len(privateKey) == addressLen { - privateKey = append(privateKey, address.AddressBytes()...) - } - blk := pem.Block{ - Type: "PRIVATE KEY for " + address.AddressAsBech32String(), - Bytes: []byte(hex.EncodeToString(privateKey)), - } - file, err := os.OpenFile(filename, os.O_CREATE|os.O_WRONLY, 0600) - if err != nil { - return err - } - defer func() { - _ = file.Close() - }() - - return pem.Encode(file, &blk) -} diff --git a/mx-sdk-go-old/interactors/wallet_test.go b/mx-sdk-go-old/interactors/wallet_test.go deleted file mode 100644 index 439fda8a..00000000 --- a/mx-sdk-go-old/interactors/wallet_test.go +++ /dev/null @@ -1,171 +0,0 @@ -package interactors - -import ( - "encoding/hex" - "fmt" - "io/ioutil" - "os" - "testing" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestWallet_GenerateMnemonicShouldWork(t *testing.T) { - t.Parallel() - - w := NewWallet() - mnemonic, err := w.GenerateMnemonic() - assert.Nil(t, err) - assert.Equal(t, 24, len(mnemonic.ToSplitMnemonicWords())) -} - -func TestWallet_GetPrivateKeyFromMnemonic(t *testing.T) { - t.Parallel() - - w := NewWallet() - mnemonic := data.Mnemonic("acid twice post genre topic observe valid viable gesture fortune funny dawn around blood enemy page update reduce decline van bundle zebra rookie real") - - privKey := w.GetPrivateKeyFromMnemonic(mnemonic, 0, 0) - expectedHexPrivKey := "0b7966138e80b8f3bb64046f56aea4250fd7bacad6ed214165cea6767fd0bc2c" - assert.Equal(t, expectedHexPrivKey, hex.EncodeToString(privKey)) - - privKey = w.GetPrivateKeyFromMnemonic(mnemonic, 0, 1) - expectedHexPrivKey = "1648ad209d6b157a289884933e3bb30f161ec7113221ec16f87c3578b05830b0" - assert.Equal(t, expectedHexPrivKey, hex.EncodeToString(privKey)) -} - -func TestWallet_CreateSeedFromMnemonicThenGetPrivateKeyFromSeed(t *testing.T) { - t.Parallel() - - w := NewWallet() - mnemonic := data.Mnemonic("acid twice post genre topic observe valid viable gesture fortune funny dawn around blood enemy page update reduce decline van bundle zebra rookie real") - seed := w.CreateSeedFromMnemonic(mnemonic) - - privKey := w.GetPrivateKeyFromSeed(seed, 0, 0) - expectedHexPrivKey := "0b7966138e80b8f3bb64046f56aea4250fd7bacad6ed214165cea6767fd0bc2c" - assert.Equal(t, expectedHexPrivKey, hex.EncodeToString(privKey)) - - privKey = w.GetPrivateKeyFromSeed(seed, 0, 1) - expectedHexPrivKey = "1648ad209d6b157a289884933e3bb30f161ec7113221ec16f87c3578b05830b0" - assert.Equal(t, expectedHexPrivKey, hex.EncodeToString(privKey)) -} - -func TestWallet_GetAddressFromMnemonicWalletIntegration(t *testing.T) { - t.Parallel() - - w := NewWallet() - mnemonic := data.Mnemonic("bid involve twenty cave offer life hello three walnut travel rare bike edit canyon ice brave theme furnace cotton swing wear bread fine latin") - privKey := w.GetPrivateKeyFromMnemonic(mnemonic, 0, 0) - fmt.Println(hex.EncodeToString(privKey)) - address, err := w.GetAddressFromPrivateKey(privKey) - assert.Nil(t, err) - expectedBech32Addr := "erd1h692scsz3um6e5qwzts4yjrewxqxwcwxzavl5n9q8sprussx8fqsu70jf5" - assert.Equal(t, expectedBech32Addr, address.AddressAsBech32String()) -} - -func TestWallet_GetAddressFromPrivateKey(t *testing.T) { - t.Parallel() - - hexPrivKey := "0b7966138e80b8f3bb64046f56aea4250fd7bacad6ed214165cea6767fd0bc2c" - privKey, err := hex.DecodeString(hexPrivKey) - require.Nil(t, err) - - w := NewWallet() - address, err := w.GetAddressFromPrivateKey(privKey) - assert.Nil(t, err) - expectedBech32Addr := "erd1mlh7q3fcgrjeq0et65vaaxcw6m5ky8jhu296pdxpk9g32zga6uhsemxx2a" - assert.Equal(t, expectedBech32Addr, address.AddressAsBech32String()) -} - -func TestWallet_LoadPrivateKeyFromJsonFile(t *testing.T) { - t.Parallel() - - filename := "testdata/test.json" - password := "pAssword1~" - w := NewWallet() - privkey, err := w.LoadPrivateKeyFromJsonFile(filename, password) - require.Nil(t, err) - expectedHexPrivKey := "15cfe2140ee9821f706423036ba58d1e6ec13dbc4ebf206732ad40b5236af403" - assert.Equal(t, expectedHexPrivKey, hex.EncodeToString(privkey)) -} - -func TestWallet_LoadPrivateKeyFromJsonFileWithKind(t *testing.T) { - t.Parallel() - - filename := "testdata/testWithKind.json" - password := "password" - w := NewWallet() - privkey, err := w.LoadPrivateKeyFromJsonFile(filename, password) - require.Nil(t, err) - expectedHexPrivKey := "413f42575f7f26fad3317a778771212fdb80245850981e48b58a4f25e344e8f9" - assert.Equal(t, expectedHexPrivKey, hex.EncodeToString(privkey)) - - address, _ := w.GetAddressFromPrivateKey(privkey) - require.Equal(t, "erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th", address.AddressAsBech32String()) -} - -func TestWallet_SavePrivateKeyToJsonFile(t *testing.T) { - t.Parallel() - - file, err := ioutil.TempFile("", "temp-*.json") - require.Nil(t, err) - _ = file.Close() //close the file so the save can write in it - - defer func() { - _ = os.Remove(file.Name()) - }() - - hexPrivKey := "15cfe2140ee9821f706423036ba58d1e6ec13dbc4ebf206732ad40b5236af403" - privKey, err := hex.DecodeString(hexPrivKey) - require.Nil(t, err) - password := "pAssword1~" - - w := NewWallet() - err = w.SavePrivateKeyToJsonFile(privKey, password, file.Name()) - require.Nil(t, err) - - recoveredSk, err := w.LoadPrivateKeyFromJsonFile(file.Name(), password) - require.Nil(t, err) - assert.Equal(t, privKey, recoveredSk) -} - -func TestWallet_LoadPrivateKeyFromPemFile(t *testing.T) { - t.Parallel() - - filename := "testdata/test.pem" - w := NewWallet() - privkey, err := w.LoadPrivateKeyFromPemFile(filename) - require.Nil(t, err) - - address, err := w.GetAddressFromPrivateKey(privkey) - require.Nil(t, err) - - expectedBech32Address := "erd1zptg3eu7uw0qvzhnu009lwxupcn6ntjxptj5gaxt8curhxjqr9tsqpsnht" - assert.Equal(t, expectedBech32Address, address.AddressAsBech32String()) -} - -func TestWallet_SavePrivateKeyToPemFile(t *testing.T) { - t.Parallel() - - file, err := ioutil.TempFile("", "temp-*.pem") - require.Nil(t, err) - _ = file.Close() //close the file so the save can write in it - - defer func() { - _ = os.Remove(file.Name()) - }() - - hexPrivKey := "15cfe2140ee9821f706423036ba58d1e6ec13dbc4ebf206732ad40b5236af403" - privKey, err := hex.DecodeString(hexPrivKey) - require.Nil(t, err) - - w := NewWallet() - err = w.SavePrivateKeyToPemFile(privKey, file.Name()) - require.Nil(t, err) - - recoveredSk, err := w.LoadPrivateKeyFromPemFile(file.Name()) - require.Nil(t, err) - assert.Equal(t, privKey, recoveredSk) -} diff --git a/mx-sdk-go-old/libraries/libbls/README.md b/mx-sdk-go-old/libraries/libbls/README.md deleted file mode 100644 index fd4d6163..00000000 --- a/mx-sdk-go-old/libraries/libbls/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# libbls - -BLS signature utilities, compiled as a library (shared object). - -## Build - -On Linux: - -``` -go build -buildmode=c-shared -o libbls.so . -``` - -On MacOS: - -``` -go build -buildmode=c-shared -o libbls.dylib . -``` diff --git a/mx-sdk-go-old/libraries/libbls/libbls.go b/mx-sdk-go-old/libraries/libbls/libbls.go deleted file mode 100644 index be1323c7..00000000 --- a/mx-sdk-go-old/libraries/libbls/libbls.go +++ /dev/null @@ -1,110 +0,0 @@ -package main - -import ( - "encoding/hex" - "log" - - "github.com/multiversx/mx-chain-crypto-go/signing" - "github.com/multiversx/mx-chain-crypto-go/signing/mcl" - "github.com/multiversx/mx-chain-crypto-go/signing/mcl/singlesig" -) - -var ( - keyGenerator = signing.NewKeyGenerator(mcl.NewSuiteBLS12()) - blsSigner = singlesig.BlsSingleSigner{} -) - -func doGeneratePrivateKeyAsHex() string { - privateKey, _ := keyGenerator.GeneratePair() - privateKeyBytes, err := privateKey.ToByteArray() - if err != nil { - log.Println("doGeneratePrivateKey(): error when decoding the private key", err) - return "" - } - - return hex.EncodeToString(privateKeyBytes) -} - -func doGeneratePublicKeyAsHex(privateKeyHex string) string { - privateKeyBytes, ok := decodeInputParameter("private key", privateKeyHex) - if !ok { - return "" - } - - privateKey, err := keyGenerator.PrivateKeyFromByteArray(privateKeyBytes) - if err != nil { - log.Println("doGeneratePublicKeyAsHex(): error when creating the private key", err) - return "" - } - - publicKey := privateKey.GeneratePublic() - publicKeyBytes, err := publicKey.ToByteArray() - if err != nil { - log.Println("doGeneratePublicKeyAsHex(): error when decoding the public key", err) - return "" - } - - return hex.EncodeToString(publicKeyBytes) -} - -func doComputeMessageSignatureAsHex(messageHex string, privateKeyHex string) string { - message, ok := decodeInputParameter("message", messageHex) - if !ok { - return "" - } - - privateKeyBytes, ok := decodeInputParameter("private key", privateKeyHex) - if !ok { - return "" - } - - privateKey, err := keyGenerator.PrivateKeyFromByteArray(privateKeyBytes) - if err != nil { - log.Println("doComputeMessageSignatureAsHex(): error when creating the private key", err) - return "" - } - - signature, err := blsSigner.Sign(privateKey, message) - if err != nil { - log.Println("doComputeMessageSignatureAsHex(): error when signing the message", err) - return "" - } - - return hex.EncodeToString(signature) -} - -func doVerifyMessageSignature(publicKeyHex string, messageHex string, signatureHex string) bool { - publicKeyBytes, ok := decodeInputParameter("public key", publicKeyHex) - if !ok { - return false - } - - message, ok := decodeInputParameter("message", messageHex) - if !ok { - return false - } - - signature, ok := decodeInputParameter("signature", signatureHex) - if !ok { - return false - } - - publicKey, err := keyGenerator.PublicKeyFromByteArray(publicKeyBytes) - if err != nil { - log.Println("doVerifyMessageSignature(): error when creating the public key", err) - return false - } - - err = blsSigner.Verify(publicKey, message, signature) - return err == nil -} - -func decodeInputParameter(parameterName string, parameterValueHex string) ([]byte, bool) { - data, err := hex.DecodeString(parameterValueHex) - if err != nil { - log.Println("cannot decode input parameter", parameterName, err) - return nil, false - } - - return data, true -} diff --git a/mx-sdk-go-old/libraries/libbls/libbls.h b/mx-sdk-go-old/libraries/libbls/libbls.h deleted file mode 100644 index 2ae4d8a9..00000000 --- a/mx-sdk-go-old/libraries/libbls/libbls.h +++ /dev/null @@ -1,78 +0,0 @@ -/* Code generated by cmd/cgo; DO NOT EDIT. */ - -/* package github.com/multiversx/mx-sdk-go/libraries/libbls */ - - -#line 1 "cgo-builtin-export-prolog" - -#include /* for ptrdiff_t below */ - -#ifndef GO_CGO_EXPORT_PROLOGUE_H -#define GO_CGO_EXPORT_PROLOGUE_H - -#ifndef GO_CGO_GOSTRING_TYPEDEF -typedef struct { const char *p; ptrdiff_t n; } _GoString_; -#endif - -#endif - -/* Start of preamble from import "C" comments. */ - - - - -/* End of preamble from import "C" comments. */ - - -/* Start of boilerplate cgo prologue. */ -#line 1 "cgo-gcc-export-header-prolog" - -#ifndef GO_CGO_PROLOGUE_H -#define GO_CGO_PROLOGUE_H - -typedef signed char GoInt8; -typedef unsigned char GoUint8; -typedef short GoInt16; -typedef unsigned short GoUint16; -typedef int GoInt32; -typedef unsigned int GoUint32; -typedef long long GoInt64; -typedef unsigned long long GoUint64; -typedef GoInt64 GoInt; -typedef GoUint64 GoUint; -typedef __SIZE_TYPE__ GoUintptr; -typedef float GoFloat32; -typedef double GoFloat64; -typedef float _Complex GoComplex64; -typedef double _Complex GoComplex128; - -/* - static assertion to make sure the file is being used on architecture - at least with matching size of GoInt. -*/ -typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1]; - -#ifndef GO_CGO_GOSTRING_TYPEDEF -typedef _GoString_ GoString; -#endif -typedef void *GoMap; -typedef void *GoChan; -typedef struct { void *t; void *v; } GoInterface; -typedef struct { void *data; GoInt len; GoInt cap; } GoSlice; - -#endif - -/* End of boilerplate cgo prologue. */ - -#ifdef __cplusplus -extern "C" { -#endif - -extern char* generatePublicKey(char* privateKey); -extern char* computeMessageSignature(char* message, char* privateKey); -extern GoInt verifyMessageSignature(char* publicKey, char* message, char* signature); -extern char* generatePrivateKey(); - -#ifdef __cplusplus -} -#endif diff --git a/mx-sdk-go-old/libraries/libbls/libbls_test.go b/mx-sdk-go-old/libraries/libbls/libbls_test.go deleted file mode 100644 index 376f2ec0..00000000 --- a/mx-sdk-go-old/libraries/libbls/libbls_test.go +++ /dev/null @@ -1,89 +0,0 @@ -package main - -import ( - "encoding/hex" - "testing" - - "github.com/stretchr/testify/require" -) - -func TestDoGeneratePrivateKeyAsHex(t *testing.T) { - privateKeyHex := doGeneratePrivateKeyAsHex() - privateKey, err := hex.DecodeString(privateKeyHex) - - require.Nil(t, err) - require.Len(t, privateKey, 32) -} - -func TestDoGeneratePublicKeyAsHex(t *testing.T) { - t.Run("with good input", func(t *testing.T) { - publicKeyHex := doGeneratePublicKeyAsHex("7cff99bd671502db7d15bc8abc0c9a804fb925406fbdd50f1e4c17a4cd774247") - require.Equal(t, "e7beaa95b3877f47348df4dd1cb578a4f7cabf7a20bfeefe5cdd263878ff132b765e04fef6f40c93512b666c47ed7719b8902f6c922c04247989b7137e837cc81a62e54712471c97a2ddab75aa9c2f58f813ed4c0fa722bde0ab718bff382208", publicKeyHex) - }) - - t.Run("with bad input", func(t *testing.T) { - publicKeyHex := doGeneratePublicKeyAsHex("7cff99bd671502db7d15bc8abc0c9a804fb925406fbdd50f1e4c17a4cd7742") - require.Equal(t, "", publicKeyHex) - }) -} - -func TestDoComputeMessageSignatureAsHex(t *testing.T) { - t.Run("with good input", func(t *testing.T) { - messageHex := hex.EncodeToString([]byte("hello")) - privateKeyHex := "7cff99bd671502db7d15bc8abc0c9a804fb925406fbdd50f1e4c17a4cd774247" - signatureHex := doComputeMessageSignatureAsHex(messageHex, privateKeyHex) - require.Equal(t, "84fd0a3a9d4f1ea2d4b40c6da67f9b786284a1c3895b7253fec7311597cda3f757862bb0690a92a13ce612c33889fd86", signatureHex) - }) - - t.Run("with bad input (not hex)", func(t *testing.T) { - signatureHex := doComputeMessageSignatureAsHex("not hex", "7cff99bd671502db7d15bc8abc0c9a804fb925406fbdd50f1e4c17a4cd774247") - require.Equal(t, "", signatureHex) - }) - - t.Run("with bad input (bad key)", func(t *testing.T) { - messageHex := hex.EncodeToString([]byte("hello")) - signatureHex := doComputeMessageSignatureAsHex(messageHex, "7cff99bd671502db7d15bc8abc0c9a804fb925406fbdd50f1e4c17a4cd7742") - require.Equal(t, "", signatureHex) - }) -} - -func TestDoVerifyMessageSignature(t *testing.T) { - t.Run("with good input", func(t *testing.T) { - publicKeyHex := "e7beaa95b3877f47348df4dd1cb578a4f7cabf7a20bfeefe5cdd263878ff132b765e04fef6f40c93512b666c47ed7719b8902f6c922c04247989b7137e837cc81a62e54712471c97a2ddab75aa9c2f58f813ed4c0fa722bde0ab718bff382208" - messageHex := hex.EncodeToString([]byte("hello")) - signatureHex := "84fd0a3a9d4f1ea2d4b40c6da67f9b786284a1c3895b7253fec7311597cda3f757862bb0690a92a13ce612c33889fd86" - require.True(t, doVerifyMessageSignature(publicKeyHex, messageHex, signatureHex)) - }) - - t.Run("with altered signature", func(t *testing.T) { - publicKeyHex := "e7beaa95b3877f47348df4dd1cb578a4f7cabf7a20bfeefe5cdd263878ff132b765e04fef6f40c93512b666c47ed7719b8902f6c922c04247989b7137e837cc81a62e54712471c97a2ddab75aa9c2f58f813ed4c0fa722bde0ab718bff382208" - messageHex := hex.EncodeToString([]byte("hello")) - signatureHex := "94fd0a3a9d4f1ea2d4b40c6da67f9b786284a1c3895b7253fec7311597cda3f757862bb0690a92a13ce612c33889fd86" - require.False(t, doVerifyMessageSignature(publicKeyHex, messageHex, signatureHex)) - }) - - t.Run("with altered message", func(t *testing.T) { - publicKeyHex := "e7beaa95b3877f47348df4dd1cb578a4f7cabf7a20bfeefe5cdd263878ff132b765e04fef6f40c93512b666c47ed7719b8902f6c922c04247989b7137e837cc81a62e54712471c97a2ddab75aa9c2f58f813ed4c0fa722bde0ab718bff382208" - messageHex := hex.EncodeToString([]byte("helloWorld")) - signatureHex := "84fd0a3a9d4f1ea2d4b40c6da67f9b786284a1c3895b7253fec7311597cda3f757862bb0690a92a13ce612c33889fd86" - require.False(t, doVerifyMessageSignature(publicKeyHex, messageHex, signatureHex)) - }) - - t.Run("with bad public key", func(t *testing.T) { - publicKeyHex := "badbad95b3877f47348df4dd1cb578a4f7cabf7a20bfeefe5cdd263878ff132b765e04fef6f40c93512b666c47ed7719b8902f6c922c04247989b7137e837cc81a62e54712471c97a2ddab75aa9c2f58f813ed4c0fa722bde0ab718bff382208" - messageHex := hex.EncodeToString([]byte("hello")) - signatureHex := "84fd0a3a9d4f1ea2d4b40c6da67f9b786284a1c3895b7253fec7311597cda3f757862bb0690a92a13ce612c33889fd86" - require.False(t, doVerifyMessageSignature(publicKeyHex, messageHex, signatureHex)) - }) -} - -func TestGenerateSignAndVerify(t *testing.T) { - messageHex := hex.EncodeToString([]byte("hello")) - - privateKeyHex := doGeneratePrivateKeyAsHex() - publicKeyHex := doGeneratePublicKeyAsHex(privateKeyHex) - signatureHex := doComputeMessageSignatureAsHex(messageHex, privateKeyHex) - isOk := doVerifyMessageSignature(publicKeyHex, messageHex, signatureHex) - - require.True(t, isOk) -} diff --git a/mx-sdk-go-old/libraries/libbls/main.go b/mx-sdk-go-old/libraries/libbls/main.go deleted file mode 100644 index 84938bc7..00000000 --- a/mx-sdk-go-old/libraries/libbls/main.go +++ /dev/null @@ -1,42 +0,0 @@ -package main - -import ( - "C" -) - -func main() { -} - -//export generatePublicKey -func generatePublicKey(privateKey *C.char) *C.char { - privateKeyHex := C.GoString(privateKey) - publicKeyHex := doGeneratePublicKeyAsHex(privateKeyHex) - return C.CString(publicKeyHex) -} - -//export computeMessageSignature -func computeMessageSignature(message *C.char, privateKey *C.char) *C.char { - messageHex := C.GoString(message) - privateKeyHex := C.GoString(privateKey) - signatureHex := doComputeMessageSignatureAsHex(messageHex, privateKeyHex) - return C.CString(signatureHex) -} - -//export verifyMessageSignature -func verifyMessageSignature(publicKey *C.char, message *C.char, signature *C.char) int { - publicKeyHex := C.GoString(publicKey) - messageHex := C.GoString(message) - signatureHex := C.GoString(signature) - ok := doVerifyMessageSignature(publicKeyHex, messageHex, signatureHex) - if ok { - return 1 - } - - return 0 -} - -//export generatePrivateKey -func generatePrivateKey() *C.char { - privateKeyHex := doGeneratePrivateKeyAsHex() - return C.CString(privateKeyHex) -} diff --git a/mx-sdk-go-old/serde/deserializer.go b/mx-sdk-go-old/serde/deserializer.go deleted file mode 100644 index d26ef335..00000000 --- a/mx-sdk-go-old/serde/deserializer.go +++ /dev/null @@ -1,182 +0,0 @@ -package serde - -import ( - "encoding/binary" - "errors" - "math/big" - "reflect" -) - -type deserializer struct{} - -// NewDeserializer will create a new instance of the deserializer. -func NewDeserializer() *deserializer { - return &deserializer{} -} - -// CreatePrimitiveDataType deserializes the buffer and populates the received object -func (des *deserializer) CreatePrimitiveDataType(obj interface{}, buff []byte) error { - reflectedValue, err := des.getReflectedValue(obj) - if err != nil { - return err - } - - if reflectedValue.Kind() == reflect.String || reflectedValue.Type() == reflect.ValueOf(big.Int{}).Type() { - length := make([]byte, 4) - binary.BigEndian.PutUint32(length[:], uint32(len(buff))) - buff = append(length[:], buff...) - } - buffer := NewSourceBuffer(buff) - - valueFromBuffer, eof := des.getNextValueFromBuffer(buffer, reflectedValue) - if eof { - return errors.New("empty buffer") - } - err = des.setValue(reflectedValue, valueFromBuffer) - if err != nil { - return err - } - - return nil -} - -// CreateStruct deserialize the buffer and populate the fields of the received object -func (des *deserializer) CreateStruct(obj interface{}, buff []byte) (uint64, error) { - buffer := NewSourceBuffer(buff) - - reflectedValue, err := des.getReflectedValue(obj) - if err != nil { - return buffer.Pos(), err - } - if reflectedValue.Kind() != reflect.Struct || reflectedValue.Type() == reflect.TypeOf(big.Int{}) { - return buffer.Pos(), errors.New("invalid type") - } - - usedBytes, err := des.setFields(reflectedValue, buffer) - - if err != nil { - return usedBytes, err - } - - return buffer.Pos(), nil -} - -func (des *deserializer) setFields(reflectedValue reflect.Value, buffer *SourceBuffer) (uint64, error) { - for fieldIndex := 0; fieldIndex < reflectedValue.NumField(); fieldIndex++ { - reflectedValueField := reflectedValue.Field(fieldIndex) - reflectedValueFieldName := reflectedValue.Type().Field(fieldIndex).Name - - valueFromBuffer, eof := des.getNextValueFromBuffer(buffer, reflectedValueField) - if eof { - return buffer.Pos(), errors.New("empty buffer") - } - - if (reflectedValueField.Kind() == reflect.Struct || reflectedValueField.Kind() == reflect.Ptr) && - reflect.TypeOf(valueFromBuffer) == reflect.TypeOf([]byte{}) { - usedBytes, err := des.CreateStruct(reflectedValueField, valueFromBuffer.([]byte)) - if err != nil { - return usedBytes, err - } - buffer.Skip(usedBytes) - continue - } - - err := des.setField(reflectedValue, reflectedValueFieldName, valueFromBuffer) - if err != nil { - return buffer.Pos(), errors.New("can't set value for field") - } - } - return buffer.Pos(), nil -} - -func (des *deserializer) setField(structValue reflect.Value, name string, value interface{}) error { - structFieldValue := structValue.FieldByName(name) - - err := des.setValue(structFieldValue, value) - if err != nil { - return err - } - return nil -} - -func (des *deserializer) getReflectedValue(obj interface{}) (value reflect.Value, err error) { - if _, ok := obj.(reflect.Value); ok { - value = obj.(reflect.Value) - } else { - value = reflect.ValueOf(obj) - } - if value.Kind() == reflect.Interface || value.Kind() == reflect.Ptr { - value = value.Elem() - } - - if !value.CanSet() { - err = errors.New("invalid type") - } - - return -} - -func (des *deserializer) getNextValueFromBuffer(buffer *SourceBuffer, v reflect.Value) (interface{}, bool) { - switch v.Kind() { - case reflect.Int8: - value, eof := buffer.NextUint8() - return int8(value), eof - case reflect.Int16: - value, eof := buffer.NextInt16() - return value, eof - case reflect.Int32: - value, eof := buffer.NextInt32() - return value, eof - case reflect.Int64: - value, eof := buffer.NextInt64() - return value, eof - case reflect.Uint16: - value, eof := buffer.NextUint16() - return value, eof - case reflect.Uint32: - value, eof := buffer.NextUint32() - return value, eof - case reflect.Uint64: - value, eof := buffer.NextUint64() - return value, eof - case reflect.Uint8: - value, eof := buffer.NextUint8() - return value, eof - case reflect.Bool: - value, eof := buffer.NextBool() - return value, eof - case reflect.String: - value, eof := buffer.NextVarBytes() - return string(value), eof - case reflect.Struct: - if v.Type() == reflect.ValueOf(big.Int{}).Type() { - buff, eof := buffer.NextVarBytes() - return *big.NewInt(0).SetBytes(buff), eof - } - return buffer.OffBytes(), false - case reflect.Ptr: - return buffer.OffBytes(), false - default: - return nil, true - } -} - -func (des *deserializer) setValue(obj reflect.Value, value interface{}) error { - if !obj.IsValid() { - return errors.New("invalid object") - } - if !obj.CanSet() { - return errors.New("cannot set field value") - } - - structFieldType := obj.Type() - val := reflect.ValueOf(value) - valType := val.Type() - if structFieldType != valType { - return errors.New("provided value type didn't match obj field type") - } - - obj.Set(val) - - return nil -} diff --git a/mx-sdk-go-old/serde/deserializer_test.go b/mx-sdk-go-old/serde/deserializer_test.go deleted file mode 100644 index ceba9f25..00000000 --- a/mx-sdk-go-old/serde/deserializer_test.go +++ /dev/null @@ -1,106 +0,0 @@ -package serde - -import ( - "io/ioutil" - "math/big" - "testing" - - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/serde/testingMocks" - "github.com/stretchr/testify/assert" -) - -const ( - srcBasicTypes = "./testingMocks/basicDataTypes" - srcNestedStructures = "./testingMocks/nestedStructures" - srcPrimitive = "./testingMocks/basicTypeBigInt" -) - -func TestDeserializer_CreateStruct_BasicTypes(t *testing.T) { - t.Parallel() - - data, err := ioutil.ReadFile(srcBasicTypes) - assert.Nil(t, err) - assert.NotNil(t, data) - - ds := NewDeserializer() - - bt := &testingMocks.DataBasics{} - - usedBytes, err := ds.CreateStruct(bt, data) - assert.Nil(t, err) - assert.Equal(t, uint64(len(data)), usedBytes) - - bigInt := big.Int{} - bigInt.SetBytes([]byte{23, 0, 0, 0}) - expectedStruct := &testingMocks.DataBasics{ - U8: 8, - U16: 16, - U32: 32, - U64: 64, - I8: 8, - I16: 16, - I32: 32, - I64: 64, - Bool: true, - BoxedBytes: "BoxedBytes", - TokenIdentifier: "ALC-6258d2", - BigInt: bigInt, - BigUint: bigInt, - } - - assert.EqualValues(t, expectedStruct, bt) - -} - -func TestDeserializer_CreateStruct_NestedStructures(t *testing.T) { - t.Parallel() - - data, err := ioutil.ReadFile(srcNestedStructures) - assert.Nil(t, err) - assert.NotNil(t, data) - - ds := NewDeserializer() - - nesting := &testingMocks.NestingStructure{} - - usedBytes, err := ds.CreateStruct(nesting, data) - assert.Nil(t, err) - assert.Equal(t, uint64(len(data)), usedBytes) - - bigInt := big.Int{} - bigInt.SetBytes([]byte{23, 0, 0, 0}) - expectedStruct := &testingMocks.NestingStructure{ - String: "BoxedBytes", - Ticker: "ALC-6258d2", - Bool: false, - Int64: 385875968, - BigInt: bigInt, - OtherStruct: testingMocks.OtherStruct{ - String: "BoxedBytes", - Bool: true, - }, - AnotherBigInt: bigInt, - } - - assert.EqualValues(t, expectedStruct, nesting) -} - -func Test_deserializer_CreatePrimitiveDataType(t *testing.T) { - t.Parallel() - - data, err := ioutil.ReadFile(srcPrimitive) - assert.Nil(t, err) - assert.NotNil(t, data) - - ds := NewDeserializer() - - bigInt := &big.Int{} - - err = ds.CreatePrimitiveDataType(bigInt, data) - assert.Nil(t, err) - - expected := &big.Int{} - expected.SetBytes(data) - - assert.EqualValues(t, expected, bigInt) -} diff --git a/mx-sdk-go-old/serde/interface.go b/mx-sdk-go-old/serde/interface.go deleted file mode 100644 index c84f2469..00000000 --- a/mx-sdk-go-old/serde/interface.go +++ /dev/null @@ -1,7 +0,0 @@ -package serde - -// Deserializer defines the methods used to populate object fields based on the received byte array -type Deserializer interface { - CreateStruct(obj interface{}, buff []byte) (uint64, error) - CreatePrimitiveDataType(obj interface{}, buff []byte) error -} diff --git a/mx-sdk-go-old/serde/sourceBuffer.go b/mx-sdk-go-old/serde/sourceBuffer.go deleted file mode 100644 index ec30e48f..00000000 --- a/mx-sdk-go-old/serde/sourceBuffer.go +++ /dev/null @@ -1,202 +0,0 @@ -package serde - -import ( - "encoding/binary" - "math" -) - -const ( - uint16Size = 2 - uint32Size = 4 - uint64Size = 8 - uint256Size = 32 -) - -// Uint256 is an alias for [32]byte -type Uint256 [uint256Size]byte - -// SourceBuffer encapsulates a bytes array -type SourceBuffer struct { - s []byte - off uint64 // current reading index -} - -// NewSourceBuffer returns a new SourceBuffer reading from b. -func NewSourceBuffer(b []byte) *SourceBuffer { - return &SourceBuffer{b, 0} -} - -// Len returns the number of unused bytes -func (sb *SourceBuffer) Len() uint64 { - length := uint64(len(sb.s)) - if sb.off >= length { - return 0 - } - return length - sb.off -} - -// Bytes returns the entire array of bytes -func (sb *SourceBuffer) Bytes() []byte { - return sb.s -} - -// OffBytes returns unused bytes -func (sb *SourceBuffer) OffBytes() []byte { - return sb.s[sb.off:] -} - -// Pos returns offset position -func (sb *SourceBuffer) Pos() uint64 { - return sb.off -} - -// Size returns the length of the byte array -func (sb *SourceBuffer) Size() uint64 { return uint64(len(sb.s)) } - -// NextBytes returns the next n bytes after offset and increase offset position -func (sb *SourceBuffer) NextBytes(n uint32) ([]byte, bool) { - eof := false - m := uint64(len(sb.s)) - end, overflow := safeAdd(sb.off, uint64(n)) - if overflow || end > m { - end = m - eof = true - } - data := sb.s[sb.off:end] - sb.off = end - - return data, eof -} - -// Skip increase offset position with n bytes -func (sb *SourceBuffer) Skip(n uint64) bool { - eof := false - m := uint64(len(sb.s)) - end, overflow := safeAdd(sb.off, n) - if overflow || end > m { - end = m - eof = true - } - sb.off = end - - return eof -} - -// NextByte returns the next byte after offset and increase offset position -func (sb *SourceBuffer) NextByte() (byte, bool) { - if sb.off >= uint64(len(sb.s)) { - return 0, true - } - - data := sb.s[sb.off] - sb.off++ - return data, false -} - -// NextUint8 returns the next byte after offset as uint8 and increase offset position -func (sb *SourceBuffer) NextUint8() (uint8, bool) { - val, eof := sb.NextByte() - return val, eof -} - -// NextBool returns the next byte after offset as bool and increase offset position -func (sb *SourceBuffer) NextBool() (bool, bool) { - val, eof := sb.NextByte() - data := false - if val == 0 { - data = false - } else if val == 1 { - data = true - } else { - eof = true - } - return data, eof -} - -// BackUp decrease offset position with n bytes -func (sb *SourceBuffer) BackUp(n uint64) { - sb.off -= n -} - -// NextUint16 returns the next 2 bytes after offset as uint16 and increase offset position -func (sb *SourceBuffer) NextUint16() (uint16, bool) { - buf, eof := sb.NextBytes(uint16Size) - if eof { - return 0, eof - } - - return binary.BigEndian.Uint16(buf), eof -} - -// NextUint32 returns the next 4 bytes after offset as uint32 and increase offset position -func (sb *SourceBuffer) NextUint32() (uint32, bool) { - buf, eof := sb.NextBytes(uint32Size) - if eof { - return 0, eof - } - - return binary.BigEndian.Uint32(buf), eof -} - -// NextUint64 returns the next 8 bytes after offset as uint64 and increase offset position -func (sb *SourceBuffer) NextUint64() (uint64, bool) { - buf, eof := sb.NextBytes(uint64Size) - if eof { - return 0, eof - } - - return binary.BigEndian.Uint64(buf), eof -} - -// NextInt32 returns the next 4 bytes after offset as int32 and increase offset position -func (sb *SourceBuffer) NextInt32() (int32, bool) { - val, eof := sb.NextUint32() - return int32(val), eof -} - -// NextInt64 returns the next 8 bytes after offset as int64 and increase offset position -func (sb *SourceBuffer) NextInt64() (int64, bool) { - val, eof := sb.NextUint64() - return int64(val), eof -} - -// NextInt16 returns the next 2 bytes after offset as int16 and increase offset position -func (sb *SourceBuffer) NextInt16() (int16, bool) { - val, eof := sb.NextUint16() - return int16(val), eof -} - -// NextVarBytes uses the next 4 bytes to determine the number of bytes after the offset to be returned and returns them -// and increase offset position -func (sb *SourceBuffer) NextVarBytes() ([]byte, bool) { - count, eof := sb.NextUint32() - if eof { - return []byte{}, eof - } - data, eof := sb.NextBytes(count) - return data, eof -} - -// NextHash returns the next 32 bytes after offset as Uint256 and increase offset position -func (sb *SourceBuffer) NextHash() (Uint256, bool) { - buf, eof := sb.NextBytes(uint256Size) - if eof { - return Uint256{}, eof - } - var data Uint256 - copy(data[:], buf) - - return data, eof -} - -// NextString uses the next 4 bytes to determine the number of bytes after the offset to be returned and returns them -// as string and increase offset position -func (sb *SourceBuffer) NextString() (string, bool) { - val, eof := sb.NextVarBytes() - data := string(val) - return data, eof -} - -func safeAdd(x, y uint64) (uint64, bool) { - return x + y, y > math.MaxUint64-x -} diff --git a/mx-sdk-go-old/serde/testingMocks/basicDataTypes b/mx-sdk-go-old/serde/testingMocks/basicDataTypes deleted file mode 100644 index e7e897d40dcb52b7ba5573b18a4bdc217594c041..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 75 zcmd;J5MW?nPyk{OaNt1YG6Kc8oboGDQ=BSGQj0-6M;~WhGb2-r6eA#yMI1=LXaM_Y B2b}-_ diff --git a/mx-sdk-go-old/serde/testingMocks/basicTypeBigInt b/mx-sdk-go-old/serde/testingMocks/basicTypeBigInt deleted file mode 100644 index e7e897d40dcb52b7ba5573b18a4bdc217594c041..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 75 zcmd;J5MW?nPyk{OaNt1YG6Kc8oboGDQ=BSGQj0-6M;~WhGb2-r6eA#yMI1=LXaM_Y B2b}-_ diff --git a/mx-sdk-go-old/serde/testingMocks/entities.go b/mx-sdk-go-old/serde/testingMocks/entities.go deleted file mode 100644 index 6a293f8c..00000000 --- a/mx-sdk-go-old/serde/testingMocks/entities.go +++ /dev/null @@ -1,40 +0,0 @@ -package testingMocks - -import "math/big" - -// DataBasics defines a data structure that contains the implemented primitives -type DataBasics struct { - U8 uint8 - U16 uint16 - U32 uint32 - U64 uint64 - - I8 int8 - I16 int16 - I32 int32 - I64 int64 - - Bool bool - - BoxedBytes string - TokenIdentifier string - BigInt big.Int - BigUint big.Int -} - -// OtherStruct another structure containing a small sub set of primitives -type OtherStruct struct { - String string - Bool bool -} - -// NestingStructure contains a nested structure alongside other primitive types -type NestingStructure struct { - String string - Ticker string - Bool bool - Int64 int64 - BigInt big.Int - OtherStruct OtherStruct - AnotherBigInt big.Int -} diff --git a/mx-sdk-go-old/serde/testingMocks/nestedStructures b/mx-sdk-go-old/serde/testingMocks/nestedStructures deleted file mode 100644 index ca0bdad962eb8b9e118333ca4240e79c9d7b372d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 68 ycmZQzVBm7fuSiXCsw_z@W&rXWeVld8j7%+3jDS1_25~USzyhU_6f**4z`_8Y916z( diff --git a/mx-sdk-go-old/storage/mapCacher.go b/mx-sdk-go-old/storage/mapCacher.go deleted file mode 100644 index d915b0ff..00000000 --- a/mx-sdk-go-old/storage/mapCacher.go +++ /dev/null @@ -1,182 +0,0 @@ -package storage - -import ( - "bytes" - "encoding/gob" - "sync" - - logger "github.com/multiversx/mx-chain-logger-go" -) - -var log = logger.GetOrCreate("mx-sdk-go/storage") - -// mapCacher is the cacher implementation based on a map -type mapCacher struct { - sync.RWMutex - dataMap map[string]interface{} - mutAddedDataHandlers sync.RWMutex - addedDataHandlers []func(key []byte, val interface{}) -} - -// Close does nothing and returns nil -func (mc *mapCacher) Close() error { - return nil -} - -// NewMapCacher creates a new map cacher implementation -func NewMapCacher() *mapCacher { - return &mapCacher{ - dataMap: make(map[string]interface{}), - addedDataHandlers: make([]func(key []byte, val interface{}), 0), - } -} - -// Clear deletes any kind of data stored -func (mc *mapCacher) Clear() { - mc.Lock() - defer mc.Unlock() - - mc.dataMap = make(map[string]interface{}) -} - -// Put stores a new key-value pair -func (mc *mapCacher) Put(key []byte, value interface{}, _ int) (evicted bool) { - mc.Lock() - defer mc.Unlock() - - mc.dataMap[string(key)] = value - mc.callAddedDataHandlers(key, value) - - return false -} - -func (mc *mapCacher) callAddedDataHandlers(key []byte, val interface{}) { - mc.mutAddedDataHandlers.RLock() - for _, handler := range mc.addedDataHandlers { - go handler(key, val) - } - mc.mutAddedDataHandlers.RUnlock() -} - -// Get returns the value from a provided key -func (mc *mapCacher) Get(key []byte) (value interface{}, ok bool) { - mc.RLock() - defer mc.RUnlock() - - val, ok := mc.dataMap[string(key)] - - return val, ok -} - -// Has returns true if the provided key exists in the map -func (mc *mapCacher) Has(key []byte) bool { - mc.RLock() - defer mc.RUnlock() - - _, ok := mc.dataMap[string(key)] - - return ok -} - -// Peek will return the value stored at the provided key -func (mc *mapCacher) Peek(key []byte) (value interface{}, ok bool) { - mc.RLock() - defer mc.RUnlock() - - val, ok := mc.dataMap[string(key)] - - return val, ok -} - -// HasOrAdd checks if a key is in the cache without updating the -// recent-ness or deleting it for being stale, and if not, adds the value. -// Returns whether found and whether an eviction occurred. -func (mc *mapCacher) HasOrAdd(key []byte, value interface{}, _ int) (has, added bool) { - mc.Lock() - defer mc.Unlock() - - _, has = mc.dataMap[string(key)] - if has { - return true, false - } - - mc.dataMap[string(key)] = value - mc.callAddedDataHandlers(key, value) - return false, true -} - -// Remove removes the provided key from the cache -func (mc *mapCacher) Remove(key []byte) { - mc.Lock() - defer mc.Unlock() - - delete(mc.dataMap, string(key)) -} - -// Keys returns a slice of the keys in the cache, from oldest to newest. -func (mc *mapCacher) Keys() [][]byte { - mc.RLock() - defer mc.RUnlock() - - keys := make([][]byte, len(mc.dataMap)) - idx := 0 - for k := range mc.dataMap { - keys[idx] = []byte(k) - idx++ - } - - return keys -} - -// Len returns the number of items in the cache. -func (mc *mapCacher) Len() int { - mc.RLock() - defer mc.RUnlock() - - return len(mc.dataMap) -} - -// SizeInBytesContained returns the size in bytes of all contained elements -func (mc *mapCacher) SizeInBytesContained() uint64 { - mc.RLock() - defer mc.RUnlock() - - total := 0 - b := new(bytes.Buffer) - for _, v := range mc.dataMap { - var err = gob.NewEncoder(b).Encode(v) - if err != nil { - log.Error(err.Error()) - total += 0 - } else { - total += b.Len() - } - } - - return uint64(total) -} - -// MaxSize returns the maximum number of items which can be stored in cache. -func (mc *mapCacher) MaxSize() int { - return 10000 -} - -// RegisterHandler - -func (mc *mapCacher) RegisterHandler(handler func(key []byte, value interface{}), _ string) { - if handler == nil { - return - } - - mc.mutAddedDataHandlers.Lock() - mc.addedDataHandlers = append(mc.addedDataHandlers, handler) - mc.mutAddedDataHandlers.Unlock() -} - -// UnRegisterHandler - -func (mc *mapCacher) UnRegisterHandler(string) { -} - -// IsInterfaceNil returns true if there is no value under the interface -func (mc *mapCacher) IsInterfaceNil() bool { - return mc == nil -} diff --git a/mx-sdk-go-old/storage/mapCacher_test.go b/mx-sdk-go-old/storage/mapCacher_test.go deleted file mode 100644 index 7a89fbe5..00000000 --- a/mx-sdk-go-old/storage/mapCacher_test.go +++ /dev/null @@ -1,14 +0,0 @@ -package storage - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestSizeInBytesContained(t *testing.T) { - cacher := NewMapCacher() - cacher.Put([]byte("key"), "value", 0) - - assert.Equal(t, uint64(9), cacher.SizeInBytesContained()) -} diff --git a/mx-sdk-go-old/testsCommon/cryptoComponentsHolderStub.go b/mx-sdk-go-old/testsCommon/cryptoComponentsHolderStub.go deleted file mode 100644 index ccd61daf..00000000 --- a/mx-sdk-go-old/testsCommon/cryptoComponentsHolderStub.go +++ /dev/null @@ -1,51 +0,0 @@ -package testsCommon - -import ( - crypto "github.com/multiversx/mx-chain-crypto-go" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -// CryptoComponentsHolderStub - -type CryptoComponentsHolderStub struct { - GetPublicKeyCalled func() crypto.PublicKey - GetPrivateKeyCalled func() crypto.PrivateKey - GetBech32Called func() string - GetAddressHandlerCalled func() core.AddressHandler -} - -// GetPublicKey - -func (stub *CryptoComponentsHolderStub) GetPublicKey() crypto.PublicKey { - if stub.GetPublicKeyCalled != nil { - return stub.GetPublicKeyCalled() - } - return nil -} - -// GetPrivateKey - -func (stub *CryptoComponentsHolderStub) GetPrivateKey() crypto.PrivateKey { - if stub.GetPrivateKeyCalled != nil { - return stub.GetPrivateKeyCalled() - } - return nil -} - -// GetBech32 - -func (stub *CryptoComponentsHolderStub) GetBech32() string { - if stub.GetBech32Called != nil { - return stub.GetBech32Called() - } - return "" -} - -// GetAddressHandler - -func (stub *CryptoComponentsHolderStub) GetAddressHandler() core.AddressHandler { - if stub.GetAddressHandlerCalled != nil { - return stub.GetAddressHandlerCalled() - } - return nil -} - -// IsInterfaceNil - -func (stub *CryptoComponentsHolderStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/testsCommon/finalityProviderStub.go b/mx-sdk-go-old/testsCommon/finalityProviderStub.go deleted file mode 100644 index c0fb554a..00000000 --- a/mx-sdk-go-old/testsCommon/finalityProviderStub.go +++ /dev/null @@ -1,22 +0,0 @@ -package testsCommon - -import "context" - -// FinalityProviderStub - -type FinalityProviderStub struct { - CheckShardFinalizationCalled func(ctx context.Context, targetShardID uint32, maxNoncesDelta uint64) error -} - -// CheckShardFinalization - -func (stub *FinalityProviderStub) CheckShardFinalization(ctx context.Context, targetShardID uint32, maxNoncesDelta uint64) error { - if stub.CheckShardFinalizationCalled != nil { - return stub.CheckShardFinalizationCalled(ctx, targetShardID, maxNoncesDelta) - } - - return nil -} - -// IsInterfaceNil - -func (stub *FinalityProviderStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/testsCommon/headerSigVerifierStub.go b/mx-sdk-go-old/testsCommon/headerSigVerifierStub.go deleted file mode 100644 index befbb1f0..00000000 --- a/mx-sdk-go-old/testsCommon/headerSigVerifierStub.go +++ /dev/null @@ -1,52 +0,0 @@ -package testsCommon - -import "github.com/multiversx/mx-chain-core-go/data" - -// HeaderSigVerifierStub - -type HeaderSigVerifierStub struct { - VerifyLeaderSignatureCalled func(header data.HeaderHandler) error - VerifyRandSeedCalled func(header data.HeaderHandler) error - VerifyRandSeedAndLeaderSignatureCalled func(header data.HeaderHandler) error - VerifySignatureCalled func(header data.HeaderHandler) error -} - -// VerifyRandSeed - -func (hsvm *HeaderSigVerifierStub) VerifyRandSeed(header data.HeaderHandler) error { - if hsvm.VerifyRandSeedCalled != nil { - return hsvm.VerifyRandSeedCalled(header) - } - - return nil -} - -// VerifyRandSeedAndLeaderSignature - -func (hsvm *HeaderSigVerifierStub) VerifyRandSeedAndLeaderSignature(header data.HeaderHandler) error { - if hsvm.VerifyRandSeedAndLeaderSignatureCalled != nil { - return hsvm.VerifyRandSeedAndLeaderSignatureCalled(header) - } - - return nil -} - -// VerifyLeaderSignature - -func (hsvm *HeaderSigVerifierStub) VerifyLeaderSignature(header data.HeaderHandler) error { - if hsvm.VerifyLeaderSignatureCalled != nil { - return hsvm.VerifyLeaderSignatureCalled(header) - } - - return nil -} - -// VerifySignature - -func (hsvm *HeaderSigVerifierStub) VerifySignature(header data.HeaderHandler) error { - if hsvm.VerifySignatureCalled != nil { - return hsvm.VerifySignatureCalled(header) - } - - return nil -} - -// IsInterfaceNil - -func (hsvm *HeaderSigVerifierStub) IsInterfaceNil() bool { - return hsvm == nil -} diff --git a/mx-sdk-go-old/testsCommon/httpClientWrapperStub.go b/mx-sdk-go-old/testsCommon/httpClientWrapperStub.go deleted file mode 100644 index 117bf06d..00000000 --- a/mx-sdk-go-old/testsCommon/httpClientWrapperStub.go +++ /dev/null @@ -1,35 +0,0 @@ -package testsCommon - -import ( - "context" - "net/http" -) - -// HTTPClientWrapperStub - -type HTTPClientWrapperStub struct { - GetHTTPCalled func(ctx context.Context, endpoint string) ([]byte, int, error) - PostHTTPCalled func(ctx context.Context, endpoint string, data []byte) ([]byte, int, error) -} - -// GetHTTP - -func (stub *HTTPClientWrapperStub) GetHTTP(ctx context.Context, endpoint string) ([]byte, int, error) { - if stub.GetHTTPCalled != nil { - return stub.GetHTTPCalled(ctx, endpoint) - } - - return make([]byte, 0), http.StatusOK, nil -} - -// PostHTTP - -func (stub *HTTPClientWrapperStub) PostHTTP(ctx context.Context, endpoint string, data []byte) ([]byte, int, error) { - if stub.PostHTTPCalled != nil { - return stub.PostHTTPCalled(ctx, endpoint, data) - } - - return make([]byte, 0), http.StatusOK, nil -} - -// IsInterfaceNil - -func (stub *HTTPClientWrapperStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/testsCommon/interactors/addressNonceHandlerCreatorStub.go b/mx-sdk-go-old/testsCommon/interactors/addressNonceHandlerCreatorStub.go deleted file mode 100644 index 84888d2f..00000000 --- a/mx-sdk-go-old/testsCommon/interactors/addressNonceHandlerCreatorStub.go +++ /dev/null @@ -1,24 +0,0 @@ -package interactors - -import ( - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/interactors" -) - -// AddressNonceHandlerCreatorStub - -type AddressNonceHandlerCreatorStub struct { - CreateCalled func(proxy interactors.Proxy, address core.AddressHandler) (interactors.AddressNonceHandler, error) -} - -// Create - -func (stub *AddressNonceHandlerCreatorStub) Create(proxy interactors.Proxy, address core.AddressHandler) (interactors.AddressNonceHandler, error) { - if stub.CreateCalled != nil { - return stub.CreateCalled(proxy, address) - } - return nil, nil -} - -// IsInterfaceNil - -func (stub *AddressNonceHandlerCreatorStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/testsCommon/marshalizerMock.go b/mx-sdk-go-old/testsCommon/marshalizerMock.go deleted file mode 100644 index dc97c380..00000000 --- a/mx-sdk-go-old/testsCommon/marshalizerMock.go +++ /dev/null @@ -1,53 +0,0 @@ -package testsCommon - -import ( - "encoding/json" - "errors" -) - -// ErrMockMarshalizer - -var ErrMockMarshalizer = errors.New("MarshalizerMock generic error") - -// MarshalizerMock that will be used for testing -type MarshalizerMock struct { - Fail bool -} - -// Marshal converts the input object in a slice of bytes -func (mm MarshalizerMock) Marshal(obj interface{}) ([]byte, error) { - if mm.Fail { - return nil, ErrMockMarshalizer - } - - if obj == nil { - return nil, errors.New("nil object to serilize from") - } - - return json.Marshal(obj) -} - -// Unmarshal applies the serialized values over an instantiated object -func (mm MarshalizerMock) Unmarshal(obj interface{}, buff []byte) error { - if mm.Fail { - return ErrMockMarshalizer - } - - if obj == nil { - return errors.New("nil object to serilize to") - } - - if buff == nil { - return errors.New("nil byte buffer to deserialize from") - } - - if len(buff) == 0 { - return errors.New("empty byte buffer to deserialize from") - } - - return json.Unmarshal(buff, obj) -} - -// IsInterfaceNil returns true if there is no value under the interface -func (mm MarshalizerMock) IsInterfaceNil() bool { - return false -} diff --git a/mx-sdk-go-old/testsCommon/marshalizerStub.go b/mx-sdk-go-old/testsCommon/marshalizerStub.go deleted file mode 100644 index 61b69282..00000000 --- a/mx-sdk-go-old/testsCommon/marshalizerStub.go +++ /dev/null @@ -1,22 +0,0 @@ -package testsCommon - -// MarshalizerStub - -type MarshalizerStub struct { - MarshalCalled func(obj interface{}) ([]byte, error) - UnmarshalCalled func(obj interface{}, buff []byte) error -} - -// Marshal - -func (ms *MarshalizerStub) Marshal(obj interface{}) ([]byte, error) { - return ms.MarshalCalled(obj) -} - -// Unmarshal - -func (ms *MarshalizerStub) Unmarshal(obj interface{}, buff []byte) error { - return ms.UnmarshalCalled(obj, buff) -} - -// IsInterfaceNil - -func (ms *MarshalizerStub) IsInterfaceNil() bool { - return ms == nil -} diff --git a/mx-sdk-go-old/testsCommon/nodesCoordinatorStub.go b/mx-sdk-go-old/testsCommon/nodesCoordinatorStub.go deleted file mode 100644 index 5e8f6228..00000000 --- a/mx-sdk-go-old/testsCommon/nodesCoordinatorStub.go +++ /dev/null @@ -1,183 +0,0 @@ -package testsCommon - -import ( - "github.com/multiversx/mx-chain-go/sharding/nodesCoordinator" - "github.com/multiversx/mx-chain-go/state" -) - -// NodesCoordinatorStub - -type NodesCoordinatorStub struct { - ComputeValidatorsGroupCalled func(randomness []byte, round uint64, shardId uint32, epoch uint32) ([]nodesCoordinator.Validator, error) - GetValidatorsPublicKeysCalled func(randomness []byte, round uint64, shardId uint32, epoch uint32) ([]string, error) - GetValidatorsRewardsAddressesCalled func(randomness []byte, round uint64, shardId uint32, epoch uint32) ([]string, error) - GetValidatorWithPublicKeyCalled func(publicKey []byte) (validator nodesCoordinator.Validator, shardId uint32, err error) - GetAllValidatorsPublicKeysCalled func() (map[uint32][][]byte, error) - ConsensusGroupSizeCalled func(shardID uint32) int - SetNodesConfigFromValidatorsInfoCalled func(epoch uint32, randomness []byte, validatorsInfo []*state.ShardValidatorInfo) error - IsEpochInConfigCalled func(epoch uint32) bool -} - -// GetChance - -func (ncm *NodesCoordinatorStub) GetChance(uint32) uint32 { - return 1 -} - -// ValidatorsWeights - -func (ncm *NodesCoordinatorStub) ValidatorsWeights(_ []nodesCoordinator.Validator) ([]uint32, error) { - return nil, nil -} - -// GetAllLeavingValidatorsPublicKeys - -func (ncm *NodesCoordinatorStub) GetAllLeavingValidatorsPublicKeys(_ uint32) (map[uint32][][]byte, error) { - return nil, nil -} - -// SetConfig - -func (ncm *NodesCoordinatorStub) SetConfig(_ *nodesCoordinator.NodesCoordinatorRegistry) error { - return nil -} - -// ComputeAdditionalLeaving - -func (ncm *NodesCoordinatorStub) ComputeAdditionalLeaving(_ []*state.ShardValidatorInfo) (map[uint32][]nodesCoordinator.Validator, error) { - return nil, nil -} - -// GetAllEligibleValidatorsPublicKeys - -func (ncm *NodesCoordinatorStub) GetAllEligibleValidatorsPublicKeys(_ uint32) (map[uint32][][]byte, error) { - return nil, nil -} - -// GetAllWaitingValidatorsPublicKeys - -func (ncm *NodesCoordinatorStub) GetAllWaitingValidatorsPublicKeys(_ uint32) (map[uint32][][]byte, error) { - return nil, nil -} - -// GetNumTotalEligible - -func (ncm *NodesCoordinatorStub) GetNumTotalEligible() uint64 { - return 1 -} - -// GetAllValidatorsPublicKeys - -func (ncm *NodesCoordinatorStub) GetAllValidatorsPublicKeys(_ uint32) (map[uint32][][]byte, error) { - if ncm.GetAllValidatorsPublicKeysCalled != nil { - return ncm.GetAllValidatorsPublicKeysCalled() - } - - return nil, nil -} - -// GetValidatorsIndexes - -func (ncm *NodesCoordinatorStub) GetValidatorsIndexes(_ []string, _ uint32) ([]uint64, error) { - return nil, nil -} - -// ComputeConsensusGroup - -func (ncm *NodesCoordinatorStub) ComputeConsensusGroup( - randomness []byte, - round uint64, - shardId uint32, - epoch uint32, -) (validatorsGroup []nodesCoordinator.Validator, err error) { - - if ncm.ComputeValidatorsGroupCalled != nil { - return ncm.ComputeValidatorsGroupCalled(randomness, round, shardId, epoch) - } - - var list []nodesCoordinator.Validator - - return list, nil -} - -// ConsensusGroupSize - -func (ncm *NodesCoordinatorStub) ConsensusGroupSize(shardID uint32) int { - if ncm.ConsensusGroupSizeCalled != nil { - return ncm.ConsensusGroupSizeCalled(shardID) - } - return 1 -} - -// GetConsensusValidatorsPublicKeys - -func (ncm *NodesCoordinatorStub) GetConsensusValidatorsPublicKeys( - randomness []byte, - round uint64, - shardId uint32, - epoch uint32, -) ([]string, error) { - if ncm.GetValidatorsPublicKeysCalled != nil { - return ncm.GetValidatorsPublicKeysCalled(randomness, round, shardId, epoch) - } - - return nil, nil -} - -// SetNodesPerShards - -func (ncm *NodesCoordinatorStub) SetNodesPerShards(_ map[uint32][]nodesCoordinator.Validator, _ map[uint32][]nodesCoordinator.Validator, _ []nodesCoordinator.Validator, _ uint32) error { - return nil -} - -// LoadState - -func (ncm *NodesCoordinatorStub) LoadState(_ []byte) error { - return nil -} - -// GetSavedStateKey - -func (ncm *NodesCoordinatorStub) GetSavedStateKey() []byte { - return []byte("key") -} - -// ShardIdForEpoch returns the nodesCoordinator configured ShardId for specified epoch if epoch configuration exists, -// otherwise error -func (ncm *NodesCoordinatorStub) ShardIdForEpoch(_ uint32) (uint32, error) { - panic("not implemented") -} - -// ShuffleOutForEpoch verifies if the shards changed in the new epoch and calls the shuffleOutHandler -func (ncm *NodesCoordinatorStub) ShuffleOutForEpoch(_ uint32) { - panic("not implemented") -} - -// GetConsensusWhitelistedNodes return the whitelisted nodes allowed to send consensus messages, for each of the shards -func (ncm *NodesCoordinatorStub) GetConsensusWhitelistedNodes( - _ uint32, -) (map[string]struct{}, error) { - panic("not implemented") -} - -// GetSelectedPublicKeys - -func (ncm *NodesCoordinatorStub) GetSelectedPublicKeys(_ []byte, _ uint32, _ uint32) ([]string, error) { - panic("implement me") -} - -// GetValidatorWithPublicKey - -func (ncm *NodesCoordinatorStub) GetValidatorWithPublicKey(publicKey []byte) (nodesCoordinator.Validator, uint32, error) { - if ncm.GetValidatorWithPublicKeyCalled != nil { - return ncm.GetValidatorWithPublicKeyCalled(publicKey) - } - return nil, 0, nil -} - -// GetOwnPublicKey - -func (ncm *NodesCoordinatorStub) GetOwnPublicKey() []byte { - return []byte("key") -} - -// SetNodesConfigFromValidatorsInfo - -func (ncm *NodesCoordinatorStub) SetNodesConfigFromValidatorsInfo(epoch uint32, randomness []byte, validatorsInfo []*state.ShardValidatorInfo) error { - if ncm.SetNodesConfigFromValidatorsInfoCalled != nil { - return ncm.SetNodesConfigFromValidatorsInfoCalled(epoch, randomness, validatorsInfo) - } - return nil -} - -// IsEpochInConfig - -func (ncm *NodesCoordinatorStub) IsEpochInConfig(epoch uint32) bool { - if ncm.IsEpochInConfigCalled != nil { - return ncm.IsEpochInConfigCalled(epoch) - } - return false -} - -// IsInterfaceNil returns true if there is no value under the interface -func (ncm *NodesCoordinatorStub) IsInterfaceNil() bool { - return ncm == nil -} diff --git a/mx-sdk-go-old/testsCommon/privateKeyStub.go b/mx-sdk-go-old/testsCommon/privateKeyStub.go deleted file mode 100644 index fa596fc5..00000000 --- a/mx-sdk-go-old/testsCommon/privateKeyStub.go +++ /dev/null @@ -1,52 +0,0 @@ -package testsCommon - -import crypto "github.com/multiversx/mx-chain-crypto-go" - -// PrivateKeyStub - -type PrivateKeyStub struct { - ToByteArrayCalled func() ([]byte, error) - SuiteCalled func() crypto.Suite - GeneratePublicCalled func() crypto.PublicKey - ScalarCalled func() crypto.Scalar -} - -// ToByteArray - -func (stub *PrivateKeyStub) ToByteArray() ([]byte, error) { - if stub.ToByteArrayCalled != nil { - return stub.ToByteArrayCalled() - } - - return make([]byte, 0), nil -} - -// Suite - -func (stub *PrivateKeyStub) Suite() crypto.Suite { - if stub.SuiteCalled != nil { - return stub.SuiteCalled() - } - - return nil -} - -// GeneratePublic - -func (stub *PrivateKeyStub) GeneratePublic() crypto.PublicKey { - if stub.GeneratePublicCalled != nil { - return stub.GeneratePublicCalled() - } - - return &PublicKeyStub{} -} - -// Scalar - -func (stub *PrivateKeyStub) Scalar() crypto.Scalar { - if stub.ScalarCalled != nil { - return stub.ScalarCalled() - } - - return nil -} - -// IsInterfaceNil - -func (stub *PrivateKeyStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/testsCommon/proxyStub.go b/mx-sdk-go-old/testsCommon/proxyStub.go deleted file mode 100644 index a6461f43..00000000 --- a/mx-sdk-go-old/testsCommon/proxyStub.go +++ /dev/null @@ -1,215 +0,0 @@ -package testsCommon - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/core" - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-chain-go/state" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -// ProxyStub - -type ProxyStub struct { - GetNetworkConfigCalled func() (*data.NetworkConfig, error) - GetRatingsConfigCalled func() (*data.RatingsConfig, error) - GetEnableEpochsConfigCalled func() (*data.EnableEpochsConfig, error) - GetAccountCalled func(address sdkCore.AddressHandler) (*data.Account, error) - SendTransactionCalled func(tx *transaction.FrontendTransaction) (string, error) - SendTransactionsCalled func(txs []*transaction.FrontendTransaction) ([]string, error) - ExecuteVMQueryCalled func(ctx context.Context, vmRequest *data.VmValueRequest) (*data.VmValuesResponseData, error) - GetNonceAtEpochStartCalled func(shardId uint32) (uint64, error) - GetRawMiniBlockByHashCalled func(shardId uint32, hash string, epoch uint32) ([]byte, error) - GetRawBlockByNonceCalled func(shardId uint32, nonce uint64) ([]byte, error) - GetRawBlockByHashCalled func(shardId uint32, hash string) ([]byte, error) - GetRawStartOfEpochMetaBlockCalled func(epoch uint32) ([]byte, error) - GetGenesisNodesPubKeysCalled func() (*data.GenesisNodes, error) - GetNetworkStatusCalled func(ctx context.Context, shardID uint32) (*data.NetworkStatus, error) - GetShardOfAddressCalled func(ctx context.Context, bech32Address string) (uint32, error) - GetRestAPIEntityTypeCalled func() sdkCore.RestAPIEntityType - GetLatestHyperBlockNonceCalled func(ctx context.Context) (uint64, error) - GetHyperBlockByNonceCalled func(ctx context.Context, nonce uint64) (*data.HyperBlock, error) - GetDefaultTransactionArgumentsCalled func(ctx context.Context, address sdkCore.AddressHandler, networkConfigs *data.NetworkConfig) (transaction.FrontendTransaction, string, error) - GetValidatorsInfoByEpochCalled func(ctx context.Context, epoch uint32) ([]*state.ShardValidatorInfo, error) -} - -// ExecuteVMQuery - -func (stub *ProxyStub) ExecuteVMQuery(ctx context.Context, vmRequest *data.VmValueRequest) (*data.VmValuesResponseData, error) { - if stub.ExecuteVMQueryCalled != nil { - return stub.ExecuteVMQueryCalled(ctx, vmRequest) - } - - return &data.VmValuesResponseData{}, nil -} - -// GetNetworkConfig - -func (stub *ProxyStub) GetNetworkConfig(_ context.Context) (*data.NetworkConfig, error) { - if stub.GetNetworkConfigCalled != nil { - return stub.GetNetworkConfigCalled() - } - - return &data.NetworkConfig{}, nil -} - -// GetRatingsConfig - -func (stub *ProxyStub) GetRatingsConfig(_ context.Context) (*data.RatingsConfig, error) { - if stub.GetRatingsConfigCalled != nil { - return stub.GetRatingsConfigCalled() - } - - return &data.RatingsConfig{}, nil -} - -// GetEnableEpochsConfig - -func (stub *ProxyStub) GetEnableEpochsConfig(_ context.Context) (*data.EnableEpochsConfig, error) { - if stub.GetEnableEpochsConfigCalled != nil { - return stub.GetEnableEpochsConfigCalled() - } - - return &data.EnableEpochsConfig{}, nil -} - -// GetAccount - -func (stub *ProxyStub) GetAccount(_ context.Context, address sdkCore.AddressHandler) (*data.Account, error) { - if stub.GetAccountCalled != nil { - return stub.GetAccountCalled(address) - } - - return &data.Account{}, nil -} - -// SendTransaction - -func (stub *ProxyStub) SendTransaction(_ context.Context, tx *transaction.FrontendTransaction) (string, error) { - if stub.SendTransactionCalled != nil { - return stub.SendTransactionCalled(tx) - } - - return "", nil -} - -// SendTransactions - -func (stub *ProxyStub) SendTransactions(_ context.Context, txs []*transaction.FrontendTransaction) ([]string, error) { - if stub.SendTransactionsCalled != nil { - return stub.SendTransactionsCalled(txs) - } - - return make([]string, 0), nil -} - -// GetNonceAtEpochStart - -func (stub *ProxyStub) GetNonceAtEpochStart(_ context.Context, shardId uint32) (uint64, error) { - if stub.GetNonceAtEpochStartCalled != nil { - return stub.GetNonceAtEpochStartCalled(shardId) - } - - return 0, nil -} - -// GetRawMiniBlockByHash - -func (stub *ProxyStub) GetRawMiniBlockByHash(_ context.Context, shardId uint32, hash string, epoch uint32) ([]byte, error) { - if stub.GetRawMiniBlockByHashCalled != nil { - return stub.GetRawMiniBlockByHashCalled(shardId, hash, epoch) - } - - return []byte{}, nil -} - -// GetRawBlockByNonce - -func (stub *ProxyStub) GetRawBlockByNonce(_ context.Context, shardId uint32, nonce uint64) ([]byte, error) { - if stub.GetRawBlockByNonceCalled != nil { - return stub.GetRawBlockByNonceCalled(shardId, nonce) - } - - return []byte{}, nil -} - -// GetRawBlockByHash - -func (stub *ProxyStub) GetRawBlockByHash(_ context.Context, shardId uint32, hash string) ([]byte, error) { - if stub.GetRawBlockByHashCalled != nil { - return stub.GetRawBlockByHashCalled(shardId, hash) - } - - return []byte{}, nil -} - -// GetRawStartOfEpochMetaBlock - -func (stub *ProxyStub) GetRawStartOfEpochMetaBlock(_ context.Context, epoch uint32) ([]byte, error) { - if stub.GetRawStartOfEpochMetaBlockCalled != nil { - return stub.GetRawStartOfEpochMetaBlockCalled(epoch) - } - - return []byte{}, nil -} - -// GetGenesisNodesPubKeys - -func (stub *ProxyStub) GetGenesisNodesPubKeys(_ context.Context) (*data.GenesisNodes, error) { - if stub.GetGenesisNodesPubKeysCalled != nil { - return stub.GetGenesisNodesPubKeysCalled() - } - return nil, nil -} - -// GetNetworkStatus - -func (stub *ProxyStub) GetNetworkStatus(ctx context.Context, shardID uint32) (*data.NetworkStatus, error) { - if stub.GetNetworkStatusCalled != nil { - return stub.GetNetworkStatusCalled(ctx, shardID) - } - - return &data.NetworkStatus{}, nil -} - -// GetShardOfAddress - -func (stub *ProxyStub) GetShardOfAddress(ctx context.Context, bech32Address string) (uint32, error) { - if stub.GetShardOfAddressCalled != nil { - return stub.GetShardOfAddressCalled(ctx, bech32Address) - } - return core.AllShardId, nil -} - -// GetRestAPIEntityType - -func (stub *ProxyStub) GetRestAPIEntityType() sdkCore.RestAPIEntityType { - if stub.GetRestAPIEntityTypeCalled != nil { - return stub.GetRestAPIEntityTypeCalled() - } - - return "" -} - -// GetLatestHyperBlockNonce - -func (stub *ProxyStub) GetLatestHyperBlockNonce(ctx context.Context) (uint64, error) { - if stub.GetLatestHyperBlockNonceCalled != nil { - return stub.GetLatestHyperBlockNonceCalled(ctx) - } - return 0, nil -} - -// GetHyperBlockByNonce - -func (stub *ProxyStub) GetHyperBlockByNonce(ctx context.Context, nonce uint64) (*data.HyperBlock, error) { - if stub.GetHyperBlockByNonceCalled != nil { - return stub.GetHyperBlockByNonceCalled(ctx, nonce) - } - return &data.HyperBlock{}, nil -} - -// GetDefaultTransactionArguments - -func (stub *ProxyStub) GetDefaultTransactionArguments(ctx context.Context, address sdkCore.AddressHandler, networkConfigs *data.NetworkConfig) (transaction.FrontendTransaction, string, error) { - if stub.GetDefaultTransactionArgumentsCalled != nil { - return stub.GetDefaultTransactionArgumentsCalled(ctx, address, networkConfigs) - } - return transaction.FrontendTransaction{}, "", nil -} - -// GetValidatorsInfoByEpoch - -func (stub *ProxyStub) GetValidatorsInfoByEpoch(ctx context.Context, epoch uint32) ([]*state.ShardValidatorInfo, error) { - if stub.GetValidatorsInfoByEpochCalled != nil { - return stub.GetValidatorsInfoByEpochCalled(ctx, epoch) - } - - return make([]*state.ShardValidatorInfo, 0), nil -} - -// IsInterfaceNil - -func (stub *ProxyStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/testsCommon/publicKeyStub.go b/mx-sdk-go-old/testsCommon/publicKeyStub.go deleted file mode 100644 index a0250eb2..00000000 --- a/mx-sdk-go-old/testsCommon/publicKeyStub.go +++ /dev/null @@ -1,42 +0,0 @@ -package testsCommon - -import crypto "github.com/multiversx/mx-chain-crypto-go" - -// PublicKeyStub - -type PublicKeyStub struct { - ToByteArrayCalled func() ([]byte, error) - SuiteCalled func() crypto.Suite - PointCalled func() crypto.Point -} - -// ToByteArray - -func (stub *PublicKeyStub) ToByteArray() ([]byte, error) { - if stub.ToByteArrayCalled != nil { - return stub.ToByteArrayCalled() - } - - return make([]byte, 0), nil -} - -// Suite - -func (stub *PublicKeyStub) Suite() crypto.Suite { - if stub.SuiteCalled != nil { - return stub.SuiteCalled() - } - - return nil -} - -// Point - -func (stub *PublicKeyStub) Point() crypto.Point { - if stub.PointCalled != nil { - return stub.PointCalled() - } - - return nil -} - -// IsInterfaceNil - -func (stub *PublicKeyStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/testsCommon/rawHeaderHandlerStub.go b/mx-sdk-go-old/testsCommon/rawHeaderHandlerStub.go deleted file mode 100644 index 98e224bc..00000000 --- a/mx-sdk-go-old/testsCommon/rawHeaderHandlerStub.go +++ /dev/null @@ -1,44 +0,0 @@ -package testsCommon - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/data" - "github.com/multiversx/mx-chain-go/state" -) - -// RawHeaderHandlerStub - -type RawHeaderHandlerStub struct { - GetMetaBlockByHashCalled func(hash string) (data.MetaHeaderHandler, error) - GetShardBlockByHashCalled func(shardId uint32, hash string) (data.HeaderHandler, error) - GetValidatorsInfoPerEpochCalled func(epoch uint32) ([]*state.ShardValidatorInfo, []byte, error) -} - -// GetMetaBlockByHash - -func (rh *RawHeaderHandlerStub) GetMetaBlockByHash(_ context.Context, hash string) (data.MetaHeaderHandler, error) { - if rh.GetMetaBlockByHashCalled != nil { - return rh.GetMetaBlockByHashCalled(hash) - } - return nil, nil -} - -// GetShardBlockByHash - -func (rh *RawHeaderHandlerStub) GetShardBlockByHash(_ context.Context, shardId uint32, hash string) (data.HeaderHandler, error) { - if rh.GetShardBlockByHashCalled != nil { - return rh.GetShardBlockByHashCalled(shardId, hash) - } - return nil, nil -} - -// GetValidatorsInfoPerEpoch - -func (rh *RawHeaderHandlerStub) GetValidatorsInfoPerEpoch(_ context.Context, epoch uint32) ([]*state.ShardValidatorInfo, []byte, error) { - if rh.GetMetaBlockByHashCalled != nil { - return rh.GetValidatorsInfoPerEpochCalled(epoch) - } - return nil, nil, nil -} - -// IsInterfaceNil - -func (rh *RawHeaderHandlerStub) IsInterfaceNil() bool { - return rh == nil -} diff --git a/mx-sdk-go-old/testsCommon/server/serverStub.go b/mx-sdk-go-old/testsCommon/server/serverStub.go deleted file mode 100644 index 8bfbd805..00000000 --- a/mx-sdk-go-old/testsCommon/server/serverStub.go +++ /dev/null @@ -1,34 +0,0 @@ -package server - -import "context" - -// ServerStub - -type ServerStub struct { - ListenAndServeCalled func() error - ShutdownCalled func(ctx context.Context) error - CloseCalled func() error -} - -// ListenAndServe - -func (s *ServerStub) ListenAndServe() error { - if s.ListenAndServeCalled != nil { - return s.ListenAndServeCalled() - } - return nil -} - -// Shutdown - -func (s *ServerStub) Shutdown(ctx context.Context) error { - if s.ShutdownCalled != nil { - return s.ShutdownCalled(ctx) - } - return nil -} - -// Close - -func (s *ServerStub) Close() error { - if s.CloseCalled != nil { - return s.CloseCalled() - } - return nil -} diff --git a/mx-sdk-go-old/testsCommon/signerStub.go b/mx-sdk-go-old/testsCommon/signerStub.go deleted file mode 100644 index e6b3f360..00000000 --- a/mx-sdk-go-old/testsCommon/signerStub.go +++ /dev/null @@ -1,55 +0,0 @@ -package testsCommon - -import ( - "github.com/multiversx/mx-chain-core-go/data/transaction" - crypto "github.com/multiversx/mx-chain-crypto-go" -) - -// SignerStub - -type SignerStub struct { - SignTransactionCalled func(tx *transaction.FrontendTransaction, privateKey crypto.PrivateKey) ([]byte, error) - SignMessageCalled func(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) - VerifyMessageCalled func(msg []byte, publicKey crypto.PublicKey, sig []byte) error - SignByteSliceCalled func(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) -} - -// SignTransaction - -func (stub *SignerStub) SignTransaction(tx *transaction.FrontendTransaction, privateKey crypto.PrivateKey) ([]byte, error) { - if stub.SignTransactionCalled != nil { - return stub.SignTransactionCalled(tx, privateKey) - } - - return make([]byte, 0), nil -} - -// SignMessage - -func (stub *SignerStub) SignMessage(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) { - if stub.SignMessageCalled != nil { - return stub.SignMessageCalled(msg, privateKey) - } - - return make([]byte, 0), nil -} - -// VerifyMessage - -func (stub *SignerStub) VerifyMessage(msg []byte, publicKey crypto.PublicKey, sig []byte) error { - if stub.VerifyMessageCalled != nil { - return stub.VerifyMessageCalled(msg, publicKey, sig) - } - - return nil -} - -// SignByteSlice - -func (stub *SignerStub) SignByteSlice(msg []byte, privateKey crypto.PrivateKey) ([]byte, error) { - if stub.SignByteSliceCalled != nil { - return stub.SignByteSliceCalled(msg, privateKey) - } - - return make([]byte, 0), nil -} - -// IsInterfaceNil - -func (stub *SignerStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/testsCommon/txBuilderStub.go b/mx-sdk-go-old/testsCommon/txBuilderStub.go deleted file mode 100644 index 65ce039c..00000000 --- a/mx-sdk-go-old/testsCommon/txBuilderStub.go +++ /dev/null @@ -1,25 +0,0 @@ -package testsCommon - -import ( - "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -// TxBuilderStub - -type TxBuilderStub struct { - ApplySignatureCalled func(cryptoHolder sdkCore.CryptoComponentsHolder, tx *transaction.FrontendTransaction) error -} - -// ApplySignature - -func (stub *TxBuilderStub) ApplySignature(cryptoHolder sdkCore.CryptoComponentsHolder, tx *transaction.FrontendTransaction) error { - if stub.ApplySignatureCalled != nil { - return stub.ApplySignatureCalled(cryptoHolder, tx) - } - - return nil -} - -// IsInterfaceNil - -func (stub *TxBuilderStub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/testsCommon/txNonceHandlerV1Stub.go b/mx-sdk-go-old/testsCommon/txNonceHandlerV1Stub.go deleted file mode 100644 index 5f6f7a3b..00000000 --- a/mx-sdk-go-old/testsCommon/txNonceHandlerV1Stub.go +++ /dev/null @@ -1,57 +0,0 @@ -package testsCommon - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -// TxNonceHandlerV1Stub - -type TxNonceHandlerV1Stub struct { - GetNonceCalled func(ctx context.Context, address core.AddressHandler) (uint64, error) - SendTransactionCalled func(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) - ForceNonceReFetchCalled func(address core.AddressHandler) error - CloseCalled func() error -} - -// GetNonce - -func (stub *TxNonceHandlerV1Stub) GetNonce(ctx context.Context, address core.AddressHandler) (uint64, error) { - if stub.GetNonceCalled != nil { - return stub.GetNonceCalled(ctx, address) - } - - return 0, nil -} - -// SendTransaction - -func (stub *TxNonceHandlerV1Stub) SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - if stub.SendTransactionCalled != nil { - return stub.SendTransactionCalled(ctx, tx) - } - - return "", nil -} - -// ForceNonceReFetch - -func (stub *TxNonceHandlerV1Stub) ForceNonceReFetch(address core.AddressHandler) error { - if stub.ForceNonceReFetchCalled != nil { - return stub.ForceNonceReFetchCalled(address) - } - - return nil -} - -// Close - -func (stub *TxNonceHandlerV1Stub) Close() error { - if stub.CloseCalled != nil { - return stub.CloseCalled() - } - - return nil -} - -// IsInterfaceNil - -func (stub *TxNonceHandlerV1Stub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/testsCommon/txNonceHandlerV2Stub.go b/mx-sdk-go-old/testsCommon/txNonceHandlerV2Stub.go deleted file mode 100644 index 1425aec9..00000000 --- a/mx-sdk-go-old/testsCommon/txNonceHandlerV2Stub.go +++ /dev/null @@ -1,48 +0,0 @@ -package testsCommon - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" -) - -// TxNonceHandlerV2Stub - -type TxNonceHandlerV2Stub struct { - ApplyNonceAndGasPriceCalled func(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error - SendTransactionCalled func(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) - ForceNonceReFetchCalled func(address core.AddressHandler) error - CloseCalled func() error -} - -// ApplyNonceAndGasPrice - -func (stub *TxNonceHandlerV2Stub) ApplyNonceAndGasPrice(ctx context.Context, address core.AddressHandler, tx *transaction.FrontendTransaction) error { - if stub.ApplyNonceAndGasPriceCalled != nil { - return stub.ApplyNonceAndGasPriceCalled(ctx, address, tx) - } - - return nil -} - -// SendTransaction - -func (stub *TxNonceHandlerV2Stub) SendTransaction(ctx context.Context, tx *transaction.FrontendTransaction) (string, error) { - if stub.SendTransactionCalled != nil { - return stub.SendTransactionCalled(ctx, tx) - } - - return "", nil -} - -// Close - -func (stub *TxNonceHandlerV2Stub) Close() error { - if stub.CloseCalled != nil { - return stub.CloseCalled() - } - - return nil -} - -// IsInterfaceNil - -func (stub *TxNonceHandlerV2Stub) IsInterfaceNil() bool { - return stub == nil -} diff --git a/mx-sdk-go-old/workflows/addressesAccumulator.go b/mx-sdk-go-old/workflows/addressesAccumulator.go deleted file mode 100644 index 65d1310b..00000000 --- a/mx-sdk-go-old/workflows/addressesAccumulator.go +++ /dev/null @@ -1,34 +0,0 @@ -package workflows - -import "sync" - -// addressesAccumulator is a mutex protected map that has 2 concurrent safe operations: pop and push -type addressesAccumulator struct { - mut sync.Mutex - addressesMap map[string]struct{} -} - -// newAddressesAccumulator creates a new instance of the address accumulator -func newAddressesAccumulator() *addressesAccumulator { - return &addressesAccumulator{ - addressesMap: make(map[string]struct{}), - } -} - -func (aa *addressesAccumulator) push(address string) { - aa.mut.Lock() - aa.addressesMap[address] = struct{}{} - aa.mut.Unlock() -} - -func (aa *addressesAccumulator) pop() []string { - aa.mut.Lock() - addresses := make([]string, 0, len(aa.addressesMap)) - for address := range aa.addressesMap { - addresses = append(addresses, address) - } - aa.addressesMap = make(map[string]struct{}) - aa.mut.Unlock() - - return addresses -} diff --git a/mx-sdk-go-old/workflows/errors.go b/mx-sdk-go-old/workflows/errors.go deleted file mode 100644 index 667b1131..00000000 --- a/mx-sdk-go-old/workflows/errors.go +++ /dev/null @@ -1,24 +0,0 @@ -package workflows - -import "errors" - -// ErrInvalidTransactionValue signals that an invalid transaction value was provided -var ErrInvalidTransactionValue = errors.New("invalid transaction value") - -// ErrInvalidAvailableBalanceValue signals that an invalid available balance value was provided -var ErrInvalidAvailableBalanceValue = errors.New("invalid available balance value") - -// ErrNilTrackableAddressesProvider signals that a nil trackable address provider was used -var ErrNilTrackableAddressesProvider = errors.New("nil trackable address provider") - -// ErrNilProxy signals that a nil proxy has been provided -var ErrNilProxy = errors.New("nil proxy") - -// ErrNilLastProcessedNonceHandler signals that a nil last processed nonce handler was provided -var ErrNilLastProcessedNonceHandler = errors.New("nil last processed nonce handler") - -// ErrNilMinimumBalance signals that a nil minimum balance was provided -var ErrNilMinimumBalance = errors.New("nil minimum balance") - -// ErrNilTransactionInteractor signals that a nil transaction interactor was provided -var ErrNilTransactionInteractor = errors.New("nil transaction interactor") diff --git a/mx-sdk-go-old/workflows/interface.go b/mx-sdk-go-old/workflows/interface.go deleted file mode 100644 index ee424bcf..00000000 --- a/mx-sdk-go-old/workflows/interface.go +++ /dev/null @@ -1,40 +0,0 @@ -package workflows - -import ( - "context" - - "github.com/multiversx/mx-chain-core-go/data/transaction" - sdkCore "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/core" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -// TrackableAddressesProvider defines the behavior for a component that can determine if one address is tracked or not -type TrackableAddressesProvider interface { - IsTrackableAddresses(addressAsBech32 string) bool - PrivateKeyOfBech32Address(addressAsBech32 string) []byte - IsInterfaceNil() bool -} - -// LastProcessedNonceHandler will keep track of the last processed hyper block nonce. -// fraction of hyper blocks sets after an application restart -type LastProcessedNonceHandler interface { - ProcessedNonce(nonce uint64) - GetLastProcessedNonce() uint64 - IsInterfaceNil() bool -} - -// ProxyHandler defines the behavior of a proxy handler that can process requests -type ProxyHandler interface { - GetLatestHyperBlockNonce(ctx context.Context) (uint64, error) - GetHyperBlockByNonce(ctx context.Context, nonce uint64) (*data.HyperBlock, error) - GetDefaultTransactionArguments(ctx context.Context, address sdkCore.AddressHandler, networkConfigs *data.NetworkConfig) (transaction.FrontendTransaction, string, error) - GetNetworkConfig(ctx context.Context) (*data.NetworkConfig, error) - IsInterfaceNil() bool -} - -// TransactionInteractor defines the transaction interactor behavior used in workflows -type TransactionInteractor interface { - AddTransaction(tx *transaction.FrontendTransaction) - ApplySignature(cryptoHolder sdkCore.CryptoComponentsHolder, tx *transaction.FrontendTransaction) error - IsInterfaceNil() bool -} diff --git a/mx-sdk-go-old/workflows/moveBalanceHandler.go b/mx-sdk-go-old/workflows/moveBalanceHandler.go deleted file mode 100644 index c7bdbf61..00000000 --- a/mx-sdk-go-old/workflows/moveBalanceHandler.go +++ /dev/null @@ -1,175 +0,0 @@ -package workflows - -import ( - "context" - "errors" - "fmt" - "math/big" - "sync" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-chain-core-go/data/transaction" - "github.com/multiversx/mx-chain-crypto-go/signing" - "github.com/multiversx/mx-chain-crypto-go/signing/ed25519" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/blockchain/cryptoProvider" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -var ( - suite = ed25519.NewEd25519() - keyGen = signing.NewKeyGenerator(suite) -) - -// MoveBalanceHandlerArgs is the argument DTO for the NewMoveBalanceHandler constructor function -type MoveBalanceHandlerArgs struct { - Proxy ProxyHandler - TxInteractor TransactionInteractor - ReceiverAddress string - TrackableAddressesProvider TrackableAddressesProvider - MinimumBalance *big.Int -} - -// moveBalanceHandler is an implementation that can create move balance transactions that will empty the balance -// of the existing accounts -type moveBalanceHandler struct { - proxy ProxyHandler - mutCachedNetworkConfigs sync.RWMutex - cachedNetConfigs *data.NetworkConfig - txInteractor TransactionInteractor - trackableAddressesProvider TrackableAddressesProvider - receiverAddress string - minimumBalance *big.Int -} - -// NewMoveBalanceHandler creates a new instance of the moveBalanceHandler struct -func NewMoveBalanceHandler(args MoveBalanceHandlerArgs) (*moveBalanceHandler, error) { - if check.IfNil(args.TrackableAddressesProvider) { - return nil, ErrNilTrackableAddressesProvider - } - if check.IfNil(args.Proxy) { - return nil, ErrNilProxy - } - if check.IfNil(args.TxInteractor) { - return nil, ErrNilTransactionInteractor - } - if args.MinimumBalance == nil { - return nil, ErrNilMinimumBalance - } - - mbh := &moveBalanceHandler{ - proxy: args.Proxy, - txInteractor: args.TxInteractor, - trackableAddressesProvider: args.TrackableAddressesProvider, - receiverAddress: args.ReceiverAddress, - minimumBalance: args.MinimumBalance, - } - - return mbh, nil -} - -// CacheNetworkConfigs will try to cache the network configs -func (mbh *moveBalanceHandler) CacheNetworkConfigs(ctx context.Context) error { - cachedNetConfigs, err := mbh.proxy.GetNetworkConfig(ctx) - if err != nil { - return err - } - - mbh.mutCachedNetworkConfigs.Lock() - mbh.cachedNetConfigs = cachedNetConfigs - mbh.mutCachedNetworkConfigs.Unlock() - - return nil -} - -// GenerateMoveBalanceTransactions wil generate and add to the transaction interactor the move -// balance transactions. Will output a log error if a transaction will be failed. -func (mbh *moveBalanceHandler) GenerateMoveBalanceTransactions(ctx context.Context, addresses []string) { - for _, address := range addresses { - mbh.generateTransactionAndHandleErrors(ctx, address) - } -} - -func (mbh *moveBalanceHandler) generateTransactionAndHandleErrors(ctx context.Context, address string) { - err := mbh.generateTransaction(ctx, address) - if err != nil { - err = fmt.Errorf("%w for provided address %s", err, address) - log.Error(err.Error()) - } -} - -func (mbh *moveBalanceHandler) generateTransaction(ctx context.Context, address string) error { - addressHandler, err := data.NewAddressFromBech32String(address) - if err != nil { - return err - } - - mbh.mutCachedNetworkConfigs.RLock() - networkConfigs := mbh.cachedNetConfigs - mbh.mutCachedNetworkConfigs.RUnlock() - - if networkConfigs == nil { - return errors.New("nil cached configs") - } - - tx, availableBalanceString, err := mbh.proxy.GetDefaultTransactionArguments(ctx, addressHandler, networkConfigs) - if err != nil { - return err - } - - availableBalance, ok := big.NewInt(0).SetString(availableBalanceString, 10) - if !ok { - return ErrInvalidAvailableBalanceValue - } - - if availableBalance.Cmp(mbh.minimumBalance) < 0 { - log.Debug("will not send move-balance transaction as it is under the set threshold", - "address", address, - "available", availableBalance.String(), - "minimum allowed", mbh.minimumBalance.String(), - ) - return nil - } - - //add custom data bytes here if the move-balance transaction towards the hot wallet needs - // to carry some unique information - tx.Data = nil - tx.Receiver = mbh.receiverAddress - - value := availableBalance.Sub(availableBalance, mbh.computeTxFee(networkConfigs, tx)) - tx.Value = value.String() - - skBytes := mbh.trackableAddressesProvider.PrivateKeyOfBech32Address(address) - - cryptoHolder, err := cryptoProvider.NewCryptoComponentsHolder(keyGen, skBytes) - if err != nil { - return err - } - - err = mbh.txInteractor.ApplySignature(cryptoHolder, &tx) - if err != nil { - return err - } - - log.Debug("adding transaction", "from", address, "to", mbh.receiverAddress, "value", value.String()) - mbh.txInteractor.AddTransaction(&tx) - - return nil -} - -func (mbh *moveBalanceHandler) computeTxFee(networkConfigs *data.NetworkConfig, tx transaction.FrontendTransaction) *big.Int { - // this implementation should change if more complex transactions should be generated - // if the transaction is required to do a smart contract call, wrap a transaction using the relay mechanism - // or do an ESDT/SFT/NFT operation, then we need to query the proxy's `/transaction/cost` endpoint route - // in order to get the correct gas limit - - gasLimit := networkConfigs.MinGasLimit + uint64(len(tx.Data))*networkConfigs.GasPerDataByte - result := big.NewInt(int64(tx.GasPrice)) - result.Mul(result, big.NewInt(int64(gasLimit))) - - return result -} - -// IsInterfaceNil returns true if there is no value under the interface -func (mbh *moveBalanceHandler) IsInterfaceNil() bool { - return mbh == nil -} diff --git a/mx-sdk-go-old/workflows/walletsTracker.go b/mx-sdk-go-old/workflows/walletsTracker.go deleted file mode 100644 index a22c0ed1..00000000 --- a/mx-sdk-go-old/workflows/walletsTracker.go +++ /dev/null @@ -1,194 +0,0 @@ -package workflows - -import ( - "context" - "encoding/json" - logger "github.com/multiversx/mx-chain-logger-go" - "math/big" - "sync" - "time" - - "github.com/multiversx/mx-chain-core-go/core/check" - "github.com/multiversx/mx-sdk-go/mx-sdk-go-old/data" -) - -var log = logger.GetOrCreate("mx-sdk-go/workflows") - -// WalletTrackerArgs is the argument DTO for the NewWalletTracker constructor function -type WalletTrackerArgs struct { - TrackableAddressesProvider TrackableAddressesProvider - Proxy ProxyHandler - NonceHandler LastProcessedNonceHandler - CheckInterval time.Duration - MinimumBalance *big.Int -} - -// walletTracker is able to track a set of addresses by storing those that received a greater-than-specified -// amount of EGLD. It does this by parsing hyper block by hyper block and checking each transaction -type walletTracker struct { - accumulator *addressesAccumulator - trackableAddressesProvider TrackableAddressesProvider - proxy ProxyHandler - nonceHandler LastProcessedNonceHandler - checkInterval time.Duration - cancelFunc func() - minimumBalance *big.Int - - mutHandlers sync.RWMutex - handlerNewDepositTransaction func(transaction data.TransactionOnNetwork) -} - -// NewWalletTracker will create a new walletTracker instance. It automatically starts an inner -// processLoop go routine that can be stopped by calling the Close method -func NewWalletTracker(args WalletTrackerArgs) (*walletTracker, error) { - if check.IfNil(args.TrackableAddressesProvider) { - return nil, ErrNilTrackableAddressesProvider - } - if check.IfNil(args.Proxy) { - return nil, ErrNilProxy - } - if check.IfNil(args.NonceHandler) { - return nil, ErrNilLastProcessedNonceHandler - } - if args.MinimumBalance == nil { - return nil, ErrNilMinimumBalance - } - - wt := &walletTracker{ - accumulator: newAddressesAccumulator(), - trackableAddressesProvider: args.TrackableAddressesProvider, - proxy: args.Proxy, - nonceHandler: args.NonceHandler, - checkInterval: args.CheckInterval, - minimumBalance: args.MinimumBalance, - } - - var ctx context.Context - ctx, wt.cancelFunc = context.WithCancel(context.Background()) - go wt.processLoop(ctx) - - return wt, nil -} - -func (wt *walletTracker) processLoop(ctx context.Context) { - log.Debug("walletTracker.processLoop started") - - timer := time.NewTimer(wt.checkInterval) - defer timer.Stop() - - for { - timer.Reset(wt.checkInterval) - - select { - case <-timer.C: - err := wt.fetchAndProcessHyperBlocks(ctx) - log.LogIfError(err) - case <-ctx.Done(): - log.Debug("terminating walletTracker.processLoop...") - return - } - } -} - -func (wt *walletTracker) fetchAndProcessHyperBlocks(ctx context.Context) error { - lastProcessedNonce := wt.nonceHandler.GetLastProcessedNonce() - networkNonce, err := wt.proxy.GetLatestHyperBlockNonce(ctx) - if err != nil { - return err - } - - for nonce := lastProcessedNonce + 1; nonce <= networkNonce; nonce++ { - err = wt.fetchAndProcessHyperBlock(ctx, nonce) - if err != nil { - return err - } - - wt.nonceHandler.ProcessedNonce(nonce) - } - - return nil -} - -func (wt *walletTracker) fetchAndProcessHyperBlock(ctx context.Context, nonce uint64) error { - block, err := wt.proxy.GetHyperBlockByNonce(ctx, nonce) - if err != nil { - return err - } - - wt.processHyperBlock(block) - - log.Debug("processed hyper block", "nonce", nonce, "hash", block.Hash, "num txs", block.NumTxs) - - return nil -} - -func (wt *walletTracker) processHyperBlock(block *data.HyperBlock) { - for _, transaction := range block.Transactions { - err := wt.processTransaction(transaction) - if err != nil { - transactionString, _ := json.Marshal(&transaction) - log.Warn("error processing transaction, ignoring", - "transaction", transactionString, "error", err) - } - } -} - -func (wt *walletTracker) processTransaction(transaction data.TransactionOnNetwork) error { - value, ok := big.NewInt(0).SetString(transaction.Value, 10) - if !ok { - return ErrInvalidTransactionValue - } - - if !wt.trackableAddressesProvider.IsTrackableAddresses(transaction.Receiver) { - return nil - } - - if value.Cmp(wt.minimumBalance) < 0 { - // transaction has a very small value transfer (possible attack vector as someone - // can trigger millions of these transactions as to consume the owner's balance through fees) - return nil - } - - wt.notifyNewDepositTransactionFound(transaction) - wt.accumulator.push(transaction.Receiver) - - return nil -} - -func (wt *walletTracker) notifyNewDepositTransactionFound(transaction data.TransactionOnNetwork) { - wt.mutHandlers.RLock() - defer wt.mutHandlers.RUnlock() - - if wt.handlerNewDepositTransaction != nil { - wt.handlerNewDepositTransaction(transaction) - } -} - -// SetHandlerForNewDepositTransactionFound will set the handler that will get notified each time a new deposit -// transaction is found on a hyper block -func (wt *walletTracker) SetHandlerForNewDepositTransactionFound(handler func(tx data.TransactionOnNetwork)) { - if handler == nil { - return - } - - wt.mutHandlers.Lock() - wt.handlerNewDepositTransaction = handler - wt.mutHandlers.Unlock() -} - -// GetLatestTrackedAddresses returns the accumulated addresses that contained changed balances -func (wt *walletTracker) GetLatestTrackedAddresses() []string { - return wt.accumulator.pop() -} - -// Close will close the process loop go routine -func (wt *walletTracker) Close() error { - wt.cancelFunc() - - return nil -} - -// IsInterfaceNil returns true if there is no value under the interface -func (wt *walletTracker) IsInterfaceNil() bool { - return wt == nil -} From ba729b3501df385f672c77dad0e9068557a99aac Mon Sep 17 00:00:00 2001 From: Alexander Cristurean Date: Mon, 11 Dec 2023 14:55:46 +0200 Subject: [PATCH 5/5] cosmetic changes. --- go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..1581d678 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/multiversx/mx-sdk-go + +go 1.20