@uniswap/client-platform-service 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService-GasFeeSponsorshipService_connectquery.d.ts +18 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService-GasFeeSponsorshipService_connectquery.js +18 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_connect.d.ts +14 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_connect.js +14 -1
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_pb.d.ts +103 -0
- package/dist/uniswap/platformservice/v1/gasFeeSponsorshipService_pb.js +150 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
2
|
+
import { CheckTransactionSponsorshipEligibilityRequest, CheckTransactionSponsorshipEligibilityResponse, ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
|
|
5
5
|
*/
|
|
@@ -43,3 +43,20 @@ export declare const listSponsoredTransactionsByWallet: {
|
|
|
43
43
|
readonly typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService";
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* Partner-facing: should the partner's gas station sponsor this batch?
|
|
48
|
+
* REST POST /gas-sponsorship/eligibility; API key + scope at the gateway.
|
|
49
|
+
* All-or-nothing for the batch.
|
|
50
|
+
*
|
|
51
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.CheckTransactionSponsorshipEligibility
|
|
52
|
+
*/
|
|
53
|
+
export declare const checkTransactionSponsorshipEligibility: {
|
|
54
|
+
readonly localName: "checkTransactionSponsorshipEligibility";
|
|
55
|
+
readonly name: "CheckTransactionSponsorshipEligibility";
|
|
56
|
+
readonly kind: MethodKind.Unary;
|
|
57
|
+
readonly I: typeof CheckTransactionSponsorshipEligibilityRequest;
|
|
58
|
+
readonly O: typeof CheckTransactionSponsorshipEligibilityResponse;
|
|
59
|
+
readonly service: {
|
|
60
|
+
readonly typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
6
|
+
import { CheckTransactionSponsorshipEligibilityRequest, CheckTransactionSponsorshipEligibilityResponse, ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.ListEligibleGasFeeSponsorshipCampaigns
|
|
9
9
|
*/
|
|
@@ -47,3 +47,20 @@ export const listSponsoredTransactionsByWallet = {
|
|
|
47
47
|
typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService"
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Partner-facing: should the partner's gas station sponsor this batch?
|
|
52
|
+
* REST POST /gas-sponsorship/eligibility; API key + scope at the gateway.
|
|
53
|
+
* All-or-nothing for the batch.
|
|
54
|
+
*
|
|
55
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.CheckTransactionSponsorshipEligibility
|
|
56
|
+
*/
|
|
57
|
+
export const checkTransactionSponsorshipEligibility = {
|
|
58
|
+
localName: "checkTransactionSponsorshipEligibility",
|
|
59
|
+
name: "CheckTransactionSponsorshipEligibility",
|
|
60
|
+
kind: MethodKind.Unary,
|
|
61
|
+
I: CheckTransactionSponsorshipEligibilityRequest,
|
|
62
|
+
O: CheckTransactionSponsorshipEligibilityResponse,
|
|
63
|
+
service: {
|
|
64
|
+
typeName: "uniswap.platformservice.v1.GasFeeSponsorshipService"
|
|
65
|
+
}
|
|
66
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
1
|
+
import { CheckTransactionSponsorshipEligibilityRequest, CheckTransactionSponsorshipEligibilityResponse, ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service uniswap.platformservice.v1.GasFeeSponsorshipService
|
|
@@ -37,5 +37,18 @@ export declare const GasFeeSponsorshipService: {
|
|
|
37
37
|
readonly O: typeof ListSponsoredTransactionsByWalletResponse;
|
|
38
38
|
readonly kind: MethodKind.Unary;
|
|
39
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* Partner-facing: should the partner's gas station sponsor this batch?
|
|
42
|
+
* REST POST /gas-sponsorship/eligibility; API key + scope at the gateway.
|
|
43
|
+
* All-or-nothing for the batch.
|
|
44
|
+
*
|
|
45
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.CheckTransactionSponsorshipEligibility
|
|
46
|
+
*/
|
|
47
|
+
readonly checkTransactionSponsorshipEligibility: {
|
|
48
|
+
readonly name: "CheckTransactionSponsorshipEligibility";
|
|
49
|
+
readonly I: typeof CheckTransactionSponsorshipEligibilityRequest;
|
|
50
|
+
readonly O: typeof CheckTransactionSponsorshipEligibilityResponse;
|
|
51
|
+
readonly kind: MethodKind.Unary;
|
|
52
|
+
};
|
|
40
53
|
};
|
|
41
54
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file uniswap/platformservice/v1/gasFeeSponsorshipService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
5
|
+
import { CheckTransactionSponsorshipEligibilityRequest, CheckTransactionSponsorshipEligibilityResponse, ListEligibleGasFeeSponsorshipCampaignsRequest, ListEligibleGasFeeSponsorshipCampaignsResponse, ListSponsoredTransactionsByWalletRequest, ListSponsoredTransactionsByWalletResponse, PaymasterRpcCallRequest, PaymasterRpcCallResponse } from "./gasFeeSponsorshipService_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service uniswap.platformservice.v1.GasFeeSponsorshipService
|
|
@@ -41,5 +41,18 @@ export const GasFeeSponsorshipService = {
|
|
|
41
41
|
O: ListSponsoredTransactionsByWalletResponse,
|
|
42
42
|
kind: MethodKind.Unary,
|
|
43
43
|
},
|
|
44
|
+
/**
|
|
45
|
+
* Partner-facing: should the partner's gas station sponsor this batch?
|
|
46
|
+
* REST POST /gas-sponsorship/eligibility; API key + scope at the gateway.
|
|
47
|
+
* All-or-nothing for the batch.
|
|
48
|
+
*
|
|
49
|
+
* @generated from rpc uniswap.platformservice.v1.GasFeeSponsorshipService.CheckTransactionSponsorshipEligibility
|
|
50
|
+
*/
|
|
51
|
+
checkTransactionSponsorshipEligibility: {
|
|
52
|
+
name: "CheckTransactionSponsorshipEligibility",
|
|
53
|
+
I: CheckTransactionSponsorshipEligibilityRequest,
|
|
54
|
+
O: CheckTransactionSponsorshipEligibilityResponse,
|
|
55
|
+
kind: MethodKind.Unary,
|
|
56
|
+
},
|
|
44
57
|
}
|
|
45
58
|
};
|
|
@@ -671,3 +671,106 @@ export declare class PaymasterRpcError extends Message<PaymasterRpcError> {
|
|
|
671
671
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterRpcError;
|
|
672
672
|
static equals(a: PaymasterRpcError | PlainMessage<PaymasterRpcError> | undefined, b: PaymasterRpcError | PlainMessage<PaymasterRpcError> | undefined): boolean;
|
|
673
673
|
}
|
|
674
|
+
/**
|
|
675
|
+
* One call intent in a partner eligibility batch (ERC-20 / Permit2 approve or a
|
|
676
|
+
* Universal Router swap). No `value`: the partner contract omits it.
|
|
677
|
+
*
|
|
678
|
+
* @generated from message uniswap.platformservice.v1.SponsorshipTransactionCall
|
|
679
|
+
*/
|
|
680
|
+
export declare class SponsorshipTransactionCall extends Message<SponsorshipTransactionCall> {
|
|
681
|
+
/**
|
|
682
|
+
* @generated from field: string to = 1;
|
|
683
|
+
*/
|
|
684
|
+
to: string;
|
|
685
|
+
/**
|
|
686
|
+
* @generated from field: string data = 2;
|
|
687
|
+
*/
|
|
688
|
+
data: string;
|
|
689
|
+
constructor(data?: PartialMessage<SponsorshipTransactionCall>);
|
|
690
|
+
static readonly runtime: typeof proto3;
|
|
691
|
+
static readonly typeName = "uniswap.platformservice.v1.SponsorshipTransactionCall";
|
|
692
|
+
static readonly fields: FieldList;
|
|
693
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorshipTransactionCall;
|
|
694
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorshipTransactionCall;
|
|
695
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorshipTransactionCall;
|
|
696
|
+
static equals(a: SponsorshipTransactionCall | PlainMessage<SponsorshipTransactionCall> | undefined, b: SponsorshipTransactionCall | PlainMessage<SponsorshipTransactionCall> | undefined): boolean;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* @generated from message uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityRequest
|
|
700
|
+
*/
|
|
701
|
+
export declare class CheckTransactionSponsorshipEligibilityRequest extends Message<CheckTransactionSponsorshipEligibilityRequest> {
|
|
702
|
+
/**
|
|
703
|
+
* Decimal chain id string, per the partner contract (JSON: "chainId").
|
|
704
|
+
*
|
|
705
|
+
* @generated from field: string chain_id = 1;
|
|
706
|
+
*/
|
|
707
|
+
chainId: string;
|
|
708
|
+
/**
|
|
709
|
+
* User account / decoded delegator the batch executes as.
|
|
710
|
+
*
|
|
711
|
+
* @generated from field: string wallet = 2;
|
|
712
|
+
*/
|
|
713
|
+
wallet: string;
|
|
714
|
+
/**
|
|
715
|
+
* Ordered, non-empty call list (index 0 first), e.g. [approve, swap].
|
|
716
|
+
*
|
|
717
|
+
* @generated from field: repeated uniswap.platformservice.v1.SponsorshipTransactionCall transactions = 3;
|
|
718
|
+
*/
|
|
719
|
+
transactions: SponsorshipTransactionCall[];
|
|
720
|
+
/**
|
|
721
|
+
* dApp origin when known (e.g. https://app.uniswap.org). Informational.
|
|
722
|
+
*
|
|
723
|
+
* @generated from field: string origin = 4;
|
|
724
|
+
*/
|
|
725
|
+
origin: string;
|
|
726
|
+
/**
|
|
727
|
+
* Wallet client kind (extension, mobile). Informational.
|
|
728
|
+
*
|
|
729
|
+
* @generated from field: string client = 5;
|
|
730
|
+
*/
|
|
731
|
+
client: string;
|
|
732
|
+
/**
|
|
733
|
+
* @generated from field: string client_version = 6;
|
|
734
|
+
*/
|
|
735
|
+
clientVersion: string;
|
|
736
|
+
constructor(data?: PartialMessage<CheckTransactionSponsorshipEligibilityRequest>);
|
|
737
|
+
static readonly runtime: typeof proto3;
|
|
738
|
+
static readonly typeName = "uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityRequest";
|
|
739
|
+
static readonly fields: FieldList;
|
|
740
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckTransactionSponsorshipEligibilityRequest;
|
|
741
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckTransactionSponsorshipEligibilityRequest;
|
|
742
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckTransactionSponsorshipEligibilityRequest;
|
|
743
|
+
static equals(a: CheckTransactionSponsorshipEligibilityRequest | PlainMessage<CheckTransactionSponsorshipEligibilityRequest> | undefined, b: CheckTransactionSponsorshipEligibilityRequest | PlainMessage<CheckTransactionSponsorshipEligibilityRequest> | undefined): boolean;
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* @generated from message uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityResponse
|
|
747
|
+
*/
|
|
748
|
+
export declare class CheckTransactionSponsorshipEligibilityResponse extends Message<CheckTransactionSponsorshipEligibilityResponse> {
|
|
749
|
+
/**
|
|
750
|
+
* true -> the partner may sponsor the entire batch.
|
|
751
|
+
*
|
|
752
|
+
* @generated from field: bool success = 1;
|
|
753
|
+
*/
|
|
754
|
+
success: boolean;
|
|
755
|
+
/**
|
|
756
|
+
* Reason / diagnostics; the partner surfaces it in its sponsorship error.
|
|
757
|
+
*
|
|
758
|
+
* @generated from field: string message = 2;
|
|
759
|
+
*/
|
|
760
|
+
message: string;
|
|
761
|
+
/**
|
|
762
|
+
* Stable id of this decision (the GasFeeSponsee row key), returned on
|
|
763
|
+
* denials too; the partner persists it for invoice reconciliation.
|
|
764
|
+
*
|
|
765
|
+
* @generated from field: string uuid = 3;
|
|
766
|
+
*/
|
|
767
|
+
uuid: string;
|
|
768
|
+
constructor(data?: PartialMessage<CheckTransactionSponsorshipEligibilityResponse>);
|
|
769
|
+
static readonly runtime: typeof proto3;
|
|
770
|
+
static readonly typeName = "uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityResponse";
|
|
771
|
+
static readonly fields: FieldList;
|
|
772
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckTransactionSponsorshipEligibilityResponse;
|
|
773
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckTransactionSponsorshipEligibilityResponse;
|
|
774
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckTransactionSponsorshipEligibilityResponse;
|
|
775
|
+
static equals(a: CheckTransactionSponsorshipEligibilityResponse | PlainMessage<CheckTransactionSponsorshipEligibilityResponse> | undefined, b: CheckTransactionSponsorshipEligibilityResponse | PlainMessage<CheckTransactionSponsorshipEligibilityResponse> | undefined): boolean;
|
|
776
|
+
}
|
|
@@ -876,3 +876,153 @@ PaymasterRpcError.fields = proto3.util.newFieldList(() => [
|
|
|
876
876
|
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
877
877
|
{ no: 3, name: "data", kind: "message", T: Value },
|
|
878
878
|
]);
|
|
879
|
+
/**
|
|
880
|
+
* One call intent in a partner eligibility batch (ERC-20 / Permit2 approve or a
|
|
881
|
+
* Universal Router swap). No `value`: the partner contract omits it.
|
|
882
|
+
*
|
|
883
|
+
* @generated from message uniswap.platformservice.v1.SponsorshipTransactionCall
|
|
884
|
+
*/
|
|
885
|
+
export class SponsorshipTransactionCall extends Message {
|
|
886
|
+
constructor(data) {
|
|
887
|
+
super();
|
|
888
|
+
/**
|
|
889
|
+
* @generated from field: string to = 1;
|
|
890
|
+
*/
|
|
891
|
+
this.to = "";
|
|
892
|
+
/**
|
|
893
|
+
* @generated from field: string data = 2;
|
|
894
|
+
*/
|
|
895
|
+
this.data = "";
|
|
896
|
+
proto3.util.initPartial(data, this);
|
|
897
|
+
}
|
|
898
|
+
static fromBinary(bytes, options) {
|
|
899
|
+
return new SponsorshipTransactionCall().fromBinary(bytes, options);
|
|
900
|
+
}
|
|
901
|
+
static fromJson(jsonValue, options) {
|
|
902
|
+
return new SponsorshipTransactionCall().fromJson(jsonValue, options);
|
|
903
|
+
}
|
|
904
|
+
static fromJsonString(jsonString, options) {
|
|
905
|
+
return new SponsorshipTransactionCall().fromJsonString(jsonString, options);
|
|
906
|
+
}
|
|
907
|
+
static equals(a, b) {
|
|
908
|
+
return proto3.util.equals(SponsorshipTransactionCall, a, b);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
SponsorshipTransactionCall.runtime = proto3;
|
|
912
|
+
SponsorshipTransactionCall.typeName = "uniswap.platformservice.v1.SponsorshipTransactionCall";
|
|
913
|
+
SponsorshipTransactionCall.fields = proto3.util.newFieldList(() => [
|
|
914
|
+
{ no: 1, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
915
|
+
{ no: 2, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
916
|
+
]);
|
|
917
|
+
/**
|
|
918
|
+
* @generated from message uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityRequest
|
|
919
|
+
*/
|
|
920
|
+
export class CheckTransactionSponsorshipEligibilityRequest extends Message {
|
|
921
|
+
constructor(data) {
|
|
922
|
+
super();
|
|
923
|
+
/**
|
|
924
|
+
* Decimal chain id string, per the partner contract (JSON: "chainId").
|
|
925
|
+
*
|
|
926
|
+
* @generated from field: string chain_id = 1;
|
|
927
|
+
*/
|
|
928
|
+
this.chainId = "";
|
|
929
|
+
/**
|
|
930
|
+
* User account / decoded delegator the batch executes as.
|
|
931
|
+
*
|
|
932
|
+
* @generated from field: string wallet = 2;
|
|
933
|
+
*/
|
|
934
|
+
this.wallet = "";
|
|
935
|
+
/**
|
|
936
|
+
* Ordered, non-empty call list (index 0 first), e.g. [approve, swap].
|
|
937
|
+
*
|
|
938
|
+
* @generated from field: repeated uniswap.platformservice.v1.SponsorshipTransactionCall transactions = 3;
|
|
939
|
+
*/
|
|
940
|
+
this.transactions = [];
|
|
941
|
+
/**
|
|
942
|
+
* dApp origin when known (e.g. https://app.uniswap.org). Informational.
|
|
943
|
+
*
|
|
944
|
+
* @generated from field: string origin = 4;
|
|
945
|
+
*/
|
|
946
|
+
this.origin = "";
|
|
947
|
+
/**
|
|
948
|
+
* Wallet client kind (extension, mobile). Informational.
|
|
949
|
+
*
|
|
950
|
+
* @generated from field: string client = 5;
|
|
951
|
+
*/
|
|
952
|
+
this.client = "";
|
|
953
|
+
/**
|
|
954
|
+
* @generated from field: string client_version = 6;
|
|
955
|
+
*/
|
|
956
|
+
this.clientVersion = "";
|
|
957
|
+
proto3.util.initPartial(data, this);
|
|
958
|
+
}
|
|
959
|
+
static fromBinary(bytes, options) {
|
|
960
|
+
return new CheckTransactionSponsorshipEligibilityRequest().fromBinary(bytes, options);
|
|
961
|
+
}
|
|
962
|
+
static fromJson(jsonValue, options) {
|
|
963
|
+
return new CheckTransactionSponsorshipEligibilityRequest().fromJson(jsonValue, options);
|
|
964
|
+
}
|
|
965
|
+
static fromJsonString(jsonString, options) {
|
|
966
|
+
return new CheckTransactionSponsorshipEligibilityRequest().fromJsonString(jsonString, options);
|
|
967
|
+
}
|
|
968
|
+
static equals(a, b) {
|
|
969
|
+
return proto3.util.equals(CheckTransactionSponsorshipEligibilityRequest, a, b);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
CheckTransactionSponsorshipEligibilityRequest.runtime = proto3;
|
|
973
|
+
CheckTransactionSponsorshipEligibilityRequest.typeName = "uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityRequest";
|
|
974
|
+
CheckTransactionSponsorshipEligibilityRequest.fields = proto3.util.newFieldList(() => [
|
|
975
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
976
|
+
{ no: 2, name: "wallet", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
977
|
+
{ no: 3, name: "transactions", kind: "message", T: SponsorshipTransactionCall, repeated: true },
|
|
978
|
+
{ no: 4, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
979
|
+
{ no: 5, name: "client", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
980
|
+
{ no: 6, name: "client_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
981
|
+
]);
|
|
982
|
+
/**
|
|
983
|
+
* @generated from message uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityResponse
|
|
984
|
+
*/
|
|
985
|
+
export class CheckTransactionSponsorshipEligibilityResponse extends Message {
|
|
986
|
+
constructor(data) {
|
|
987
|
+
super();
|
|
988
|
+
/**
|
|
989
|
+
* true -> the partner may sponsor the entire batch.
|
|
990
|
+
*
|
|
991
|
+
* @generated from field: bool success = 1;
|
|
992
|
+
*/
|
|
993
|
+
this.success = false;
|
|
994
|
+
/**
|
|
995
|
+
* Reason / diagnostics; the partner surfaces it in its sponsorship error.
|
|
996
|
+
*
|
|
997
|
+
* @generated from field: string message = 2;
|
|
998
|
+
*/
|
|
999
|
+
this.message = "";
|
|
1000
|
+
/**
|
|
1001
|
+
* Stable id of this decision (the GasFeeSponsee row key), returned on
|
|
1002
|
+
* denials too; the partner persists it for invoice reconciliation.
|
|
1003
|
+
*
|
|
1004
|
+
* @generated from field: string uuid = 3;
|
|
1005
|
+
*/
|
|
1006
|
+
this.uuid = "";
|
|
1007
|
+
proto3.util.initPartial(data, this);
|
|
1008
|
+
}
|
|
1009
|
+
static fromBinary(bytes, options) {
|
|
1010
|
+
return new CheckTransactionSponsorshipEligibilityResponse().fromBinary(bytes, options);
|
|
1011
|
+
}
|
|
1012
|
+
static fromJson(jsonValue, options) {
|
|
1013
|
+
return new CheckTransactionSponsorshipEligibilityResponse().fromJson(jsonValue, options);
|
|
1014
|
+
}
|
|
1015
|
+
static fromJsonString(jsonString, options) {
|
|
1016
|
+
return new CheckTransactionSponsorshipEligibilityResponse().fromJsonString(jsonString, options);
|
|
1017
|
+
}
|
|
1018
|
+
static equals(a, b) {
|
|
1019
|
+
return proto3.util.equals(CheckTransactionSponsorshipEligibilityResponse, a, b);
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
CheckTransactionSponsorshipEligibilityResponse.runtime = proto3;
|
|
1023
|
+
CheckTransactionSponsorshipEligibilityResponse.typeName = "uniswap.platformservice.v1.CheckTransactionSponsorshipEligibilityResponse";
|
|
1024
|
+
CheckTransactionSponsorshipEligibilityResponse.fields = proto3.util.newFieldList(() => [
|
|
1025
|
+
{ no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1026
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1027
|
+
{ no: 3, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1028
|
+
]);
|